<?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: Passing TABLES to Smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-to-smartforms/m-p/2016819#M412210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ped,&lt;/P&gt;&lt;P&gt;    I do also faced the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I made changes:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    My Final internal table is t_final and am passing this internal into the smartform.&lt;/P&gt;&lt;P&gt;T_final is declared in print program as given below:-&lt;/P&gt;&lt;P&gt;t_final            TYPE      STANDARD TABLE OF     zfinal_data,( "Z" Structure created )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION w_fmname&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      w_header             = w_header&lt;/P&gt;&lt;P&gt;      w_adrc                = w_adrc&lt;/P&gt;&lt;P&gt;      w_adrc_forw        = w_adrc_forw&lt;/P&gt;&lt;P&gt;      w_adrc_comp      = w_adrc_comp&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_final          = t_final&lt;/P&gt;&lt;P&gt;    EXCEPTIONS                                              "#EC *&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the FORM interface in "Tables" Tab &lt;/P&gt;&lt;P&gt;declare - t_final  like zfinal_data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this it may solve ur problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Avi...........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2007 03:26:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-22T03:26:03Z</dc:date>
    <item>
      <title>Passing TABLES to Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-to-smartforms/m-p/2016817#M412208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm calling my SMARTFORM as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      CALL FUNCTION func_mod_name
        EXPORTING
          control_parameters = w_ssfctrlop
          output_options     = w_out_options
          x_adrnr            = x_adrnr
          x_rcomp            = x_rcomp
          x_rzzvbund         = t_saldo-rzzvbund
          x_month            = p_period
          x_year             = p-ano
        IMPORTING
          job_output_info    = ls_job_output_info
        TABLES
          t_z3hfmbalance     = t_saldo_sf
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE t_z3hfmbalance is defined in the smartform interface this way &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; T_Z3HFMBALANCE LIKE Z3HFMBALANCE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; Z3HFMBALANCE is a structure i've created in SE11 with the same structure as t_saldo_sf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem i have is, when running the program the system returns a ABAP Dump which states &lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;In the function module interface, you can specify only&lt;/P&gt;&lt;P&gt;fields of a specific type and length under "T_Z3HFMBALANCE".&lt;/P&gt;&lt;P&gt;Although the currently specified field&lt;/P&gt;&lt;P&gt;"T_SALDO_SF" is the correct type, its length is incorrect.&amp;lt;/i&amp;gt;...&lt;/P&gt;&lt;P&gt;What am i doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Pedro Gaspar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 00:18:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-to-smartforms/m-p/2016817#M412208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T00:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Passing TABLES to Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-to-smartforms/m-p/2016818#M412209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pedro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the form interface,&lt;/P&gt;&lt;P&gt;declare the table T_Z3HFMBALANCE with reference to table (not structure Z3HFMBALANCE) ,I think this wil solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 00:57:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-to-smartforms/m-p/2016818#M412209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T00:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Passing TABLES to Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-to-smartforms/m-p/2016819#M412210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ped,&lt;/P&gt;&lt;P&gt;    I do also faced the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I made changes:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    My Final internal table is t_final and am passing this internal into the smartform.&lt;/P&gt;&lt;P&gt;T_final is declared in print program as given below:-&lt;/P&gt;&lt;P&gt;t_final            TYPE      STANDARD TABLE OF     zfinal_data,( "Z" Structure created )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION w_fmname&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      w_header             = w_header&lt;/P&gt;&lt;P&gt;      w_adrc                = w_adrc&lt;/P&gt;&lt;P&gt;      w_adrc_forw        = w_adrc_forw&lt;/P&gt;&lt;P&gt;      w_adrc_comp      = w_adrc_comp&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_final          = t_final&lt;/P&gt;&lt;P&gt;    EXCEPTIONS                                              "#EC *&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the FORM interface in "Tables" Tab &lt;/P&gt;&lt;P&gt;declare - t_final  like zfinal_data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this it may solve ur problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Avi...........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 03:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-to-smartforms/m-p/2016819#M412210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T03:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Passing TABLES to Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-to-smartforms/m-p/2016820#M412211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to use the Z3HFMBALANCE in the place of t_saldo_sf,and see the difference i think there is some field length difference between these two structures and that may be the reason you r getting the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 03:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-tables-to-smartforms/m-p/2016820#M412211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T03:55:44Z</dc:date>
    </item>
  </channel>
</rss>

