<?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: I have a problem with smartforms. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003563#M1896593</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;actually the code you posted is not good enough to tell you is that the place to sort or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As of my understanding, in the mentioned sub-routine you are fetching the data. If so, you can sort the table as per your requirement after the Perform statement as table will be filled in Routine. If not, you need to post the appropriate code by mentioning that where have you written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 11:30:10 GMT</pubDate>
    <dc:creator>VijayaKrishnaG</dc:creator>
    <dc:date>2015-05-05T11:30:10Z</dc:date>
    <item>
      <title>I have a problem with smartforms.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003559#M1896589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;BR /&gt;I have a problem with smartforms.&lt;BR /&gt;I need to sort items in invoice by lowerst price to high, and i need to merge duplicate items.&lt;BR /&gt;Someone can help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 09:51:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003559#M1896589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-05T09:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem with smartforms.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003560#M1896590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Sorting has to be done in the report level itself or in Smartform insert Code node and write the logic in that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 10:06:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003560#M1896590</guid>
      <dc:creator>VijayaKrishnaG</dc:creator>
      <dc:date>2015-05-05T10:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem with smartforms.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003561#M1896591</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you are using report/print/driver program, then before passing the data to smartform, you can sort the values and pass. if not, after consuming the data into smartform, as told by vijaykrishna you can add the code node and write a code to sort the values before displaying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 10:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003561#M1896591</guid>
      <dc:creator>former_member218500</dc:creator>
      <dc:date>2015-05-05T10:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem with smartforms.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003562#M1896592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;cf_retcode &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;* select print data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;PERFORM &lt;/SPAN&gt;get_data &lt;SPAN class="L0S52"&gt;USING&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ls_print_data_to_read&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;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CHANGING &lt;/SPAN&gt;ls_addr_key&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_dlv&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;land&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_bil_invoice&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cf_retcode&lt;SPAN class="L0S55"&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the place where can i sort?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 11:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003562#M1896592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-05T11:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem with smartforms.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003563#M1896593</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;actually the code you posted is not good enough to tell you is that the place to sort or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As of my understanding, in the mentioned sub-routine you are fetching the data. If so, you can sort the table as per your requirement after the Perform statement as table will be filled in Routine. If not, you need to post the appropriate code by mentioning that where have you written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 11:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003563#M1896593</guid>
      <dc:creator>VijayaKrishnaG</dc:creator>
      <dc:date>2015-05-05T11:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem with smartforms.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003564#M1896594</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; I think you are talking about the structure "ls_bill_invoice" in the perform statement. if you are passing the same to smartform, then you can sort the same after perform statement or within "Form Endform". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I stil have so many doubts. Can you please post the code where you want to sort and merge the duplicates.. would like to know what does that perform get data does according to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; To make it simple, just sort the internal table which has data in it before passing to smartform. You will be passing the data to smartform using " Call Function &amp;lt;formname&amp;gt;" check in that part of code. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 11:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003564#M1896594</guid>
      <dc:creator>former_member218500</dc:creator>
      <dc:date>2015-05-05T11:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem with smartforms.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003565#M1896595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As for the merging of the duplicates you can use DELETE ADJACENT DUPLICATES FROM itable COMPARING ALL FIELDS after sorting the internal table you pass to the smartform. It will leave you with only the rows that are unique.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Noa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 12:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003565#M1896595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-05T12:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem with smartforms.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003566#M1896596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since this is for an invoice, I would guess that the lines might include quantity and total amount.&amp;nbsp; In that case, merging the lines isn't solved by deleting adjacent duplicates; you would need to COLLECT the entries into a separate itab in order to get correct total quantity and amount per item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 12:35:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003566#M1896596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-05T12:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem with smartforms.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003567#M1896597</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;View the image. &lt;/P&gt;&lt;P&gt;Creating loop you can add the fields for sorting.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/698516" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Hope it helpful,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;VenkatRamesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 13:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003567#M1896597</guid>
      <dc:creator>VenkatRamesh_V</dc:creator>
      <dc:date>2015-05-05T13:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem with smartforms.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003568#M1896598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As replied earlier the best thing would be do summation and processing in the Driver program itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using a Standard Driver program ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 06:53:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003568#M1896598</guid>
      <dc:creator>Sijin_Chandran</dc:creator>
      <dc:date>2015-05-07T06:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: I have a problem with smartforms.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003569#M1896599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;ls_bil_invoice&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;it_price &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;ls_price&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;APPEND &lt;/SPAN&gt;ls_price &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;lt_price&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;clear &lt;/SPAN&gt;ls_bil_invoice&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;it_price[]&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SORT &lt;/SPAN&gt;lt_price&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ascending &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BY &lt;/SPAN&gt;netwr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;at &lt;/SPAN&gt;lt_price &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;ls_price&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_price&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;itm_number &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;tabix + &lt;SPAN class="L0S32"&gt;10&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;append &lt;/SPAN&gt;ls_price &lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;ls_bil_invoice&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;it_price&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;This is source code for sort, now i need only merging.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 07:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-have-a-problem-with-smartforms/m-p/11003569#M1896599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-07T07:15:20Z</dc:date>
    </item>
  </channel>
</rss>

