Program:
REPORT ZSM_ID_TWO.
TYPES: BEGIN OF ty_str,
client TYPE mandt,
id TYPE int4,
name TYPE char10,
phone TYPE int4,
location TYPE char10,
END OF ty_str.
DATA: it TYPE STANDARD TABLE OF ty_str,
wa TYPE ty_str.
SELECT-OPTIONS: s_id FOR wa-id.
SELECT-OPTIONS: s_name FOR wa-name.
SELECT-OPTIONS: s_phone FOR wa-phone.
SELECT-OPTIONS: location FOR wa-location.
INSERT zsm_tables FROM wa.
IF sy-subrc = 0.
WRITE:/ 'success'.
ELSE.
WRITE:/ 'not inserted'.
ENDIF.
Output:
0 Comments