<?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: smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101126#M438023</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;could you give me a sample code so that i can understand . I would really appreciate that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;jackson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2007 20:33:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-03T20:33:36Z</dc:date>
    <item>
      <title>smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101120#M438017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Group,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have designed a layout using smartforms and also written a driver program for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  EBELN&lt;/P&gt;&lt;P&gt;        LIFNR&lt;/P&gt;&lt;P&gt;        ZTERM&lt;/P&gt;&lt;P&gt;        BEDAT&lt;/P&gt;&lt;P&gt;        INCO1&lt;/P&gt;&lt;P&gt;        from EKKO&lt;/P&gt;&lt;P&gt;        INTO TABLE IT_EKKO WHERE EBELN = P_EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF IT_EKKO IS NOT INITIAL.&lt;/P&gt;&lt;P&gt; SELECT EBELN&lt;/P&gt;&lt;P&gt;        EBELP&lt;/P&gt;&lt;P&gt;        MATNR&lt;/P&gt;&lt;P&gt;        WERKS&lt;/P&gt;&lt;P&gt;        MENGE&lt;/P&gt;&lt;P&gt;        MEINS&lt;/P&gt;&lt;P&gt;        PEINH&lt;/P&gt;&lt;P&gt;        NETPR&lt;/P&gt;&lt;P&gt;        FROM EKPO INTO TABLE IT_EKPO&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN IT_EKKO WHERE EBELN = IT_EKKO-EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT LIFNR&lt;/P&gt;&lt;P&gt;       ADRNR&lt;/P&gt;&lt;P&gt;       FROM LFA1 INTO TABLE IT_LFA1&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN IT_EKKO WHERE LIFNR = IT_EKKO-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  KUNNR&lt;/P&gt;&lt;P&gt;        ADRNR&lt;/P&gt;&lt;P&gt;        FROM KNA1&lt;/P&gt;&lt;P&gt;        INTO TABLE IT_KNA1&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN IT_EKKO WHERE KUNNR = IT_EKKO-KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  WERKS&lt;/P&gt;&lt;P&gt;        NAME1&lt;/P&gt;&lt;P&gt;        STRAS&lt;/P&gt;&lt;P&gt;        PSTLZ&lt;/P&gt;&lt;P&gt;        ORT01&lt;/P&gt;&lt;P&gt;        LAND1&lt;/P&gt;&lt;P&gt;        REGIO&lt;/P&gt;&lt;P&gt;        FROM T001W INTO TABLE IT_T001W&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN IT_EKPO WHERE WERKS = IT_EKPO-WERKS.&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                 = 'ZTEST1'&lt;/P&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;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;CALL FUNCTION FM_NAME&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    IT_EKKO                    = IT_EKKO&lt;/P&gt;&lt;P&gt;    IT_EKPO                    = IT_EKPO&lt;/P&gt;&lt;P&gt;    IT_ADRC                    = IT_ADRC&lt;/P&gt;&lt;P&gt;    IT_LFA1                    = IT_LFA1&lt;/P&gt;&lt;P&gt;    IT_KNA1                    = IT_KNA1&lt;/P&gt;&lt;P&gt;    IT_T001W                   = IT_T001W&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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " TEST_SMARTFORMS&lt;/P&gt;&lt;P&gt; this is my source code. i have designed the layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in which i have declared &lt;/P&gt;&lt;P&gt;form interface &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_ekko like ekko,&lt;/P&gt;&lt;P&gt;it_ekpo like ekpo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in global data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_ekko type ekko,&lt;/P&gt;&lt;P&gt;wa_ekpo type ekpo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc.,&lt;/P&gt;&lt;P&gt;i am getting an error as&lt;/P&gt;&lt;P&gt; Type conflict when calling a function module (field length).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting thsi error at call function fm_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting the data perfectly in the report but its not getting populated in the smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jackson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can somebody tell me where i m wrong ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 18:22:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101120#M438017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T18:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101121#M438018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you declared your fm_name as follows:&lt;/P&gt;&lt;P&gt;data: fm_name TYPE rs38l_fnam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if you are getting any data in your internal tables.&lt;/P&gt;&lt;P&gt;Have you declared your internal table as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for.e.g: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gt_receipts TYPE STANDARD TABLE OF bapitrvreo&lt;/P&gt;&lt;P&gt;                INITIAL SIZE 0  WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, have you declared the internal tables in smartforms in global interface, tables tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be of same type. &lt;/P&gt;&lt;P&gt;For e.g.: The above is declared in smartforms as follows:&lt;/P&gt;&lt;P&gt;gs_receipts type bapitrvreo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for sample smartforms. You will get better idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/smartforms.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/smartforms.htm&lt;/A&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;Thanks,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        SKJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        SKJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 18:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101121#M438018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T18:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101122#M438019</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;i did that but still the smartform returns empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;jackson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 18:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101122#M438019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T18:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101123#M438020</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;An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was&lt;/P&gt;&lt;P&gt; not caught in&lt;/P&gt;&lt;P&gt;procedure "TEST_SMARTFORMS" "(FORM)", nor was it propagated by a RAISING&lt;/P&gt;&lt;P&gt; clause.&lt;/P&gt;&lt;P&gt;Since the caller of the procedure could not have anticipated that the&lt;/P&gt;&lt;P&gt;exception would occur, the current program is terminated.&lt;/P&gt;&lt;P&gt;The reason for the exception is:&lt;/P&gt;&lt;P&gt;The call to the function module "/1BCDWB/SF00000002" is incorrect:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module interface, you can specify only&lt;/P&gt;&lt;P&gt;fields of a specific type and length under "IT_ADRC".&lt;/P&gt;&lt;P&gt;Although the currently specified field&lt;/P&gt;&lt;P&gt;" " is the correct type, its length is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the exact errr message&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 18:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101123#M438020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T18:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101124#M438021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont see IT_ADRC table used in your program and still you are trying to pass this internal table to function module.&lt;/P&gt;&lt;P&gt;Is this IT_ADRC empty?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 18:43:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101124#M438021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T18:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101125#M438022</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;Now when i remove IT_ADRC i am getting the same error for IT_EKKO. i donno where am i going wrong .. could you rectify me.&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;Jackson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 18:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101125#M438022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T18:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101126#M438023</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;could you give me a sample code so that i can understand . I would really appreciate that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;jackson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 20:33:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101126#M438023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T20:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101127#M438024</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;I am getting the data into the internal tables but its not getting into the smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jackson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 20:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/2101127#M438024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T20:44:31Z</dc:date>
    </item>
  </channel>
</rss>

