Skip to Content
0

Question regarding first time bapi_incominginvoice_park not created

May 02, 2017 at 05:18 PM

43

avatar image
Former Member

Hi all expert,

I am doing migo miro automation project. In include lmigokg1 after commit work that mean after updating mseg table i have written my abap code and calling bapi to park the document. User while doing migo posting in background miro should processed . It is working fine but the biggest issue is for the first time in a day once i supposed to run my code the miro parking bapi is not creating but mblnr is creating. Then with out changing anything if i run my code for second time required expected result is coming means invoice parking bapi is creating. And if i set break point for first time to run my code it is also creating same no issue but for the first time its creating issue. Can you please help me out little how to resolve or what is the issue.

I have written also wait upto statement. First call bapi and then commit statement i am calling.

Thanks in advance.

Kaushik Pattanayak

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Raymond Giuseppi
May 03, 2017 at 06:15 AM
0

Why didn't you use a BAdI like MB_MIGO_BADI to trigger the call of the BAPI in a RFC FM wrapper executed with statement CALL FUNCTION IN BACKGROUND TASK, or in recent versions with CALL FUNCTION IN BACKGROUND UNIT? (So they are executed after database update and can be monitored with transaction like SM58 and SBGRFCMON.)

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member May 03, 2017 at 08:34 AM
0

Hi,

Thanks so much Raymond but the issue is MB_MIGO_BADI is not fullfill my certain criteria that why the problem is arising so that i need to write in lmigokg1 include.

Thanks

Kaushik Pattanayak

Share
10 |10000 characters needed characters left characters exceeded