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's for uploading BP (Vendor) along with extended roles (Company, Purchasing Data)

Former Member
0 Kudos

Dear All,

We are using S/4 Hana 1511, Here trying to upload the BP (Vendor Master) through BAPI "BAPI_BUPA_CREATE_FROM_DATA" , after uploading system creating document number with General role,

In this process we are unable to BP Roles to Company Code, Purchasing (FLVNOO, FLVNO1), Please suggest the required BAPI's for extention or creation of new BP Roles.

Thanking You.

8 REPLIES 8

Former Member
0 Kudos

Hi DJD,

You can use vmd_ei_api=>maintain_bapi  api to create vendor.

I also migrated vendor master by using this api.

You can use below structures to fill purchasing and company code views

is_master_data-vendors--purchasing_data-purchasing

is_master_data-vendors---company_data-company


Regards,


Özcan ŞEKERCAN

0 Kudos

Issue has been resolved through BAPI

Former Member
0 Kudos

Hi DJ D.

Can you explain how could you do this? I'm Facing the same problem!

we have created the BP and the basic information of the Customers(BUT000+KNA1) and the vendors (BUT000+LFA1) with the  BAPI_BUPA_CREATE_FROM_DATA and  BAPI_BUPA_ROLE_ADD_2 function modules, but we could not find the way to create the Company Code and Purchasing information... did you use that modules to create this information somehow... or maybe you use another function modules?.

Thanks in advance.

Emilio.

Former Member
0 Kudos

Hi @DJ D

I am getting the same isuue of uploading vendor along with extended roles.

I am using BAPI_BUPA_CREATE_FROM_DATA2 to create BP and FICU_BUPA_DARK_MAINTAIN_INTERN to extend the views, but unable to achieve the requirement.

Can you kindly clarify how did u achieve it by BAPI?

Regards

Kanika



0 Kudos

Hi Kanika Malhotra,

Please check with the following BAPI's,

First Create Business Partner with 2 default Roles - 'BAPI_BUPA_CREATE_FROM_DATA'


And for Adding New BP Roles - 'BAPI_BUPA_ROLE_ADD_2'

Wait and Return statement - 'BAPI_TRANSACTION_COMMIT'



Former Member
0 Kudos

@DJ D

I am able to create the roles from BAPI_BUPA_CREATE_FROM_DATA2 ,but I have the problem while extending the views Company Code and Sales and Distribution for roles FUC00 & FUC01 respectively.

Kindly let me know how do I extend the views.

Regards

Kanika

0 Kudos

Hi,

Please check below call method for creation of vendor data,

Create BP Role – ‘BAPI_BUPA_CREATE_FROM_DATA’ (Based on Account Group System will generate the BP Code Number)

IF BUSINESSPARTNER IS NOT INITIAL.

Go To ADD_ROLE_BP

BUSINESSPARTNERROLE = 'ZVEXXX'.


CALL FUNCTION 'BAPI_BUPA_ROLE_ADD_2' (Add the BP Roles separately)

Call Method for Creation Vendor Data

CALL METHOD LO_DATA->CREATE_VENDOR_DATA.

CALL METHOD VMD_EI_API=>MAINTAIN_BAPI


EXPORTING
IS_MASTER_DATA           = GS_VMDS_EXTERN
IMPORTING
ES_MASTER_DATA_CORRECT   = GS_VMDS_SUCC
ES_MESSAGE_CORRECT       = GS_SUCC_MESSAGES
ES_MASTER_DATA_DEFECTIVE = GS_VMDS_ERROR
ES_MESSAGE_DEFECTIVE     = GS_ERR_MESSAGES.

0 Kudos

Hi DJ D,

Thanks for posting.

please give some light on the class to create vendor data.

Thanks,

Prashant Sharma.