Thank you Sigrid, I missed the position / search option on the bottom of the screen, "overworked" the solution when there is a simple option :-).
warm regards,
Renette
------------------------------
Renette Nienaber
Data Management specialist
VIVO ENERGY SOUTH AFRICA (PTY) LTD
------------------------------
Original Message:
Sent: 05-20-2024 11:38
From: Sigrid Kok
Subject: Delete selected partner function from a BP
Hi Renette
Unless I'm missing something, wouldn't the position at the bottom work for you?

then select it as the top row and click delete

Simple example attached
Before

script run:

after:

And GUI scripts can be created, but they cannot be used in a web form. I wish there were more BAPIs from SAP, but that isn't the case in ECC (even though there were tons in the old CRM systems).
Best Regards,
Sigrid
------------------------------
Sigrid Kok
Precisely Software Inc.
Original Message:
Sent: 05-20-2024 05:14
From: Renette Nienaber
Subject: Delete selected partner function from a BP
Morning!
For adding a new partner function to a BP on sales area, I use Sigrid's sort trick and it works very well! I have attached my script. (BP_KNVP_ZZSH.xml)
I have an additional requirement to create an Evolve form to allow deletion of an existing partner function from a BP.
How do I go about selecting a specific partner function for deletion? Do I need to record with GUI scripting? Can GUI scripting be converted to xml for Evolve form?
I could not find a BAPI for S4hana for partner function.
Appreciate your support.
Regards,
Renette
------------------------------
Renette Nienaber
Data Management specialist
VIVO ENERGY SOUTH AFRICA (PTY) LTD
------------------------------