0% found this document useful (0 votes)
58 views1 page

Field Symbols Used As Runtime Variables N Number of Data Types and Variables Can Be Assigned To Fieldsymbols - Declaration Part

This document demonstrates how field symbols in ABAP can be used as runtime variables to which different data types and values can be assigned. It declares a field symbol <f1>, assigns various data types like character, integer, date and time to <f1>, and writes the values to output with different colors to show how a single field symbol can take on different values.

Uploaded by

ssvallabhaneni
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views1 page

Field Symbols Used As Runtime Variables N Number of Data Types and Variables Can Be Assigned To Fieldsymbols - Declaration Part

This document demonstrates how field symbols in ABAP can be used as runtime variables to which different data types and values can be assigned. It declares a field symbol <f1>, assigns various data types like character, integer, date and time to <f1>, and writes the values to output with different colors to show how a single field symbol can take on different values.

Uploaded by

ssvallabhaneni
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

REPORT ZEXTEST794 .

*field symbols used as runtime variables *n number of data types and variables can be assigned to fieldsymbols *--- Declaration Part data : field(3) type c value 'X23'. data : var1 type i. *--- Declare Field Symbol field-symbols : <f1>. *--- Assignment assign field to <f1>. write: 'Character Value' color 1, <f1> color 2. do. var1 = var1 + 1. if var1 > 3. exit. endif. enddo. assign var1 to <f1>. write:/ 'Integer value' color 1, <f1> color 3. assign sy-datum to <f1>. write:/ 'Date' color 1, <f1> color 4. assign sy-uzeit to <f1>. write:/ 'Time' color 1, <f1> color 5.

You might also like