<?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: Calling SAPF124 into function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304111#M1635896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; have a doubt in low you have hard coded the date but here we should not hard code it . user will give the document date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me to over come this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Dec 2011 13:30:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-12-03T13:30:02Z</dc:date>
    <item>
      <title>Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304102#M1635887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling the SAPF124 program into function module .....i have the posting date as range&lt;/P&gt;&lt;P&gt;in function moduel i want to pass through range can anyone help me how to pass it &lt;/P&gt;&lt;P&gt;if its from and to range means i am able to pass it easily.&lt;/P&gt;&lt;P&gt;but if its range like 1 3 5 means i m unable to pass. kindly help me to sort out this issue.&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;Ajay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 09:39:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304102#M1635887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T09:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304103#M1635888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use below code for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : z_budat TYPE RANGE OF budat,
wa_budat LIKE LINE OF z_budat.
wa_budat-low = '20111001'.
wa_budat-sign = 'I'.
wa_budat-option = 'BT'.
wa_budat-high = '20111031'.
APPEND wa_budat TO z_budat

clear wa_budat.

SUBMIT Program WITH s_budat IN z_budat  and return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 10:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304103#M1635888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T10:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304104#M1635889</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;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_budat-low = '20111001'.
wa_budat-sign = 'I'.
wa_budat-option = 'BT'.
append wa_budat  .

wa_budat-low = '20111003'.
wa_budat-sign = 'I'.
wa_budat-option = 'BT'.
append wa_budat  .

wa_budat-low = '20111005'.
wa_budat-sign = 'I'.
wa_budat-option = 'BT'.
append wa_budat  .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" Just append  in low value   and pass it  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 10:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304104#M1635889</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-12-03T10:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304105#M1635890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ma requirement i should pass the input from the function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;I_compcode&lt;/P&gt;&lt;P&gt;i_year&lt;/P&gt;&lt;P&gt;I_docnr&lt;/P&gt;&lt;P&gt;I_date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this i should pass the range &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;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 10:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304105#M1635890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T10:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304106#M1635891</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 you want to pass three different value then use 'EQ' in option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : z_budat TYPE RANGE OF budat,
wa_budat LIKE LINE OF z_budat.
clear wa_budat.
wa_budat-low = '20111001'.
wa_budat-sign = 'I'.
wa_budat-option = 'EQ'.  &amp;lt;---pass 'EQ' here
APPEND wa_budat TO z_budat
clear wa_budat.

wa_budat-low = '20111003'.
wa_budat-sign = 'I'.
wa_budat-option = 'EQ'.  &amp;lt;---pass 'EQ' here
APPEND wa_budat TO z_budat
 clear wa_budat.

wa_budat-low = '20111005'.
wa_budat-sign = 'I'.
wa_budat-option = 'EQ'.   &amp;lt;---pass 'EQ' here
APPEND wa_budat TO z_budat
clear wa_budat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 10:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304106#M1635891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T10:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304107#M1635892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can understand your guidelines. i wanna know how to pass more values in function . In function module i can pass one value like&lt;/P&gt;&lt;P&gt;Import Paramter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compcode : ABC&lt;/P&gt;&lt;P&gt;Year : 2011&lt;/P&gt;&lt;P&gt;Date : here i can give only one date as 03-12-2011&lt;/P&gt;&lt;P&gt;In this date i should pass many input ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me to resolve this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;AJay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 10:58:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304107#M1635892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T10:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304108#M1635893</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;&lt;/P&gt;&lt;P&gt; add one table in import parameters    with date as one column  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass  it to function module in table format  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 11:01:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304108#M1635893</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-12-03T11:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304109#M1635894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created one structure in input parameter but it will accept only one date only . so that i have added one structure in tables parameters , in which it will accept many input.&lt;/P&gt;&lt;P&gt;But while passing like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this i have created date and document number in i_format structure.&lt;/P&gt;&lt;P&gt;but this is not working .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_FORMAT[] into I_FORMAT.&lt;/P&gt;&lt;P&gt;  submit ZSAPF124  WITH BUKRX eq I_COMPCODE&lt;/P&gt;&lt;P&gt;                 WITH GJAHX  eq I_YEAR&lt;/P&gt;&lt;P&gt;                 WITH POSTDATE eq I_FORMAT-budat&lt;/P&gt;&lt;P&gt;                 WITH DOCNR EQ I_FORMAT-BELNR&lt;/P&gt;&lt;P&gt;                 WITH KONTD  eq I_KUNNR&lt;/P&gt;&lt;P&gt;                 with X_KUNNR eq I_KUNNR1&lt;/P&gt;&lt;P&gt;                 exporting list to memory&lt;/P&gt;&lt;P&gt;                 and return .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: srinivasan12345 on Dec 3, 2011 12:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 11:09:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304109#M1635894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T11:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304110#M1635895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Postdate is a SELECT-OPTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you import whole range table into that in below format.&lt;/P&gt;&lt;P&gt;Take reference from below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : z_budat TYPE RANGE OF budat,
wa_budat LIKE LINE OF z_budat.
clear wa_budat.
wa_budat-low = '20111001'.
wa_budat-sign = 'I'.
wa_budat-option = 'EQ'.  &amp;lt;---pass 'EQ' here
APPEND wa_budat TO z_budat
clear wa_budat.
 
