Skip to Content
author's profile photo Former Member
Former Member

Problem with Code Abap in Include of EXIT_SAPLRRS0_001

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

.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 03, 2008 at 08:59 AM

    Hi,

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

    Sonal...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 03, 2008 at 12:30 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 03, 2008 at 04:34 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.