Automate

 View Only
Expand all | Collapse all

BAPI to add Business Partner Functions

  • 1.  BAPI to add Business Partner Functions

    Posted 02-13-2019 13:53
    Does anyone know of a BAPI (S/4HANA) to add Business Partner Functions? I can't get scroll down to work other than via GUI Scripting, and was hoping to find a BAPI instead.

    Thanks!

    ------------------------------
    Brian Mcnally | BA
    Versum Materials | 61-530-5000
    ------------------------------


  • 2.  RE: BAPI to add Business Partner Functions

    Employee
    Posted 02-14-2019 12:37
    Hi Brian, 
    Can you elaborate a bit about where you are trying to add these partner functions? 
    Do you mean adding Relationships in the BP Tcode? Or is it Roles? 
    Or adding partner functions in the customizing with tcode VOPAN? 

    Thanks
    Jayasri


    ------------------------------
    Jayasri Varyani | Solutions Engineer
    Winshuttle North America |
    ------------------------------



  • 3.  RE: BAPI to add Business Partner Functions

    Posted 02-14-2019 12:45
    Hi Jayasri,

    I'm trying to create a script to add Partner Functions for an existing BP. TCODE BP>Sales Area role>Sales and Distribution>Partner Functions. I can't get scrolling to work for the Partner Function grid in a Transaction script (=P+ not a valid tcode in Standard or Batch Input modes), and GUI Scripting is causing an error when I attempt to record the script. (Logged this with Winshuttle support.)

    Thanks,
    Brian

    ------------------------------
    Brian Mcnally | BA
    Versum Materials | 61-530-5000
    ------------------------------



  • 4.  RE: BAPI to add Business Partner Functions

    Employee
    Posted 02-15-2019 09:49
      |   view attached
    Hi Brian, 
    We have a Winshuttle Remote Function module that was created for ECC- /WINSHTLQ/TRN_FUNC_CUSTOMER that helps with updating Sales data on the Customer level. Attaching a document to help with using it. This is part of the Winshuttle Function Module (WFM) that you install on your SAP server.  
     
    Here is some more info about the WFM - 
    https://winshuttle-help.s3.amazonaws.com/Winshuttle-function-module/EN/12/release-notes-12.htm

    I am not sure if this will work for an S/4HANA system because the BP transaction has been changed significantly compared to ECC. 
    But you are welcome to try this option and see what happens. Sorry, this was not more helpful directly to your case....but hopefully someone in the ECC system can make use of it. 

    Jayasri

    ------------------------------
    Jayasri Varyani | Solutions Engineer
    Winshuttle North America |
    ------------------------------



  • 5.  RE: BAPI to add Business Partner Functions

    Posted 02-15-2019 11:14
    Thanks, Jayasri. We haven't installed v12 of the WFM yet, but I believe we will be soon. In the meantime, I'm trying out XD99 to see if I can write a script that will work using that transaction.

    ------------------------------
    Brian Mcnally | BA
    Versum Materials | 61-530-5000
    ------------------------------



  • 6.  RE: BAPI to add Business Partner Functions

    Posted 02-18-2019 08:41
      |   view attached

    XD99 works great for adding partners. I'm attaching my script-hope it helps.

     

     

    Sue Jarvis

    Data Analyst, Master Data

    smjarvis@valvoline.com

     

    Valvoline LLC

    5747 Perimeter Dr, Dublin, OH 43017

    Office - 614-790-2475

    image002.png@01D4913E.9255E690

     


    This e-mail contains information which may be privileged, confidential, proprietary, trade secret and/or otherwise legally protected. It is not intended for transmission to, or receipt by, any unauthorized persons. If you are not the intended recipient, please do not distribute this e-mail. Instead, please delete this e-mail from your system without copying it, and notify us that you received it in error, so that our address record can be corrected. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. No waiver of any applicable privileges or legal protections is intended (and nothing herein shall constitute such a waiver), and all rights are reserved.



    Attachment(s)



  • 7.  RE: BAPI to add Business Partner Functions

    Posted 02-18-2019 13:02
    Thanks, Sue. XD99 does not work for me in SAP for creating Partner Functions; it always does an update vs create even when specifying "Do Not Change Existing Data." If I can't get the transaction to work in native SAP, I don't think a script will work (which I tried with the same results).

    ------------------------------
    Brian Mcnally | BA
    Versum Materials | 61-530-5000
    ------------------------------



  • 8.  RE: BAPI to add Business Partner Functions

    Employee
    Posted 02-19-2019 07:33
    HI Brian - there's a create and update tab for XD99.
    FYI
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle North America
    ------------------------------



  • 9.  RE: BAPI to add Business Partner Functions

    Posted 02-19-2019 08:37
      |   view attached
    Yes, that's what I was referring to. Even when I check "Do Not Change Existing Data", the transaction updates existing entries vs creating new ones. See attached.

    ------------------------------
    Brian Mcnally | BA
    Versum Materials | 61-530-5000
    ------------------------------

    Attachment(s)

    docx
    XD99.docx   78 KB 1 version


  • 10.  RE: BAPI to add Business Partner Functions

    Employee
    Posted 02-19-2019 08:46
    Yikes, Brian, that's not good.  I don't use this t-code.

    Sue - do you have any tips for him on XD99?

    Thanks,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle North America
    ------------------------------



  • 11.  RE: BAPI to add Business Partner Functions

    Posted 02-21-2019 09:02

    I wanted to try a few things and I can't recreate this in our SAP system. I did a quick search and found a tip that XD99 uses iDocs so maybe there is something that needs activated/configured there so it will work?

     

    Sue Jarvis

    Data Analyst, Master Data

    smjarvis@valvoline.com

     

    Valvoline LLC

    5747 Perimeter Dr, Dublin, OH 43017

    Office - 614-790-2475

    image002.png@01D4913E.9255E690

     






  • 12.  RE: BAPI to add Business Partner Functions

    Posted 02-27-2019 08:52
    Thanks, Sue. Some SAP support people tried to assist, but we were getting inconsistent and/or incorrect results with XD99. I ended up writing the script for BP using GUI scripting mode. So far, so good.

    Thanks to all for their thoughts and suggestions!

    ------------------------------
    Brian Mcnally | BA
    Versum Materials | 61-530-5000
    ------------------------------



  • 13.  RE: BAPI to add Business Partner Functions

    Employee
    Posted 02-15-2019 12:56
    Hi Brian

    Positioning for the BP partners is iffy, but here's an approach - see attached, which was built in S/4Hana 1610.

    You can position based on partner type but not partner number.  So
    1. open BP 
    2. swap to edit mode and navigate to Sales role (only do this for the first transaction)
    3. navigate to partners tab
    4. click to sort in descending order
    5. enter to search for SP on the bottom - which gives you several blank lines underneath
    6. enter you role and partner number on the last line

    Validate doesn't work well for multiple BPs, as we're doing the swap to edit mode for just the first transaction.  Hope this helps a little.

    BTW I was looking for BAPIs and they are a bit sparse.  The one from the migration cockpit may work, but it's difficult to find any documentation on it.

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle North America
    ------------------------------

    Attachment(s)



  • 14.  RE: BAPI to add Business Partner Functions

    Posted 02-15-2019 13:41
    Hi Sigrid,

    Thanks for the idea. I was trying to use the positioning approach but a BP could have unlimited partners for the same function. So if a Customer has 10 or more already, I would need to scroll anyway. But this still may be an option, as long as the end user is aware of the limitation. I'm still researching XD99 as that may be an option. If you have any other thoughts, please let me know. Otherwise, GUI Scripting may be my only option (with a lot of formulas and rules).

    Your help is much appreciated!

    Brian

    ------------------------------
    Brian Mcnally | BA
    Versum Materials | 61-530-5000
    ------------------------------



  • 15.  RE: BAPI to add Business Partner Functions

    Employee
    Posted 02-15-2019 13:56
    Hi Brian
    This keeps positioning with SP inside the loop, so you should be able to add as many as you like.  Please let me know if that's not the case.  

    Before script

    Script to add these partners

    After script run


    I certainly hope SAP adds back (or new) BAPIs in S/4.  But in the meantime, this could be a stop gap.

    A quick caveat - if you have more than 10 SP's for a BP, then this won't work - you would need to scroll, and that would mean GUI scripting.   

    Best Regards
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle North America
    ------------------------------



  • 16.  RE: BAPI to add Business Partner Functions

    Posted 02-15-2019 16:09
    Thanks, Sigrid! Is SP always the last Partner Function? I can't figure out how the ordering works for the Partner Functions...it's not exactly alphabetic/alphanumeric. For example, if I add an SR, it does not appear after SP. Z Partner Functions aren't last as I would expect, either.

    ------------------------------
    Brian Mcnally | BA
    Versum Materials | 61-530-5000
    ------------------------------



  • 17.  RE: BAPI to add Business Partner Functions

    Employee
    Posted 02-15-2019 16:15
    Hi Brian

    SAP isn't always consistent in sorting/positioning, is it? :)

    I tried a few things, and if I sort in descending and position to SP - in my system it works.  But I have one SP, so that gives me 9 blank lines below it.

    Hope you find something like I attached that works.  And hopefully we'll have more BAPI options from SAP .  I know in-house we're looking at BP, since people will need to migrate to S/4Hana.  We may end up offering some FMs at some point, but that's still TBD.  

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle North America
    ------------------------------