SAP Knowledge Base Article - Public

3649550 - How to obtain addressid for supplier and customer using cds views.

Symptom

  • The user is unable to retrieve the `ADDRESSID` for suppliers using the `I_BUSINESSPARTNERSUPPLIERDEX` CDS view.
  • The `ADDRESSID` for customers is available in the `I_BUSINESSPARTNERCUSTOMERDEX` CDS view, but no equivalent is found for suppliers.
  • The `ADDRESSID` is required for modifying business partner address information.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Attempt to retrieve the `ADDRESSID` for a supplier using the `I_BUSINESSPARTNERSUPPLIERDEX` CDS view.
  2. Observe that the `ADDRESSID` is not available in the `I_BUSINESSPARTNERSUPPLIERDEX` CDS view.
  3. Compare this with the `I_BUSINESSPARTNERCUSTOMERDEX` CDS view, where the `ADDRESSID` for customers is retrievable.

Cause

Resolution

  1. Use the `I_Customer` CDS view to retrieve the `ADDRESSID` for customer addresses.
  2. Use the `I_Supplier` CDS view to retrieve the `ADDRESSID` for supplier addresses.

Keywords

addressid, cds view, i_customer, i_supplier, business partner, sap s/4hana cloud, supplier address, customer address, master data, retrieve addressid, cds view for addressid, sap public cloud, business partner api , KBA , LO-MD-BP-2CL , Business Partners for Public Cloud , Problem

Product

SAP S/4HANA Cloud Public Edition all versions