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

creating a varible with a customer exit

I need to pass a date back to a quyer which will be used in the selection criteria as the FROM date. I've attached the code below. When i run the query it doens't fill the FROM date on the screen with the right date. I am not sure what is wrong

CASE I_VNAM.

WHEN 'ZD_FROMDATE'.

IF i_step = 2.

READ TABLE I_T_VAR_RANGE INTO Loc_Var_Range

WITH KEY vnam = '0P_CSDAT'.

Clear L_S_Range.

CONCATENATE loc_var_range-low0(4) loc_var_range-low4(2) '01' INTO IMP_DATE_BEG.

APPEND L_S_Range TO E_T_RANGE.

ENDIF.

endcase.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 17, 2006 at 05:05 PM

    Made changes in your code as bold...try this it will work fine.

    CASE I_VNAM.

    WHEN 'ZD_FROMDATE'.

    IF i_step = 2.

    READ TABLE I_T_VAR_RANGE INTO Loc_Var_Range

    WITH KEY vnam = '0P_CSDAT'.

    Clear L_S_Range.

    CONCATENATE loc_var_range-low0(4) loc_var_range-low4(2) '01' INTO <b>L_S_RANGE</b>.

    <b>L_S_RANGE-sign = 'I'.

    L_S_RANGE-opt = 'EQ'.</b>

    APPEND L_S_Range TO E_T_RANGE.

    ENDIF.

    endcase.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      I tried this but it sitll will not poulted my varialbe on the selection screen with the right date. it fills it with whatever was in there before. Basically I have 1 date they enter and then I need to create a from date which is always the 1st of the month and pass this back to the query so i can use it to get my data for that range.

  • author's profile photo Former Member
    Former Member
    Posted on Nov 17, 2006 at 05:24 PM

    have you tried to debugg ur code?

    btw what is 0P_CSDAT variable type?

    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.