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

Regarding Sales Order Bapi

Hi Friends,

I am trying to upload the sales order history from the legacy side using Bapi BAPI_SALESORDER_CREATEFROMDAT2. I am passing all the mandatory values but I am getting an error message "please select sold-to or ship-to party".

What is that I am missing? Can anybody guide me in this issue.

Thanks,

Raj

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 13, 2005 at 12:58 PM

    Looks like you are not setting the either the Sold-to customer number or the ship-to customer number. Please check these fields.

    You will need to fill in the soldto and shipto parties in the partner tables "ORDER_PARTNERS" STRUCTURE BAPIPARNR

    * ORDER_PARTNERS
      CLEAR bapiparnr[].
      bapiparnr-partn_role = 'SP'.
      bapiparnr-itm_number = '0'.
      bapiparnr-partn_numb = your_soldto.
      bapiparnr-addr_link  = 'SP'.
      APPEND bapiparnr.
    
      bapiparnr-partn_role = 'SH'.
      bapiparnr-itm_number = '0'.
      bapiparnr-partn_numb = Your_shipto.
      bapiparnr-addr_link  = 'SH'.
      APPEND bapiparnr.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Rich Heilman

      Rich,

      I am actually giving all the mandatory field values to the legacy system B'coz they are trying to call this bapi. The fields that I am giving are:

      DOC_TYPE

      SALES_ORG

      DISTR_CHAN

      DIVISION

      PO_METHOD

      SALES_DIST

      PMNTTRMS

      PYMT_METH

      MATERIAL

      PLANT

      PARTN_ROLE

      PARTN_NUMB

      ITM_NUMBER and ADDR_LINK.

      In the output response, they are getting the same error to specify ship-to or sold-to partyeven after including the addr_link field.

  • Posted on Oct 13, 2005 at 04:24 PM

    What value are they using for partner function? It should be in internal format which is 'AG' for sold-to and 'WE' for ship-to.

    Add a comment
    10|10000 characters needed characters exceeded

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.