<?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: Variable window in SAP script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/variable-window-in-sap-script/m-p/4520031#M1068704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;You can't print internal table data in Variable window, you have to print them in Main window&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module &lt;STRONG&gt;WRITE_FORM_LINES&lt;/STRONG&gt; allows multiple lines to be &lt;STRONG&gt;APPENDED&lt;/STRONG&gt; to a non-main window. You should note that the text lines must have the SAPscript ITF format. In the absence of other information, the system uses identically named formatting attributes (character and paragraph formats) of the form to format the content of the text lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an approach which allows multiple records / lines to be output in a variable window. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you transfer your information from the internal table into the text lines, complete with appropriate formatting symbols, you will find that the text lines are output nicely formatted in your non-Main window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at internal table into WCSCATALOG.
clear tline.
tline-tdformat = 'S1'.
concatenate '&amp;lt;B&amp;gt;' WCSCATALOG-CODEX '&amp;lt;/&amp;gt; ,, ' WCSCATALOG-STXT into ltline-tdline.
append tline to tlines.
endloop.
call function 'WRITE_FORM_LINES'
..

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2011 06:36:24 GMT</pubDate>
    <dc:creator>AndrewBarnard</dc:creator>
    <dc:date>2011-07-06T06:36:24Z</dc:date>
    <item>
      <title>Variable window in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variable-window-in-sap-script/m-p/4520028#M1068701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem in SAP scripts while printing an internal table data in to a variable window. It is overwriting the contents.&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;In my internal table (itab) with only one filed (text) have the below data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firt line&lt;/P&gt;&lt;P&gt;second line&lt;/P&gt;&lt;P&gt;third line&lt;/P&gt;&lt;P&gt;fourth line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looping the internal table and within the loop I am calling the write form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In script I am writing like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;amp;itab-text&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the output I am getting only last line.&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fourth line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need to print all lines one by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Krishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 07:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variable-window-in-sap-script/m-p/4520028#M1068701</guid>
      <dc:creator>former_member734916</dc:creator>
      <dc:date>2008-09-24T07:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variable window in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variable-window-in-sap-script/m-p/4520029#M1068702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to print table data u have to use MAIN window. Instead of variable window create a main window and display ur data. But if u know that only 4 rows from the table need to be displayed then u can store each record to a separate variable and then display these variables in the variable window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 07:35:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variable-window-in-sap-script/m-p/4520029#M1068702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T07:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Variable window in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variable-window-in-sap-script/m-p/4520030#M1068703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't print internal table data in Variable window, you have to print them in Main window&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 07:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variable-window-in-sap-script/m-p/4520030#M1068703</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2008-09-24T07:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Variable window in SAP script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variable-window-in-sap-script/m-p/4520031#M1068704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;You can't print internal table data in Variable window, you have to print them in Main window&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module &lt;STRONG&gt;WRITE_FORM_LINES&lt;/STRONG&gt; allows multiple lines to be &lt;STRONG&gt;APPENDED&lt;/STRONG&gt; to a non-main window. You should note that the text lines must have the SAPscript ITF format. In the absence of other information, the system uses identically named formatting attributes (character and paragraph formats) of the form to format the content of the text lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an approach which allows multiple records / lines to be output in a variable window. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you transfer your information from the internal table into the text lines, complete with appropriate formatting symbols, you will find that the text lines are output nicely formatted in your non-Main window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at internal table into WCSCATALOG.
clear tline.
tline-tdformat = 'S1'.
concatenate '&amp;lt;B&amp;gt;' WCSCATALOG-CODEX '&amp;lt;/&amp;gt; ,, ' WCSCATALOG-STXT into ltline-tdline.
append tline to tlines.
endloop.
call function 'WRITE_FORM_LINES'
..

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 06:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variable-window-in-sap-script/m-p/4520031#M1068704</guid>
      <dc:creator>AndrewBarnard</dc:creator>
      <dc:date>2011-07-06T06:36:24Z</dc:date>
    </item>
  </channel>
</rss>

