<?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: How to pass select-option filed to Function Module Exporting Parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854729#M1135259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;lv_bukrs = wa_bukrs-low.
 
endloop.
 
call FM,,,,,,,,,,,,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if this will serve your purpose since you have select-options instead of parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if the user gave input like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1000  To  2000&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will calculate due date analysis(From FM) only for 1000 (wa_bukrs-low)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use Ranges for select-options,and get all Company code which falls between 1000(wa_bukrs-low) to 2000(wa_bukrs-high).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2008 18:49:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-05T18:49:38Z</dc:date>
    <item>
      <title>How to pass select-option filed to Function Module Exporting Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854722#M1135252</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;    How to pass select-option filed to Function Module Exporting Parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 17:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854722#M1135252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T17:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass select-option filed to Function Module Exporting Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854723#M1135253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can do that if there is not type conflict with both of them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any variable you send to FM need to be the same type of the variable used in FM source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at so_option.

move....

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 17:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854723#M1135253</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-12-05T17:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass select-option filed to Function Module Exporting Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854724#M1135254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just few Minutes back the same(Almost) problem has been answered:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="1156333"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 18:00:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854724#M1135254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T18:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass select-option filed to Function Module Exporting Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854725#M1135255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amit,&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;i  am using the FM CUSTOMER_DUE_DATE_ANALYSIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"*"Lokale Schnittstelle:&lt;/P&gt;&lt;P&gt;*"       IMPORTING&lt;/P&gt;&lt;P&gt;*"             VALUE(BUKRS) LIKE  BSID-BUKRS DEFAULT ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my program Bukrs as select-option filed.Now ia want to pass the select-option field Bukrs to the above fm filed BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,here how sholud we pass the Select-option value to that fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 18:09:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854725#M1135255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T18:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass select-option filed to Function Module Exporting Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854726#M1135256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*" VALUE(BUKRS) LIKE BSID-BUKRS DEFAULT ' '.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;datA: lv_bukrs type bsid-bukrs.

loop at so_bukrs into wa_bukrs.

lv_bukrs = wa_bukrs-low.

endloop.

call FM,,,,,,,,,,,,


bukrs = lv_bukrs.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 18:19:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854726#M1135256</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-12-05T18:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass select-option filed to Function Module Exporting Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854727#M1135257</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;PRE&gt;&lt;CODE&gt; DATA: BEGIN OF ITAB5_WRK OCCURS 0,
        KUNNR     TYPE KNKK-KUNNR,  "CUSTOMER #
        SBGRP     TYPE KNKK-SBGRP,  "CREDIT REP
        KLIMK     TYPE KNKK-KLIMK,  "CREDIT LIMIT
        NAME1     TYPE KNA1-NAME1,  "CUSTOMER NAME
        SKFOR     TYPE KNKK-SKFOR,  "TOTAL A/R
        AMT1      TYPE KNKK-SKFOR,  "CURRENT
        AMT2      TYPE KNKK-SKFOR,                          "01-30
        AMT3      TYPE KNKK-SKFOR,                          "31-60
        AMT4      TYPE KNKK-SKFOR,                          "61-90
        AMT5      TYPE KNKK-SKFOR,                          "91-120
        AMT6      TYPE KNKK-SKFOR,                          "OVR 120
        BZIRK     TYPE KNVV-BZIRK,

      END OF ITAB5_WRK.




SELECT-OPTIONS P_COMP     FOR  T001-BUKRS


  SELECT KUNNR SBGRP  FROM KNKK
         INTO TABLE ITAB5_WRK
         WHERE SBGRP IN P_REP
           AND KUNNR GE '0001000000'
           AND SKFOR NE 0.


  LOOP AT ITAB5_WRK.
    DELETE ADJACENT DUPLICATES FROM ITAB5_WRK COMPARING KUNNR.
  ENDLOOP.

  PERFORM GET_CREDIT_LIMITS.
*=======================================================================
  IF P_DIST NE SPACE.


    LOOP AT ITAB5_WRK.

      SELECT SINGLE * FROM KNVV WHERE KUNNR EQ ITAB5_WRK-KUNNR
                                  AND VKORG EQ P_COMP
                                  AND VTWEG EQ '20'
                                  AND SPART EQ '10'
                                  AND BZIRK IN P_DIST.

      IF SY-SUBRC EQ 0.
        MOVE KNVV-BZIRK TO ITAB5_WRK-BZIRK.
        MODIFY ITAB5_WRK.
      ELSE.
        DELETE ITAB5_WRK.
      ENDIF.

    ENDLOOP.


  ENDIF.

