Application Development 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: 

Problem with multiple idocs in transaction POIT

maria_merino
Active Participant
0 Kudos

Hi experts,

I need to send multiple idocs in tx. PLOIT, but only one is being triggered.

I execute with 10 orders and there's only one idoc as a result. When debugging module function CLOI_MASTERIDOC_CREATE_LOIPRO, all idocs are being processed but at this point:

IF done_since_commit >= c_idocs_before_commit.

done_since_commit is always > c_idocs_before_commit, which has value 50. So the program doesn't commit every single idoc. Instead of that, after the loop, at this point:

IF done_since_commit > 0.
IF no_commit IS INITIAL.
CALL FUNCTION 'DB_COMMIT'.
ENDIF.
CALL FUNCTION 'DEQUEUE_ALL'.
IF no_commit IS INITIAL.
COMMIT WORK.
ENDIF.
ENDIF

The programs does the commit but only 1 idoc is triggered.

I've checked it's working fine in quality system but not in production system. Both systems are equal.

Any help please?

thanks !

Maria

6 REPLIES 6

FredericGirod
Active Contributor
0 Kudos

Did you check in WE20 if you have set a number of idocs to be processed at one time ?

maria_merino
Active Participant
0 Kudos

I'll check it, I'm the abapper so I don't know. thanks!

maria_merino
Active Participant
0 Kudos

Yes, WE20 is okay. In TST is working fine and in Prodction wrong.

FredericGirod
Active Contributor
0 Kudos

Could you share the we20 detail config ?

maria_merino
Active Participant
0 Kudos

same in tst an prod

maria_merino
Active Participant
0 Kudos

I've seen within the user exit there is a perform with a call to BAPI_PRODORD_CHANGE and then BAPI_TRANSACTION_COMMIT. So I think the problem is with this commit.

Do I have to call BAPI_PRODORD_CHANGE in update or in background task?

thanks!

maría