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

customer exit variable

Hello Gurus,

I have query where 'ZDELDATE' customer exit variables and them should be filled from an ODS with the values but where are some doubts. Case I_VNAM is not recognised and the issue is always a zero, although the data exist. I post my coding hier. Maybe somebody has idee.

DATA:.....

CASE I_VNAM.

WHEN 'ZDELDATE'.

IF I_STEP = 1.

LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'ZDELDATE'.

CLEAR L_S_RANGE.

  • customer requested delivery date

  • Select all from /bic/azsd_o12a00 where Requested delivery date is empty

SELECT * FROM /bic/azsd_o12a00 INTO TABLE i_t_azsd_o12a00

WHERE dsdel_date = '00000000'.

LOOP AT i_t_azsd_o12a00 INTO wa_azsd_o12a00.

*Slect Delivery number and delivery item, where dsdel_date field ist emty

SELECT SINGLE * FROM /bic/azsd_01100 INTO wa_azsd_01100

WHERE deliv_numb = wa_azsd_o12a00-deliv_numb

AND deliv_item = wa_azsd_o12a00-deliv_item.

SELECT SINGLE * FROM /bic/asdo000300 INTO wa_azsd_000300

WHERE doc_number = wa_azsd_01100-refer_doc.

IF sy-subrc = 0.

v_loc_date = wa_azsd_000300-req_date.

ENDIF.

L_S_RANGE-LOW = v_loc_date.

L_S_RANGE-SID = 'I'.

L_S_RANGE-OPT = 'EQ'.

APPEND L_S_RANGE TO E_T_RANGE.

CLEAR v_loc_date.

ENDLOOP.

EXIT.

ENDLOOP.

END IF.

Regards

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2006 at 09:39 AM

    Alex,

    The code for selecting data should be in the condition

    IF I_STEP = 2.

    I_STEP = 1 is used for validation purposes of variable entry.

    I_STEP = 2 is called after execution and before data display.

    So put the necessary code in I_STEP = 2 and check.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 08:22 AM

    Thanks for your answered.

    Regards

    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.