<?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: Smartform issues in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431677#M12266</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;Here is how I would deal with it :&lt;/P&gt;
  &lt;P&gt;- Lets consider your old table is named T1 with fields "serial" and "value" &lt;/P&gt;
  &lt;P&gt;- Create a local data table with 6 columns (let call it T3) : serial1, value1, serial2, value2, serial3, value3&lt;/P&gt;
  &lt;P&gt;- Before table node, in the same folder, create a logical ABAP with in input : your old table ("T1"), in output "T3"&lt;/P&gt;
  &lt;P&gt;Put a code like this :&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DATA w_mod TYPE p.
CLEAR t3.
FIELD-SYMBOLS &amp;lt;l1&amp;gt; LIKE LINE OF t1.
DATA l3 LIKE LINE OF t3.
CLEAR l3.
LOOP AT t1 ASSIGNING &amp;lt;l1&amp;gt;.
  w_mod = sy-tabix MOD 3.
  IF w_mod = 1.
    l3-serial1 = &amp;lt;l1&amp;gt;-serial.
    l3-valuel1 = &amp;lt;l1&amp;gt;-value.
  ELSEIF w_mod = 2.
    l3-serial2 = &amp;lt;l1&amp;gt;-serial.
    l3-valuel2 = &amp;lt;l1&amp;gt;-value.
  ELSE.
    l3-serial3 = &amp;lt;l1&amp;gt;-serial.
    l3-valuel3 = &amp;lt;l1&amp;gt;-value.
    APPEND l3 TO t3.
    CLEAR l3.
  ENDIF.
ENDLOOP.
IF l3 IS NOT INITIAL.
  APPEND l3 TO t3.
  CLEAR l3.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;- Display T3 instead of T1&lt;/P&gt;
  &lt;P&gt;Best regards&lt;/P&gt;
  &lt;P&gt;Bertrand&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jul 2017 14:35:38 GMT</pubDate>
    <dc:creator>bertrand_delvallee</dc:creator>
    <dc:date>2017-07-04T14:35:38Z</dc:date>
    <item>
      <title>Smartform issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431675#M12264</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;In Smartform , when i Print Single column of  Serial numbers and its corresponding invoice numbers all working well but when i try  to print multiple column of serial number and invoice number on same line type in table control,all numbers gets repeat and serial numbers also not in sequence  ,&lt;/P&gt;&lt;P&gt;and also if quantity/po is 23 then 23 serial number need to update and rest will be blank&lt;/P&gt;&lt;P&gt;I have attached both the snap  PFA&lt;A href="https://answers.sap.com/storage/attachments/46352-capture2.png"&gt;capture2.png&lt;/A&gt;&lt;A href="https://answers.sap.com/storage/attachments/46353-capture.png"&gt;capture.png&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Please help me out !!!!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 12:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431675#M12264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-07-04T12:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431676#M12265</link>
      <description>&lt;P&gt;It is propably some bug in Your code / smartform&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 14:00:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431676#M12265</guid>
      <dc:creator>michal_majer</dc:creator>
      <dc:date>2017-07-04T14:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431677#M12266</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;Here is how I would deal with it :&lt;/P&gt;
  &lt;P&gt;- Lets consider your old table is named T1 with fields "serial" and "value" &lt;/P&gt;
  &lt;P&gt;- Create a local data table with 6 columns (let call it T3) : serial1, value1, serial2, value2, serial3, value3&lt;/P&gt;
  &lt;P&gt;- Before table node, in the same folder, create a logical ABAP with in input : your old table ("T1"), in output "T3"&lt;/P&gt;
  &lt;P&gt;Put a code like this :&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DATA w_mod TYPE p.
