Skip to Content
author's profile photo Former Member
Former Member

BAPI_SALESORDER_CREATEFROMDAT2

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 19, 2008 at 07:24 PM

    Hello,

    From the error, i suggest you to check whether you r sending ship to party in the file. or check whether you have done the mapping for ship to party field.

    Regards,

    Sreeni

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2008 at 06:31 PM

    S.V

    Just to confirm, Did you select the Send 'Confirm Transaction' and Commit Control for Single BAPI Calls in the Advanced Mode.

    For more refer below

    http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      S.V

      <MESSAGE>*Please enter sold-to party or ship-to party*</MESSAGE>

      If you see this messages, it seems that BAPI is trying to post the sales order but there is a value for sold-to party or ship-to party which is missing. Please fill the value for that fields in the BAPI and try again. You will get the value

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.