Program:
REPORT zsm_id.
TYPES: BEGIN OF ty_str,
client TYPE mandt,
id TYPE int4,
name TYPE char10,
phone TYPE int4,
location TYPE char10,
END OF ty_str.
PARAMETERS: p_id TYPE int4,
p_name TYPE char10,
p_phone TYPE int4,
location TYPE char10.
DATA: it TYPE STANDARD TABLE OF ty_str,
wa TYPE ty_str.
wa-id = p_id.
wa-name = p_name.
wa-phone = p_phone.
wa-location = location.
INSERT zsm_tables FROM wa.
IF sy-subrc = 0.
WRITE:/ 'success'.
ELSE.
WRITE:/ 'not inserted'.
ENDIF.
OUTPUT:
0 Comments