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

Regarding Flag type

Former Member
0 Likes
1,692

Hi ,

Can you please tell me what should be the tyep of flag?In all standard ABAP programs they have used X and space .But i have a doubt.Cant we use 1 or 0 and whether the Flag can be of type integer in this case?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,452

Hi ,

It can be interger but the Lentgh will be more than one. If you want 1 or 0 as flag values you can use Data type as N with length 1.

Generally Flag are declared as one length varables.

4 REPLIES 4
Read only

Former Member
0 Likes
1,452

There is no specific or standard definition for definning a Flag type.

You can use anything. or anytype

Read only

Former Member
0 Likes
1,453

Hi ,

It can be interger but the Lentgh will be more than one. If you want 1 or 0 as flag values you can use Data type as N with length 1.

Generally Flag are declared as one length varables.

Read only

0 Likes
1,452

Thank you for the reply.I got it.If we use type I then it will allote 4 bytes of space.So it is better to declare type as C or N with length as 1.

Edited by: Deepthi navel on Nov 18, 2008 10:53 AM

Read only

Former Member
0 Likes
1,452

Flag is a general representation for our purpose to distinguish the things (Mainly True/False or Filled/Not Filled).

So u can use what ever format u r comfortable.

If u r using 0/1, u can declare it as charcter. No completion that u shd declare as Numeric.