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
------------------------------
Original Message:
Sent: 02-15-2019 13:41
From: Brian Mcnally
Subject: BAPI to add Business Partner Functions
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
Original Message:
Sent: 02-15-2019 12:56
From: Sigrid Kok
Subject: BAPI to add Business Partner Functions
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
- open BP
- swap to edit mode and navigate to Sales role (only do this for the first transaction)
- navigate to partners tab
- click to sort in descending order
- enter to search for SP on the bottom - which gives you several blank lines underneath
- 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
Original Message:
Sent: 02-13-2019 13:53
From: Brian Mcnally
Subject: BAPI to add Business Partner Functions
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
------------------------------