‎2007 Aug 28 8:14 AM
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.
‎2007 Aug 28 8:18 AM
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>
‎2007 Aug 28 8:19 AM
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