<?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: displaying multiple items in smartform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-multiple-items-in-smartform/m-p/1501462#M232183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ashok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to define the internal table in the fomr interface of the smartform.&lt;/P&gt;&lt;P&gt;this internal table contains only one field.&lt;/P&gt;&lt;P&gt;when i try to define this internal table in the form interface as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_eqi like equi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if give it like above its showing runtime error.&lt;/P&gt;&lt;P&gt;my ijnternal table is gt_equi which contains the field fetching from table equi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to correct this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;hridhayanjili.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Aug 2006 12:27:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-23T12:27:01Z</dc:date>
    <item>
      <title>displaying multiple items in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-multiple-items-in-smartform/m-p/1501458#M232179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi evrybody,&lt;/P&gt;&lt;P&gt;using the following code i need to fetch equipment number and display that in smartform.&lt;/P&gt;&lt;P&gt;if have to get multiple equipment numbers and display them in smartform the how i have to pass parameters in the from interface of smartform .&lt;/P&gt;&lt;P&gt;plz suggest me how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF GT_EQUI OCCURS 0,&lt;/P&gt;&lt;P&gt;     EQUNR LIKE EQUI-EQUNR,&lt;/P&gt;&lt;P&gt;     END OF GT_EQUI.&lt;/P&gt;&lt;P&gt;DATA:LF_FMNAME TYPE RS38L_FNAM VALUE '/1BCDWB/SF00000108'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_equnr     TYPE equi-equnr &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  EQUNR&lt;/P&gt;&lt;P&gt;        FROM EQUI&lt;/P&gt;&lt;P&gt;        INTO TABLE GT_EQUI&lt;/P&gt;&lt;P&gt;        WHERE EQUNR EQ p_EQUNR.&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                 = 'ZSAMPLE1'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       FM_NAME                  = LF_FMNAME&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;hridhayanjili&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 11:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-multiple-items-in-smartform/m-p/1501458#M232179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T11:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: displaying multiple items in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-multiple-items-in-smartform/m-p/1501459#M232180</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;&lt;/P&gt;&lt;P&gt;    u have to declare &amp;lt;b&amp;gt;Table&amp;lt;/b&amp;gt; in smartform. call&lt;/P&gt;&lt;P&gt;smartform FM in driver program you have to pass the table values. there using loop u can print.&lt;/P&gt;&lt;P&gt;check sample code ::&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZSMARTFORMS                       .

TABLES:MARA,MARC.

DATA:BEGIN OF ITAB  OCCURS 2,
     MATNR TYPE MARA-MATNR,
     ERSDA TYPE MARA-ERSDA,
     ERNAM TYPE MARA-ERNAM,
     END OF ITAB.

DATA:BEGIN OF IT_MARC OCCURS 2,
     MATNR TYPE MARC-MATNR,
     WERKS TYPE MARC-WERKS,
     PSTAT TYPE MARC-PSTAT,
     LVORM TYPE MARC-LVORM,
     END OF IT_MARC.

DATA:BEGIN OF IT_FINAL OCCURS 0.
     matnr type mara-matnr,
     werks type marc-werks,
     ersda type mara-ersda,
     ernam type mara-ernam,
     pstat type marc-pstat,
     lvorm type marc-lvorm,
     DATA:END OF IT_FINAL.

DATA : FNAME TYPE RS38L_FNAM .

SELECT-OPTIONS:S_MATNR FOR MARA-MATNR.

START-OF-SELECTION.
SELECT MATNR
       ERSDA
       ERNAM
     INTO TABLE ITAB
     FROM MARA
       WHERE MATNR  IN S_MATNR.
IF SY-SUBRC NE 0.
MESSAGE E001(ZZ) WITH 'No data'.
ENDIF.

IF NOT ITAB[] IS INITIAL.
SELECT MATNR
       WERKS
       PSTAT
       LVORM
       FROM MARC
    INTO TABLE IT_MARC
    FOR ALL ENTRIES IN ITAB
     WHERE MATNR = ITAB-MATNR.
     ENDIF.
CHECK IT_MARC[] IS NOT INITIAL.
LOOP AT IT_MARC.
READ TABLE ITAB WITH KEY MATNR = IT_MARC-MATNR.
IF SY-SUBRC = 0.
IT_FINAL-MATNR = ITAB-MATNR.
IT_FINAL-WERKS = IT_MARC-WERKS.
IT_FINAL-ERSDA = ITAB-ERSDA.
IT_FINAL-ERNAM = ITAB-ERNAM.
IT_FINAL-PSTAT = IT_MARC-PSTAT.
IT_FINAL-LVORM = IT_MARC-LVORM.
APPEND IT_FINAL.
CLEAR IT_FINAL.
ENDIF.
ENDLOOP.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    FORMNAME                 = 'ZWARUN1'
*   VARIANT                  = ' '
*   DIRECT_CALL              = ' '
 IMPORTING
   FM_NAME                  = FNAME
* EXCEPTIONS
*   NO_FORM                  = 1
*   NO_FUNCTION_MODULE       = 2
*   OTHERS                   = 3
          .
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.




CALL FUNCTION FNAME
* 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
&amp;lt;b&amp;gt;    IT_FINAL                  = IT_FINAL&amp;lt;/b&amp;gt;
 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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashok P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ashok Parupalli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 11:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-multiple-items-in-smartform/m-p/1501459#M232180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T11:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: displaying multiple items in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-multiple-items-in-smartform/m-p/1501460#M232181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Go to se37 and give the generated function module name.&lt;/P&gt;&lt;P&gt;2) Note down what are the Importing /exporting/ tables parameters.&lt;/P&gt;&lt;P&gt;3) call that function module passing values that you have in your internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function lf_fmname&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt; i_val = value1&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;  it_item = gt_equi.  "Assuming that the interface parameters are i_val and it_item&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 11:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-multiple-items-in-smartform/m-p/1501460#M232181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T11:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: displaying multiple items in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-multiple-items-in-smartform/m-p/1501461#M232182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the smart form, there are global setitngs. There in the TABLE tab, specify your internal table you created in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus you will get the data populated in the internal table in the smartform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 11:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-multiple-items-in-smartform/m-p/1501461#M232182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T11:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: displaying multiple items in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-multiple-items-in-smartform/m-p/1501462#M232183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ashok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to define the internal table in the fomr interface of the smartform.&lt;/P&gt;&lt;P&gt;this internal table contains only one field.&lt;/P&gt;&lt;P&gt;when i try to define this internal table in the form interface as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_eqi like equi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if give it like above its showing runtime error.&lt;/P&gt;&lt;P&gt;my ijnternal table is gt_equi which contains the field fetching from table equi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to correct this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;hridhayanjili.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 12:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-multiple-items-in-smartform/m-p/1501462#M232183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T12:27:01Z</dc:date>
    </item>
  </channel>
</rss>

