09-30-2008 6:14 PM
Hi guys,
I need to do an user exit variable, but i dont know ABAP, the program that i need to do is this:
I have an Infoobject ZIO, this has the next values in its master table:
-101
-102
i need an user exit variable that get the value 101 automatic when i execute the query.
its symple but i dont know, can you help me to do the code of this variable?
thanks ! i´ll really appreciate it guys
09-30-2008 6:29 PM
you ought to get a developer to do this.
if you're not a developer, you won't have the skills or the access(development key) to make changes.
09-30-2008 6:29 PM
you ought to get a developer to do this.
if you're not a developer, you won't have the skills or the access(development key) to make changes.
10-02-2008 3:47 PM
Can anyone explain me the difference when i call a function IF I_STEP = 1. IF I_STEP = 2., for example i see this code, those are two variables in the same query but i cant understand it, can you help me?
WHEN 'ZMESPROACTU'. "Propuesta de mes actual en variables de entrada del query
InfoObjeto: ZCALPROCE Mes Año Proceso
IF I_STEP = 1.
RFECHA2-SIGN = 'I'.
RFECHA2-OPT = 'EQ'.
RFECHA2-LOW = SY-DATUM(6).
APPEND RFECHA2 TO E_T_RANGE.
ENDIF.
WHEN 'ZMES1PRO'.
InfoObjeto: ZCALPROCE Mes Año Proceso
Descripción: Armar rango de fecha completo del mes obtenido en la
variable ZMESPROACTU.
IF I_STEP = 2.
READ TABLE I_T_VAR_RANGE INTO IT_VAR WITH KEY VNAM = 'ZMESPROACTU'.
CHECK SY-SUBRC EQ 0.
Si el mes solicitado por parámetro es Enero, el siguiente mes será
Diciembre y año anterior al solicitado.
IF IT_VAR-LOW+4(2) = '01'.
IT_VAR-LOW+4(2) = '12'.
IT_VAR-LOW0(4) = IT_VAR-LOW0(4) - 1.
Si el mes solicitado por parámetro es Febrero, el siguiente mes será
Enero y el mismo año solicitado.
ELSEIF IT_VAR-LOW+4(2) = '02'.
IT_VAR-LOW+4(2) = '01'.
IT_VAR-LOW0(4) = IT_VAR-LOW0(4).
Si no es ni Enero ni Febrero, restar menos 1 al mes solicitado en el
Parámetro.
ELSE.
MES = IT_VAR-LOW+4(2).
MES = MES - 1.
IT_VAR-LOW+4(2) = MES.
ENDIF.
RFECHA2-SIGN = 'I'.
RFECHA2-OPT = 'EQ'.
RFECHA2-LOW = IT_VAR-LOW.
APPEND RFECHA2 TO E_T_RANGE.
ENDIF.
10-05-2008 10:35 PM
Hello Jorge
Somehow I_STEP is filled (presumably via the function module interface). It can have either value = 1 or value = 2.
If I_STEP = 1 then range itab E_T_RANGE is filled with the following entry:
'I' 'EQ' '200810' " if I take the current date
This range itab is presumably exported from the function module (based on its naming).
If I_STEP = 2 a range from a variant is read and if found (sy-subrc = 0 ) modified and another range entries is appended to E_T_RANGE.
CONCLUSION: Depending on the value of I_STEP different time range (year + month) are exported from the fm.
Regards
Uwe