*==============================================================
  LOOP AT ITAB5_WRK.

    MOVE: 'F/S'            TO WRK-KKBER,
           ITAB5_WRK-KUNNR TO WRK-KUNNR.

    PERFORM AGING.

    ADD: W_SNFAE  TO ITAB5_WRK-AMT1,
         W_SFAE1  TO ITAB5_WRK-AMT2,
         W_SFAE2  TO ITAB5_WRK-AMT3,
         W_SFAE3  TO ITAB5_WRK-AMT4,
         W_SFAE4  TO ITAB5_WRK-AMT5,
         W_SFAE5  TO ITAB5_WRK-AMT6,
         W_SFAEL  TO ITAB5_WRK-SKFOR,
         W_SNFAE  TO ITAB5_WRK-SKFOR.

    MOVE: 'SPEC'            TO WRK-KKBER,
           ITAB5_WRK-KUNNR TO WRK-KUNNR.

    *PERFORM AGING.*

    ADD: W_SNFAE  TO ITAB5_WRK-AMT1,
         W_SFAE1  TO ITAB5_WRK-AMT2,
         W_SFAE2  TO ITAB5_WRK-AMT3,
         W_SFAE3  TO ITAB5_WRK-AMT4,
         W_SFAE4  TO ITAB5_WRK-AMT5,
         W_SFAE5  TO ITAB5_WRK-AMT6,
         W_SFAEL  TO ITAB5_WRK-SKFOR,
         W_SNFAE  TO ITAB5_WRK-SKFOR.


    MODIFY ITAB5_WRK.


  ENDLOOP.


FORM AGING.

  *CALL FUNCTION 'CUSTOMER_DUE_DATE_ANALYSIS'*  
  EXPORTING
      BUKRS             = P_COMP            
      KKBER             = WRK-KKBER
      KUNNR             = WRK-KUNNR
      RASID             = 'FEND'
      KLIMP             = 'X'
    IMPORTING
      SFAE1             = W_SFAE1
      SFAE2             = W_SFAE2
      SFAE3             = W_SFAE3
      SFAE4             = W_SFAE4
      SFAE5             = W_SFAE5
      SFAE6             = W_SFAE6
      SFAEL             = W_SFAEL
      SNFA1             = W_SNFA1
      SNFA2             = W_SNFA2
      SNFA3             = W_SNFA3
      SNFA4             = W_SNFA4
      SNFA5             = W_SNFA5
      SNFA6             = W_SNFA6
      SNFAE             = W_SNFAE
    EXCEPTIONS
      NO-AGING_SCHEDULE = 1
      NO_TABLE_INPUT    = 2.



  CASE SY-SUBRC.
    WHEN 1.
      MESSAGE E999 WITH 'PLEASE ENTER AGING SCHEDULE'.
    WHEN 2.
      MESSAGE E999 WITH 'DO NOTHING ??'.
  ENDCASE.

ENDFORM.                    "AGING &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 18:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854727#M1135257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T18:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass select-option filed to Function Module Exporting Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854728#M1135258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM AGING.

data: lv_burks type BSID-BUKRS.

loop at P_COMP.
lv_bukrs = p_comp-low .   "" this works if you give only one CC.

clear: p_comp.
endloop.

  *CALL FUNCTION 'CUSTOMER_DUE_DATE_ANALYSIS'*  
  EXPORTING
      BUKRS             = lv_bukrs&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 18:49:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854728#M1135258</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-12-05T18:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass select-option filed to Function Module Exporting Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854729#M1135259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;lv_bukrs = wa_bukrs-low.
 
endloop.
 
call FM,,,,,,,,,,,,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if this will serve your purpose since you have select-options instead of parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if the user gave input like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1000  To  2000&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will calculate due date analysis(From FM) only for 1000 (wa_bukrs-low)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use Ranges for select-options,and get all Company code which falls between 1000(wa_bukrs-low) to 2000(wa_bukrs-high).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 18:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854729#M1135259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T18:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass select-option filed to Function Module Exporting Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854730#M1135260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Yes, that the Problem here i am facing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the user gave input :&lt;/P&gt;&lt;P&gt;1000 To 2000 .How sholud we pass the filed value to that Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 19:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854730#M1135260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T19:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass select-option filed to Function Module Exporting Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854731#M1135261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT-OPTIONS / RANGES are still just tables.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass it as a table to the FM.  Just make sure you have the layout defined the same way in the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the FM IMPORT Tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Parm Name      TYPE     Reference Type
I_GRPNAME      TYPE     ZPS_R_GRPNAME_T
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now ZPS_R_GRPNAME_T is a Table Type of ROW TYPE ZPS_R_GRPNAME.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ZPS_R_GRPNAME is a Structure defined as
SIGN          SCPR_SIGN
OPTION        OPTION
LOW           GRPNAME (Char 15)
HIGH          GRPNAME (Char 15)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use this to read plants with in a division and the EXPORT tab contains&lt;/P&gt;&lt;P&gt;the same basic info for the PLANT/Branch Range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can pass a Range to and from an FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the FM Source&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION ZSD_GET_BRANCH_GROUP.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  IMPORTING
*"     REFERENCE(I_GRPNAME) TYPE  ZPS_R_GRPNAME_T
*"     REFERENCE(FLAG_READ_DESC) TYPE  FLAG_X OPTIONAL
*"  EXPORTING
*"     REFERENCE(E_BRANCH_RANGE) TYPE  ZPS_R_BRANCH_T
*"  TABLES
*"      IT_BRANCH_DESC STRUCTURE  ZPS_BRANCH_DESC OPTIONAL
*"----------------------------------------------------------------------

