SAP ABAP Program to fetch name age and address after putting I'd from a custom table and show it in Smartforms

 Program: 


REPORT ZSM_SMART_DATA.

PARAMETERSs_id TYPE zvp_data-id.

SELECT SINGLE nameageaddress FROM zvp_data INTO @DATA(wa_oneWHERE id @s_id .

  if sy-subrc 0.

    CALL FUNCTION '/1BCDWB/SF00000485'
      EXPORTING
*       ARCHIVE_INDEX              =
*       ARCHIVE_INDEX_TAB          =
*       ARCHIVE_PARAMETERS         =
*       CONTROL_PARAMETERS         =
*       MAIL_APPL_OBJ              =
*       MAIL_RECIPIENT             =
*       MAIL_SENDER                =
*       OUTPUT_OPTIONS             =
*       USER_SETTINGS              = 'X'
        id                         s_id
        name                       wa_one-name
        age                        wa_one-age
        address                    wa_one-address
*     IMPORTING
*       DOCUMENT_OUTPUT_INFO       =
*       JOB_OUTPUT_INFO            =
*       JOB_OUTPUT_OPTIONS         =
*     EXCEPTIONS
*       FORMATTING_ERROR           = 1
*       INTERNAL_ERROR             = 2
*       SEND_ERROR                 = 3
*       USER_CANCELED              = 4
*       OTHERS                     = 5
              .
    IF sy-subrc <> 0.
* Implement suitable error handling here
    ENDIF.


    ENDIF.



Output: 

















                    

Post a Comment

0 Comments