<?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: custom structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470862#M221366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ispfli-ibookings is a internal table within the internal table ispfli.  The read statement here is simply just reading the first record in that table(ibookings)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing this statement will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;xbookings = ispfli-ibbokings.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you see that you are trying to move the internal table into the workarea called xbookings.  ISPFLI-IBOOKINGS has no header line, so this does not help. You will get a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2006 16:57:26 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-09-04T16:57:26Z</dc:date>
    <item>
      <title>custom structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470851#M221355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a custom structure in se11, in which one of the fields say f3 is of the type standard transparent table. Now how do I refernce the fiels of this table through an internal table. &lt;/P&gt;&lt;P&gt;An internal table declared of this custom structure type has a structure like f1, f2, f3-fa, f3-fb, f3-fc.... where fa, fb, fc are fields of the standard transparent table.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 15:51:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470851#M221355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T15:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: custom structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470852#M221356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can reference like this.  I hope that this is what you mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of itab occurs 0,
      fld &amp;lt;b&amp;gt;type stru-f3-fa&amp;lt;/b&amp;gt;,
      end of itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 15:52:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470852#M221356</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-04T15:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: custom structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470853#M221357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replying Rich....but I get an error for this saying that 'the stru is a flat type...'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 15:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470853#M221357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T15:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: custom structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470854#M221358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you mean how to get the value of these fields in your internal table, then just remember that it is another internal table and must be read.  For example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab is structure like your custom structure, one field, F3 is a table itself, so you will need to read this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop itab into wa.

read table wa-f3 index 1.  " Or however you need to read it.
if sy-subrc = 0.
  write:/ wa-f3-fa.
endif.




endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich HEilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 15:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470854#M221358</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-04T15:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: custom structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470855#M221359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try the below code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;      fld type f3-fa,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 15:56:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470855#M221359</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-09-04T15:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: custom structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470856#M221360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a better example of how to get the values of your deep structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report  zrich_0001.

data: begin of ispfli occurs 0,
       carrid type spfli-carrid,
       connid type spfli-connid,
     &amp;lt;b&amp;gt;  ibookings type standard table of sbook,&amp;lt;/b&amp;gt;
      end of ispfli.

data: xspfli like line of ispfli.
data: xbookings type sbook.

loop at ispfli.


  read table &amp;lt;b&amp;gt;ispfli-ibookings into xbookings&amp;lt;/b&amp;gt; index 1.
  if sy-subrc = 0.
    write:/ &amp;lt;b&amp;gt;xbookings-customid&amp;lt;/b&amp;gt;.
  endif.

endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 16:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470856#M221360</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-04T16:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: custom structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470857#M221361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I see what you are talking about now.  It is a little tricky.  Here ZSPFLI is my structure, it contains CARRID CONNID and a table type of SBOOK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report  zrich_0001.


&amp;lt;b&amp;gt;data: ispfli type table of ZSPFLI with header line.
data: xspfli like line of ispfli.

data: xbookings like line of ispfli-ibookings.&amp;lt;/b&amp;gt;

data: begin of itest occurs 0,
     &amp;lt;b&amp;gt; fld like xbookings-customid,&amp;lt;/b&amp;gt;
      end of itest.

loop at ispfli.


  read table ispfli-ibookings into xbookings index 1.
  if sy-subrc = 0.
    write:/ xbookings-customid.
  endif.

endloop

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 16:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470857#M221361</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-04T16:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: custom structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470858#M221362</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;data: begin of ispfli occurs 0,&lt;/P&gt;&lt;P&gt;       carrid type spfli-carrid,&lt;/P&gt;&lt;P&gt;       connid type spfli-connid,&lt;/P&gt;&lt;P&gt;       ibookings type standard table of sbook,&lt;/P&gt;&lt;P&gt;      end of ispfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to insert the values into above internal table ispfli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 16:22:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470858#M221362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T16:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: custom structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470859#M221363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very good question.  It can be done simply like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report  zrich_0001.


data: begin of ispfli occurs 0,
      carrid type spfli-carrid,
      connid type spfli-connid,
      ibookings type standard table of sbook,
      end of ispfli.

data: xspfli like line of ispfli.
data: xbookings like line of ispfli-ibookings.

select carrid connid into corresponding fields of table
        ispfli from spfli.


&amp;lt;b&amp;gt;loop at ispfli.
  select * from sbook into table ispfli-ibookings
                where carrid = ispfli-carrid
                  and connid = ispfli-connid.
  modify ispfli.
endloop.&amp;lt;/b&amp;gt;


loop at ispfli.

  write:/ ispfli-carrid, ispfli-connid.

  read table ispfli-ibookings into xbookings index 1.
  if sy-subrc = 0.
    write:/ 'THe first customer to book is:', xbookings-customid.
  endif.


endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 16:29:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470859#M221363</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-04T16:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: custom structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470860#M221364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;deleted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: SAP ABAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 16:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470860#M221364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T16:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: custom structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470861#M221365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ispfli.&lt;/P&gt;&lt;P&gt;   write:/ ispfli-carrid, ispfli-connid.&lt;/P&gt;&lt;P&gt;   read table ispfli-ibookings into xbookings index 1.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    write:/ 'THe first customer to book is:', xbookings-customid.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;rich, in the above code what is the use of index , here u r looping ispfli suppose if i write like this then what happens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ispfli.&lt;/P&gt;&lt;P&gt; write:/ ispfli-carrid, ispfli-connid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xbookings = ispfli-ibbokings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    write:/ 'THe first customer to book is:', xbookings-customid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 16:52:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470861#M221365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T16:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: custom structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470862#M221366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ispfli-ibookings is a internal table within the internal table ispfli.  The read statement here is simply just reading the first record in that table(ibookings)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing this statement will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;xbookings = ispfli-ibbokings.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you see that you are trying to move the internal table into the workarea called xbookings.  ISPFLI-IBOOKINGS has no header line, so this does not help. You will get a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 16:57:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470862#M221366</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-04T16:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: custom structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470863#M221367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 18:11:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-structure/m-p/1470863#M221367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T18:11:21Z</dc:date>
    </item>
  </channel>
</rss>

