hai,
I have write the code for insert and modifications in modulepool. But the data was not inserted row by row only updated that row , in this the data comes to work area but sy-subrc eq 4. And also I wrote insert but the reselt is same . please give me solution.
the code is
CASE ok_code.
WHEN 'SAVE'.
MODIFY zcust_master FROM wa_master.
IF sy-subrc EQ 0.
MESSAGE 'Saved Sucessfully' TYPE 'S'.
ENDIF.
CLEAR wa_master.
WHEN 'UPDATE'.
MODIFY zcust_master FROM wa_master.
IF sy-subrc EQ 0.
MESSAGE 'Saved Sucessfully' TYPE 'S'.
ENDIF.
CLEAR wa_master.