0% found this document useful (0 votes)
131 views

Bapi

This document contains code to create a business partner using BAPI functions. It calls the BAPI_BUPA_TAX_ADD function to add tax information, BAPI_BUPA_ROLE_ADD_2 to add a role, and BAPI_TRANSACTION_COMMIT to commit the transaction. It reports completion by printing 'TEST_CREATE_BP_WITH_BAPI'.

Uploaded by

Francisco Cara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
131 views

Bapi

This document contains code to create a business partner using BAPI functions. It calls the BAPI_BUPA_TAX_ADD function to add tax information, BAPI_BUPA_ROLE_ADD_2 to add a role, and BAPI_TRANSACTION_COMMIT to commit the transaction. It reports completion by printing 'TEST_CREATE_BP_WITH_BAPI'.

Uploaded by

Francisco Cara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

BAPI_BUPA_CREATE_FROM_DATA

CALL FUNCTION 'BAPI_BUPA_TAX_ADD'


EXPORTING
businesspartner = businesspartner
taxtype = wa_file-taxtype
taxnumber = wa_file-taxnumber

CALL FUNCTION 'BAPI_BUPA_ROLE_ADD_2'


EXPORTING
businesspartner = businesspartner
businesspartnerrolecategory = businesspartnerrolecategory
all_businesspartnerroles = ' '
businesspartnerrole = businesspartnerrole
differentiationtypevalue = differentiationtypevalue
* VALIDFROMDATE = P_DATE
validuntildate = '99991231'
TABLES
return = return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.

report 'TEST_CREATE_BP_WITH_BAPI'

You might also like