Skip to Content

How to insert partner function to sales document ?


Hi Experts,

I'm able to update partner function by assigning new customer based on sales document using BAPI_SALESORDER_CHANGE.

But how to insert a partner function to sales document?

Please provide a bapi or function module.

Regards,

Ashok

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Oct 13, 2015 at 03:55 PM

    Have you tried using the PARTNERS parameter of the BAPI you mention?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2015 at 04:22 PM

    Hi,

    you can insert the partner in the following way..

    add your partner function to the Partner table..


    I_BAPIPARNR-PARTN_ROLE = 'ZD'.

    I_BAPIPARNR-PARTN_NUMB = P_KUNNR.

    APPEND I_BAPIPARNR.


    I_BAPIPARNRC-DOCUMENT = F_VBELN.

    I_BAPIPARNRC-UPDATEFLAG = 'I'.

    I_BAPIPARNRC-PARTN_ROLE = 'ZD'.

    APPEND I_BAPIPARNRC.


    thanks!!

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 13, 2015 at 05:48 PM

    Hi Ashok

    You need to fill the following tables in the BAPI_SALESORDER_CHANGE

    PARTNERS STRUCTURE BAPIPARNR OPTIONAL

    PARTNERCHANGES STRUCTURE BAPIPARNRC OPTIONAL

    PARTNERADDRESSES STRUCTURE BAPIADDR1 OPTIONAL

    As Aditya's example you need to update name and address and partner role

    Both Partners and partnerchanages table should be inserted

    Regards,

    Venkat

    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.