<?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: doubt on internal table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table/m-p/2865970#M672210</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;You need to create a Table in Smartform. Right click on MAIN WINDOW &amp;amp; Click Create=&amp;gt;Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the internal table name &amp;amp; work area in the from to details&lt;/P&gt;&lt;P&gt;then in the text area , type&lt;/P&gt;&lt;P&gt;&amp;amp;WA_DATA-Field1&amp;amp;,,&amp;amp;WA_DATA-field2&amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2007 08:01:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-27T08:01:25Z</dc:date>
    <item>
      <title>doubt on internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table/m-p/2865968#M672208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have internal table with multiple rows.&lt;/P&gt;&lt;P&gt;Each row has some text. I want to print in smart form as it is in internal table.&lt;/P&gt;&lt;P&gt;Acutally it is questionare in the service order&lt;/P&gt;&lt;P&gt;Please let me knwo if you have the solution&lt;/P&gt;&lt;P&gt;thanks for your time adn cooperation.&lt;/P&gt;&lt;P&gt;Bobby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 07:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table/m-p/2865968#M672208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T07:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table/m-p/2865969#M672209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bobby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass that internal table in smartform and display it using LOOP node in main window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this may be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ragards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 08:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table/m-p/2865969#M672209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T08:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table/m-p/2865970#M672210</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;You need to create a Table in Smartform. Right click on MAIN WINDOW &amp;amp; Click Create=&amp;gt;Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the internal table name &amp;amp; work area in the from to details&lt;/P&gt;&lt;P&gt;then in the text area , type&lt;/P&gt;&lt;P&gt;&amp;amp;WA_DATA-Field1&amp;amp;,,&amp;amp;WA_DATA-field2&amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 08:01:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table/m-p/2865970#M672210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T08:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table/m-p/2865971#M672211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bobby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want to pass the data from internal table in print program to Smartform.. there is only way.. that is using form interface..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. goto se11, create a structure same as the itab in the print program.ex. z_itab&lt;/P&gt;&lt;P&gt;2. create line type... se11&lt;DEL&gt;&amp;gt;select radio button-DATA type&lt;/DEL&gt;&amp;gt;z_it_itab &lt;DEL&gt;&amp;gt;press create&lt;/DEL&gt;&amp;gt;then select&lt;DEL&gt;&amp;gt;TABLE Type&lt;/DEL&gt;&amp;gt; then entrer some text--&amp;gt; in the line type Field in giveth Str name u have created in STEP 1. activate it.&lt;/P&gt;&lt;P&gt;3. got SMARTFORMS&lt;DEL&gt;-&amp;gt; form inteface&lt;/DEL&gt;&amp;gt;tables tabe--&amp;gt; give some name ex IT_tab type z_it_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then acivate it.. then in the driver progam pass this table data.&lt;/P&gt;&lt;P&gt;Exapmpel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION fp_v_fm_name&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      archive_index      = toa_dara&lt;/P&gt;&lt;P&gt;      archive_parameters = arc_params&lt;/P&gt;&lt;P&gt;      control_parameters = fp_st_control_parameters&lt;/P&gt;&lt;P&gt;      user_settings      = space&lt;/P&gt;&lt;P&gt;      output_options     = fp_st_output_options&lt;/P&gt;&lt;P&gt;      wa_vbdkr           = fp_st_vbdkr&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      job_output_info    = l_it_ssfcrescl&lt;/P&gt;&lt;P&gt;      job_output_options = l_it_ssfcresop&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_tab = z_it_itab (or table in driver program)&lt;/P&gt;&lt;P&gt;&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;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way is cteate a type in Globaldifination--&amp;gt;types tab..&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;types: begin of ty_itab,&lt;/P&gt;&lt;P&gt;matnr type matnr,&lt;/P&gt;&lt;P&gt;meins type meins&lt;/P&gt;&lt;P&gt;vrkme type vrkme,&lt;/P&gt;&lt;P&gt;end of ty_itab,&lt;/P&gt;&lt;P&gt;ty_it_itab type standard table of ty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then GLOBAL DIFINATION&lt;DEL&gt;&amp;gt;GLOBAL DATA TAB&lt;/DEL&gt;&amp;gt;IT)ITAB TYPE TY_IT_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT In this u can't pass the data from the print Program.. if u want to populate data in to this table... u have to write the Select query in the GLOBAL DIFINATIONS--&amp;gt;INITILIZATIONS TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 08:01:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table/m-p/2865971#M672211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T08:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table/m-p/2865972#M672212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to print your internal table in your smartform, create a loop in your smart form and pass your internal table name and display the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Close the thread once your question is answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 08:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table/m-p/2865972#M672212</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2007-09-27T08:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: doubt on internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table/m-p/2865973#M672213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bobby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once your itab is populated, pass it to the Smartform. Declare an itab with similar structure in the Form ionterface part. Also declare a structure like yor itab. Now loop the itab into the structure at the desired location ni the SF to output data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the below code for ref&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 = C_FORMNAME&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;FM_NAME = G_FM_NAME.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*--- Check for Errors&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Call Smartform function module without hard coding&lt;/P&gt;&lt;P&gt;CALL FUNCTION G_FM_NAME&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CONTROL_PARAMETERS = ST_CONTROL_PARAMETERS&lt;/P&gt;&lt;P&gt;OUTPUT_OPTIONS = ST_OUTPUT_OPTIONS&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;USER_SETTINGS = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;lt;b&amp;gt;* ADD YOUR DATA STRUCTURES HERE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* ADD YOUR DATA TABLES&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;it_output = itab_output.&amp;lt;/b&amp;gt;&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;reward if helpful,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 08:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-on-internal-table/m-p/2865973#M672213</guid>
      <dc:creator>former_member189629</dc:creator>
      <dc:date>2007-09-27T08:04:26Z</dc:date>
    </item>
  </channel>
</rss>

