cancel
Showing results for 
Search instead for 
Did you mean: 

API_BUSINESS_PARTNER after ES 2402 Ugprade

JuliaLu
Product and Topic Expert
Product and Topic Expert
0 Kudos
203

During Nov 2023,  S/4HANA Public Cloud CPI worked fine to use API_BUSINESS_PARTNER to create users. After ES upgraded to 2402 version in this Feb 2024, API_BUSINESS_PARTNER  can't work.
Appreciate the guidance if any new API and the working model. 

Failed to find it via What's New Viewer, not sure if there are some relevant KBA Notes. Thanks.

vhardzeyenka
Product and Topic Expert
Product and Topic Expert

Hi JuliaLu.

I haven't checked for OData API API_BUSINESS_PARTNER, but in S4HPC 2404 Business Object i_businesspartnertp_3 is definitely working fine. 

So if you in 3SL (not in BTP) you can use EML instead, and that will work even faster. 

Hope is helpful.

Regards

Vitali

Examples: 

* Create Business Partner
    DATA: lt_businesspartner TYPE TABLE FOR CREATE i_businesspartnertp_3.

    DATA(lv_bp_cid) = cl_uuid_factory=>create_system_uuid( )->create_uuid_x16( ).
    DATA(lv_addr_cid) = cl_uuid_factory=>create_system_uuid( )->create_uuid_x16( ).

    MODIFY ENTITIES OF i_businesspartnertp_3
      ENTITY businesspartner
      CREATE FIELDS ( businesspartner
                      businesspartneruuid
                      fullname
                      businesspartnerforedit
                      businesspartnergrouping
                      businesspartnercategory
                      formofaddressorganization
                      organizationbpname1
                      organizationbpname2
                      bplastnamesearchhelp
                      lastname  )
        WITH VALUE #( ( %cid = lv_bp_cid
                        businesspartner = '9990000998'
                        businesspartneruuid = cl_uuid_factory=>create_system_uuid( )->create_uuid_x16( )
                        fullname = 'Test BusinessPartner'
                        businesspartnerforedit = '9990000998'
                        businesspartnergrouping = 'BPEE'
                        businesspartnercategory = '1'
                        organizationbpname1 = 'TEST'
                        organizationbpname2 = 'TEST'
                        bplastnamesearchhelp = 'TEST'
                        lastname = 'Test' ) )
      CREATE BY \_businesspartneraddress
      FIELDS ( businesspartner
               country
               cityname
               housenumber
               postalcode  )
        WITH VALUE #( ( %cid_ref = lv_bp_cid
                        %target = VALUE #( ( %cid = lv_addr_cid
                                             businesspartner = '9990000998'
                                             country = 'IN'
                                             cityname = 'Bangalore'
                                             housenumber = '10'
                                             postalcode = '560007' ) ) ) )
      MAPPED DATA(lt_mapped)
      FAILED DATA(lt_failed)
      REPORTED DATA(lt_reported).

    COMMIT ENTITIES RESPONSE OF i_businesspartnertp_3
     FAILED DATA(failed_commit)
     REPORTED DATA(reported_commit).

* Delete Business Partner
    READ ENTITIES OF i_businesspartnertp_3 "root
      ENTITY businesspartner
      ALL FIELDS WITH VALUE #( ( businesspartner = '9980000193' ) )
      RESULT DATA(lt_read_result)
      FAILED DATA(lt_read_failed)
      REPORTED DATA(lt_read_reported).

* Read Business Partner
    READ ENTITIES OF i_businesspartnertp_3
      ENTITY businesspartner
      ALL FIELDS WITH VALUE #( ( businesspartner = '0010100001' ) )
      RESULT DATA(lt_result)
      FAILED DATA(lt_failed)
      REPORTED DATA(lt_reported).

 

View Entire Topic
Daphne_Mengwein
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @JuliaLu , I see that an answer has been provided. Please accept the solution if your question is answered. Thank you.