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

Field Symbol Issue

Hello Experts,

I'm very new to field-symbols and having challenge when using them. Basically I'm only trying to use specific column value from one type of field symbol to another but keep having short dump. I tried to re-wirte my code using work area and it works though.

Can somebody have a look at my code and tell me what is causing the problem and how to resolve it.

DATA:

lit_variables TYPE STANDARD TABLE OF zut_variables INITIAL SIZE 0,

FIELD-SYMBOLS:

<fs_variables> type zut_variables,

<fs_rang_var> type zus_variables.

loop at lit_variables ASSIGNING <fs_variables>.

if <fs_variables> is assigned.

<fs_range_var>-high = <fs_variables>-high.

<fs_range_var>-low = <fs_variables>-low.

<fs_range_var>-sign = <fs_variables>-sign.

<fs_range_var>-option = <fs_variables>-zoption.

endif.

endloop.

Many thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Dec 21, 2011 at 06:29 PM

    In your case <fs_range_var> is being used like a work area, you donnot need a field symbol for it.

    you are having short dumps bcoz you have not routed the field symbol <fs_range_var> to any memory location. so it makes scence to dump.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2011 at 04:33 AM

    Hi,

    As you are using same structure for field symbols , no need of using field symbols.

    You can use work area.

    If you doesnt no the structure , you can assign field symbol.

    field-symbols <fs> type any.

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2011 at 05:12 PM

    Many thanks guys for both of your input.

    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.