Skip to Content

Company code data not getting created for business partner category '1'

Hi All,

I am using BAPI BAPI_BUPA_ROLE_ADD_2 to extend the role of employee vendor.

But after extension company code data is not displaying on BP tcode, even though data is updated in database.

I am using method vmd_ei_api=>maintain_bapi to updated company code details.

i am giving partner number from excel file, with respect of this number vendor is creating in system.

Please find below code.

CLEAR : wa_company-data, wa_company-datax.
MOVE-CORRESPONDING wa_vend TO wa_company-data.
CHECK wa_company-data IS NOT INITIAL.

wa_company-task = 'I'.
wa_company-data_key-bukrs = wa_vend-bukrs.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_company-data-akont
IMPORTING
output = wa_company-data-akont.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_company-data-lnrze
IMPORTING
output = wa_company-data-lnrze.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_company-data-lnrzb
IMPORTING
output = wa_company-data-lnrzb.

IF wa_company-data-akont IS NOT INITIAL.
wa_company-datax-akont = 'X'.
ENDIF.
IF wa_company-data-lnrze IS NOT INITIAL.
wa_company-datax-lnrze = 'X'.
ENDIF.
IF wa_company-data-zuawa IS NOT INITIAL.
wa_company-datax-zuawa = 'X'.
ENDIF.
IF wa_company-data-begru IS NOT INITIAL.
wa_company-datax-begru = 'X'.
ENDIF.
IF wa_company-data-fdgrv IS NOT INITIAL.
wa_company-datax-fdgrv = 'X'.
ENDIF.
IF wa_company-data-frgrp IS NOT INITIAL.
wa_company-datax-frgrp = 'X'.
ENDIF.
IF wa_company-data-vzskz IS NOT INITIAL.
wa_company-datax-vzskz = 'X'.
ENDIF.
IF wa_company-data-zinrt IS NOT INITIAL.
wa_company-datax-zinrt = 'X'.
ENDIF.
IF wa_company-data-zindt IS NOT INITIAL.
wa_company-datax-zindt = 'X'.
ENDIF.
IF wa_company-data-datlz IS NOT INITIAL.
wa_company-datax-datlz = 'X'.
ENDIF.
IF wa_company-data-altkn IS NOT INITIAL.
wa_company-datax-altkn = 'X'.
ENDIF.
IF wa_company-data-pernr IS NOT INITIAL.
wa_company-datax-pernr = 'X'.
ENDIF.
IF wa_company-data-zterm IS NOT INITIAL.
wa_company-datax-zterm = 'X'.
ENDIF.
IF wa_company-data-reprf IS NOT INITIAL.
wa_company-datax-reprf = 'X'.
ENDIF.
IF wa_company-data-zwels IS NOT INITIAL.
wa_company-datax-zwels = 'X'.
ENDIF.
IF wa_company-data-hbkid IS NOT INITIAL.
wa_company-datax-hbkid = 'X'.
ENDIF.
IF wa_company-data-lnrzb IS NOT INITIAL.
wa_company-datax-lnrzb = 'X'.
ENDIF.
IF wa_company-data-xverr IS NOT INITIAL.
wa_company-datax-xverr = 'X'.
ENDIF.

please suggest your opinions.

Thanks,
Darshan

capture1.png (104.6 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.