cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass vendor external number to BP

veerababu_alladi
Explorer
0 Kudos
3,739

Dear Experts,

We are using BAPI_BUPA_FS_CREATE_FROM_DATA2 to create business partner and it is generating vendor number if it is internal number range. incase of external number range where i can pass vendor number to mentioned FM.

Please help. Thanks in advance.

Thanks & Regards,

Veera.

Accepted Solutions (0)

Answers (5)

Answers (5)

raymond_giuseppi
Active Contributor

Did you fill fields BUSINESSPARTNEREXTERN and/or CENTRALDATA-PARTNEREXTERNAL during your tests?

veerababu_alladi
Explorer
0 Kudos

Dear Raymond,

BUSINESSPARTNEREXTERN this field for business partner external number. CENTRALDATA-PARTNEREXTERNAL field i tried already but no use.

ukiranta
Participant
0 Kudos

You can the use CL_MD_BP_MAINTAIN => MAINTAIN method. Map the desired fields inside of I_DATA parameter. In this case, you need to fill up centraldata fields.

Best regards.

michal_tvrdy
Discoverer
0 Kudos

Try this code (little trick) 🙂

data: gt_messages type bapirettab.

parameters: p_parnr type bu_partner.

start-of-selection.
call function 'BUPA_ROLE_ADD_2'
exporting
iv_partner = p_parnr
iv_partnerrolecategory = 'FLVN00'
* IV_X_ALL_PARTNERROLES = ' '
iv_partnerrole = 'FLVN00'
* IV_DIFFTYPEVALUE =
* IV_VALIDFROM =
* IV_VALIDTO = '99991231'
iv_x_save = 'X'
* IV_CREATE_CP =
tables
et_return = gt_messages.

if /tcca/cl_msg=>messages_processing( message_list = gt_messages ) is initial. "My SW component, only shows and check errors
data(lcl_bp_vend) = cvi_bp_vendor=>get_instance( i_partner = p_parnr ).
lcl_bp_vend->set_vendor( p_parnr ). " I have the BP number equal to vendor, but You could use Your own number.

call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
else.
call function 'BAPI_TRANSACTION_ROLLBACK'.

endif.

veerababu_alladi
Explorer
0 Kudos

i am getting below error while calling BAPI - BAPI_COMMIT_WORK of BAPI_BUPA_FS_CREATE_FROM_DATA2

sinhamrigank2
Explorer
0 Kudos

Did you get the solution to this issue?

veerababu_alladi
Explorer
0 Kudos

Dear Prashant,

Business partner is internal number range only but vendor account group in external number range.i am unable to find how to link external vendor number to Business partner.

Regards,

Veera