<?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 selection table as parameter to function modules in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413786#M1408321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi infinity,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please select the ABAP code using the mouse, then click the above &amp;lt;_&amp;gt; code button. Then the code can be read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the SELECT-OPTIONS table you should create (or use an existing) appropriate table type. Im not on system now but I remember in DD06L you can find all table types and you may find the useful range table for your data element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pass the SELECT-OPTIONS range as s_xyz[] to a matching IMPORT parameter of this tabletype in the function.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Dec 2009 13:27:58 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2009-12-01T13:27:58Z</dc:date>
    <item>
      <title>passing selection table as parameter to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413779#M1408314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried to pass a selection table as a parameter to a function module but there is a problem stating the eror the table length is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZSFSELECT_OPTIONS_PGM&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zsfselect_options_pgm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES zselect_options.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS sop FOR zselect_options-id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA  : fname(15) TYPE c.&lt;/P&gt;&lt;P&gt;*CALL FUNCTION 'SSF_FUNCTION_MODULE_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;   formname                 = fname&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  VARIANT                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  DIRECT_CALL              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  FM_NAME                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  NO_FORM                  = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  NO_FUNCTION_MODULE       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  OTHERS                   = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" 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="2" 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;/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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA lth(2) TYPE c.&lt;/P&gt;&lt;P&gt;DATA ty TYPE i.&lt;/P&gt;&lt;P&gt;DATA o TYPE i.&lt;/P&gt;&lt;P&gt;DATA l TYPE i.&lt;/P&gt;&lt;P&gt;DATA k TYPE c.&lt;/P&gt;&lt;P&gt;DESCRIBE FIELD sop-sign TYPE lth LENGTH ty IN CHARACTER MODE.&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 fname&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;  ARCHIVE_INDEX              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX_TAB          =&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;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DOCUMENT_OUTPUT_INFO       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_INFO            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_OPTIONS         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    sf_sop                     =sop&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FORMATTING_ERROR           = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INTERNAL_ERROR             = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SEND_ERROR                 = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_CANCELED              = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                     = 5&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;in the smart form i have tried to pass the sp as the table.&lt;/P&gt;&lt;P&gt;i have created a program line node&lt;/P&gt;&lt;P&gt;:SELECT * FROM zselect_options INTO TABLE it_tab WHERE id IN sf_sop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 11:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413779#M1408314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-01T11:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: passing selection table as parameter to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413780#M1408315</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;If i understand ur problem correctly u r trying to pass a select-option to Tables for a smartform function module. It gives an error &amp;amp; it correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u understand the structure of a select option, it will have 4 fields in it &amp;amp; the structure will be &lt;/P&gt;&lt;P&gt;SIGN                   CHAR1&lt;/P&gt;&lt;P&gt;OPTION               CHAR2&lt;/P&gt;&lt;P&gt;LOW                   Type Zfield&lt;/P&gt;&lt;P&gt;HIGH                   Type Zfield&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But ur receiving Table paramter of the smnartform FM will be having only 1 field - Type Zfield&lt;/P&gt;&lt;P&gt;So this mismatch gives u an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Write code outsied th FM in ur program to get all the values &amp;amp; build an internal table &amp;amp; pass that to the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Define the Structure of table in the smartforms as tols earlier &amp;amp; then try passsig the Select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Bhargava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 11:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413780#M1408315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-01T11:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: passing selection table as parameter to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413781#M1408316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i had already created the structure of the table as u have said.more thoughts plz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 12:09:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413781#M1408316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-01T12:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: passing selection table as parameter to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413782#M1408317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Passing Select-Options to Smart Forms&lt;/P&gt;&lt;P&gt;i have followed the same thing that is suggested in the link,&lt;/P&gt;&lt;P&gt;sap technical com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 12:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413782#M1408317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-01T12:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: passing selection table as parameter to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413783#M1408318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;as u said you have created a structure with the same type.....&lt;/P&gt;&lt;P&gt;you will have to create a table type for that structure and mention that table type name in the smartform parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 12:38:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413783#M1408318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-01T12:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: passing selection table as parameter to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413784#M1408319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a table type for structure &lt;STRONG&gt;SELOPT&lt;/STRONG&gt; or &lt;STRONG&gt;RSPARAMS&lt;/STRONG&gt; and use it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 12:42:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413784#M1408319</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-12-01T12:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: passing selection table as parameter to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413785#M1408320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have created a data dictionary structure and used the same for the type of the sf_sop-(table parameter).&lt;/P&gt;&lt;P&gt;the fields of the structure are&lt;/P&gt;&lt;P&gt;sign,(1)&lt;/P&gt;&lt;P&gt;option,(2)&lt;/P&gt;&lt;P&gt;low(4)&lt;/P&gt;&lt;P&gt;high(4)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 13:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413785#M1408320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-01T13:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: passing selection table as parameter to function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413786#M1408321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi infinity,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please select the ABAP code using the mouse, then click the above &amp;lt;_&amp;gt; code button. Then the code can be read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the SELECT-OPTIONS table you should create (or use an existing) appropriate table type. Im not on system now but I remember in DD06L you can find all table types and you may find the useful range table for your data element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pass the SELECT-OPTIONS range as s_xyz[] to a matching IMPORT parameter of this tabletype in the function.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 13:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-table-as-parameter-to-function-modules/m-p/6413786#M1408321</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-12-01T13:27:58Z</dc:date>
    </item>
  </channel>
</rss>

