<?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 in smartform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-smartform/m-p/998984#M75893</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;Besides all the correct answers you can directly find the info of which field is a type conflict in calling FM in the short dump ( just scroll down in the dump and you will find this ). This will help if you miss something on what has been stated before in this thread .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Sep 2005 13:11:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-18T13:11:02Z</dc:date>
    <item>
      <title>Problem in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-smartform/m-p/998978#M75887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm developing a simple samrt form. But getting short dump at the print program end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form = 'Z_SO_DATA'.&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                 = form&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   VARIANT                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DIRECT_CALL              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    FM_NAME                  = fm_name&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; 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 ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&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;&lt;/P&gt;&lt;P&gt;CALL FUNCTION fm_name&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   form_kydate                 = p_kydate&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    form_itab_header          = itab&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;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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The moment controls reaches at &amp;lt;b&amp;gt;CALL FUNCTION fm_name&amp;lt;/b&amp;gt;. It throws a short dump saying..&amp;lt;b&amp;gt;Type conflict when calling a function module (field length).&amp;lt;/b&amp;gt;. Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2005 09:54:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-smartform/m-p/998978#M75887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-18T09:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-smartform/m-p/998979#M75888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you give us the data declaration of form and fm_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is something wrong with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the form varialbe should be of type  TDSFNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: form type TDSFNAME .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the fm_name should be of type RS38L_FNAM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: fm_name type RS38L_FNAM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2005 10:04:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-smartform/m-p/998979#M75888</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-18T10:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-smartform/m-p/998980#M75889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anup,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check whether the parameter "form_itab_header" and the internal table "itab" are of same type, length.&lt;/P&gt;&lt;P&gt;I think the fields are different.&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>Sun, 18 Sep 2005 10:12:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-smartform/m-p/998980#M75889</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-09-18T10:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-smartform/m-p/998981#M75890</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;The answer of Raja is right, when you use a FM you should always check the variable type is the same of fm parameter where variable is transfered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you should check the type of paramenter in SE37 and then declare the variable like it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These is a piece of code of FM SSF_FUNCTION_MODULE_NAME where FORNAME parameter is declared:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION SSF_FUNCTION_MODULE_NAME .&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Lokale Schnittstelle:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(FORMNAME) TYPE  TDSFNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your variable should be declare like TDSFNAME:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA FN_NAME TYPE TDSFNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally if you use a fm:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION &amp;lt;FUNCTION&amp;gt;.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Lokale Schnittstelle:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(PARAMETER) TYPE  &amp;lt;TYPE&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in your program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: MY_PARAM TYPE &amp;lt;TYPE&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION &amp;lt;FUNCTION&amp;gt;&lt;/P&gt;&lt;P&gt;   .....&lt;/P&gt;&lt;P&gt;   .....&lt;/P&gt;&lt;P&gt;   PARAMETER = MY_PARAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2005 10:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-smartform/m-p/998981#M75890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-18T10:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-smartform/m-p/998982#M75891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur help...u caught it rightly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;ANUP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2005 11:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-smartform/m-p/998982#M75891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-18T11:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-smartform/m-p/998983#M75892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i guess Vindo deserves full points as he has solved your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2005 11:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-smartform/m-p/998983#M75892</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-18T11:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-smartform/m-p/998984#M75893</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;Besides all the correct answers you can directly find the info of which field is a type conflict in calling FM in the short dump ( just scroll down in the dump and you will find this ). This will help if you miss something on what has been stated before in this thread .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2005 13:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-smartform/m-p/998984#M75893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-18T13:11:02Z</dc:date>
    </item>
  </channel>
</rss>

