Skip to Content
author's profile photo Former Member
Former Member

field symbols

hi canany bosy explain abt field symbol with example

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 06, 2008 at 11:02 AM

    hi mr raj..

    DATA :

    BEGIN OF emp,

    emp_id(10) TYPE c,

    emp_name(20) TYPE c,

    END OF emp.

    DATA :

    BEGIN OF stud,

    str TYPE c,

    str1 TYPE i,

    END OF stud.

    FIELD-SYMBOLS : <fs>, <fs1> TYPE ANY.

    emp-emp_id = '1001'.

    emp-emp_name = 'TEST PRG'.

    stud-str = 'Y'.

    stud-str1 = 123456.

    DO 2 TIMES.

    IF sy-index = 1.

    ASSIGN emp TO <fs>.

    ELSE.

    ASSIGN stud TO <fs>.

    ENDIF.

    DO.

    ASSIGN COMPONENT sy-index OF STRUCTURE <fs> TO <fs1>.

    IF sy-subrc 0.

    EXIT.

    ENDIF.

    WRITE : <fs1>, /.

    ENDDO.

    ENDDO.

    i think u ll get some help from this program

    if so just let me know

    keep posting..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2008 at 05:13 PM

    Do not ask nor answer rediculous questions...

    Read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] next time.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.