Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Bapi to add Partner Functions (BP tcode)

former_member611035
Discoverer
12,829

Hello,

I need to mass upload Sales Org., Distr. Channel, Division and Partner Functions in Sales and Distribution view for the Customer in T-Code 'BP'. Can anybody help, which BAPI/FM is available for this requirement?bp1.pngbp2.png

7 REPLIES 7
Read only

Vivek0459
Participant
0 Likes
6,991

Yes , You can use same BAPI which is being used in background by LTMC

that is "RFC_CVI_EI_INBOUND_MAIN" .

This BAPI can create your BP as well as integrated customer with all required views

For better understanding of how this FM creates BP and integrated Customer you can put a external breakpoint and run LTMC of customer creation

Read only

0 Likes
6,991

Thanks Vivek.

I need to update the existing customer's data. Is it achievable through this BAPI?

Read only

Vivek0459
Participant
0 Likes
6,991

I have tried that for creating but not for extending, i need to check that

You can also try this IT_BP_ROLE of tables parameter of BAPI pass BP ROLE = 'FLCU01' (Sales and distribution)

IT_BP_ROLE-DATAKEY = 'FLCU01'

Read only

roberto_forti
Contributor
0 Likes
6,991

Hi, try BAPI_BUPA_CREATE_FROM_DATA (create Business Partner)

Regards,

Read only

6,991

Hi Roberto,

Does this BAPI helps creates BP and then support extension / updation of records in customer or vendor?

Regards,

Ramya

Read only

0 Likes
6,991

Hi Mohan,

In this case, I recommend you searching for corresponding BAPI into Function Group BUBA_3 or Object type BUS1006 Business Partner.

Regards, Roberto

Read only

VeselinaPeykova
Active Contributor
6,991

Assuming that you mean upload in S/4HANA and not ECC:

You could also use XD99 to perform mass change of business partners (e.g. partner functions assignment), it is still available in S/4HANA 1809.

As for extending BP with sales area data - there is a separate migration object for that in S/4, it is named "Customer - extend existing record by new org levels". Even if the standard template does not fully cover the list of fields that you are supposed to populate - it is relatively easy to add more fields in via LTMOM as long as they are available and supported (take a look at the target structures). When you extend BPs for sales areas this is like creation of segments.

If you really wish to write your own program - there is also note 2417298-Integration of Business Partner with Customer and Supplier Roles which mentions CL_MD_BP_MAINTAIN and gives some hints on how to use it.

By the way, note 2650140 - RFC_CVI_EI_INBOUND_MAIN to become obsolete states: "RFC_CVI_EI_INBOUND_MAIN will not be supported from the release SAP S/4HANA On Premise 1709 FPS2 and onwards", so it is probably not a wise decision to make extensive use of it.

.