on 07-07-2008 4:51 PM
i hav created text in smartform
and given the details as
[ &v_flag1& ] Related
[ &v_flag1& ] Non Related
and in program lines i hav written the code as
IF wa_adrc_we-title EQ 'ZCI1' OR
wa_adrc_we-title EQ 'ZCI2' .
v_flag1 = 'X'.
ELSE.
CLEAR v_flag1.
endif.
the problem is i m not getting the value x for flag if the condition satisfies also.
plz help in this
Hi,
Write ur if codition in a round bracket and try as shown below. If this does not work write &v_flag1& as &V_FLAG1&. Do this also for v_flag2.
IF ( wa_adrc_we-title EQ 'ZCI1' OR wa_adrc_we-title EQ 'ZCI2' ) .
v_flag1 = 'X'.
ELSE.
CLEAR v_flag1.
endif.
Nayan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
First try to put a break point before the code and try to
debug it.
BREAK-POINT.
I think the problem is in the ELSE condition that you are giving.
IF wa_adrc_we-title EQ 'ZCI1' OR
wa_adrc_we-title EQ 'ZCI2' .
v_flag1 = 'X'.
ELSE.
CLEAR v_flag1.
endif.
Because if this code is called 2 times then in
the 1st time the flag will be set and then next time
the flag gets cleared before you get your output.
So try this:
IF wa_adrc_we-title EQ 'ZCI1' OR
wa_adrc_we-title EQ 'ZCI2' .
v_flag1 = 'X'.
endif.
and try clearing the flag at some other place...
Check this, if this helps, because there is no reason
why the flag is not set...
Reward Points if useful..
Fawaz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i think it would be easier to work on this issue if u write ur code in driver program.
depending on the value checked u can call the perform there.
let me know if its clear...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi can ypu please let me know where you are writing this code?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
do this way ....
translate wa_adrc_we-title to upper case.
IF wa_adrc_we-title EQ 'ZCI1' OR
wa_adrc_we-title EQ 'ZCI2' .
v_flag1 = 'X'.
ELSE.
CLEAR v_flag1.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.