Skip to Content
0
Oct 20, 2020 at 06:42 AM

Problem with multiple idocs in transaction POIT

57 Views Last edit Oct 20, 2020 at 11:35 AM 2 rev

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