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

Flag

Former Member
0 Likes
1,218

can anyone please tell me how to set a flag.

i have to add a field BELKZ = 'X ' in select statement and need to declare.

please tell me how to declare in data.

thanks in advance.

2 REPLIES 2
Read only

varma_narayana
Active Contributor
0 Likes
864

Hii Hema..

Flags are generally Single Character variables in ABAP

Which Stores 'X' for True and ' ' for False.

So Declare a Flag like this.

DATA : V_FLAG TYPE C VALUE 'X'.

<b>Reward if Helpful</b>

Read only

Former Member
0 Likes
864

Hi Latha,

it is not really required to declare the fields used in <b>Where</b> clause of <b>Select</b> Statement.

Please explain your scenario a bit more clearly; posting your code could give much more clarity.

If you are talking about declaring 'X' as a constant, then this is the way to do it,

<b>Constants : c_x type c value 'X'.</b>

Regards,

Kiran