<?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: Problem with secondary window in smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809126#M1781006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zahid,&lt;/P&gt;&lt;P&gt;thanks for your reply, please see the screenshot, in my program lines &lt;STRONG&gt;%code10 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i have written these code lines, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CLEAR &lt;/SPAN&gt;V_COUNT&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;Describe &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;it_eban &lt;SPAN class="L0S52"&gt;lines &lt;/SPAN&gt;v_count&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; counter &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;counter + &lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;loop &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;at &lt;/SPAN&gt;it_item&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;sum &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;it_item&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;menge * it_item&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;preis &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; value_rs &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;value_rs + &lt;SPAN class="L0S52"&gt;sum &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;endloop&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;sort &lt;/SPAN&gt;it_item &lt;SPAN class="L0S52"&gt;BY &lt;/SPAN&gt;BNFPO&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;* condense value_rs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;select &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;single &lt;/SPAN&gt;adrnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;twlad&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;adrnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;where &lt;/SPAN&gt;werks &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;it_eban&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;werks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;lgort &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;it_eban&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;lgort&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after the table where i am fetching data, i have written according to you (i have used v_count instead of v_lines)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;SY&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;SUBRC &lt;SPAN class="L0S52"&gt;EQ &lt;/SPAN&gt;V_COUNT&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; V_CHK &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Y'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is that by doing this, i didn't get my address window and also, when the value of a PR ends then next &lt;/P&gt;&lt;P&gt;value starts on the same page, see the second screenshot, please sujjest me what can i do to avoid it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 05:20:28 GMT</pubDate>
    <dc:creator>former_member187748</dc:creator>
    <dc:date>2013-10-23T05:20:28Z</dc:date>
    <item>
      <title>Problem with secondary window in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809120#M1781000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P id="yui_3_13_0_rc_1_1_1382436273195_13154" style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;Hi all,&lt;/P&gt;&lt;P style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN id="yui_3_13_0_rc_1_1_1382436273195_13153" style="font-size: 10pt; color: #575757;"&gt;i have a smartform (created by previous abaper), it is used for purchase requisition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P id="yui_3_13_0_rc_1_1_1382436273195_13157" style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN id="yui_3_13_0_rc_1_1_1382436273195_13158" style="font-size: 10pt; color: #575757;"&gt;The problem is that it was used for only single PR. Because there is a problem in it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P id="yui_3_13_0_rc_1_1_1382436273195_13160" style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN id="yui_3_13_0_rc_1_1_1382436273195_13159" style="font-size: 10pt; color: #575757;"&gt;The smartform consists of a secondary window in which Address are get printed by passing &lt;/SPAN&gt;&lt;/P&gt;&lt;P id="yui_3_13_0_rc_1_1_1382436273195_13161" style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN id="yui_3_13_0_rc_1_1_1382436273195_13165" style="font-weight: bold;"&gt;&lt;SPAN id="yui_3_13_0_rc_1_1_1382436273195_13164" style="font-size: 10pt; color: #575757;"&gt;ADRNR, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN id="yui_3_13_0_rc_1_1_1382436273195_13162" style="font-size: 10pt; color: #575757;"&gt;now if i wants to use it for multiple PR No, this address window gets printed at every page,&lt;/SPAN&gt;&lt;/P&gt;&lt;P id="yui_3_13_0_rc_1_1_1382436273195_13166" style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN id="yui_3_13_0_rc_1_1_1382436273195_13167" style="font-size: 10pt; color: #575757;"&gt;so the problem is that if any PR have many line items spread into say 3 pages, then this window &lt;/SPAN&gt;&lt;/P&gt;&lt;P id="yui_3_13_0_rc_1_1_1382436273195_13168" style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN id="yui_3_13_0_rc_1_1_1382436273195_13169" style="font-size: 10pt; color: #575757;"&gt;overlaps the line item in second and third page line items, so my requirement is that "when ever the line&lt;/SPAN&gt;&lt;/P&gt;&lt;P id="yui_3_13_0_rc_1_1_1382436273195_13170" style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN id="yui_3_13_0_rc_1_1_1382436273195_13171" style="font-size: 10pt; color: #575757;"&gt;items corresponds to a PR will ends,then only this address window should print its value. I have changed&lt;/SPAN&gt;&lt;/P&gt;&lt;P id="yui_3_13_0_rc_1_1_1382436273195_13172" style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN id="yui_3_13_0_rc_1_1_1382436273195_13173" style="font-size: 10pt; color: #575757;"&gt;conditions accordingly, but not getting desired result".&lt;/SPAN&gt;&lt;/P&gt;&lt;P id="yui_3_13_0_rc_1_1_1382436273195_13174" style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN style="font-size: 10pt; color: #575757;"&gt; Attach is the screenshot of&amp;nbsp; my smartform, in which i have used window2 to fetch address, and it is to be&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN style="font-size: 10pt; color: #575757;"&gt;printed inside template2.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P id="yui_3_13_0_rc_1_1_1382436273195_13175" style="color: #000000; font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"&gt;&lt;SPAN style="font-size: 10pt; color: #575757;"&gt;Please sujjest me what can i do next.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 13:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809120#M1781000</guid>
      <dc:creator>former_member187748</dc:creator>
      <dc:date>2013-10-22T13:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with secondary window in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809121#M1781001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For address window set condition 'Only after end of main window'. So that it will print only when all data is printed from main window. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Koustubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 13:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809121#M1781001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-22T13:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with secondary window in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809122#M1781002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Koustubh,&lt;/P&gt;&lt;P&gt;thanks for your reply, but its not so easy, i have tried at my best,if i put conditions according to you then it prints for only &lt;SPAN style="font-size: 10pt;"&gt;last value of PR.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 13:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809122#M1781002</guid>
      <dc:creator>former_member187748</dc:creator>
      <dc:date>2013-10-22T13:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with secondary window in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809123#M1781003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjeev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all how are you printing multiple PR's by calling same smartform again in a loop only i believe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 13:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809123#M1781003</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2013-10-22T13:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with secondary window in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809124#M1781004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dcleare two global variable .&lt;/P&gt;&lt;P&gt;v_lines type i.&lt;/P&gt;&lt;P&gt;v_chk type char1 default 'N'.&lt;/P&gt;&lt;P&gt;and put a program lines before the line item .&lt;/P&gt;&lt;P&gt;clear: v_lines&lt;/P&gt;&lt;P&gt;describe it_items lines v.&lt;/P&gt;&lt;P&gt;give this variable in the output of program lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the end of the put another program lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the input parameters give both the variables v_lines and v_chk&amp;nbsp; of the program lines.&lt;/P&gt;&lt;P&gt;and in the output parameters give v_chk.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if sy-subc eq v_lines.&lt;/P&gt;&lt;P&gt;v_chk = 'Y'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in the address condition just put v_chk = 'Y'.&lt;/P&gt;&lt;P&gt;and at the end of address put another program lines&lt;/P&gt;&lt;P&gt;and in the input parameters&lt;/P&gt;&lt;P&gt;v_chk. &lt;/P&gt;&lt;P&gt;in the code.&lt;/P&gt;&lt;P&gt;v_chk = 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this might be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 13:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809124#M1781004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-22T13:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with secondary window in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809125#M1781005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think simple option would be calling your smartform inside loop which has all PR to be printed. Inside smartform just keep logic for fetching data for 1 PR at a time.&lt;/P&gt;&lt;P&gt;This should solve the issue.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Koustubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 14:45:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809125#M1781005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-22T14:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with secondary window in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809126#M1781006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zahid,&lt;/P&gt;&lt;P&gt;thanks for your reply, please see the screenshot, in my program lines &lt;STRONG&gt;%code10 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i have written these code lines, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CLEAR &lt;/SPAN&gt;V_COUNT&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;Describe &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;it_eban &lt;SPAN class="L0S52"&gt;lines &lt;/SPAN&gt;v_count&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; counter &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;counter + &lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;loop &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;at &lt;/SPAN&gt;it_item&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;sum &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;it_item&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;menge * it_item&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;preis &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; value_rs &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;value_rs + &lt;SPAN class="L0S52"&gt;sum &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;endloop&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;sort &lt;/SPAN&gt;it_item &lt;SPAN class="L0S52"&gt;BY &lt;/SPAN&gt;BNFPO&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;* condense value_rs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;select &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;single &lt;/SPAN&gt;adrnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;twlad&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;adrnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;where &lt;/SPAN&gt;werks &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;it_eban&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;werks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;lgort &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;it_eban&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;lgort&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after the table where i am fetching data, i have written according to you (i have used v_count instead of v_lines)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;SY&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;SUBRC &lt;SPAN class="L0S52"&gt;EQ &lt;/SPAN&gt;V_COUNT&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; V_CHK &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Y'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is that by doing this, i didn't get my address window and also, when the value of a PR ends then next &lt;/P&gt;&lt;P&gt;value starts on the same page, see the second screenshot, please sujjest me what can i do to avoid it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 05:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809126#M1781006</guid>
      <dc:creator>former_member187748</dc:creator>
      <dc:date>2013-10-23T05:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with secondary window in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809127#M1781007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nabheet,&lt;/P&gt;&lt;P&gt;actually the driver program was written by previous abaper, now what i can told you is that in my smartforms the code written to fetch is as below...&lt;/P&gt;&lt;P&gt;From your words, i am not getting what you wants to say, please clear it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Describe &lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;it_eban &lt;SPAN class="L0S52"&gt;lines &lt;/SPAN&gt;v_count&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; counter &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;counter + &lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;loop &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;at &lt;/SPAN&gt;it_item&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;sum &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;it_item&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;menge * it_item&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;preis &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; value_rs &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;value_rs + &lt;SPAN class="L0S52"&gt;sum &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;endloop&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;sort &lt;/SPAN&gt;it_item &lt;SPAN class="L0S52"&gt;BY &lt;/SPAN&gt;BNFPO&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;* condense value_rs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;select &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;single &lt;/SPAN&gt;adrnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;twlad&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;adrnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;where &lt;/SPAN&gt;werks &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;it_eban&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;werks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;lgort &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;it_eban&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;lgort&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 05:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809127#M1781007</guid>
      <dc:creator>former_member187748</dc:creator>
      <dc:date>2013-10-23T05:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with secondary window in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809128#M1781008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My question is how are you printing multiple PR? Are you handling them via Driver program where for each PR smartform is called or you do some logic in smartform only?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 06:01:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809128#M1781008</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2013-10-23T06:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with secondary window in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809129#M1781009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather then using windows for the address.&lt;/P&gt;&lt;P&gt;put your template on the main window and remove the secodary window if possible and adjust your address template. It will be easier for you to control. using multiple windows some times become headache. or you can don one thing more use a line in the footer of the table and try to print it accordingly it will always print for you at the end of the lines item of similar PR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 06:12:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809129#M1781009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-23T06:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with secondary window in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809130#M1781010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hameed,&lt;/P&gt;&lt;P&gt;tell me one thing, through address window we pass the value of "ADRNR", and it provides me the &lt;/P&gt;&lt;P&gt;details related to that address no., but how can i fetch these values inside my template, if i will use &lt;/P&gt;&lt;P&gt;the command &amp;amp;adrnr&amp;amp;, then it will provide me the details ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 06:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809130#M1781010</guid>
      <dc:creator>former_member187748</dc:creator>
      <dc:date>2013-10-23T06:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with secondary window in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809131#M1781011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; you want to display you can use a global variable for address and use command line to move it to that global variable it will exist global for all the text and templates. then pass that variable to address. and before moving just clear you declare adrnr variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 07:06:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809131#M1781011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-23T07:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with secondary window in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809132#M1781012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Nabheet,&lt;/P&gt;&lt;P&gt;i have a main driver program to call&amp;nbsp; my smartform, but there are some coding inside my smartform&lt;/P&gt;&lt;P&gt;to show values, and in the same i am not able to handle my windows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i am enclosing my smartform , if possible please correct the code inside, so that for multiple line items&lt;/P&gt;&lt;P&gt;and for multiple PO, i didn't face any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 13:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809132#M1781012</guid>
      <dc:creator>former_member187748</dc:creator>
      <dc:date>2013-10-23T13:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with secondary window in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809133#M1781013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Koustubh,&lt;/P&gt;&lt;P&gt;i wants to do the same here but not getting how to brake the main driver program code,&lt;/P&gt;&lt;P&gt;here is my SF, if you can do something then it would be a great help for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 13:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-secondary-window-in-smartforms/m-p/9809133#M1781013</guid>
      <dc:creator>former_member187748</dc:creator>
      <dc:date>2013-10-23T13:29:22Z</dc:date>
    </item>
  </channel>
</rss>

