2010 Jun 03 7:14 PM
SUBMIT rsbdcsub
WITH mappe = m_name
WITH von = sy-datum
WITH bis = sy-datum
WITH z_verab = 'X'
WITH logall = 'X'
AND RETURN.
Am having little confusion on how this will work. From the ABAP help, I understand that Once program access is completed, program execution for the calling program continues after the SUBMIT statement. in this case, RSBDCSUB submits the session that was created. so will the system wait until the session gets executed completly?
Thanks,
Kiran
2010 Jun 03 7:21 PM
Hi,
The session from the caller and the rsbdcsub is the same.
In really, the systems "don´t wait", because it´s executing the rsbdcsub, returning to the caller after it ends.
Best regards,
Leandro Mengue
2010 Jun 03 7:21 PM
2010 Jun 04 8:00 PM
I would like to acheive this: I want to know how to trigger an new report after the completion of processing the BDC session.
Any thoughts plz.
Regards,
Kiran
2010 Jun 04 8:11 PM
Hi Kiran,
This link will help you
link:[http://www.sapfans.com/sapfans/forum/devel/messages/30331.html]
Try like , calling the fm in a do statement and if it reaches 'F' exit the loop and proceed, if its E or A or anything else, exit from the program...hope you got the idea....or you can use a independent program to check the status..make sure the loops doesnt goes to infinity ..this is just a hint
The logic is to check the status of the submitted session.
2010 Jun 04 8:20 PM
Thank you Keshav.
But what if the function module returns non zero...that means my bdc session is not completed.so I cannot run my 2nd program. This means I am wasting one run.
So all that I want is not to wait or check....I just wish to trigger job B when job A is completed.
Thanks,
Kiran
2010 Jun 04 11:08 AM
No , it does not wait.
The RETURN statement has nothing to do with this. It just determined about the creation of called program in new session .
Regards,
Uma
2010 Jun 04 8:23 PM
Moderator message - This is now a different question and one that has been asked many times before. Please search the forum - thread locked
Unlocked so OP can close.
Edited by: Rob Burbank on Jun 4, 2010 3:51 PM