12-19-2008 12:44 PM
Hi,
We are giving below parameter in FM
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
pernr = lv_pernr
actio = 'COP'
tclas = lc_a
begda = sy-datum
dialog_mode = lc_dialog
luw_mode = '4' or '1'
IMPORTING
return = rc
return1 = rc1
TABLES
proposed_values = proposed_values1.
Can anybody give any pointer what should be the value for LUW_mode parameter if want to rollback or commit.
Thanks in advance,
shweta
12-19-2008 12:55 PM
display the FM in SE37 and click on 'Documentation'. It is clearly explained there!
UPDATE : Sorry, it is only avaliable in German...
I translate shortly:
0 - no COMMIT WORK, no ROLLBACK WORK ==> has to do manually after the FM returns
1 - COMMIT will be done in one go by the FM if everything is OK, otherwise ROLLBACK
2 - COMMIT or ROLLBACK will be done on any single infotype (one by one)
3 - can be used for simulation
(DIALOG_MODE has to be '0', otherwise any of the above makes no sense)
12-23-2008 6:41 AM
Hi Shweta,
LUW MODE = 0 then Rollback
LUW MODE = 1 then Commit
Regards,
Darshan Mulmule