cancel
Showing results for 
Search instead for 
Did you mean: 

CHECKBOXES IN SMARTFORM

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi can ypu please let me know where you are writing this code?

Former Member
0 Kudos

i hav written the code in program lines

Former Member
0 Kudos

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.

Former Member
0 Kudos

i turned to uppercase but still i m not getting