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

Create Sales Order using BAPI

Dear Experts,

I am using BAPI BAPI_SALESORDER_CREATEFROMDAT2 to create a new Sales Order. I can actually create the sales order with all other fields right except for the HOUSE NUMBER in the SHIP-TO PARTY.

For the BAPI_SALESORDER_CREATEFROMDAT2, I have include the table ORDER_PARTNERS with structure BAPIPARNR. But when I check in the structure BAPIPARNR, there is only the field STREET (char 35) but no individual field for HOUSE NUMBER. May I ask how can I insert the HOUSE NUMBER to the Sales Order?

Points will be rewarded for helpful answers.

Thanks in Advance.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 09:27 AM

    Hi,

    generally the ship-to-party and sold-to-party should be declared in kna1, and all the information regerding the ship-to-party will be available in that table , so i guess we need to give the number remaining everything it get it from the table.

    plzz reward points if it helps.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 09:45 AM

    Hi

    U need to regenerate a new address for that partner by BAPI, see the BAPISAVEREPLICA

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 09:52 AM

    Use the structure 'PARTNERADDRESSES'.

    You can enter document addresses in this entry table.

    If the table is used to enter document addresses for a sales and distribution document, the address data is then not necessary in the document partner table BAPIPARNR / BAPIPARTNR ).

    Furthermore, a link must be defined between the document partner and the address, using an address link; the field ADDR_LINK is available for this in the partner table, and the field ADDR_NO in the address table.

    See also OSS note 195768

    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.