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

Problem with assign component statement

Hi ,

I have problem in using Assing componet statement

here is my values

Var1 = I_FEBKO

var2 = butxt.

now i wrote a statement like

ASSIGN lv_temp3 TO <lfs_strname>.

ASSIGN lv_temp4 TO <lfs_fieldname>.

ASSIGN COMPONENT <lfs_fieldname> OF STRUCTURE <lfs_strname> TO <lfs_kunnr>.

but it is not working and dumping , can you plese suggent on where i am going wrong.

thanks

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 Dec 20, 2010 at 06:19 PM

    Hi,

    See:

    lv_temp3 = 'I_FEBKO'.
    lv_temp4 = 'BUTXT'.
    
    ASSIGN (lv_temp3) TO <lfs_strname>.
    
    ASSIGN COMPONENT lv_temp4 OF STRUCTURE <lfs_strname> TO  <lfs_kunnr>.

    Best regards,

    Leandro Mengue

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 20, 2010 at 05:22 PM

    what does your dump say?

    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.