Skip to Content

How to create a customer in SAP S4 HANA through custom program?

Dear Gurus,

In S4 HANA, we have the concept of business partner and roles (Concept of Customers and Vendors are modified in order to reduce data redundancy). If we require a customer or vendor to be created, we need to create a BP and assign the role of customer.

I want to create/upload customers through program. I would like to know the steps for that.

Should I create a BP first and assign a customer role to it through BAPI and then update sales area data and any other required data? Is this the best way or is there any other way to achieve this? Is there any class/api available to create a BP and assign a customer role in a single step?

I am using CMD_EI_API to create/change customers. Is there any api/class to create/change BP?


Regards,

Pritam

Add comment
10|10000 characters needed characters exceeded

  • @Horst Keller Sir, Could you please guide me on this? At least I should be able to reach out the right person for help. I don't know if it is allowed in the community policy to seek help from a specific person. Hope it will be forgiven.

    Thanks in Advance.

    Pritam

  • Get RSS Feed

4 Answers

  • Apr 09 at 01:13 PM

    Hi, note 2417298 "Integration of Business Partner with Customer and Supplier Roles" contains the allowed BP APIs.

    CMD/VMD APIs are to not released for customer usage.

    Regards, Ingo Bruß

    Add comment
    10|10000 characters needed characters exceeded

    • Sorry, can't really help here - thought that the number determination was controlled by BP grouping (BU_GROUP) and am not aware whether there are any issues in internal number creation.

      Regards, Ingo

  • Apr 11 at 12:42 PM

    You can take a look into the LTMC (Migration Cockpit). Please find more details in the below note.

    2576565 - SAP S/4HANA Data Migration - On Premise

    Add comment
    10|10000 characters needed characters exceeded

  • May 08 at 05:43 PM

    Pritam, use BOPF framework to create a program to handle Business Partner.

    I do not have your business requirement, and of course, the best option would be to use LTMC tool. But, if you checked it, and suppose that it does not fit your requirements, try to use a standard BOPF object to this.

    Check if / BOFU / BUSINESSPARTNER could support you.

    FM

    Add comment
    10|10000 characters needed characters exceeded

    • Pritan, when I read your question I don’t understood that you are talking about services or API. Hence, I suggested to elaborate a program using BOPF.

      There is a generic interface to import business partner. Please check the help link here.

      The help documentation could be read here.

      FM.

  • May 09 at 04:26 PM

    Hi Pritam,

    I am not sure if there is a standard class/api to create BP and assign customer role in a single step. But if you are fine with creating business partner first and then assign customer/supplier role with another FM, then use following BAPI to fulfill that requirement.

    Create business partner - BAPI_BUPA_CREATE_FROM_DATA

    Add BP role - BAPI_BUPA_ROLE_ADD_2

    Thanks,

    Shanthi

    Add comment
    10|10000 characters needed characters exceeded

    • Dear Shanthi,

      Thanks for your response. I am sure these BAPIs works perfectly and so does the APIs. I am trying to explore the APIs and facing issues with number ranges. Hope I'll be able to resolve it at the earliest.

      Thanks again :)

      Regards,

      Pritam