Automate

 View Only
  • 1.  Business Partner data update in S4 Hana

    Posted 06-11-2024 07:36

    Hi,

    I'm looking for a BAPI we can use to update BP (cfr T-code BUP2). Did anybody find such a BAPI yet ?

    best regards, jan



    ------------------------------
    jan ketele
    release expert
    Xeikon Manufacturing NV
    ------------------------------


  • 2.  RE: Business Partner data update in S4 Hana

    Employee
    Posted 06-12-2024 12:31

    Hi Jan

    SAP has been stingy with BAPIs for BP.  What exactly are you looking to update?

    Please advise,

    Sigrid



    ------------------------------
    Sigrid Kok
    Precisely Software Inc.
    ------------------------------



  • 3.  RE: Business Partner data update in S4 Hana

    Posted 06-17-2024 09:22

    good afternoon Sigrid, Many thanks for responding.

    one of our SAP servers recently upgraded to S4 Hana, so I was looking for the most effcient way to update customer details. The first that were brought to our attention were customer mail addresses. So I was hoping do find a BAPI to do so, especially since there will be more parameters to check/update. Since there doesn't seem to be such a BAPI available just yet, I started with transaction scripts based on t-code BUP2:That will do for the time being, though I'm still hoping to find a more efficient way...

    this is what that looks like:

    the first one to download what's in SAP, I only took the first 4 of 7,

     

    the 2nd one to update thes mail addresses (also the first 4 of 7)



    ------------------------------
    jan ketele
    release expert
    Xeikon Manufacturing NV
    ------------------------------



  • 4.  RE: Business Partner data update in S4 Hana

    Employee
    Posted 06-17-2024 12:00

    Hi Jan

    BAPIs BAPI_ADDRESSORG_GETDETAIL and BAPI_ADDRESSORG_CHANGE will allow you to get and update many of the BP attributes, including Email.  

    An example to get the Vendor BP emails would include

    LFA1 is Vendor.  I believe KNA1 would work for customer.

    Then you will want to focus on BAPIADSMTP for the emails, and BAPICOMREM if you need the remark/note.

    For the update, you will want to pass in the correct flag

    like 

    I built something in a form as a proof point quite some time ago, so don't have this completely working in excel.  It was actually for a Vendor in ECC but I found it works fine in S4 with BPs.  If you want that example, just let me know.

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    Precisely Software Inc.
    ------------------------------



  • 5.  RE: Business Partner data update in S4 Hana

    Posted 06-18-2024 03:44

    hi Sigrid,

    This does look very promising, thank you ! I definitly would like that example you're referring to if possible: it would give me a good starting-point.

    kind regards, jan



    ------------------------------
    jan ketele
    release expert
    Xeikon Manufacturing NV
    ------------------------------



  • 6.  RE: Business Partner data update in S4 Hana

    Employee
    Posted 06-20-2024 15:17
    Edited by Sigrid Kok 06-20-2024 19:29
      |   view attached

    Hi Jan

    Here it is.  Again, it was built for Vendor email maintenance as a simple example with one view in ECC, using those two BAPIs, and it was just to do various actions on each email address, like:

    The solution is zipped so that I can attach it built in Evolve 20.x.

    Use the Update flag to perform the update, delete or insert.

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    Precisely Software Inc.
    ------------------------------

    Attachment(s)

    zip
    Vendor Email Maintenance.zip   963 KB 1 version


  • 7.  RE: Business Partner data update in S4 Hana

    Employee
    Posted 06-24-2024 12:42

    Hi @jan ketele and @Ketrine Giha

    Here's an Excel version.  Again, please test in your system to ensure it's working for you.  One thing to note is that the BAPI doesn't like a mix of Update & Delete with Insert.  I had to separate Insert, but Update & Delete mixes were fine.

    Best Regards,

    Sigrid

    FYI,

    Sigird



    ------------------------------
    Sigrid Kok
    Precisely Software Inc.
    ------------------------------



  • 8.  RE: Business Partner data update in S4 Hana

    Posted 11 days ago

    Thank you very much for your extensive answers, Sigrid. 

    Excuse me for the delay, I just got back from a couple of weeks on holidays. I'll test the lot in a day or two.

    kind regards, jan



    ------------------------------
    jan ketele
    release expert
    Xeikon Manufacturing NV
    ------------------------------