cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Code Abap in Include of EXIT_SAPLRRS0_001

Former Member
0 Kudos

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...................

.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

Can u exlain in detail what error u are getting in Include code ?

Sonal...