‎2006 Oct 03 10:11 PM
hi all,
i'm new in badi's so i need to create a program that use the following badi sd_billing. can any body tell me an example of this badi?.
regards,
Jose Roberto
‎2006 Oct 03 10:31 PM
Hi Roberto,
if you want to use the BADI BADI_SD_BILLING, you should create an implementation of badi in transaction SE19.
Then in the list fo methods availaible for modification in the BADI, you must select the method according with your requirement, and double click it to insert the code. Finally active the badi.
To call badi, you should create an instance of badi
data: handle_i TYPE REF TO IF_EX_BADI_SD_BILLING,
BADI_SD_BILLING_ACTIVE TYPE XFELD VALUE 'X'.
CALL METHOD CL_EXITHANDLER=>GET_INSTANCE
EXPORTING
EXIT_NAME = 'BADI_SD_BILLING'
NULL_INSTANCE_ACCEPTED = 'X'
IMPORTING
ACT_IMP_EXISTING = BADI_SD_BILLING_ACTIVE
CHANGING
INSTANCE = handle_i
EXCEPTIONS
OTHERS = 1.
With instance handle_i call the method required.
handle_i->method().
regards,
Alejandro.
‎2006 Oct 03 10:31 PM
Hi Roberto,
if you want to use the BADI BADI_SD_BILLING, you should create an implementation of badi in transaction SE19.
Then in the list fo methods availaible for modification in the BADI, you must select the method according with your requirement, and double click it to insert the code. Finally active the badi.
To call badi, you should create an instance of badi
data: handle_i TYPE REF TO IF_EX_BADI_SD_BILLING,
BADI_SD_BILLING_ACTIVE TYPE XFELD VALUE 'X'.
CALL METHOD CL_EXITHANDLER=>GET_INSTANCE
EXPORTING
EXIT_NAME = 'BADI_SD_BILLING'
NULL_INSTANCE_ACCEPTED = 'X'
IMPORTING
ACT_IMP_EXISTING = BADI_SD_BILLING_ACTIVE
CHANGING
INSTANCE = handle_i
EXCEPTIONS
OTHERS = 1.
With instance handle_i call the method required.
handle_i->method().
regards,
Alejandro.
‎2006 Oct 03 10:32 PM
‎2019 Dec 06 2:16 PM

Please review note 864944 https://launchpad.support.sap.com/#/notes/864944