SAP Knowledge Base Article - Public

3245785 - Error: “Supplier account group not found for business partner grouping” While Creating the Supplier Using the API_BUSINESS_PARTNER

Symptom

Your requirement is to create Suppliers using the API_BUSINESS_PARTNER service. Upon performing the POST operation, system throws the error:

Supplier account group not found for business partner grouping

Environment

SAP S/4HANA Cloud 2208

Reproducing the Issue

OData Query:

/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner

 

Execute the POST call for the Request Payload below: 

 

{

    "to_BusinessPartnerBank": [

        {

            "BankAccountReferenceText": "Testing",

            "BankNumber": "012345",

            "BankCountryKey": "XX",

            "BankAccount": "0123456789",

            "BankAccountName": "XYZ"

        }

    ],

    "to_BusinessPartnerRole": [

        {

            "BusinessPartnerRole": "FLVN00"

        },

        {

            "BusinessPartnerRole": "FLVN01"

        }

    ],

 

    "BusinessPartnerCategory": "2",

 

    "to_BusinessPartnerTax": [

        {

            "BPTaxNumber": "1234567890",

            "BPTaxType": "XXX"

        }

    ],

 

    "to_Supplier": {

        "to_SupplierCompany": [

            {

                "SupplierClerkURL": "test@sap.com",

                "PaymentMethodsList": "B",

                "ReconciliationAccount": "123456",

                "PaymentTerms": "0001",

                "IsToBeCheckedForDuplicates": true,

                "CompanyCode": "ZZZZ"

            }

        ],

        "to_SupplierPurchasingOrg": [

            {

                "PurchasingOrganization": "ZZZZ",

                "PaymentTerms": "0001",

                "InvoiceIsGoodsReceiptBased": true,

                "PurchaseOrderCurrency": "YYY"

            }

        ]

    },

    "OrganizationBPName1": "SAP Test",

    "to_BusinessPartnerAddress": [

        {

            "Region": "XX",

            "Language": "AB",

            "PostalCode": "01234",

            "County": "ABCDE",

            "StreetName": "ABC",

            "Country": "ZZ",

            "to_PhoneNumber": [

                {

                    "Person": "",

                    "PhoneNumber": "+0123"

                }

            ],

            "to_EmailAddress": [

                {

                    "Person": "",

                    "EmailAddress": "test@sap.com"

                }

            ]

        }

    ]

}

The system throws the error:

Supplier account group not found for business partner grouping

 

Note:

In the above example:

012345 represents the Bank Number

XX represents the Bank Country Key

0123456789 represents the Bank Account Number

XYZ represents the Bank Account Name

1234567890 represents the Business Partner Tax Number

XXX represents the Business Partner Tax Type

test@sap.com represents the Supplier Clerk URL / Email Address

123456 represents the Reconciliation Account Number

ZZZZ represents the Company Code / Purchasing Organization

YYY represents the Purchase Order Currency

XX represents the Region

AB represents the Language

01234 represents the Postal Code

ABCDE represents the County

ABC represents the Street Name

ZZ represents the Country

+0123 represents the Phone Number

Cause

Technical inconsistencies in the backend of the system.

Resolution

To solve the reported behavior, a fix will be provided on all the systems with the current release 2208CE HFC06 which is tentatively scheduled for the weekend 2nd Oct 2022 – 3rd Oct 2022.

As a workaround, add the Business Partner Grouping in your Request Payload and the Supplier will be successfully created.

 

OData Query:

/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner

 

Execute the POST call for the Request Payload below: 

 

{

    "to_BusinessPartnerBank": [

        {

            "BankAccountReferenceText": "Testing",

            "BankNumber": "012345",

            "BankCountryKey": "XX",

            "BankAccount": "0123456789",

            "BankAccountName": "XYZ"

        }

    ],

    "to_BusinessPartnerRole": [

        {

            "BusinessPartnerRole": "FLVN00"

        },

        {

            "BusinessPartnerRole": "FLVN01"

        }

    ],

"BusinessPartnerCategory": "2",

"BusinessPartnerGrouping": "BP02",

    "to_BusinessPartnerTax": [

        {

            "BPTaxNumber": "1234567890",

            "BPTaxType": "XXX"

        }

    ],

    "to_Supplier": {

        "to_SupplierCompany": [

            {

                "SupplierClerkURL": "test@sap.com",

                "PaymentMethodsList": "B",

                "ReconciliationAccount": "123456",

                "PaymentTerms": "0001",

                "IsToBeCheckedForDuplicates": true,

                "CompanyCode": "ZZZZ"

            }

        ],

        "to_SupplierPurchasingOrg": [

            {

                "PurchasingOrganization": "ZZZZ",

                "PaymentTerms": "0001",

                "InvoiceIsGoodsReceiptBased": true,

                "PurchaseOrderCurrency": "YYY"

            }

        ]

    },

    "OrganizationBPName1": "SAP Test",

    "to_BusinessPartnerAddress": [

        {

            "Region": "XX",

            "Language": "AB",

            "PostalCode": "01234",

            "County": "ABCDE",

            "StreetName": "ABC",

            "Country": "ZZ",

            "to_PhoneNumber": [

                {

                    "Person": "",

                    "PhoneNumber": "+0123"

                }

            ],

            "to_EmailAddress": [

                {

                    "Person": "",

                    "EmailAddress": "test@sap.com"

                }

            ]

        }

    ]

}

Keywords

Supplier, Account Group, API_BUSINESS_PARTNER, business partner grouping, Business Partner, POST, OData , KBA , LO-MD-BP-ODT , OData Service for Business Partner , Problem

Product

SAP S/4HANA Cloud 2208