<?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: getting more outputs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890455#M372903</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;Yes! you  should load the data in internal table and use LOOP node to write the data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your smart should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Node -&amp;gt; LOOP (for LS_BWPOS_IT)&lt;/P&gt;&lt;P&gt;Node -&amp;gt; Abap code to format the data to be peinted)&lt;/P&gt;&lt;P&gt;Node -&amp;gt; Text to write the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jan 2007 13:24:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-26T13:24:12Z</dc:date>
    <item>
      <title>getting more outputs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890453#M372901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got the following situation concerning my S m a r t f o r m:&lt;/P&gt;&lt;P&gt;The "Program lines" at the node HEADER there is existing below&lt;/P&gt;&lt;P&gt;shown code. The TEXT has the follwing entry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Text&lt;/P&gt;&lt;P&gt;Loading Point: &amp;amp;G_ABLD&amp;amp;	  Storage Depot: &amp;amp;G_HALLE&amp;amp;   Gate: &amp;amp;G_TOR&amp;amp; 	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Program lines&lt;/P&gt;&lt;P&gt;SELECT * FROM  /DCA/P000_BWPOS&lt;/P&gt;&lt;P&gt;          INTO  table LS_BWPOS_it&lt;/P&gt;&lt;P&gt;          WHERE KEYTYP EQ '/G2A/KEY_CU_ABL_PARTNER'.&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;LOOP AT  LS_BWPOS_it INTO LS_BWPOS.&lt;/P&gt;&lt;P&gt;  g_bw_data = LS_BWPOS.&lt;/P&gt;&lt;P&gt;  g_vstl    = g_bw_data+33(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if LC_VA_WERKS EQ g_vstl.&lt;/P&gt;&lt;P&gt;    g_abld    = g_bw_data+37(3).&lt;/P&gt;&lt;P&gt;    g_halle   = g_bw_data+143(1).&lt;/P&gt;&lt;P&gt;    g_tor     = g_bw_data+144(3).&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;The problem is I do get only one output instead of &lt;/P&gt;&lt;P&gt;many outputs. There are 4 entries in the table existing&lt;/P&gt;&lt;P&gt;which has been given out. What is wrong in that case.&lt;/P&gt;&lt;P&gt;All other variables which are mentioned here&lt;/P&gt;&lt;P&gt;they are declared global. Is it necessary to write&lt;/P&gt;&lt;P&gt;additional Loop in the TEXT section ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ilhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 13:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890453#M372901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T13:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: getting more outputs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890454#M372902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ertas,&lt;/P&gt;&lt;P&gt; YOu need to embed the text element inside a LOOP Element.&lt;/P&gt;&lt;P&gt;Right Click on the Main Window &lt;/P&gt;&lt;P&gt;Create-&amp;gt;Flow Logic-&amp;gt;Loop.&lt;/P&gt;&lt;P&gt;Then Cut the text and paste under the loop node.&lt;/P&gt;&lt;P&gt;IN the loop element, use the LS_BWPOS_it table and work area LS_BWPOS, which should be already declared in the global definition section.&lt;/P&gt;&lt;P&gt;The program lines can now omit the loop statement.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 13:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890454#M372902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T13:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: getting more outputs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890455#M372903</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;Yes! you  should load the data in internal table and use LOOP node to write the data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your smart should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Node -&amp;gt; LOOP (for LS_BWPOS_IT)&lt;/P&gt;&lt;P&gt;Node -&amp;gt; Abap code to format the data to be peinted)&lt;/P&gt;&lt;P&gt;Node -&amp;gt; Text to write the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 13:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890455#M372903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T13:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: getting more outputs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890456#M372904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry how do you mean it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Node -&amp;gt; LOOP (for LS_BWPOS_IT)&lt;/P&gt;&lt;P&gt;Node -&amp;gt; Abap code to format the data to be peinted)&lt;/P&gt;&lt;P&gt;Node -&amp;gt; Text to write the data&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;Node -&amp;gt; LOOP (for LS_BWPOS_IT)&lt;/P&gt;&lt;P&gt;             Node -&amp;gt; Abap code to format the data to be peinted)&lt;/P&gt;&lt;P&gt;Node -&amp;gt; Text to write the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Node -&amp;gt; Abap code to format the data to be peinted)&lt;/P&gt;&lt;P&gt;Node -&amp;gt; LOOP (for LS_BWPOS_IT)&lt;/P&gt;&lt;P&gt;         Node -&amp;gt; Text to write the data&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;Ilhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 13:33:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890456#M372904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T13:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: getting more outputs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890457#M372905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry but with tis logic it doesn' t work. This affected area&lt;/P&gt;&lt;P&gt;is empty now something else overwrites this section&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;YOu need to embed the text element inside a LOOP Element.
