Skip to Content
avatar image
Former Member

<Field Symbol>- how to write

Hi Frndz

I need your help.

My problem is i have a field symbol like

<fs> type any .

I am using <fs> as dynamic and it can have structure of Table MARA,KNA1,VBAK .

Now problem comes here ..How to write the <fs> individual column.Cos <fs> can be any table.

I know i can write directly : write <fs>. but i have to write individual column,

Please help me.

Subham

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • May 11, 2009 at 03:47 AM

    hi,

    use 'assign .. components' ... type this on the editor and you will have more F1 help....

    regds,

    Madan..

    Add comment
    10|10000 characters needed characters exceeded

  • May 11, 2009 at 03:56 AM

    Hi,

    Try using ,

    ASSIGN COMPONENT 'COULMN_NAME' OF STRUCTURE is_structure TO <fs_column> .

    Regards,

    Ujwal

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 11, 2009 at 04:22 AM

    hai subham ,

    u can use the following state ment to write the valeus

    do .

    assign component sy-index of work area to <fs>

    if sy-subrc ne 0.

    exit.

    else.

    write <fs>.

    endif.

    enddo.

    this way u can write all teh fields assigned in the work area

    hope it resolves ru issue

    afzal

    Add comment
    10|10000 characters needed characters exceeded