SAP Knowledge Base Article - Public

3435526 - Failed to update BP datausing standard business object

Symptom

Couldn't add a Bank info to an existed BP with i_businesspartnertp_3 

Environment

S/4HANA Cloud

Cause

configuration issue

Resolution

  1. Create BP with one bank record

 

DATA create_partner TYPE TABLE FOR CREATE I_BusinessPartnerTP_3.

create_partner = VALUE #( (

                          %cid = 'bp1'

                           BusinessPartnerCategory = 1

                           %control-BusinessPartnerCategory = if_abap_behv=>mk-on

                           BusinessPartnerGrouping = '0001'

                           %control-BusinessPartnerGrouping = if_abap_behv=>mk-on

                           FirstName = 'xxxx'

                           %control-FirstName = if_abap_behv=>mk-on

                           LastName  = 'xxxxx'

                           %control-LastName = if_abap_behv=>mk-on

                           SearchTerm1 = 'BP3_TESTING'

                           %control-SearchTerm1 = if_abap_behv=>mk-on

                            ) ).

 

MODIFY ENTITIES OF i_businesspartnertp_3

    ENTITY BusinessPartner

        CREATE FROM create_partner

        CREATE BY \_BusinessPartnerBank

        SET FIELDS WITH VALUE #( (

                                             %cid_ref = 'bp1'

                                             %target = VALUE #(

                                                (

                                                %cid = 'bp1_1'

                                                BankIdentification = '0001'

                                                BankCountryKey = 'DE'

                                                BankNumber = '10000000'

                                                IBAN = '123456710'

                                                )

                                                              )

                                            ) )

MAPPED DATA(mapped)

    REPORTED DATA(reported)

    FAILED DATA(failed).

COMMIT ENTITIES

RESPONSE OF i_businesspartnertp_3

     FAILED DATA(failed_commit)

     REPORTED DATA(reported_commit).

2.Add one more bank into existing BP

 

MODIFY ENTITIES OF i_businesspartnertp_3 ENTITY BusinessPartner

 

        CREATE BY \_businesspartnerbank

        FROM VALUE #( ( BusinessPartner = '0000605941'

                                            %target = VALUE #(

                                                (

                                                %cid = 'bank1'

                                                BusinessPartner = '0000605941'

                                                %control-BusinessPartner = if_abap_behv=>mk-on

                                                BankIdentification = '0002'

                                                %control-BankIdentification = if_abap_behv=>mk-on

                                                BankCountryKey = 'DE'

                                                %control-BankCountryKey = if_abap_behv=>mk-on

                                                BankNumber = '1000000xx'

                                                %control-BankNumber = if_abap_behv=>mk-on

                                                IBAN = '1234561xx'

                                                %control-IBAN = if_abap_behv=>mk-on

                                                )

                                                              )

                                            ) )

MAPPED DATA(mapped)

    REPORTED DATA(reported)

    FAILED DATA(failed).

 

COMMIT ENTITIES RESPONSE OF i_businesspartnertp_3

FAILED data(failed_commit)

REPORTED DATA(reported_commit).

Keywords

Bank info, i_businesspartnertp_3, business partner , KBA , LO-MD-BP-ODT , OData Service for Business Partner , How To

Product

SAP S/4HANA Cloud Public Edition 2402