2017 Jul 13 7:07 AM
Hi,
I'm trying to use the BAPI BAPI_BUS2002_ACT_CREATE_MULTI to create an Activity in a Network. I have a custom table, with many work order numbers,which will create the network with internal number ranges, and also create many activities in the network based on certain condition. This is a batch program.
The problem is, when I have an Error (few cases) in the creation of one Activity (the error returns at the return table of the BAPI_PS_PRECOMMIT ), the program finish with a short dump "ILLEGAL_TEMP_OBJNR" , but this is not happening all the time(the error is not coming during the debugging).
Can any body help me out.
Regards,
Sudipta
2017 Jul 14 11:06 AM
2017 Jul 14 12:30 PM
Yes, after every BAPI_TRANSACTION_COMMIT , there is 'wait up to 1 Seconds' inside the loop, but problem is in this case the short dump is coming from the BAPI_PS_PRECOMMIT, so the Commit work & the 'wait up to 1 Seconds' statement is not triggering.
2017 Jul 14 9:47 PM
Could you try the following :
Hope these suggestions help you in solving the issue
Nic T.
2017 Jul 17 10:32 AM
Dear Nic Teunckens,
Thanks for your reply.
The issue is that we are not getting error all the time, the issue "ILLEGAL_TEMP_OBJNR ("TM0000000696NV" " " " ") " is coming in an interval of 20-30 days, but on the very next day it issue is not coming. I've tried to replicate the issue many time during debugging but unable. As per my understanding the issue is not with BAPI : BAPI_BUS2002_ACT_CREATE_MULTI but with FM: BAPI_PS_PRECOMMIT.
As per ST22 : Termination occurred in the ABAP program "SAPLKKCK" - in "CO_OBJECT_SWITCH_NUMBER".
Which is basically called inside: BAPI_PS_PRECOMMIT -> CN2002_NETWORK_PRECOMMIT-> CO_ZV_ORDER_POST-> VB_CHECK_OPR_SEQ - > CO_BO_OPR_SEQ_VB_CHECK-> CK_F_CO_OBJECT_NUMBER_SWITCH-> CO_OBJECT_NUMBER_SWITCH -> KKCK_CO_OBJECT_NUMBER_SWITCH.
Regards,
Sudipta Chakraborty
2017 Jul 17 8:16 PM
2017 Jul 18 7:15 AM
Hi,
I have gone through the above KBAs and these are already in our system as we using release 604(SP level- 16). Anyway thanks for your kind support.
Regards,
Sudipta
2017 Jul 19 10:14 PM
2017 Jul 20 8:17 AM
There is no such UserExits / BAdI implemented which can interrupt the process, and also the short dump "ILLEGAL_TEMP_OBJNR ("TM0000000696NV" " " " ") " from BAPI_PS_PRECOMMIT is not coming all the time.
Regards,
Sudipta