<?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: ABAP 'WITH' Clause in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-with-clause/m-p/1901015#M376182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing like that, but of cousre your requirement can be done in ABAP other ways.   For example, If you want to dynamically fill a field, you can use the ASSIGN COMPONENT statement.   I would really have to understand your required in order to point you in the right direction.  Can you explain a bit more?&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>Wed, 10 Jan 2007 20:39:05 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-01-10T20:39:05Z</dc:date>
    <item>
      <title>ABAP 'WITH' Clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-with-clause/m-p/1901013#M376180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does ABAP have something like a WITH clause?&lt;/P&gt;&lt;P&gt;Other languages allow me to something like ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WITH myrec DO&lt;/P&gt;&lt;P&gt;{do some processing}&lt;/P&gt;&lt;P&gt;ENDWITH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find that I am ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-field1 = 'newdata1'.&lt;/P&gt;&lt;P&gt;wa-field1 = 'newdata2'.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;wa-field99 = 'newdata99'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... seems very labourious&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 20:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-with-clause/m-p/1901013#M376180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T20:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 'WITH' Clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-with-clause/m-p/1901014#M376181</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;Welcome to SDN...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont believe that ABAP has &amp;lt;b&amp;gt;WITH&amp;lt;/b&amp;gt; Clause...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP Have some of below clauses...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT&lt;/P&gt;&lt;P&gt;ENDSELECT&lt;/P&gt;&lt;P&gt;INTO&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;HAVING&lt;/P&gt;&lt;P&gt;ORDER-BY&lt;/P&gt;&lt;P&gt;GROUP-BY&lt;/P&gt;&lt;P&gt;FROM&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can also use loops like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DO...ENDDO.&lt;/P&gt;&lt;P&gt;WHILE....ENDWHILE.&lt;/P&gt;&lt;P&gt;LOOP....ENDLOOP.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;CNU&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 20:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-with-clause/m-p/1901014#M376181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T20:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 'WITH' Clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-with-clause/m-p/1901015#M376182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing like that, but of cousre your requirement can be done in ABAP other ways.   For example, If you want to dynamically fill a field, you can use the ASSIGN COMPONENT statement.   I would really have to understand your required in order to point you in the right direction.  Can you explain a bit more?&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>Wed, 10 Jan 2007 20:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-with-clause/m-p/1901015#M376182</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-10T20:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 'WITH' Clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-with-clause/m-p/1901016#M376183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you can build an macro. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE macro. &lt;/P&gt;&lt;P&gt;  ... &amp;amp;1 ... &amp;amp;9 ... &lt;/P&gt;&lt;P&gt;END-OF-DEFINITION. &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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 20:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-with-clause/m-p/1901016#M376183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T20:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 'WITH' Clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-with-clause/m-p/1901017#M376184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

data: begin of xstruc,
      fld1(10) type c,
      fld2(10) type c,
      fld3(10) type c,
      fld4(10) type c,
      fld5(10) type c,
      end of xstruc.

data: istr type table of string with header line.
field-symbols: &amp;lt;fs&amp;gt; .

istr = 'Value A'.  append istr.
istr = 'Value B'.  append istr.
istr = 'Value C'.  append istr.
istr = 'Value D'.  append istr.
istr = 'Value E'.  append istr.


loop at istr.

  assign component sy-tabix of structure xstruc to &amp;lt;fs&amp;gt;.
  if sy-subrc &amp;lt;&amp;gt; 0.
    exit.
  endif.

  &amp;lt;fs&amp;gt; = istr.


endloop.


write:/ xstruc-fld1,
        xstruc-fld2,
        xstruc-fld3,
        xstruc-fld4,
        xstruc-fld5.

&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>Wed, 10 Jan 2007 20:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-with-clause/m-p/1901017#M376184</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-10T20:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 'WITH' Clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-with-clause/m-p/1901018#M376185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So far things look like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:  itab type table of t_itab,&lt;/P&gt;&lt;P&gt;         w_itab type t_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_itab-tabname = 'Tablename'.&lt;/P&gt;&lt;P&gt;w_itab-position = 'Pos'.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;append w_itab to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereas it might read ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with w_itab do&lt;/P&gt;&lt;P&gt;tabname = 'Tablename'.&lt;/P&gt;&lt;P&gt;position = 'Pos'.&lt;/P&gt;&lt;P&gt;endwith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 20:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-with-clause/m-p/1901018#M376185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T20:56:06Z</dc:date>
    </item>
  </channel>
</rss>

