on 07-02-2008 7:21 PM
Hello all,
I need to call to a function of conversion of dates from the include of the function EXIT_SAPLRRS0_001 but I cannot pass the parameters for the exporting, like I can declare these variables so that they pass to the other function mudule?,
this way this now :
&----
*& Include ZXRSRU01
&----
DATA: l_s_range TYPE rsr_s_rangesid.
DATA: loc_var_range LIKE rrrangeexit.
DATA: t_date TYPE rsr_s_rangesid.
DATA:p_date TYPE d.
DATA: v_date1 TYPE d.
DATA: v_date2(6) TYPE c.
CASE i_vnam.
WHEN 'ZPP_ACU_MES_SEM'.
IF i_step = 2. "after the popup
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = 'ZSEM_INDV'.
CLEAR l_s_range.
obtener el primer dia de la semana de la fecha al 01mmyyyy
v_date2 = loc_var_range-low(6).
CALL FUNCTION 'WEEK_GET_FIRST_DAY'
EXPORTING
week = v_date2
IMPORTING
date = v_date1
EXCEPTIONS
semana
invalida...................
.
Hello all,
the problem was resolved. there was a difference of types of data, he/she is assigned to the varianble the type same type of data with which is used in the used function and I work:
DATA: V_DATE2 LIKE SCAL-WEEK.
Thank you,
Greetings
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sonal,
the error is not indicated explicitly but for the debbuging I could observe that they were not passing the parameters to the function module that calls, as I understand the variable it doesn't pass to another context like parameter and when using PARAMETERS in the INCLUDE of the EXIT_SAPLRRS0_001 it doesn't allow it
CALL FUNCTION ' WEEK_GET_FIRST_DAY'
EXPORTING
week = v_date2
IMPORTING
date = v_date1
EXCEPTIONS
week
it invalidates.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can u exlain in detail what error u are getting in Include code ?
Sonal...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.