<?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: Declaring a table in Smart Forms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391881#M531993</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;  declare IT_GL like ZHPayroll in tables parameter only in the smartforms...as teh error message, only if you have created a table type which is of line type zhpayroll, it will accept type reference (like this command IT_GL type ZHPayroll)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2007 03:12:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-05T03:12:43Z</dc:date>
    <item>
      <title>Declaring a table in Smart Forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391879#M531991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guyz,&lt;/P&gt;&lt;P&gt;Im having a hard time in using smartforms...actually..i have a structure table ZHPayroll&lt;/P&gt;&lt;P&gt;Which consists of basic,fix allow ,company etc.&lt;/P&gt;&lt;P&gt;My main problem is i cant declare or call my structure table in Smartforms under Forms-&amp;gt;Tables..My command is &amp;lt;b&amp;gt; IT_GL type ZHPayroll&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;It has an error message &lt;/P&gt;&lt;P&gt;"ONLY TABLE TYPES MAY BE USED AS REFERENCE TYPE FOR A TABLE PARAMETER".So i declare it under Form Interface-&amp;gt;Import&lt;/P&gt;&lt;P&gt;Then I declare a GS_DATA under Global Definitions -&amp;gt;Global Data&lt;/P&gt;&lt;P&gt;Command is like this GS_DATA type TS_Data (which is my structure under TYPES tab same structure like ZHPayroll)&lt;/P&gt;&lt;P&gt;.Once I call it  under Main Window-&amp;gt;Table-&amp;gt;Data&lt;/P&gt;&lt;P&gt;IT_GL is neither specified under tables nor it is defined as an internal table.&lt;/P&gt;&lt;P&gt;Please give some advice what to do about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this FM see below.&lt;/P&gt;&lt;P&gt;DATA: ly_formname 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           = 'ZSF_PAYROLL'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      fm_name            = ly_formname&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      no_form            = 1&lt;/P&gt;&lt;P&gt;      no_function_module = 2&lt;/P&gt;&lt;P&gt;      OTHERS             = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE e001 WITH 'ZSF_PAYROLL'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION ly_formname&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;      it_gl            = gs_outtab&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;      exp_total_at_top = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     prepared_by      = p_prepb&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     approved_by      = p_apprb&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      formatting_error = 1&lt;/P&gt;&lt;P&gt;      internal_error   = 2&lt;/P&gt;&lt;P&gt;      send_error       = 3&lt;/P&gt;&lt;P&gt;      user_canceled    = 4&lt;/P&gt;&lt;P&gt;      OTHERS           = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aVaDuDz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 03:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391879#M531991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T03:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring a table in Smart Forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391880#M531992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare the structure in Se11 and use that structure in your table at smartform,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whatever structure you use in program and same structure should be in smartform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 03:12:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391880#M531992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T03:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring a table in Smart Forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391881#M531993</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;  declare IT_GL like ZHPayroll in tables parameter only in the smartforms...as teh error message, only if you have created a table type which is of line type zhpayroll, it will accept type reference (like this command IT_GL type ZHPayroll)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 03:12:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391881#M531993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T03:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring a table in Smart Forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391882#M531994</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;If you want to declare the internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a table type in se11..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;choose the data type radio button..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a table type for the structure..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is like declaring the type which is of internal table in the ddic..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the program..just give..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T_TYPE TYPE ZTABLE_TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the function module interface you can use the table type..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_TABLE TYPE ZTABLE_TYPE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 03:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391882#M531994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T03:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring a table in Smart Forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391883#M531995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;I appreciate your reply...Im ok in creating a structure...but the main error is in smartforms.&lt;/P&gt;&lt;P&gt;this is what i did..&lt;/P&gt;&lt;P&gt;1.Declare IT_GL type ZHPayroll (created structure) from Form Interface-&amp;gt;Tables&lt;/P&gt;&lt;P&gt;2.Declare GS_Data type TS_DATA (types  declare under Types Tab. This structre is the same with ZHPayroll) &lt;/P&gt;&lt;P&gt;3. Create a Table from Main Window-&amp;gt;Table&lt;/P&gt;&lt;P&gt;4.Declare internal Table under Data Tab the IT_GL into GS_Data&lt;/P&gt;&lt;P&gt;5.I called FM in my program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ly_formname 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           = 'ZSF_PAYROLL'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      fm_name            = ly_formname&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      no_form            = 1&lt;/P&gt;&lt;P&gt;      no_function_module = 2&lt;/P&gt;&lt;P&gt;      OTHERS             = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION ly_formname&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      IT_GL           = gs_outtab&lt;/P&gt;&lt;P&gt;      exp_total_at_top = 'X'&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      formatting_error = 1&lt;/P&gt;&lt;P&gt;      internal_error   = 2&lt;/P&gt;&lt;P&gt;      send_error       = 3&lt;/P&gt;&lt;P&gt;      user_canceled    = 4&lt;/P&gt;&lt;P&gt;      OTHERS           = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But after activating my Smartforms this is the error&lt;/P&gt;&lt;P&gt;Only table types may be used  as the reference type for  a table parameter&lt;/P&gt;&lt;P&gt;but transfer the IT_GL to Import tab from Form Interface&lt;/P&gt;&lt;P&gt;Same error occur.&lt;/P&gt;&lt;P&gt;Please HELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aVaDuDz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 03:35:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391883#M531995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T03:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring a table in Smart Forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391884#M531996</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;Inplace of Declare IT_GL type ZHPayroll , you place Declare IT_GL &amp;lt;b&amp;gt;LIKE&amp;lt;/b&amp;gt; ZHPayroll&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 03:43:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391884#M531996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T03:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring a table in Smart Forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391885#M531997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pl check my reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 03:44:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391885#M531997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T03:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring a table in Smart Forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391886#M531998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sathish,&lt;/P&gt;&lt;P&gt;Thanks for your advice..but im having a hard time to understand it..can you please ellaborate your reply...for me coz im just new in abap..please...kindly explain more..&lt;/P&gt;&lt;P&gt;Thank you &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 03:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391886#M531998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T03:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring a table in Smart Forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391887#M531999</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;As mentioned in my reply..Create a table type in SE11 and use it in your smart forms function module interface in your importing parameter and in your program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the steps to create a table type..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GOTO SE11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose the data type radio button..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GIVE ZHPayroll_t&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press create ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose the radio button TABLE TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the row type give the structure name ZHPayroll&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save and activate the table type..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use it in your smartforms and in your program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 04:05:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391887#M531999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T04:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring a table in Smart Forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391888#M532000</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;  read into this get a good understanding of table types..you can also search the forum on this topic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/90/8d7304b1af11d194f600a0c929b3c3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/90/8d7304b1af11d194f600a0c929b3c3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 04:13:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-table-in-smart-forms/m-p/2391888#M532000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T04:13:44Z</dc:date>
    </item>
  </channel>
</rss>

