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

Field symbol has not been assigned

Hi gurus,

I am executing one query I have designed, however, when in SQ01 I get the message "Field symbol has not been assigned".

I have reviewed other posts with the same problem but the issue is still there.

Could you please guide to get a solution? Please check the image attached.

Thanks,

Kind regards,

Error_ABAP.png (14.4 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Posted on Nov 17, 2015 at 03:48 PM

    Hi John,

    you have been directed to the most probable reason of your Problem twice now.

    Both, Klaus and Stefan have pointed you towards it.

    The crucial thing is, whether <fs_lin> is assigned AND what the assigned structure looks like.

    None of your snippets or screenshots shed any light on this.

    Where do you actually assign <fs_lin> and to what.

    If <fs_lin> is not assigned correctly, your assignment of any of its components is bound to fail.

    The same holds true, if <fs_lin> is assigned, but the referred structure does not contain a component named 'Z_RESULT'.

    Since you haven't shared that crucial bit of your code, you're on your own there, until you do.

    Best regards - Jörg

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 16, 2015 at 12:35 PM

    you forgot sy-subrc check after assign component

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 16, 2015 at 01:00 PM

    Hi John,

    what's the type of l_fieldnm? If it is a character type, then its content will be checked for a component name. If it's a numeric type, it will be checked for a component position.

    If the component name is not matching or the component number does not exist, the ASSIGN will not be successful, which will cause your issue.

    Regards,

    Klaus

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 16, 2015 at 01:01 PM

    Hi John,

    1. Please have Sy-subrc check after 'Assign component' statement

    2. Please pass some value for 'Z_RESULT' and then check

    Cheers,

    Kripa Rangachari.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 16, 2015 at 01:21 PM

    Hi John

    Could you use if <your field simbol> is assigned before use the field symbol.

    if you want to know why didnt is assigned you need check if hava data and the field symbol types is compatible.. ( type any....anytable.....)

    Hope helepd you.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 16, 2015 at 01:49 PM

    did you check for simple things like the code your executing is your actual code? close/open your programm to load recent changes.

    LG

    Stefan Seeburger

    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.