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

variables pls help

hai all,

my requirement is i have two variables both r for calender month if i give the month for one variable the other variable value has to be filled by customer exit (this is my scenario if i give april/2005 as value for one variable the other variable should get value from jan/2005 to march/2005) .i have minimum knowledge in ABAP .so pls help me.

Rgds,

Ravindra.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2005 at 08:27 AM

    Hi Ravindra ,

    You can use this code FOR TIME BEING..

    tell me details like input format of variable1 .I mean is it 004.2005 (for april/2005)..or some other format????

    when 'zvariable2'.

    if i_step = 2.

    read table I_T_VAR_RANGE INTO LOC_VAR_RANGE

    with key VNAM = 'zvariable1'.

    { HERE WE NEED TO IMPLEMENT LOGIC }}

    L_S_RANGE-LOW = ********.

    L_S_RANGE-HIGH = ******** .

    L_S_RANGE-SIGN = 'I'.

    L_S_RANGE-OPT = 'BT'.

    APPEND L_S_RANGE TO E_T_RANGE.

    endif.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2005 at 08:59 AM

    Hi,

    you can use this code now...

    steps:

    1) goto transaction CMOD

    2) give the corresponding project name(if not exists give me reply i'll tell u) , display

    3) press components pushbutton

    4) double click EXIT_SAPLRRS0_001

    5) double click INCLUDE ZXRSRU01 .

    6) change

    7) write the below code after CASE I_VNAM. statement

    when 'zvariable2'.

    if i_step = 2.

    read table I_T_VAR_RANGE INTO LOC_VAR_RANGE

    with key VNAM = 'zvariable1'.

    L_S_RANGE-LOW = loc_var_range-low - 3.

    L_S_RANGE-HIGH = loc_var_range-low - 1.

    L_S_RANGE-SIGN = 'I'.

    L_S_RANGE-OPT = 'BT'.

    APPEND L_S_RANGE TO E_T_RANGE.

    endif.

    replace variable names with your variables....

    before using this code i've a doubt..If youwant to restrict calmonth in query you can directly restrict with variable offset....

    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.