<?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: select-options in FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-fm/m-p/6206935#M1377042</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;Check in the Debug-mode, if BANFN1 is populating with data. Also there may not be any data for the SELECT statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Oct 2009 04:54:06 GMT</pubDate>
    <dc:creator>former_member222860</dc:creator>
    <dc:date>2009-10-12T04:54:06Z</dc:date>
    <item>
      <title>select-options in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-fm/m-p/6206932#M1377039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am creating RFC enabled function module with 2 input parameters as banfn and vbeln&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have defined them in import paramaters as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT&lt;/P&gt;&lt;P&gt;P_M_BANFN_LOW       TYPE        BAPIEBAN-PREQ_NO&lt;/P&gt;&lt;P&gt;P_M_BANFN_HIGH       TYPE        BAPIEBAN-PREQ_NO&lt;/P&gt;&lt;P&gt;P_M_VBELN_LOW       TYPE        BAPIEBKN-SD_DOC&lt;/P&gt;&lt;P&gt;P_M_VBELN_HIGH       TYPE        BAPIEBKN-SD_DOC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user can enter two values or any of the 1 value or values in ranges..it shd work like select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in source code i have defined...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : eban,ebkn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : BEGIN OF ITAB ,&lt;/P&gt;&lt;P&gt;       vbeln LIKE  EBKN-vbeln,&lt;/P&gt;&lt;P&gt;       banfn LIKE  EBAN-banfn,&lt;/P&gt;&lt;P&gt;       bnfpo like eban-bnfpo,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB_MSGPF TYPE STANDARD TABLE OF ITAB WITH HEADER LINE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2009 04:34:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-fm/m-p/6206932#M1377039</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2009-10-12T04:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-fm/m-p/6206933#M1377040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(continued source code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges : banfn1 FOR eban-banfn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_m_banfn_low is not initial  and  p_m_banfn_high is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  banfn1-sign = 'I'.&lt;/P&gt;&lt;P&gt;  banfn1-option = 'BT'.&lt;/P&gt;&lt;P&gt;  banfn1-LOW = p_m_banfn_low.&lt;/P&gt;&lt;P&gt;  banfn1-high = p_m_banfn_high.&lt;/P&gt;&lt;P&gt;  append  banfn1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  banfn1-sign = 'I'.&lt;/P&gt;&lt;P&gt;  banfn1-option = 'CP'.&lt;/P&gt;&lt;P&gt;  banfn1-LOW = '*'.&lt;/P&gt;&lt;P&gt;  append  banfn1.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges : vbeln1 FOR eban-banfn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_m_vbeln_low is not initial  and  p_m_vbeln_high is not  initial.&lt;/P&gt;&lt;P&gt;  vbeln1-sign = 'I'.&lt;/P&gt;&lt;P&gt;  vbeln1-option = 'BT'.&lt;/P&gt;&lt;P&gt;  vbeln1-LOW = p_m_vbeln_low.&lt;/P&gt;&lt;P&gt;  vbeln1-high = p_m_vbeln_high.&lt;/P&gt;&lt;P&gt;  append  vbeln1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  vbeln1-sign = 'I'.&lt;/P&gt;&lt;P&gt;  vbeln1-option = 'CP'.&lt;/P&gt;&lt;P&gt;  vbeln1-LOW = '*'.&lt;/P&gt;&lt;P&gt;  append  vbeln1.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select eban&lt;SUB&gt;banfn eban&lt;/SUB&gt;bnfpo ebkn~vbeln into corresponding fields of table itab_msgpf up to 10 rows&lt;/P&gt;&lt;P&gt;   from eban&lt;/P&gt;&lt;P&gt;   inner join ebkn on&lt;/P&gt;&lt;P&gt;  eban&lt;SUB&gt;banfn = ebkn&lt;/SUB&gt;banfn&lt;/P&gt;&lt;P&gt;  where eban~banfn in banfn1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am unable to fill my internal table itab_msgpf..what might be reason?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2009 04:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-fm/m-p/6206933#M1377040</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2009-10-12T04:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-fm/m-p/6206934#M1377041</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;Refer:&lt;/P&gt;&lt;P&gt;Declare tow ranges in the SOURCE CODE area as:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
RANGES : r_banfn FOR eban-banfn,
         r_vbeln FOR vbak-vbeln.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To populate the range for these two use code:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF NOT p_m_banfn_low IS INITIAL.
  IF NOT p_m_banfn_high IS INITIAL.
    r_banfn-sign = 'I'.
    r_banfn-option = 'BT'.
    r_banfn-low = p_m_banfn_low.
    r_banfn-high = p_m_banfn_high.
    APPEND r_banfn.
    CLEAR r_banfn.
  ELSE.
    r_banfn-sign = 'I'.
    r_banfn-option = 'EQ'.
    r_banfn-low = p_m_banfn_low.
    APPEND r_banfn.
    CLEAR r_banfn.
  ENDIF.
ENDIF.
&amp;nbsp;
IF NOT p_m_vbeln_low IS INITIAL.
  IF NOT p_m_vbeln_high IS INITIAL.
    r_vbeln-sign = 'I'.
    r_vbeln-option = 'BT'.
    r_vbeln-low = p_m_vbeln_low.
    r_vbeln-high = p_m_vbeln_high.
    APPEND r_vbeln.
    CLEAR r_vbeln.
  ELSE.
    r_vbeln-sign = 'I'.
    r_vbeln-option = 'EQ'.
    r_vbeln-low = p_m_vbeln_low.
    APPEND r_vbeln.
    CLEAR r_vbeln.
  ENDIF.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use these two ranges for you select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Geeta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2009 04:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-fm/m-p/6206934#M1377041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-12T04:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-fm/m-p/6206935#M1377042</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;Check in the Debug-mode, if BANFN1 is populating with data. Also there may not be any data for the SELECT statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2009 04:54:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-fm/m-p/6206935#M1377042</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-10-12T04:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-fm/m-p/6206936#M1377043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try some thing like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_m_banfn_low is not initial and p_m_banfn_high is not initial.&lt;/P&gt;&lt;P&gt;BT &lt;/P&gt;&lt;P&gt;elseif p_m_banfn_low is not initial and p_m_banfn_high is initial.&lt;/P&gt;&lt;P&gt;EQ   &lt;/P&gt;&lt;P&gt;elseif  p_m_banfn_low ca '&lt;STRONG&gt;' or p_m_banfn_high ca '&lt;/STRONG&gt;' .&lt;/P&gt;&lt;P&gt;CP&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2009 05:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-fm/m-p/6206936#M1377043</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-10-12T05:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-fm/m-p/6206937#M1377044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello geeta...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnks for u r reply..u r answer was up to the mark and it solved my problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnks keshu and mahesh...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2009 05:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-fm/m-p/6206937#M1377044</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2009-10-12T05:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-fm/m-p/6206938#M1377045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats good... Please close your thread if you got an answer..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Geeta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2009 05:28:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-fm/m-p/6206938#M1377045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-12T05:28:07Z</dc:date>
    </item>
  </channel>
</rss>

