<?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 Table in Smart forms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-smart-forms/m-p/3303548#M791069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table with three fields PERNR, ENAME, JOB DESCRIPTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a smart form and have created a table layout, now I want to display the values of the internal table in smart form. How do I achieve this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;~Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2008 23:38:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-22T23:38:37Z</dc:date>
    <item>
      <title>Table in Smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-smart-forms/m-p/3303548#M791069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table with three fields PERNR, ENAME, JOB DESCRIPTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a smart form and have created a table layout, now I want to display the values of the internal table in smart form. How do I achieve this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;~Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 23:38:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-smart-forms/m-p/3303548#M791069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T23:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Table in Smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-smart-forms/m-p/3303549#M791070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is a sample program in which used two internal tables&lt;/STRONG&gt;: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPORT YPRINTPRG_SMARTFORM1&lt;/STRONG&gt; . &lt;/P&gt;&lt;P&gt;DATA : ITKNA1 LIKE KNA1, &lt;/P&gt;&lt;P&gt;             ITVBAK LIKE VBAK OCCURS 0 WITH HEADER LINE. &lt;/P&gt;&lt;P&gt;PARAMETERS : PKUNNR LIKE KNA1-KUNNR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM KNA1 INTO ITKNA1 &lt;/P&gt;&lt;P&gt;   WHERE KUNNR = PKUNNR. &lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM VBAK &lt;/P&gt;&lt;P&gt;    INTO TABLE ITVBAK &lt;/P&gt;&lt;P&gt;   WHERE KUNNR = PKUNNR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION '/1BCDWB/SF00000011' &amp;#147;THIS FUNCTION MODULE CALLS THE  &lt;/P&gt;&lt;P&gt;                                      SMART FORM WE WILL GET THIS AT MENU ENVIRONEMENT &amp;#148; &lt;/P&gt;&lt;P&gt;  EXPORTING &lt;/P&gt;&lt;P&gt;  ITKNA1                     = ITKNA1 &lt;/P&gt;&lt;P&gt;  TABLES &lt;/P&gt;&lt;P&gt;      ITVBAK                = ITVBAK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IN SMART FORM&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;FORM INERFACE----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;IMPORT (TAB)  &lt;/P&gt;&lt;P&gt;  Parameter name      Type assignment    Reference type      Default value  &lt;/P&gt;&lt;P&gt;  ITKNA1                     LIKE                      KNA1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM INERFACE----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;TABLES (TAB) &lt;/P&gt;&lt;P&gt;  ITVBAK                     LIKE                       VBAK &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAGES &amp;amp; WINDOWS--&lt;DEL&gt;- MAIN WINDOW&lt;/DEL&gt;&lt;DEL&gt;-LOOP 1&lt;/DEL&gt;--DATA(TAB) &lt;/P&gt;&lt;P&gt;  ITVBAK         INTO               ITVBAK &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAGES &amp;amp; WINDOWS----&lt;DEL&gt;-MAIN WINDOW&lt;/DEL&gt;--&lt;DEL&gt;LOOP 1&lt;/DEL&gt;---TEXT 3(EDITOR)  &lt;/P&gt;&lt;P&gt;  &amp;amp;ITVBAK-VBELN&amp;amp;   &amp;amp;ITVBAK-ERDAT&amp;amp;  &amp;amp;ITVBAK-ERNAM&amp;amp;  &amp;amp;ITVBAK-NETWR&amp;amp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAGES &amp;amp; WINDOWS----&lt;DEL&gt;-HEADER WINDOW&lt;/DEL&gt;---TEXT 2(EDITOR) &lt;/P&gt;&lt;P&gt;  Customer No. &amp;amp;itkna1-kunnr&amp;amp;        CustomerName :&amp;amp;itkna1-name1&amp;amp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 00:14:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-smart-forms/m-p/3303549#M791070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T00:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Table in Smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-smart-forms/m-p/3303550#M791071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is a demo example to display Table in Smartform&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just follow this exercise. You will be fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Display a contents of a table on SmartForm with LOOP&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;There's a DDIC Table called "Ugyfel" containing 5 rows.  I'd like simply to display all the rows on a SF's Main window. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please follow this process to display the value from your table "Ugyfel" &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;1.   Go with a transaction code : smartforms &lt;/P&gt;&lt;P&gt;2.   Enter the form name like : ysmart_forms1 &lt;/P&gt;&lt;P&gt;3.   Create &lt;/P&gt;&lt;P&gt;4.   Enter the Description for the form &lt;/P&gt;&lt;P&gt;5.   From the left side window there will be a form interface to provide table ..... &lt;/P&gt;&lt;P&gt;6.   Go for tables option &lt;/P&gt;&lt;P&gt;7.   ugyfel like ugyfel(ref.type) &lt;/P&gt;&lt;P&gt;8.   Pages and window&lt;DEL&gt;-&amp;gt; page1&lt;/DEL&gt;-&amp;gt; main window &lt;/P&gt;&lt;P&gt;9.   Go to the form painter adjust the main window. &lt;/P&gt;&lt;P&gt;10. Select main window and right click --&amp;gt; go for create loop &lt;/P&gt;&lt;P&gt;11. Name: loop1, desc: display loop. &lt;/P&gt;&lt;P&gt;12. Internal table ktab into ktab. &lt;/P&gt;&lt;P&gt;13. select loop right click -&amp;gt; create a text &lt;/P&gt;&lt;P&gt;14. name  : text1,  desc: display text. &lt;/P&gt;&lt;P&gt;15. Go to change editor. &lt;/P&gt;&lt;P&gt;16. Write the mater what ever you want and if you want to display data from the table write the table fields as follows: &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&amp;amp;ktab-&amp;lt;field1&amp;gt;&amp;amp;    &amp;amp;ktab-&amp;lt;field2&amp;gt;&amp;amp; &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;save  &amp;amp; activate then execute ,, scripts will generate a function module  like : '/ibcdw/sf0000031' copy this function module and call in executable program... &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;For that &lt;/P&gt;&lt;P&gt;1.  go with abap editor se38. &lt;/P&gt;&lt;P&gt;2.  table: ugyfel. &lt;/P&gt;&lt;P&gt;3.  parameters: test like ugyfel-&amp;lt;field1&amp;gt;. &lt;/P&gt;&lt;P&gt;4.  data itab like ugyfel occurs 0 with header line. &lt;/P&gt;&lt;P&gt;5.  select * from ugyfel into table itab where field1 = test1. &lt;/P&gt;&lt;P&gt;6.  call function '/ibcdw/sf0000031' &lt;/P&gt;&lt;P&gt;7.  tables &lt;/P&gt;&lt;P&gt;     ktab = itab. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Save and activate the program ( ^f 3). &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Now run the program ( f &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 00:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-smart-forms/m-p/3303550#M791071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T00:20:28Z</dc:date>
    </item>
  </channel>
</rss>

