‎2008 Apr 06 4:32 AM
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
‎2008 Apr 06 6:18 AM
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