‎2008 Nov 18 9:42 AM
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?
‎2008 Nov 18 9:45 AM
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.
‎2008 Nov 18 9:44 AM
There is no specific or standard definition for definning a Flag type.
You can use anything. or anytype
‎2008 Nov 18 9:45 AM
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.
‎2008 Nov 18 9:52 AM
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
‎2008 Nov 18 9:47 AM
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.