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

Short Dump in EAM_TASKLIST_CREATE

aayushaggarwal
Active Participant
0 Likes
2,304

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,365

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

Read only

0 Likes
1,365

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

Read only

0 Likes
1,365

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.

Read only

0 Likes
1,365

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