wa_budat-low = '20111003'.
wa_budat-sign = 'I'.
wa_budat-option = 'EQ'.  &amp;lt;---pass 'EQ' here
APPEND wa_budat TO z_budat
 clear wa_budat.
 
wa_budat-low = '20111005'.
wa_budat-sign = 'I'.
wa_budat-option = 'EQ'.   &amp;lt;---pass 'EQ' here
APPEND wa_budat TO z_budat
clear wa_budat.

submit ZSAPF124 WITH BUKRX eq I_COMPCODE
WITH GJAHX eq I_YEAR
WITH POSTDATE IN z_buda                   &amp;lt;--pass date range here
WITH DOCNR EQ I_FORMAT-BELNR      &amp;lt;---here also pass whole select option table or range table as per your requirrement
WITH KONTD eq I_KUNNR
with X_KUNNR eq I_KUNNR1
exporting list to memory
and return .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this and let me know if you still face issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imp- The looping which you are using. i think you are wrong there.&lt;/P&gt;&lt;P&gt;I dont see any use of looping while using submit statement.&lt;/P&gt;&lt;P&gt;You can import whole SELECT-OPTION table there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 13:22:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304110#M1635895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T13:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304111#M1635896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; have a doubt in low you have hard coded the date but here we should not hard code it . user will give the document date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me to over come this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 13:30:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304111#M1635896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T13:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304112#M1635897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For date what you declared in selection screen like have you using SELECT-OPTION or PARAMETERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 13:59:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304112#M1635897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T13:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304113#M1635898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared in Select options only ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have used the code which u ve suggested me but it shows the error in screen as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wrong type passing to the parameter .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AJay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 14:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304113#M1635898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T14:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304114#M1635899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use in below way.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables : BKPF.
SELECT-OPTIONS: s_postdate FOR bkpf-budat.  &amp;lt;--declaration for date
SELECT-OPTIONS: s_docnr   FOR bseg-belnr.  &amp;lt;--declaration for belnr

