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,012

HI,

what is FLAG and

what is the use of FLAG?

Plz send the documentation ...

5 REPLIES 5
Read only

Former Member
0 Likes
907

Flag is nothing but a variable use to ser the value True or False

Data : gt_flag type c value 'X'.

you can set value as 'X' for True and ' ' for False

and check it for its value for your condition.

eg:

data: gt_a type i value '20'.

Data : gt_flag type c value 'X'.

if gt_a > 10.

gt_flag = ' '.

endif.

if gt_flag = ' '.

write: 'Value is gretaer tahn 10'.

endif.

reward if useful....

Read only

Former Member
0 Likes
907

Hi,

FLAG is nothing but a Single charecter field, we declare the FLAGS in a program to check the IF ELSE condtions,

Regards

Sudheer

Read only

Former Member
0 Likes
907

Hi,

It is of single character, it is used for indication purpose.

Thanks,

Sriram Ponna.

Read only

ferry_lianto
Active Contributor
0 Likes
907

Hi,

Flag could be a single character variable of type C.

You can use flag for any purpose if you want to store some sort of counter. Flag is generally a temp variable defined within the program to check the status if its true or false.

Regards,

Ferry Lianto

Read only

che_eky
Active Contributor
0 Likes
907

A flag is a piece of woven cloth, often flown from a pole or mast, generally used symbolically for signalling or identification.

The first flags were used to assist military coordination on battlefields and flags have evolved into a general tool for rudimentary signalling and identification.

Flags are used in messaging, advertising, or for other decorative purposes. The study of flags is known as vexillology, from the Latin vexillum meaning flag or banner.

National flags - One of the most popular uses of a flag is to symbolize a nation or country

Civil flags - A civil flag is a version of the national flag that is flown by civilians on non-government installations or craft

Flags at sea - Flags are particularly important at sea, where they can mean the difference between life and death, and consequently where the rules and regulations for the flying of flags are strictly enforced (<b>unlike the rules on SDN</b>)

Religious flags - Flags can play many different roles in religion

In sports - Because of their ease of signalling and identification, flags are often used in sports

Swimming flags - In Australia, New Zealand, Philippines, and the United Kingdom a pair of red/yellow flags is used to mark the limits of the bathing area on a beach, usually guarded by surf lifesavers

Railway flags - Railways use a number of colored flags

In politics - Social and political movements have adopted flags, to increase their visibility and as a unifying symbol

Flagpoles - A flagpole or flagstaff can be a simple support made of wood or metal

Hope this helps