Skip to Content
0
Former Member
May 19, 2008 at 05:39 PM

BAPI_SALESORDER_CREATEFROMDAT2

59 Views

Hi

I have a scenario wehre i am sending the data from file to BAPI

BAPI_SALESORDER_CREATEFROMDAT2 and want to get back the SALES DOCUMENT NUMBER in Response...

My scenario is working fine but i am getting empty SALES DOCUMENT NUMBER in Response

MY SAMPLE FILE :

ORDER_HEADER_IN>

<ITEM>

<DOC_TYPE>ZCA</DOC_TYPE>

<SALES_ORG>0020</SALES_ORG>

<DISTR_CHAN>00</DISTR_CHAN>

<DIVISION>00</DIVISION>

</ITEM>

</ORDER_HEADER_IN>

<ORDER_PARTNERS>

<ITEM>

<PART_ROLE>SP</PART_ROLE>

<PRATN_NUMB>100103444</PRATN_NUMB>

<ITM_NUMBER>000000</ITM_NUMBER>

</ITEM>

</ORDER_PARTNERS>

<ORDER_ITEMS_IN>

<ITEM>

<MATERIAL>MMT-315</MATERIAL>

<BILL_DATE>20071207</BILL_DATE>

<ITM_NUMBER>000000</ITM_NUMBER>

<DLV_GROUP>000</DLV_GROUP>

<TAGET_QTY>1</TAGET_QTY>

<UOM></UOM>

</ITEM>

</ORDER_ITEMS_IN>

<ORDER_SCHEDULE>

<ITEM>

<ITM_NUMBER>000000</ITM_NUMBER>

<SCHED_LINE>0000</SCHED_LINE>

<REQ_QTY>1</REQ_QTY>

</ITEM>

</ORDER_SCHEDULE>

but with the same data when i tested tha BAPI i am getting the SALES DOCUMENT NUMBER in Response ..

I am getting EMPTY SALES DOCUMENT NUMBER When i send the data using the file from XI...

DID i missed any mandatory fileds for creating the SAles document

SV