<?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: Level printing problem in smartform. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/level-printing-problem-in-smartform/m-p/10061428#M1810997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you are trying to do with the secondary window? Can you share the SF-Tree and a printout, that I can see, what you want finally the Smartforms to do.&lt;/P&gt;&lt;P&gt;I'm not sure, if this is possible, what you are trying and I'm not sure, if I understand your problem at all&lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/599/images/emoticons/confused.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Mar 2014 11:57:35 GMT</pubDate>
    <dc:creator>Florian</dc:creator>
    <dc:date>2014-03-02T11:57:35Z</dc:date>
    <item>
      <title>Level printing problem in smartform.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/level-printing-problem-in-smartform/m-p/10061424#M1810993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;Good day.&lt;/P&gt;&lt;P&gt;Developing an smartform which will print levels based on counter number. For this reason i am doing the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i = 6.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;&amp;nbsp; READ TABLE it_final INTO wa_final INDEX i.&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND wa_final TO it_main.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = i + 6.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ELSE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXIT.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;LOOP AT it_main INTO wa_final.&lt;/P&gt;&lt;P&gt;&amp;nbsp; DELETE it_final WHERE container_no = wa_final-container_no.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it_main will contain only 6,12 or 18th row number from it_final. So, if i have to print 6 levels per page, then for counter number 20 there should be 4 pages. But using this condition, counter number 13 and 20 also going to it_main.i, e 5 pages are showing now. Can you solve the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: First 2 pages shows right result but from page 3 it starts problem. According to my logic now it_main is containing data 6,12,18,13,20 !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 10:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/level-printing-problem-in-smartform/m-p/10061424#M1810993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-02T10:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Level printing problem in smartform.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/level-printing-problem-in-smartform/m-p/10061425#M1810994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Taniya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The coding itself what you post should work fine, but I'm not sure, if you described your &lt;STRONG&gt;real&lt;/STRONG&gt; problem.&lt;/P&gt;&lt;P&gt;Where do you call this coding, initialize or before the interface?&lt;/P&gt;&lt;P&gt;Perhaps you call the coding in the loop, so it_final itself is modified. If so, move the coding to initialize-event or better, before the interface is called.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&amp;nbsp; DELETE it_final WHERE container_no = wa_final-container_no.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another point clould be, that you didn't clear your it_main before and call the print twice&lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/599/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesnt help, you have to share more informations about it. &lt;/P&gt;&lt;P&gt;Without having a look at your itab and the surrounded content, it will be hard, to give you more helpful answers. Also post a screenshot of the smartforms-tree and mark the relevant parts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you out, if not, you know what to do&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/599/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 11:12:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/level-printing-problem-in-smartform/m-p/10061425#M1810994</guid>
      <dc:creator>Florian</dc:creator>
      <dc:date>2014-03-02T11:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Level printing problem in smartform.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/level-printing-problem-in-smartform/m-p/10061426#M1810995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Florian for your reply. The code not works if written in initialize event. The code is written under secondary window.&amp;nbsp; I am not sure where to clear it_main, the rest of code are,&lt;/P&gt;&lt;P&gt;clear : wa_1, wa_2, wa_3, wa_4, wa_5.&lt;/P&gt;&lt;P&gt;LOOP AT it_final INTO wa_final.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; IF sy-tabix = 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_1 = wa_final.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ELSEIF sy-tabix = 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_2 = wa_final.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ELSEIF sy-tabix = 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_3 = wa_final.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ELSEIF sy-tabix = 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_4 = wa_final.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ELSEIF sy-tabix = 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_5 = wa_final.&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp; ELSE.&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXIT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE it_final FROM 1 TO 5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 11:30:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/level-printing-problem-in-smartform/m-p/10061426#M1810995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-02T11:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Level printing problem in smartform.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/level-printing-problem-in-smartform/m-p/10061427#M1810996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For desire result 6,12,18,24&lt;/P&gt;&lt;P&gt;it_final contain value 6,7,8,9,10,11,12....&lt;/P&gt;&lt;P&gt;it_main contain value 6,12,18,24 ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_main INTO wa_final WHERE container_no NE wa_final-container_no.&lt;/P&gt;&lt;P&gt;&amp;nbsp; DELETE it_final from wa_final.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in&amp;nbsp; it_final only 6,12,18,24 ...wiil be left.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 11:51:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/level-printing-problem-in-smartform/m-p/10061427#M1810996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-02T11:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Level printing problem in smartform.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/level-printing-problem-in-smartform/m-p/10061428#M1810997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you are trying to do with the secondary window? Can you share the SF-Tree and a printout, that I can see, what you want finally the Smartforms to do.&lt;/P&gt;&lt;P&gt;I'm not sure, if this is possible, what you are trying and I'm not sure, if I understand your problem at all&lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/599/images/emoticons/confused.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 11:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/level-printing-problem-in-smartform/m-p/10061428#M1810997</guid>
      <dc:creator>Florian</dc:creator>
      <dc:date>2014-03-02T11:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Level printing problem in smartform.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/level-printing-problem-in-smartform/m-p/10061429#M1810998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution is done by doing 1st portion of code in initialization event. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 04:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/level-printing-problem-in-smartform/m-p/10061429#M1810998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-03T04:16:00Z</dc:date>
    </item>
  </channel>
</rss>

