Application Development 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: 

BAPI

Former Member
0 Kudos

hi experts ,

can anyone tell me about bapi for business partner creation in ISU.

its urgent pls help me ASAP.

thanx

Pradeep Sharma

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use the BAPI BAPI_BUPA_CREATE_FROM_DATA.

Refer

https://forums.sdn.sap.com/click.jspa?searchID=10840586&messageID=2178329

Regards

Kiran Sure

5 REPLIES 5

Former Member
0 Kudos

Hi,

FOR business partner creation:

Use the function module BAPI_BUPA_CREATE_FROM_DATA to create a business partner.

Eg:

Creating Business Partner

CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA'

EXPORTING

partnercategory = lc_2 "Organization

partnergroup = lc_par_grp "Internal no. assignment

centraldata = wa_centraldata

centraldataorganization = wa_centraldataorg

addressdata = wa_addressdata

IMPORTING

businesspartner = lv_customer

TABLES

return = lit_return1.

Then use the FM BAPI_BUPA_ROLE_ADD to add roles to the Business partner..

eg:

Adding Role 'Sold-to-Party' to Business Partner

CALL FUNCTION 'BAPI_BUPA_ROLE_ADD'

EXPORTING

businesspartner = gv_partner

businesspartnerrole = lc_bp_role

TABLES

return = lit_return2.

REG:

1. BAPI's are the RFC enabled function modules, i.e u can connect to 3rd party systems using this. In BDC's we can't do this, it is local to SAP

2. BDC's use transaction screen flow to update data base, but BAPI's use standard function modules to do this.

3. Explicit commit work should be done to BAPI's, for BDC it is automatically done..

Just check the link below for all the links for each and every topic.

/thread/196182 [original link is broken]

AND

In a BDC, the screen fields are hardcoded & will not account for future chnages by SAP to the Std screens.. it will be a regular maintenance issue during upgrades/support packs.. whereas a BAPI references a structure & thus future changes will not be an issue.. more important is the fact that a BAPI can be invoked directly from an external non-SAP system.

Regards,

Shiva Kumar(Reward if helpful).

0 Kudos

hi shiva thanx ,

can u tell me bapi function for migrate the data from legacy system to sap for business partner and contract account. pls reply ASAP

thanx

Pradeep Sharma

0 Kudos

hi shiva ,

can u send me whole coding for creating business partner through bapi function.pls reply ASAP

thanx

Pradeep Sharma

Former Member
0 Kudos

Hi,

Use the BAPI BAPI_BUPA_CREATE_FROM_DATA.

Refer

https://forums.sdn.sap.com/click.jspa?searchID=10840586&messageID=2178329

Regards

Kiran Sure

Former Member
0 Kudos

hi ,

BAPI_BUPA_CREATE_FROM_DATA BAPI for business partner creation as Organization, Person or Group in general role. Same BAPI can be used to create Contact Person for the Business Partner

follow the link blogfile.paran.com/BLOG_454212/200608/1156723926_SAP_CRM_Tech_DRAFT0.2.doc -

Regards

Avik.