on 04-21-2005 5:08 PM
Hi all,
I am working on the scenario from Jdbc to SAP to create the sales order.
End-to-End is workibg fine.But sales order is not created.
For this i have to execute BAPI_TRANSCATION_COMMIT.
Can anybody suggest the steps to execute this one.
Thanks,
sekhar
hi sekhar,
just create an RFC wrapper function like z_bapi_sales_order_create
that will execute the normal bapi and
if the bapi returns no errors z_bapi_sales_order_create
can execute BAPI_TRANSCATION_COMMIT in the next step
this is the most popular solution I guess
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi michal,
I created ZBAPI_SALESORDER AND USED COMMIT WORK at the end.I am getting the following error now..
Do u have any idea?
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIAdapter</SAP:Category>
<SAP:Code area="BPE_ADAPTER">SYSTEM_FAILURE_INTERNAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>An internal error has occurred</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Thanks,
sekhar
Hi michal,
Thanks for the reply.
I used the following code in the after the tables.
DATA v_return.
.....
.....
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 5
IMPORTING
return = v_return.
But still the sales order is not created.SXMB_MONI is showing suucess flag. I mapped all the mandatory fields.
plz suggest if any errors.
Thanks,
sekhar.
Sekhar,
Have you tried testing this in a z program in the R/3 system? I would do this, using the exact data that should be passed, then you can debug it to see if everything is OK with the data and the BAPI you created. Once you have the orders being created this way, then it should not be an issue creating them from XI.
Just remember that the program will do a commit on it own, so check for the sales order right after the bapi call, before you leave debug mode.
Regards,
Chris
User | Count |
---|---|
77 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.