Program:
REPORT ZSM_SMART_DATA.
PARAMETERS: s_id TYPE zvp_data-id.
SELECT SINGLE name, age, address FROM zvp_data INTO @DATA(wa_one) WHERE 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:
0 Comments