data:
 it_zpca like standard table of zpca with header line,
 c_region type khinr value 'JWHCO'.

* Valid branches
data:
  wa_werks like zpca-branch,
  it_werks like standard table of wa_werks.

data:
  wa_branch_range like zps_r_branch,
  wa_branch_desc  like zps_branch_desc.


* Init
  check not i_grpname[] is initial.
  clear e_branch_range. refresh e_branch_range.

* Read All Branches for Division from ZPCA
  select *
    into table it_zpca
    from zpca
   where region   eq c_region and
         division in i_grpname.

  check not it_zpca[] is initial.

  loop at it_zpca.

    wa_branch_range-sign    = 'I'.
    wa_branch_range-option  = 'EQ'.
    wa_branch_range-low     = it_zpca-branch.
    append wa_branch_range to e_branch_range.
    clear wa_branch_range.

  endloop.
  sort e_branch_range.
  delete adjacent duplicates from e_branch_range.

* Get Descriptions
  if flag_read_desc ne space.

    loop at it_zpca.

       wa_branch_desc-werks  = it_zpca-branch.
       wa_branch_desc-bukrs  = it_zpca-cmpy.
       wa_branch_desc-brtext = it_zpca-brtext.
       wa_branch_desc-brtextextd = it_zpca-brtextextd.

       append wa_branch_desc to it_branch_desc. clear wa_branch_desc.

    endloop.
    sort it_branch_desc.

  endif.

ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Paul Chapman on Dec 5, 2008 2:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 19:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854731#M1135261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T19:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass select-option filed to Function Module Exporting Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854732#M1135262</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;   That means i need to copy the fm  CUSTOMER_DUE_DATE_ANALYSIS into Zfm and make changes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 19:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854732#M1135262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T19:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass select-option filed to Function Module Exporting Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854733#M1135263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay,Do one thing :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just fetch the master data from T001 based on selection sceen values like 1000 to 2000.&lt;/P&gt;&lt;P&gt;select * from t001 into table i_t001 where bukrs in i_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and by looping on i_t001 table read your final internal table with key bukrs and code looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at &amp;lt;final itab&amp;gt;.
*CALL FUNCTION 'CUSTOMER_DUE_DATE_ANALYSIS'*  
  EXPORTING
      BUKRS             = &amp;lt;finalitab-bukrs&amp;gt;
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;That means i need to copy the fm CUSTOMER_DUE_DATE_ANALYSIS into Zfm and make changes?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, Not at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 20:01:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854733#M1135263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T20:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass select-option filed to Function Module Exporting Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854734#M1135264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there..&lt;/P&gt;&lt;P&gt;              If you can investigate on the root cause of the issue.. its because any of the internal table does not have a BUKRS field.. investigate in such a way where you can find a link between Customer and company code.. join those table and get bukrs... loop that table pass then to the FM or BAPI..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*CALL FUNCTION 'CUSTOMER_DUE_DATE_ANALYSIS'*  
  EXPORTING
      BUKRS             = P_COMP            
      KKBER             = WRK-KKBER
      KUNNR             = WRK-KUNNR
      RASID             = 'FEND'
      KLIMP             = 'X'
    IMPORTING
      SFAE1             = W_SFAE1
      SFAE2             = W_SFAE2
      SFAE3             = W_SFAE3
      SFAE4             = W_SFAE4
      SFAE5             = W_SFAE5
      SFAE6             = W_SFAE6
      SFAEL             = W_SFAEL
      SNFA1             = W_SNFA1
      SNFA2             = W_SNFA2
      SNFA3             = W_SNFA3
      SNFA4             = W_SNFA4
      SNFA5             = W_SNFA5
      SNFA6             = W_SNFA6
      SNFAE             = W_SNFAE
    EXCEPTIONS
      NO-AGING_SCHEDULE = 1
      NO_TABLE_INPUT    = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 21:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-filed-to-function-module-exporting-parameter/m-p/4854734#M1135264</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-12-05T21:03:44Z</dc:date>
    </item>
  </channel>
</rss>

