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

Problem creating source list

Former Member
0 Likes
583

Hi

We are on ECC 5.0 and in one of our ABAP programs create a PIR as a first step using ME11 BDC call and then go ahead to create a sourcelist for the material + plant and the vendor ( for which PIR was created in the first step ) .

To create source list we use the following function modules ( fms ) in sequence

ME_INITIALIZE_SOURCE_LIST

ME_DIRECT_INPUT_SOURCE_LIST

ME_POST_SOURCE_LIST_NEW

What we observe is that - the ME_DIRECT_INPUT_SOURCE_LIST fm always raises an abort message - ' No PIR exists for the material and vendor ' even though PIR is created in the first step and we check for its existence before we call the fms for the source list. However if we introduce a wait for upto 15 seconds after the PIR has been created the sourcelist creation goes through.

Any idea why the above is happening. Similar situations faced with source list creation - shared is appreciated. Correct answers helping me solve this problem will be promptly rewarded

1 REPLY 1
Read only

Former Member
0 Likes
360

Hi Karthik,

System takes some time to COMMIT all the work thats why it's happening.

Keep the WAIT FOR UP TO <reasonale seconds value> SECONDS in your code.

Regards,

Atish