<?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: form interface using currency fields - smartforms  urgent!!!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995539#M75222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AGINGDATAITAB needs to be of the same structure as ZAGING.  You need to define your itab like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: AGINGDATAITAB type table of ZSTATMENT_AGING with header line.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2005 12:50:01 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-08-17T12:50:01Z</dc:date>
    <item>
      <title>form interface using currency fields - smartforms  urgent!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995533#M75216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am reading the data into an internal table and the code goes like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'zstatment_aging' is  a database table where &lt;/P&gt;&lt;P&gt;OPSUM, RAST1,RAST2,RAST3, RAST4 ARE currency fields of the table &lt;/P&gt;&lt;P&gt;ABAP print program ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of agingdata,&lt;/P&gt;&lt;P&gt;       kunnr type zstatment_aging-kunnr,&lt;/P&gt;&lt;P&gt;       PARTNER type zstatment_aging-Partner,&lt;/P&gt;&lt;P&gt;       SORTL TYPE zstatment_aging-sortl,&lt;/P&gt;&lt;P&gt;       OPSUM type zstatment_aging-OPSUM,&lt;/P&gt;&lt;P&gt;       RAST1 type zstatment_aging-RAST1,&lt;/P&gt;&lt;P&gt;       RAST2 type zstatment_aging-RAST2,&lt;/P&gt;&lt;P&gt;       RAST3 type zstatment_aging-RAST3,&lt;/P&gt;&lt;P&gt;       RAST4 type zstatment_aging-RAST4,&lt;/P&gt;&lt;P&gt;      end of agingdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: agingdataitab type standard table of agingdata with header line..&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  select single * from zstatment_aging into corresponding fields of  agingdataitab where&lt;/P&gt;&lt;P&gt;  kunnr = p_custid and partner = p_advnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR********* IS COMING IN THE DECLARATION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION MODULE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function fm_name&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                archive_index        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                archive_parameters   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                control_parameters   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                mail_appl_obj        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                mail_recipient       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                mail_sender          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                output_options       =&lt;/P&gt;&lt;/LI&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;.&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;  TABLES&lt;/P&gt;&lt;P&gt;          ZAGING   =  AGINGDATAITAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the smartforms I have declared,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under &lt;/P&gt;&lt;P&gt;Form Interface - &amp;gt; Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZAGING   LIKE    ZSTATMENT_AGING (TABLE NAME)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Throwing an error saying that incorrectly called function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the error here? How can i correct this to display data into the form?&lt;/P&gt;&lt;P&gt;Please help me it is urgent!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2005 23:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995533#M75216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-16T23:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: form interface using currency fields - smartforms  urgent!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995534#M75217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the value of FM_NAME which is used in the statement CALL FUNCTION FM_NAME.  Is this value the correct value?  In SMARTFORMS,  check the function module name and make sure that it is the same in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2005 23:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995534#M75217</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-16T23:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: form interface using currency fields - smartforms  urgent!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995535#M75218</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;Define, ZAGING type internal table of ZSTATMENT_AGING.&lt;/P&gt;&lt;P&gt;Looking at your cirrent declaration it looks like a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please get back , if this does not work . I would recommend if you can just cut and paste that part of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2005 23:51:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995535#M75218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-16T23:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: form interface using currency fields - smartforms  urgent!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995536#M75219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Santhosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is ZSTATEMENT_AGING exactly the same as Type AGINGDATA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not then try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: agingdataitab type standard table of ZSTATEMENT_AGING with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ZSTATEMENT_AGING has more fields than type AGINGDATA then the table definition is in conflict which would explain your syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2005 23:51:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995536#M75219</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-08-16T23:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: form interface using currency fields - smartforms  urgent!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995537#M75220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Patrick is correct,  this is obviously a db table and right at the start you know that there not the same because in the internal table, there is no MANDT.  You need to be passing a table which is identical to what the function module is expecting, otherwise you will get a runtime error.  Do as Patrick suggested,  or create a structure in the data dictionary which matches the structure of the internal table, and use this structure in your TABLES parameter of the function module.  Also, you will probably want to add the word TABLE to the select statement, otherwise your internal table will not get filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select single * from zstatment_aging into corresponding fields of &amp;lt;b&amp;gt;TABLE&amp;lt;/b&amp;gt; agingdataitab where
kunnr = p_custid and partner = p_advnum.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 02:54:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995537#M75220</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-17T02:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: form interface using currency fields - smartforms  urgent!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995538#M75221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The program is giving me a runtime error. The issue is coming while transferring the data from  ' agingdataitab' to 'zaging' &lt;/P&gt;&lt;P&gt;' zstatment_aging ' is a db table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the message I am getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: In the function module interface you can specify only the fields of a specific type and length under 'ZAGING' Although the currently specified field 'AGINGDATAITAB' is the correct type, its length is incorrect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 12:45:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995538#M75221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-17T12:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: form interface using currency fields - smartforms  urgent!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995539#M75222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AGINGDATAITAB needs to be of the same structure as ZAGING.  You need to define your itab like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: AGINGDATAITAB type table of ZSTATMENT_AGING with header line.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 12:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995539#M75222</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-17T12:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: form interface using currency fields - smartforms  urgent!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995540#M75223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems the total field length of AGINGDATAITAB and ZAGING are not same even if the type is same. Can you check the field length please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 12:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995540#M75223</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-08-17T12:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: form interface using currency fields - smartforms  urgent!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995541#M75224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The declaration in your Smartform:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZAGING LIKE ZSTATMENT_AGING &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will declare ZAGING as a structure and not as table, despite the fact that ZSTATMENT_AGING is a DB table. To accomplish the result you want you should declare a table type in de data dictonary (say ZT_AGINGTAB) with line structure ZSTATMENT_AGING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can declare in your Smartform:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZAGING LIKE ZT_AGINGTAB.&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;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 12:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995541#M75224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-17T12:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: form interface using currency fields - smartforms  urgent!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995542#M75225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it !!! solved it on my own. had to create the table type and got it done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 12:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995542#M75225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-17T12:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: form interface using currency fields - smartforms  urgent!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995543#M75226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If any of these answers have been helpful, please reward accordingly.  Also,  please mark this post as "Solved".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 13:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995543#M75226</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-17T13:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: form interface using currency fields - smartforms  urgent!!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995544#M75227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, That exactly what I mentioned to you on my first post. Please award points and mark this as solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 21:33:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-interface-using-currency-fields-smartforms-urgent/m-p/995544#M75227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-17T21:33:56Z</dc:date>
    </item>
  </channel>
</rss>

