Automate

 View Only
  • 1.  Change Partner Role in SD Scheduling Agreement

    Posted 04-07-2020 09:28
      |   view attached
    ​​Hello all,
    I have an issue and hope you have a good idea how to solve it.
    I need to change the Partner Role "Drop Ship Vendor" in SD VA32 (Scheduling Agreement).
    Due to the different customers the Partner Role is not always in the same line. Sometimes the Drop Ship Vendor is in line 5,7 or 6.
    How can I create a shuttle to make sure it will only change the Drop Ship Vendor no matter in which line it is?

    Is that possible?

    Thank you very much for your feedback.

    Anita

    ------------------------------
    Anita Kocnik | Account Specialist
    Bose Automotive GmbH | +49 151 53385107
    ------------------------------

    Attachment(s)



  • 2.  RE: Change Partner Role in SD Scheduling Agreement

    Posted 04-07-2020 10:42
      |   view attached
    Hi Anita,

    Sometimes changing the drop down selection will help to make sure Drop Ship Vendor is always on the same line (image attached). In SAP directly you can test this out to see. If that does not work you can record a GUI script and use an If on Index condition to position on Drop Ship Vendor, then update the Partner. Here is a link to an article/video we have on using If on Index conditions.

    https://support.winshuttle.com/hc/en-us/articles/360023557472-How-to-use-If-on-Index-condition

    Thank you!
    -Shelby

    ------------------------------
    Winshuttle Support |
    Winshuttle North America |
    ------------------------------



  • 3.  RE: Change Partner Role in SD Scheduling Agreement
    Best Answer

    Employee
    Posted 04-07-2020 19:42
    Hi Anita

    Shelby is correct - you have to use GUI scripting to position to the right row.  

    But you could also use a BAPI: BAPI_CUSTOMERCONTRACT_CHANGE.  I have an example attached.  I have switches set to do an UPDATE of a partner.  You pass in (or hard code) the partner type and then pass in the old and new value.  Mine is updating a sales employee, but you can update whatever you like.  I am also just updating the one partner.  But you could put a loop around the partner data and update multiple partners.

    HTH,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------