Right Click on the Main Window 
Create-&amp;gt;Flow Logic-&amp;gt;Loop.
Then Cut the text and paste under the loop node.
IN the loop element, use the LS_BWPOS_it table and work area LS_BWPOS, which should be already declared in the global definition section.
The program lines can now omit the loop statement.
Regards,
Ravi 


Node -&amp;gt; LOOP (for LS_BWPOS_IT)
Node -&amp;gt; Abap code to format the data to be peinted)
Node -&amp;gt; Text to write the data&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 13:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890457#M372905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T13:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: getting more outputs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890458#M372906</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;I believe your code is right but now it has to be transfer in a LOOP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you need:&lt;/P&gt;&lt;P&gt;A) to create a COMMAND LINE to load the interna table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text&lt;/P&gt;&lt;P&gt;Loading Point: &amp;amp;G_ABLD&amp;amp; Storage Depot: &amp;amp;G_HALLE&amp;amp; Gate: &amp;amp;G_TOR&amp;amp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Program lines&lt;/P&gt;&lt;P&gt;SELECT * FROM /DCA/P000_BWPOS&lt;/P&gt;&lt;P&gt;INTO table LS_BWPOS_it&lt;/P&gt;&lt;P&gt;WHERE KEYTYP EQ '/G2A/KEY_CU_ABL_PARTNER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B) (Node -&amp;gt; LOOP (for LS_BWPOS_IT) to create a LOOP node: &lt;/P&gt;&lt;P&gt;- by the right button of the mouse-&amp;gt; Create-&amp;gt;Flow Logic-&amp;gt;Loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT LS_BWPOS_it INTO LS_BWPOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C) (Node -&amp;gt; Abap code to format the data to be peinted) Into the LOOP create PROAGRAM LINES node:&lt;/P&gt;&lt;P&gt;- by the right button of the mouse-&amp;gt; Create-&amp;gt;Flow Logic-&amp;gt;Command Lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;_bw_data = LS_BWPOS.
g_vstl = g_bw_data+33(4).

if LC_VA_WERKS EQ g_vstl.
  g_abld = g_bw_data+37(3).
  g_halle = g_bw_data+143(1).
  g_tor = g_bw_data+144(3).
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D) (Node -&amp;gt; Text to write the data) Into the LOOP and after the COMMAND LINES insert a TEXT node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loading Point: &amp;amp;G_ABLD&amp;amp; Storage Depot: &amp;amp;G_HALLE&amp;amp; Gate: &amp;amp;G_TOR&amp;amp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 14:03:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890458#M372906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T14:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: getting more outputs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890459#M372907</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;I have created a COMMAND LINE and what happens it dumps:&lt;/P&gt;&lt;P&gt;I have written the fieldname of my internaltable without any value.&lt;/P&gt;&lt;P&gt;What can I write in the field named value inside of COMMAND LINE ?&lt;/P&gt;&lt;P&gt;And why command line ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 14:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890459#M372907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T14:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: getting more outputs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890460#M372908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which dump?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes of course&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 14:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-more-outputs/m-p/1890460#M372908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T14:27:02Z</dc:date>
    </item>
  </channel>
</rss>

