cancel
Showing results for 
Search instead for 
Did you mean: 

SalesOrder is not created

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

MichalKrawczyk
Active Contributor
0 Kudos

Hi Sekhar,

I believe you had the same problem

a few posts away

R U sure your Logical System name in the R/3 system is ok ?

Regards,

michal

Former Member
0 Kudos

Hi michal,

Yes my logical system is ok in R/3 system.

I used same name in the Business system and and Logical system.

Thanks,

sekhar.

Former Member
0 Kudos

Hi michal ,

I solved the above problem.I used Z_BAPI_SALESORDER_CREATE BAPI and scenario is running successful.I used COMMIT WORK at the end of ZBAPI_SALESORDER_CREATE.

Still the sales order is not created.

Thanks,

sekhar.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

you were supposed to use:

'BAPI_TRANSACTION_COMMIT'

try with this bapi and not the commit work.

this time the sales order will be created

(if all of the values inside are correct)

regards,

michal

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Chris,

I tested with test data in R/3.It is successfully created sales order and gave a response to sales document number perfectly.

I used the same Zbapi..... But still the sales order is not being created.

Thanks,

sekhar.