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

Structures

Can anyone please tell me how does the values get

populated in a structure during run time when there is

no value present in the structure?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 01, 2006 at 05:52 PM

    Hi Kevin, That's right, structures don't have data. They only represent what the data should look like with types and lengths. Say for example you have a database table MARA, you have a screen with fields of MARA but they are referencing a structure XMARA. In the program, there is a data statement for XMARA.

    data: Xmara type mara.

    Then somewhere later in the code, there will be a select statement or something that will move the data into the structure.

    
    select single * from mara
                        <b>into xmara</b>
                               where matnr = p_pmatnr.
    
    

    This is how the data is moved from a db table to a structure.

    Regards,

    Rich Heilman

    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.