03-12-2016 11:19 AM
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.
03-12-2016 4:38 PM
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
03-31-2016 6:19 AM
03-31-2016 10:55 AM
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.
06-14-2016 11:43 AM
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
06-14-2016 12:42 PM
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'
06-14-2016 1:25 PM
@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
06-15-2016 7:04 AM
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.
09-16-2016 8:20 AM
Hi DJ D,
Thanks for posting.
please give some light on the class to create vendor data.
Thanks,
Prashant Sharma.