The following code creates Sap Customer Classification using BAPI Function :
report zcustclass.
*---------------------------------------------------
* www.developerpages.gr
*---------------------------------------------------
data : l_return type TABLE OF BAPIRET2.
CALL FUNCTION 'BAPI_OBJCL_CREATE'
EXPORTING
OBJECTKEYNEW = '0000999999' " Customer code
OBJECTTABLENEW = 'KNA1'
CLASSNUMNEW = 'XXXXXXXXXXXXXX' " Class
CLASSTYPENEW = '011'
TABLES
RETURN = l_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
Original Article : http://developerpages.gr/index.php/el/desktop-development-2/abap/70-create-sap-customer-classification-with-bapi-function
report zcustclass.
*---------------------------------------------------
* www.developerpages.gr
*---------------------------------------------------
data : l_return type TABLE OF BAPIRET2.
CALL FUNCTION 'BAPI_OBJCL_CREATE'
EXPORTING
OBJECTKEYNEW = '0000999999' " Customer code
OBJECTTABLENEW = 'KNA1'
CLASSNUMNEW = 'XXXXXXXXXXXXXX' " Class
CLASSTYPENEW = '011'
TABLES
RETURN = l_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
Original Article : http://developerpages.gr/index.php/el/desktop-development-2/abap/70-create-sap-customer-classification-with-bapi-function
No comments:
Post a Comment