‎2008 Jun 13 1:28 PM
HI All
I am doing a batch input to SU10 ,tcode
and su10 inturn is calling various FMs that uses commit work
and because of this
when ever the code reaches to commit work,
rest of the of code(FM) is not executed it went back to the
batch input program
now the FM which uses commit work is a standard program
please let me know how i can proceed
the program is SUSR_ZBV_USER_SEND,line 286
Thanks in advance
Edited by: kittu reddy on Jun 13, 2008 2:50 PM
‎2008 Jun 13 2:04 PM
Hi,
YOu can declare one work area of structure CTU_PARAMS. Move 'X' to the RACOMMIT. And pass this to Call transaction or if you are using session then pass this exporting parameters of FM 'BDC_INSERT '.
WA_PARAMS-DISMODE = 'N'.
WA_PARAMS-UPDMODE = 'S'.
WA_PARAMS-RACOMMIT = 'X'.
call transaction 'xxxx' using bdctab
options from wa_params......
if session then WA_PARAMS-RACOMMIT = 'X'. and pass this to CTUPARAMS of the exporting parameters of FM 'BDC_INSERT '.
Rgds,
Bujji
‎2008 Jun 13 1:55 PM
hi Kittu,
do you want to change users in SU10? Why don't you use the following FM: BAPI_USER_CHANGE?
hope this helps
ec
‎2008 Jun 13 2:03 PM
‎2008 Jun 13 2:04 PM
Hi,
YOu can declare one work area of structure CTU_PARAMS. Move 'X' to the RACOMMIT. And pass this to Call transaction or if you are using session then pass this exporting parameters of FM 'BDC_INSERT '.
WA_PARAMS-DISMODE = 'N'.
WA_PARAMS-UPDMODE = 'S'.
WA_PARAMS-RACOMMIT = 'X'.
call transaction 'xxxx' using bdctab
options from wa_params......
if session then WA_PARAMS-RACOMMIT = 'X'. and pass this to CTUPARAMS of the exporting parameters of FM 'BDC_INSERT '.
Rgds,
Bujji
‎2008 Jun 13 3:08 PM