Automate

 View Only
  • 1.  Partner Function

    Posted 02-25-2020 05:06
    Hi All,

    If i need to search for a particular Partner Function in a Sales Order and Update a specific value how do i loop through all the X numbers of Partner Function and select the specific one that i want and update the specific field ??


  • 2.  RE: Partner Function

    Employee
    Posted 02-26-2020 09:28
    Hi Vag

    In general, when you have grids that don't provide the options you need to find and/or insert rows, GUI scripting or a BAPI are alternatives.

    So you can  use GUI scripting with and IndexedIf on the field you want to lookup - whether partner number or type.
    or
    You can use a BAPI, which is a much better way, IMHO.  BAPI_SALESORDER_CHANGE is the way to go.  The downside, you have to use the German partner codes, like WE for ship to, etc. 

    FYI
    Sigrid

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