Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_PR_CREATE call error

Former Member
0 Likes
427

I am using IBM WebSphere Message Broker SAP Adapter request node to call BAPI_PR_CREATE, here is the input business object:

<NS1:SapbapiprcrtWrapper xmlns:NS1="http://www.ibm.com/xmlns/prod/websphere/j2ca/sap/sapbapiprcrtwrapper">

<SapBapiPrCreate>

<SapPrheader>

<PrType>NB</PrType>

</SapPrheader>

<SapPrheaderx>

<PrType>X</PrType>

</SapPrheaderx>

<SapPritem>

<PreqItem>00010</PreqItem>

<Material>1300-330</Material>

<Plant>1000</Plant>

<Quantity>33000</Quantity>

<Unit>PC</Unit>

</SapPritem>

<SapPritemx>

<PreqItem>00010</PreqItem>

<Material>X</Material>

<Plant>X</Plant>

<Quantity>X</Quantity>

<Unit>X</Unit>

</SapPritemx>

</SapBapiPrCreate>

</NS1:SapbapiprcrtWrapper>

But the adapter node failed during the processing, seems a RecordNotFound exception throwed, anyone can help?

2 REPLIES 2
Read only

Former Member
0 Likes
388

HI,

are you able to test the Bapi in Se37 sucessfully??? For same data are u getting the output??

Regards

Raj

Read only

0 Likes
388

Ok, solove the problem, Quantity field type should be assigned a DECIMAL in the ESQL code.

By the way, I can't execute the BAPI_PR_CREATE function sucessfully directly, don't know why.