Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Batch input---Commit work

Former Member
0 Likes
2,652

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

1 ACCEPTED SOLUTION
Read only

Former Member
1,113

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

4 REPLIES 4
Read only

JozsefSzikszai
Active Contributor
0 Likes
1,113

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,113

Take a look at [Note 93802 - User maintenance in batch input|https://service.sap.com/sap/support/notes/93802]

Regards

Read only

Former Member
1,114

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

Read only

0 Likes
1,113

Thanks a lot Bujji

you solved my problem