<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How a Structure can be used in program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813864#M1126649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare an internal table and use this internal table ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_zmara like zmara occurs 0 with header line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Dec 2008 10:23:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-02T10:23:08Z</dc:date>
    <item>
      <title>How a Structure can be used in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813861#M1126646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts&lt;/P&gt;&lt;P&gt;                I have created a structure in SE11.For example assume i have created Structure Zmara and i have three fields matnr,werks,lgort as fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to use this in a program..i mean how to call this in a program with selection screen and to display some list using this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help with this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813861#M1126646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: How a Structure can be used in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813862#M1126647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: begin of itab occurs 0.&lt;/P&gt;&lt;P&gt;        include structure zmara.&lt;/P&gt;&lt;P&gt;data: end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr werks lgort from mara into table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write: itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813862#M1126647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: How a Structure can be used in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813863#M1126648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;this example will help you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF name,&lt;/P&gt;&lt;P&gt;         title(5)       TYPE c,&lt;/P&gt;&lt;P&gt;         first_name(10) TYPE c,&lt;/P&gt;&lt;P&gt;         last_name(10)  TYPE c,&lt;/P&gt;&lt;P&gt;       END OF name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF mylist,&lt;/P&gt;&lt;P&gt;         client         TYPE name,&lt;/P&gt;&lt;P&gt;         number         TYPE i,&lt;/P&gt;&lt;P&gt;       END OF mylist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA list TYPE mylist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;list-client-title = 'Lord'.&lt;/P&gt;&lt;P&gt;list-client-first_name = 'Howard'.&lt;/P&gt;&lt;P&gt;list-client-last_name = 'Mac Duff'.&lt;/P&gt;&lt;P&gt;list-number = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE list-client-title.&lt;/P&gt;&lt;P&gt;WRITE list-client-first_name.&lt;/P&gt;&lt;P&gt;WRITE list-client-last_name.&lt;/P&gt;&lt;P&gt;WRITE / 'Number'.&lt;/P&gt;&lt;P&gt;WRITE list-number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:21:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813863#M1126648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: How a Structure can be used in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813864#M1126649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare an internal table and use this internal table ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_zmara like zmara occurs 0 with header line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:23:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813864#M1126649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: How a Structure can be used in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813865#M1126650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u have to create ITAB using structure STR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ITAB type standard table of STR with header line initial size 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that u can have internal table with same fields like STR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:25:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813865#M1126650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: How a Structure can be used in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813866#M1126651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have created Z Structure, You need not to redeclare it in your program. You can directly create an internal table of  type this structure or can use any field of the Structure as matnr-Zmara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813866#M1126651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: How a Structure can be used in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813867#M1126652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use Structure in Type Declarations ,like you can define Internal Tables of this structure type,but you cannot Call a structure,and remember structure does not hold any data,its the Transparent tables that hold data.For more info on this you  can refer ABAP Documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:25:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813867#M1126652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: How a Structure can be used in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813868#M1126653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;thats is not working&lt;/P&gt;&lt;P&gt;it says tht zmara should be flat structure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813868#M1126653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: How a Structure can be used in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813869#M1126654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry all, but all the answers are far away from perfectness...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have a structure (zmara) in the DB, you have to create internal table the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : itab TYPE TABLE OF zmara.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;work area:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : wa TYPE zmara&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:25:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813869#M1126654</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-12-02T10:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: How a Structure can be used in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813870#M1126655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes neha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         i know , structure dont have any values&lt;/P&gt;&lt;P&gt;but in many real time examples , they created many structures and from that structure they are fetching values.structure do have values at runtime right.thats why i'm asking.could you please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813870#M1126655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: How a Structure can be used in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813871#M1126656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't get data from Structure because it is a logical table &amp;amp; it willn't store any data. DB Table can store data if u want u can retrieve it. Just u can use structure during Runtime for referring some internal table's which r suppose to using in program thats it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BBR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: BBR on Dec 2, 2008 4:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 10:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813871#M1126656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T10:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: How a Structure can be used in program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813872#M1126657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Through SE11...the structure which u have declared is global..&lt;/P&gt;&lt;P&gt;you can also declare structure internally also..SE38&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types  : begin of str,&lt;/P&gt;&lt;P&gt;             matnr type matnr,&lt;/P&gt;&lt;P&gt;             werks type werks,&lt;/P&gt;&lt;P&gt;             lgort type lgort,&lt;/P&gt;&lt;P&gt;             end of str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need to declare internal tables...as follows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : itab type standard table of str with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0.&lt;/P&gt;&lt;P&gt;include structure str / Zmara.&lt;/P&gt;&lt;P&gt;data : end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then write the select query to retrive data from database table n then write staement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its an simple ex to use structure in programs..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ansumesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 11:30:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-structure-can-be-used-in-program/m-p/4813872#M1126657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T11:30:24Z</dc:date>
    </item>
  </channel>
</rss>

