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

Invalid request bo for BAPI_GOODSMVT_CREATE call in Message Flow.

Former Member
0 Likes
452

Hi, all

I call BAPI_GOODSMVT_CREATE in my message flow through SAP adapter node.

Here is the xml format BO created in ESQL,

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

<SapBapiGoodsmvtCreate>

<SapGoodsmvtHeader>

<PstngDate>2008-07-02</PstngDate>

</SapGoodsmvtHeader>

<SapGoodsmvtCode>

<GmCode>03</GmCode>

</SapGoodsmvtCode>

<SapGoodsmvtItem>

<Material>PWRPACK52</Material>

<Plant>1000</Plant>

<StgeLoc>0001</StgeLoc>

<MoveType>201</MoveType>

<EntryQnt>33.000</EntryQnt>

<EntryUom>PC</EntryUom>

<EntryUomIso>PCE</EntryUomIso>

<Costcenter>1000</Costcenter>

</SapGoodsmvtItem>

</SapBapiGoodsmvtCreate>

</NS1:SapbapigdmvcrtWrapper>

By switch on user trace on broker, I got the message that the request bo is not correct.

But I can running BAPI_GOODSMVT_CREATE function without error in SAP GUI function builder test with same input data.

The only thing I am not sure is the posting date, for ESQL messageset, it's defined as DATE, I populated it by CURRENT_DATE function. But in the funtion builder test GUI, I input it as 02.07.2008 format. Is this the problem?

Hi, all

I call BAPI_GOODSMVT_CREATE in my message flow through SAP adapter node.

Here is the xml format BO created in ESQL,

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

<SapBapiGoodsmvtCreate>

<SapGoodsmvtHeader>

<PstngDate>2008-07-02</PstngDate>

</SapGoodsmvtHeader>

<SapGoodsmvtCode>

<GmCode>03</GmCode>

</SapGoodsmvtCode>

<SapGoodsmvtItem>

<Material>PWRPACK52</Material>

<Plant>1000</Plant>

<StgeLoc>0001</StgeLoc>

<MoveType>201</MoveType>

<EntryQnt>33.000</EntryQnt>

<EntryUom>PC</EntryUom>

<EntryUomIso>PCE</EntryUomIso>

<Costcenter>1000</Costcenter>

</SapGoodsmvtItem>

</SapBapiGoodsmvtCreate>

</NS1:SapbapigdmvcrtWrapper>

By switch on user trace on broker, I got the message that the request bo is not correct.

But I can running BAPI_GOODSMVT_CREATE function without error in SAP GUI function builder test with same input data.

The only thing I am not sure is the posting date, for ESQL messageset, it's defined as DATE, I populated it by CURRENT_DATE function. But in the funtion builder test GUI, I input it as 02.07.2008 format. Is this the problem?

2 REPLIES 2
Read only

Former Member
0 Likes
410

Hi

Try passing the date in the format YYYYMMDD . Hope this will work.

Read only

0 Likes
410

Change the data format to YYYYMMDD also doesn't work.

And changed the user profile data format dd.mm.yyyy to yyyy-mm-dd, still remain bo xml input date yyyy-mm-dd, still doesn't work.

;-(