submit ZSAPF124 WITH BUKRX eq I_COMPCODE
WITH GJAHX eq I_YEAR
WITH POSTDATE IN s_postdate                   &amp;lt;--pass date select option table
WITH DOCNR IN s_docnr      &amp;lt;---here also pass whole select option table 
WITH KONTD eq I_KUNNR
with X_KUNNR eq I_KUNNR1
exporting list to memory
and return .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test above by passing only three dates in LOW in selection screen and see whether you are getting correct data or not.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 14:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304114#M1635899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T14:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304115#M1635900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me to over come this issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : z_belnr TYPE RANGE OF belnr_d,&lt;/P&gt;&lt;P&gt;        wa_belnr LIKE LINE OF z_belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared the belnr in one structure with belnr field alone.&lt;/P&gt;&lt;P&gt;And i am passing the belnr value in tables parameter in Function module.so that it will fetch n number of entries&lt;/P&gt;&lt;P&gt;Passing the value from i_format structure to z_belnr, and then i am passing the z_belnr to the zprogram&lt;/P&gt;&lt;P&gt;This is wat ma requuirement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_FORMAT[] into I_FORMAT.&lt;/P&gt;&lt;P&gt;wa_belnr-low = I_FORMAT.&lt;/P&gt;&lt;P&gt;wa_belnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;wa_belnr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;APPEND wa_belnr TO z_belnr.&lt;/P&gt;&lt;P&gt;clear : wa_belnr,I_FORMAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit ZSAPF124  WITH BUKRX eq I_COMPCODE&lt;/P&gt;&lt;P&gt;                 WITH GJAHX  eq I_YEAR&lt;/P&gt;&lt;P&gt;                 WITH DOCNR EQ z_belnr&lt;/P&gt;&lt;P&gt;                 WITH KONTD  eq I_KUNNR&lt;/P&gt;&lt;P&gt;                 with X_KUNNR eq I_KUNNR1&lt;/P&gt;&lt;P&gt;                 exporting list to memory&lt;/P&gt;&lt;P&gt;                 and return .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i pass this value means it shows some error as&lt;/P&gt;&lt;P&gt;Wrong type passing parameters to "DOCNR"&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 14:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304115#M1635900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T14:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304116#M1635901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay ..&lt;/P&gt;&lt;P&gt;I am extremely sorry for troubling You , We cant pass the select-options in function module rite?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Local SELECT-OPTIONS are not allowed (FORM routine or GET event is active). .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;AJay &lt;/P&gt;&lt;P&gt;9677013978&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 14:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304116#M1635901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T14:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304117#M1635902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;We cant pass the select-options in function module rite?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain me what is your scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How you are executing this and where you are using this SUBMIT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 14:34:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304117#M1635902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T14:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304118#M1635903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i have created one functiopn module with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;*&lt;STRONG&gt;Inputs :: -- input parameter&lt;/STRONG&gt;*&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_COMPCODE	LIKE	BSEG-BUKRS&lt;/P&gt;&lt;P&gt;I_YEAR	LIKE	BSEG-GJAHR&lt;/P&gt;&lt;P&gt;I_DATE	TYPE	BKPF-BUDAT&lt;/P&gt;&lt;P&gt;I_KUNNR	LIKE	BSEG-KUNNR&lt;/P&gt;&lt;P&gt;I_KUNNR1	LIKE	RFPDO-F123KUNN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN tables &lt;/P&gt;&lt;P&gt;I_FORMAT	LIKE	ZASDD3(Belnr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am calling the zsapf124 in this function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as below code .through function module i should pass the inputs to the program. &lt;/P&gt;&lt;P&gt;hope i have already attached ma code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : z_belnr TYPE RANGE OF belnr_d,&lt;/P&gt;&lt;P&gt;        wa_belnr LIKE LINE OF z_belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_FORMAT[] into I_FORMAT.&lt;/P&gt;&lt;P&gt;wa_belnr-low = I_FORMAT.&lt;/P&gt;&lt;P&gt;wa_belnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;wa_belnr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;APPEND wa_belnr TO z_belnr.&lt;/P&gt;&lt;P&gt;clear : wa_belnr,I_FORMAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  submit ZSAPF124  WITH BUKRX eq I_COMPCODE&lt;/P&gt;&lt;P&gt;                 WITH GJAHX  eq I_YEAR&lt;/P&gt;&lt;P&gt;                 WITH DOCNR EQ z_belnr&lt;/P&gt;&lt;P&gt;                 WITH KONTD  eq I_KUNNR&lt;/P&gt;&lt;P&gt;                 with X_KUNNR eq I_KUNNR1&lt;/P&gt;&lt;P&gt;                 exporting list to memory&lt;/P&gt;&lt;P&gt;                 and return .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: srinivasan12345 on Dec 3, 2011 3:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 14:42:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304118#M1635903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T14:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304119#M1635904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;submit ZSAPF124 WITH BUKRX eq I_COMPCODE
WITH GJAHX eq I_YEAR
WITH POSTDATE eq I_DATE
WITH DOCNR IN z_belnr                          &amp;lt;--in case of range use 'IN'
WITH KONTD eq I_KUNNR
with X_KUNNR eq I_KUNNR1
exporting list to memory
and return .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with above changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 14:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304119#M1635904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T14:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calling SAPF124 into function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304120#M1635905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijay ,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really u helped me a lot.. thank you much vijay ,&lt;/P&gt;&lt;P&gt;10000's of thanks for spending your valuable time for me..&lt;/P&gt;&lt;P&gt;Once again thanks for sparing your time for me to resolve this issue..&lt;/P&gt;&lt;P&gt;Keep in touch n teach me more vijay .&lt;/P&gt;&lt;P&gt;Take care,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 15:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-sapf124-into-function-module/m-p/8304120#M1635905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-03T15:01:13Z</dc:date>
    </item>
  </channel>
</rss>

