<?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: problem with function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335788#M1229329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how about quitting your job, goin back to the training center, learn some ABAP and then come back and try it??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2009 07:51:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-09T07:51:23Z</dc:date>
    <item>
      <title>problem with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335785#M1229326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;&amp;lt;Locked.  This is not a training forum.  A basic level of knowledge is expected&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;      In the below program function module is not working.Giving runtime errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_mseg,&lt;/P&gt;&lt;P&gt;           mblnr type mseg-mblnr,&lt;/P&gt;&lt;P&gt;           mjahr type mseg-mjahr,&lt;/P&gt;&lt;P&gt;           menge type mseg-menge,&lt;/P&gt;&lt;P&gt;        end of ty_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : menge type mseg-menge.&lt;/P&gt;&lt;P&gt;data : it_mseg type table of ty_mseg with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_mblnr for mseg-mblnr,&lt;/P&gt;&lt;P&gt;                 s_mjahr for mseg-mjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mseg into corresponding fields of table it_mseg&lt;/P&gt;&lt;P&gt;   where mblnr in s_mblnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CO_ZF_QUANTITY_ROUNDING'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FLG_ERROR          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   FLG_ROUNDING       = 'X'&lt;/P&gt;&lt;P&gt;    QUANTITY           = mseg-menge&lt;/P&gt;&lt;P&gt;   T006WA             = ' '&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   QUANTITY           = mseg-menge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_mseg.&lt;/P&gt;&lt;P&gt;write : / it_mseg-mblnr,it_mseg-mjahr,it_mseg-menge.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Mar 9, 2009 10:07 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 07:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335785#M1229326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T07:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: problem with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335786#M1229327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What error it was throwing, can you check whether you are passing all required parameters or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 07:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335786#M1229327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T07:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335787#M1229328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry i dont know how to pass parameters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 07:49:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335787#M1229328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T07:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: problem with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335788#M1229329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how about quitting your job, goin back to the training center, learn some ABAP and then come back and try it??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 07:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335788#M1229329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T07:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: problem with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335789#M1229330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please tell some tips .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 07:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335789#M1229330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T07:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: problem with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335790#M1229331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tend to agree with Kishan, but let me give you some help anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the exact error message (short dump) from transaction ST22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it something like TYPE CONFLICT?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 07:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335790#M1229331</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-03-09T07:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: problem with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335791#M1229332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A type conflict occurred when structure parameters were passed in the.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    An exception occurred. This exception will be dealt with in more detail&lt;/P&gt;&lt;P&gt;    below. The exception, assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was&lt;/P&gt;&lt;P&gt;     not caught, which&lt;/P&gt;&lt;P&gt;     led to a runtime error. The reason for this exception is:&lt;/P&gt;&lt;P&gt;    In the function "CO_ZF_QUANTITY_ROUNDING" the STRUCTURE parameter "T006WA" is&lt;/P&gt;&lt;P&gt;     typed in such a way&lt;/P&gt;&lt;P&gt;    that actual parameters are not valid, unless they are compatible&lt;/P&gt;&lt;P&gt;    according to the Unicode fragment view. The actual parameter "' '" does&lt;/P&gt;&lt;P&gt;    not, however, have a compatible fragment view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 07:59:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335791#M1229332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T07:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: problem with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335792#M1229333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you want to use T006WA for rounding, pass it to the function module as well, otherwise do NOT pass it at all:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'CO_ZF_QUANTITY_ROUNDING'
  EXPORTING
    quantity           =
* IMPORTING
   QUANTITY           = 
          .

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only pass these parameters that you are actually filling, like in this case the quantity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 08:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335792#M1229333</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-03-09T08:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: problem with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335793#M1229334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sir,&lt;/P&gt;&lt;P&gt;    if i pass only these parameters menge is not rounding off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CO_ZF_QUANTITY_ROUNDING'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FLG_ERROR          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   FLG_ROUNDING       = 'X'&lt;/P&gt;&lt;P&gt;    QUANTITY           = mseg-menge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 08:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335793#M1229334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T08:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335794#M1229335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should round off, but probably not the way you want it to. So, pass this parameter T006WA as well. You can retrieve these values from db table T006. Select it from there, and pass it to the import parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 08:27:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/5335794#M1229335</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-03-09T08:27:20Z</dc:date>
    </item>
  </channel>
</rss>