CLEAR t3.
FIELD-SYMBOLS &amp;lt;l1&amp;gt; LIKE LINE OF t1.
DATA l3 LIKE LINE OF t3.
CLEAR l3.
LOOP AT t1 ASSIGNING &amp;lt;l1&amp;gt;.
  w_mod = sy-tabix MOD 3.
  IF w_mod = 1.
    l3-serial1 = &amp;lt;l1&amp;gt;-serial.
    l3-valuel1 = &amp;lt;l1&amp;gt;-value.
  ELSEIF w_mod = 2.
    l3-serial2 = &amp;lt;l1&amp;gt;-serial.
    l3-valuel2 = &amp;lt;l1&amp;gt;-value.
  ELSE.
    l3-serial3 = &amp;lt;l1&amp;gt;-serial.
    l3-valuel3 = &amp;lt;l1&amp;gt;-value.
    APPEND l3 TO t3.
    CLEAR l3.
  ENDIF.
ENDLOOP.
IF l3 IS NOT INITIAL.
  APPEND l3 TO t3.
  CLEAR l3.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;- Display T3 instead of T1&lt;/P&gt;
  &lt;P&gt;Best regards&lt;/P&gt;
  &lt;P&gt;Bertrand&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 14:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431677#M12266</guid>
      <dc:creator>bertrand_delvallee</dc:creator>
      <dc:date>2017-07-04T14:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431678#M12267</link>
      <description>&lt;P&gt;thank you for reply Bertrand&lt;/P&gt;&lt;P&gt;i am taking ''cooler sr. number''  from objk (sernr)  and ''serial number'' as a count ,i had tried&lt;/P&gt;&lt;P&gt; what u suggested but still not got succeed  .&lt;/P&gt;&lt;P&gt;any another option ??&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 12:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431678#M12267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-07-05T12:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431679#M12268</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;What is the problem now :&lt;/P&gt;&lt;P&gt;- T3 is not well filled?&lt;/P&gt;&lt;P&gt;- T3 display is corrupted?&lt;/P&gt;&lt;P&gt;- Other?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 15:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431679#M12268</guid>
      <dc:creator>bertrand_delvallee</dc:creator>
      <dc:date>2017-07-05T15:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431680#M12269</link>
      <description>&lt;P&gt;same happens again ,count is  printing as ..........'''blank ......3,5,7,9 &lt;/P&gt;&lt;P&gt;and cooler serial numbers repeating multiple times  &lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431680#M12269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-07-05T18:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431681#M12270</link>
      <description>&lt;P&gt;Can you please add a BREAK-POINT instruction after the last "endif." and tell us that contains T3 and T1?&lt;/P&gt;&lt;P&gt;( 10 rows should be enought)&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 08:19:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431681#M12270</guid>
      <dc:creator>bertrand_delvallee</dc:creator>
      <dc:date>2017-07-06T08:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431682#M12271</link>
      <description>&lt;P&gt;Bertrand,&lt;/P&gt;
  &lt;P&gt;This is at least the third time I have seen your answers promoting obsolete programming syntax. You should not be using internal tables with header lines. I know you state that it's with header lines just to simplify but that code &lt;EM&gt;will&lt;/EM&gt; be copied and used. Please update with non-obsolete statements.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 11:55:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431682#M12271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-07-11T11:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431683#M12272</link>
      <description>&lt;P&gt;Hello Richard,&lt;/P&gt;
  &lt;P&gt;I'm not promoting anything, I write understandable abap/pseudo code centered on a solution and explaining how it works. I'm not answering "please copy/paste". Moreover here we don't even know the tables names and fields.&lt;/P&gt;
  &lt;P&gt;Header line I may used in some of my answers are in a context. TABLE parameter may be obsolete in FM and Smartforms interface but it still used by standard. For example, when you deal with IDOC there are template FM that you have to copy in Z* and they contained TABLE parameters. Of course you can then ignore the header line functionality in your code. I do. But doing so you can't reuse standard example codes. &lt;/P&gt;
  &lt;P&gt;Header line is evil : don't use it. Answer edited.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 10:06:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-issues/m-p/431683#M12272</guid>
      <dc:creator>bertrand_delvallee</dc:creator>
      <dc:date>2017-07-19T10:06:22Z</dc:date>
    </item>
  </channel>
</rss>

