hi experts,
i am new to ABAP.
CAN anyone help me with this code.
CODE IN PAI after using popup_to_confirm. function module
i have to insert the itab data from screen to ztable .this is module pool program.
IF answer = '1'. " YES.
SELECT name
id
salary
designation
FROM zdialog
INTO TABLE itab.
LOOP AT itab. "internal table name is itab
zdialog-name = itab-name. "zdialog is the Ztable .
zdialog-id = itab-id.
zdialog-salary = itab-salary.
zdialog-designation = itab-designation.
*****Update the entries into item table*****
INSERT zdialog CLIENT SPECIFIED FROM TABLE itab .
ENDLOOP.
IF sy-subrc = 0.
MESSAGE s000(0) WITH 'data saved successfully'.
ENDIF.
ELSEIF answer = '2'. " NO
LEAVE TO SCREEN 0.
ELSEIF answer = 'A'. " CANCEL
LEAVE PROGRAM.
ENDIF.