‎2008 Feb 12 5:36 PM
I implement badi ME_PROCESS_REQ_CUST metod
PROCESS_ITEM ( check record by record of request )
i need to read cost center to do a custom control
but in structure MEREQ_ITEM there isnt cost center.
have me any help??
F
‎2008 Feb 12 7:36 PM
if you are debugging a BADI, click 'call'.
It will give you all the programs which are called or active and from where you can get any information.
for example if you find the program SAPMV45A and the variable you require is available in the program then in debugger just find out its value as a variable::
(SAPMV45A)VBAK-AUART
Example::
Now right the below code in your BADI to get the information....
CONSTANTS: C_VBAK(14) TYPE C VALUE '(SAPMV45A)VBAK',
FIELD-SYMBOLS: <FS_VBAK> TYPE VBAK.
ASSIGN (C_VBAK) TO <FS_VBAK>.
CHECK <FS_VBAK>-AUART = C_ZSQT OR
<FS_VBAK>-AUART = C_ZDQT.
SELECT SINGLE AUART
FROM VBAK
INTO V_AUART
WHERE VBELN = <FS_VBAK>-VGBEL.