REPORT zsm_data_two.
TYPES: BEGIN OF str,
id TYPE int4,
name TYPE char10,
age TYPE int4,
address TYPE char10,
END OF str.
DATA: wa TYPE zvp_data.
PARAMETERS: p_id TYPE int4,
p_name TYPE char10,
p_age TYPE int4,
p_adress TYPE char10.
wa-id = p_id.
wa-name = p_name.
wa-age = p_age.
wa-address = p_adress.
INSERT INTO zvp_data VALUES wa.
if Sy-subrc = 0.
WRITE: / 'Data inserted successfully'.
ENDIF.
0 Comments