Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error executing Program

Former Member
0 Likes
692

Dear all.

I'm executing this simple code:

SELECTION-SCREEN BEGIN OF BLOCK I1 WITH FRAME TITLE TEXT-001.

PARAMETERS: ZB_TEST as checkbox default 'x'.

SELECTION-SCREEN END OF BLOCK I1.

IF ZB_TEST eq 'X'.

write 'X Upper'.

elseif ZB_TEST eq 'x'.

write 'x lower'.

endif.

When executing the frist time the system Display x lower.

Then when re-executed the Program with no parameter.

Then executed the Program with the check box set the system Display X Upper.

Best Regards

6 REPLIES 6
Read only

Former Member
0 Likes
655

Hi,

Give always in Capital letters..

ZB_TEST as checkbox default 'X'.

If the check box is checked the ZB_TEST = 'X'.

Elseif the check box is not checked then ZB_TEST = ' '.

Thanks,

Naren

Read only

suresh_datti
Active Contributor
0 Likes
655

inside the quotes, it should be upper case.. ie

IF ZB_TEST eq 'X'.

write 'X Upper'.

else.

write 'x lower'.

endif.

~Suresh

Read only

Former Member
0 Likes
655

hi pedro,

PARAMETERS: ZB_TEST as checkbox default <b>'X'</b>.

IF ZB_TEST eq 'X'.

write 'X Upper'.

elseif ZB_TEST ne 'X'.

write 'x lower'.

endif.

regards,

priya.

Read only

Former Member
0 Likes
655

Hi Pedro,

Once the user does some action on the selection screen, the value x becomes X .

Hence the behavior.

REgards,

Ravi

Read only

Former Member
0 Likes
655

It's possible to explain what is the diference between the Lower x, in the Frist case and the Upper?

When define the the Parameter value?

Best Regards.

Read only

Former Member
0 Likes
655

After we have done some activity in the system all the x became a X. For this case we have to configured all by upper case