2009 Oct 21 12:20 PM
Hi All,
I have a requirement to post Customer Invoice in SAP as well a Clearing document against the same using the data from the 3rd party system.
I am using the below 3 FMs to post the Clearing document.
'POSTING_INTERFACE_START'
'POSTING_INTERFACE_CLEARING'
'POSTING_INTERFACE_END'.
Following this I am submitting the session and then attempting to read the session logs.
SUBMIT rsbdcsub WITH mappe EQ lv_session WITH fehler EQ ' '
WITH z_verarb EQ gc_set
EXPORTING LIST TO MEMORY AND RETURN.
WAIT UP TO 1 SECONDS.
I am able to read the session logs only if the WAIT statement is provided as indicated above.
Also in certain cases, I am not able to read the session logs. I assume its because the wait time is not sufficient.
Is there a way to handle this situation since WAIT more than 1 seconds will not be a good option.
I have tried commit work and wait but that doesnt serve my purpose.
Please let me know your inputs.
Thanks,
Binu
Hi All,
I have a requirement to post Customer Invoice in SAP as well a Clearing document against the same using the data from the 3rd party system.
I am using the below 3 FMs to post the Clearing document.
'POSTING_INTERFACE_START'
'POSTING_INTERFACE_CLEARING'
'POSTING_INTERFACE_END'.
Following this I am submitting the session and then attempting to read the session logs.
SUBMIT rsbdcsub WITH mappe EQ lv_session WITH fehler EQ ' '
WITH z_verarb EQ gc_set
EXPORTING LIST TO MEMORY AND RETURN.
WAIT UP TO 1 SECONDS.
I am able to read the session logs only if the WAIT statement is provided as indicated above.
Also in certain cases, I am not able to read the session logs. I assume its because the wait time is not sufficient.
Is there a way to handle this situation since WAIT more than 1 seconds will not be a good option.
I have tried commit work and wait but that doesnt serve my purpose.
Please let me know your inputs.
Thanks,
Binu
2009 Oct 21 12:35 PM
Based on the explanation of the AND RETURN option
http://help.sap.com/abapdocu_70/en/ABAPSUBMIT.htm#!ABAP_ONE_ADD@1@
which is actually not 100% clear to me, you might try once without AND RETURN and see if this helps.
Thomas
2009 Oct 21 12:35 PM
Hi,
how is the parameter I_UPDATE of the function module 'POSTING_INTERFACE_START' set?
In case it is set to 'S' or 'L' your update should be synchronous and the data should be 'ready'
after the end of the function modules. In case of 'A' (asynchronous update) you may have to
wait till the update is done... .
Kind regards,
Hermann
2009 Oct 21 2:27 PM
Hi Hermann,
I am not passing any value for the importing parameter, I_UPDATE. The default value for this parameter is 'S'.
Is there anything else you can think of to resolve this issue?
Thanks,
Binu
2009 Oct 21 2:37 PM
Hi,
how about I_FUNCTION. Are you using 'C' or 'B'?
with 'C' and i_UPDATE 'L' or 'S' it should work i think.
Kind regards,
Hermann
2009 Oct 21 2:43 PM
Hi,
I am using session processing so have set I_FUNCTION as 'B'.
Thanks,
Binu
2009 Oct 21 3:04 PM
ok. I_UPDATE is only valid for I_FUNCTION 'C'.
Could you try I_FUNCTION 'C'?
Kind regards,
Hermann
2009 Oct 21 3:08 PM
Hi,
I want to do it using the session method.
Thanks,
Binu
2009 Oct 21 5:30 PM
Hi,
i think the bathinput seesion is started asynchronously... .
I'm not sure if or how you could be notified from the transaction end.
The other option is to wait like you are doing it... , sorry.
Kind regards,
Hermann
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |