‎2015 Sep 18 8:07 AM
Hi Experts,
Need you help in below issue,
Scenario is that, in case of Creation of tasklist we are using
EAM_TASKLIST_CREATE followed by EAM_TASKLIST_POST.
Now, my issue is that when there is an error in creation,
then no tasklist is getting created and,
no plnnr is being returned by the BAPI,
therefore we are not calling EAM_TASKLIST_POST in that case.
But, there a COMMIT WORK used at the end of the my code due to which a short dump is occurring
(I guess it's saving the data in Cache memory..)
I can't remove that COMMIT WORK, as it is essential for our code to process.
So, please tell me, is there any counter RFC for EAM_TASKLIST_POST,??
or if there's any RFC to clear the Cache to get this issue resolved??
Thanks for you support in Advance,
Aayush Aggarwal
‎2015 Sep 18 11:16 AM
I wonder if you have any error in EAM_TASKLIST_CREATE, why do you want to commit at first place. I am confused.
The documentation of the FM clearly says you need to call EAM_TASKLIST_POST if you do not have any error in the call EAM_TASKLIST_CREATE and then BAPI_TRANSACTION_COMMIT if you do not have any error in EAM_TASKLIST_POST.
R
‎2015 Sep 19 7:48 AM
Hi Rudra,
The thing is that i am writing this code in the proxy class in sproxy tcode. Therefore there is an outbound method used which takes the acknowledgements out of the SAP system to PI, so to trigger that thing i have written COMMIT WORK in the code.
Means that COMMIT WORK is mandatory for our code, my actual question is there any FM that can be used to resolve this issue ??
Regards,
Aayush
‎2015 Sep 20 12:53 AM
don't write any code in the proxy class....use commit work after calling the proxy class in the program..
it will solve your issue.
‎2015 Sep 22 8:08 AM
Hi Akash,
Thanks for you reply, but i have already resolved the issue using ROLLBACK WORK.
But, can you help me with the other issue that using FM EAM_TASKLIST_CREATE to create task list as in ia05 but there is no option of creating Insp. Char.
How can i achieve it ??
Regards,
Aayush