<?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 - Table Printing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-table-printing/m-p/1303021#M159089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt; Use table node to loop ur Internal table .&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;Drag two fields into ur single column and modify .&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;3&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Right click on the COLUMN =&amp;gt;Create-&amp;gt;FlowLogic-&amp;gt;Program lines .&lt;/P&gt;&lt;P&gt;Then give ur two fields as Input parameters and one field as Output parameter.&lt;/P&gt;&lt;P&gt;Whatever u want ,do means concatenation and all those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then display that field . &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat.O&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jun 2006 10:37:53 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2006-06-08T10:37:53Z</dc:date>
    <item>
      <title>SmartForm - Table Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-table-printing/m-p/1303016#M159084</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 need to print a Table in SmartForm with some fields from the internal table only. Even i want to print 2 fields value in one colum also. Is it possible to print like this. If it is can u plz help me to print the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 09:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-table-printing/m-p/1303016#M159084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-08T09:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForm - Table Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-table-printing/m-p/1303017#M159085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe a structure like this internal table.&lt;/P&gt;&lt;P&gt;In your smartforms, set a table with the structure that you just create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can create another internal table with length equal of sum of both fields .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and loop at first itab and conacatenate those two fieds and move to itab2 and pass itab2 to smart forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: MKPF.

DATA: FM_NAME TYPE RS38L_FNAM.

DATA: BEGIN OF INT_MKPF OCCURS 0.
        INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.

SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.

SELECT * FROM MKPF 
       &amp;lt;b&amp;gt;UPTO 2 ROWS&amp;lt;/b&amp;gt;
       WHERE MBLNR IN S_MBLNR.
      MOVE-CORRESPONDING MKPF TO INT_MKPF.
   APPEND INT_MKPF.

ENDSELECT.

* At the end of your program.
* Passing data to SMARTFORMS

call function 'SSF_FUNCTION_MODULE_NAME'
  exporting
    formname                 = 'ZSMARTFORM'
*   VARIANT                  = ' '
*   DIRECT_CALL              = ' '
  IMPORTING
    FM_NAME                  = FM_NAME
  EXCEPTIONS
    NO_FORM                  = 1
    NO_FUNCTION_MODULE       = 2
    OTHERS                   = 3.

if sy-subrc &amp;lt;&amp;gt; 0.
   WRITE: / 'ERROR 1'.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.

call function FM_NAME
* EXPORTING
*   ARCHIVE_INDEX              =
*   ARCHIVE_INDEX_TAB          =
*   ARCHIVE_PARAMETERS         =
*   CONTROL_PARAMETERS         =
*   MAIL_APPL_OBJ              =
*   MAIL_RECIPIENT             =
*   MAIL_SENDER                =
*   OUTPUT_OPTIONS             =
*   USER_SETTINGS              = 'X'
* IMPORTING
*   DOCUMENT_OUTPUT_INFO       =
*   JOB_OUTPUT_INFO            =
*   JOB_OUTPUT_OPTIONS         =
  TABLES
    GS_MKPF                    = INT_MKPF
  EXCEPTIONS
    FORMATTING_ERROR           = 1
    INTERNAL_ERROR             = 2
    SEND_ERROR                 = 3
    USER_CANCELED              = 4
    OTHERS                     = 5.

if sy-subrc &amp;lt;&amp;gt; 0.
   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rEGARDS&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 09:41:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-table-printing/m-p/1303017#M159085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-08T09:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForm - Table Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-table-printing/m-p/1303018#M159086</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;Use table node in the smartform and name your internal table in data tab, Also create a workarea of same structure in global definations and give that to copy a line from internal table into workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now open table tab and create your column there using table painter or manully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now add a text element in the table node and write your field name their. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use 'new line', 'new cell' option to write your fields in same column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 09:48:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-table-printing/m-p/1303018#M159086</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-06-08T09:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForm - Table Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-table-printing/m-p/1303019#M159087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please follows below steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_tab TYPE TABLE OF kna1,&lt;/P&gt;&lt;P&gt;      wa_tab TYPE kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Populate the it_tab with your selection data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: fm_name TYPE RS38L_FNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION SSF_FUNCTION_MODULE_NAME.&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FORMNAME = 'ZXXXX' (your smartform name).&lt;/P&gt;&lt;P&gt;IMPORING&lt;/P&gt;&lt;P&gt;FM_NAME = fm_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION fm_module.&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;IS_KNA1 = it_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the smartform layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form interface -&amp;gt; table section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IS_KNA1  TYPE     KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Global fields, decleare a work area w_kna1 type kna1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, Create a Main Window and create a TABLE NODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in TABLE NODE, under TABLE tab, creat new line type (cell width and heligh) using table painer or you can create manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;under DATA tab, enter the internal table name IS_KNA1 INTO W_KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, create a text element and give the fields as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;W_KNA1-KUNNR&amp;amp; &amp;amp;W_KNA1-NAME1&amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, like above you can display more fields in the same column. But make sure that the column have sufficient width to display fields data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also donot forget to give cell position in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 09:57:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-table-printing/m-p/1303019#M159087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-08T09:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForm - Table Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-table-printing/m-p/1303020#M159088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as already said: First create a TABLE node in (under) your (MAIN) window in the page you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First define a line type of any name, set columns widths using table painter or (I think better) in Details screen.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create as many text nodes under the table node as you need columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Genaral attributes, you have a text where you can place the value(s) freely for output in that column. In Output optinos tab, check the new line and new cell flags and  insert your previously defined line type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be it. Have a look at Form LB_BIL_INVOICE, Pages and Windows -&amp;gt; First Page 1 -&amp;gt; MAIN Main Window -&amp;gt; TABLEITEM Invoice Items. Quite complex what they did there, but you can derive any information missing here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be aware: If output does not fit into a cell, processing will stop with no form created and no error generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is just one reason not to use SMARTFORMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 10:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-table-printing/m-p/1303020#M159088</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-06-08T10:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: SmartForm - Table Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-table-printing/m-p/1303021#M159089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt; Use table node to loop ur Internal table .&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;Drag two fields into ur single column and modify .&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;3&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Right click on the COLUMN =&amp;gt;Create-&amp;gt;FlowLogic-&amp;gt;Program lines .&lt;/P&gt;&lt;P&gt;Then give ur two fields as Input parameters and one field as Output parameter.&lt;/P&gt;&lt;P&gt;Whatever u want ,do means concatenation and all those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then display that field . &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat.O&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 10:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-table-printing/m-p/1303021#M159089</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2006-06-08T10:37:53Z</dc:date>
    </item>
  </channel>
</rss>

