Hi
I want to pass the currency of particular company code into a text variable.
The company code is selected by the user using Input variable "0S_COM_M".
I have created a text variable "ZD_CURR" with processing type customer exit.
I have written the following abap code but its not working.
***********
DATA : LV_CURR type /BI0/OICURRENCY.
WHEN 'ZD_CURR'.
IF I_STEP = 2.
CLEAR XTAB.
READ TABLE I_T_VAR_RANGE INTO XTAB WITH KEY VNAM = '0S_COM_M'.
SELECT SINGLE CURRENCY FROM /BI0/PCOMP_CODE INTO LV_CURR WHERE COMP_CODE = XTAB-LOW.
L_S_RANGE-LOW = LV_CURR.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
CLEAR E_T_RANGE.
APPEND L_S_RANGE TO E_T_RANGE.
ENDIF.
**************************************
Pls let me know how to resolve this issue or what modification can be done to this code.
Is there a way where we can debug customer exit code for variables.
Thanks.