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

field-symbols

Hi all,

I have declared a field symbol and I am trying to use AT END OF command. But it says <fs_h_vbrp> is not defined as field-symbol. I can use this filed symbol for any other assignment, problem comes only using at end of,

Any changes needs to be done?

Thanks

Regds

Sachin

TYPES: BEGIN OF typ_h_vbrp,

vbeln LIKE vbrp-vbeln,

posnr LIKE vbrp-posnr,

END OF typ_h_vbrp.

FIELD-SYMBOLS: <fs_h_vbrp> TYPE typ_h_vbrp.

LOOP AT gt_h_vbrp ASSIGNING <fs_h_vbrp> casting.

AT END of <fs_h_vbrp>-vbeln .

ENDAT .

endloop .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 05, 2008 at 12:59 PM

    Hello,

    Try this:

    TYPES: BEGIN OF typ_h_vbrp,
    vbeln LIKE vbrp-vbeln,
    posnr LIKE vbrp-posnr,
    END OF typ_h_vbrp.
    
    FIELD-SYMBOLS: <fs_h_vbrp> TYPE typ_h_vbrp.
    
    LOOP AT gt_h_vbrp ASSIGNING <fs_h_vbrp> casting.
    
    AT END of vbeln .
    
    ENDAT .
    endloop .
    

    Regards.

    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.