Program:
REPORT zsm_smartform_three.
TYPES: BEGIN OF str,
matnr TYPE matnr,
mtart TYPE mtart,
maktx TYPE maktx,
END OF str.
DATA: it TYPE STANDARD TABLE OF str,
wa TYPE str.
SELECT mtart maktx
INTO TABLE it
FROM mara INNER JOIN makt ON mara~matnr = makt~matnr UP TO 10 ROWS.
CALL FUNCTION '/1BCDWB/SF00000487'
* EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
tables
z_it_smart_three = it
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.
OUTPUT:
0 Comments