<?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: function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4064679#M971606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;greetings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the following.....may be of yr help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be able to call a function module in an update work process, you must flag it in the Function Builder. When you create the function module, set the Process Type attribute to one of the following values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update with immediate start&lt;/P&gt;&lt;P&gt;Set this option for high priority ("V1") functions that run in a shared (SAP LUW). These functions can be restarted by the update task in case of errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update w. imm. start, no restart&lt;/P&gt;&lt;P&gt;Set this option for high priority ("V1") functions that run in a shared (SAP LUW). These functions may not be restarted by the update task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update with delayed start&lt;/P&gt;&lt;P&gt;Set this option for low priority ("V2") functions that run in their own update transactions. These functions can be restarted by the update task in case of errors.&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;reward points,if helpful&lt;/P&gt;&lt;P&gt;prashant tiwari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2008 10:53:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-27T10:53:12Z</dc:date>
    <item>
      <title>function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4064675#M971602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;i wrote normal function module not remote enabled.&lt;/P&gt;&lt;P&gt;and i want call it asynchronously in the same system to achieve parallel processing.&lt;/P&gt;&lt;P&gt;how to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 10:41:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4064675#M971602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T10:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4064676#M971603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for calling the function module asynchronously......the fm should be remote enabled other wise it will show the error that destination failure..so it is not possible to call it asynchronously  with out remote enabled&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 10:47:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4064676#M971603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T10:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4064677#M971604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marat,&lt;/P&gt;&lt;P&gt;Check below syntax and F1 help. I think u have to define ur FM as RFC. There is no difference in functionality as far as considered with in ur system by making the FM as RFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL FUNCTION funcion name IN BACKGROUND TASK.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... AS SEPARATE UNIT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... DESTINATION dest &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. ... EXPORTING  p1 = f1    ... pn = fn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. ... TABLES     p1 = itab1 ... pn = itabn&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;Effect &lt;/P&gt;&lt;P&gt;Flags the function module func to be run asynchronously. It is not executed at once, but the data passed with EXPORTING or TABLES is placed in a database table and the next COMMIT WORK executes it in another work process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;This variant applies only as of Release 3.0, so both the client system and the server system must be Release 3.0 or higher. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;qRFC with Outbound Queue &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an extension of tRFC. The tRFC is serialized using queues, ensuring that the sequence of LUWs required by the application is observed when the calls are sent. &lt;/P&gt;&lt;P&gt;For further information about qRFC, refer to the Serialized RFC: qRFC With Outbound Queue section of the SAP Library. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... AS SEPARATE UNIT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Executes the function module in a separate LUW under a new transaction ID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... DESTINATION dest &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Executes the function module externally as a Remote Function Call (RFC); dest can be a literal or a variable. &lt;/P&gt;&lt;P&gt;Depending on the specified destination, the function module is executed either in another R/3 System or as a C-implemented function module. Externally callable function modules must be flagged as such in the Function Builder (of the target system). &lt;/P&gt;&lt;P&gt;Since each destination defines its own program context, further calls to the same or different function modules with the same destination can access the local memory (global data) of these function modules. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Note that a database commit occurs at each Remote Function Call (RFC). Consequently, you may not use Remote Function Calls between pairs of statements that open and close a database cursor (such as SELECT ... ENDSELECT). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 3 &lt;/P&gt;&lt;P&gt;... EXPORTING p1 = f1 ... pn = fn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;EXPORTING passes values of fields and field strings from the calling program to the function module. In the function module, formal parameters are defined as import parameters. Default values must be assigned to all import parameters of the function module in the interface definition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 4 &lt;/P&gt;&lt;P&gt;... TABLES p1 = itab1 ... pn = itabn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;TABLES passes references to internal tables. All table parameters of the function module must contain values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If several function module calls with the same destination are specified before COMMIT WORK, these normally form an LUW in the target system. Calls with the addition 1 are an exception to this rule - they each have their own LUW. &lt;/P&gt;&lt;P&gt;You cannot specify type 2 destinations (R/3 - R/2 connections). &lt;/P&gt;&lt;P&gt;(See Technical details and Administration transaction.) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;REPORT  RS41503F. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* This program performs a transactional RFC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: SCUSTOM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: CUSTID FOR SCUSTOM-ID DEFAULT 1 TO 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: DEST LIKE RFCDES-RFCDEST DEFAULT 'NONE', &lt;/P&gt;&lt;P&gt;            MODE DEFAULT 'N', &lt;/P&gt;&lt;P&gt;            TIME LIKE SY-UZEIT DEFAULT SY-UZEIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: CUSTITAB TYPE TABLE OF CUST415, &lt;/P&gt;&lt;P&gt;      TAMESS   TYPE TABLE OF T100, &lt;/P&gt;&lt;P&gt;      WA_CUSTITAB TYPE CUST415. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ID NAME TELEPHONE INTO CORRESPONDING FIELDS OF TABLE CUSTITAB &lt;/P&gt;&lt;P&gt;               FROM SCUSTOM WHERE ID IN CUSTID ORDER BY ID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM READ_CUSTITAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDITOR-CALL FOR CUSTITAB TITLE 'Editor for table CUSTITAB'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM READ_CUSTITAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TRAIN415_RFC_CALLTRANSACTION' &lt;/P&gt;&lt;P&gt;     IN BACKGROUND TASK &lt;/P&gt;&lt;P&gt;     DESTINATION DEST &lt;/P&gt;&lt;P&gt;     EXPORTING &lt;/P&gt;&lt;P&gt;          TAMODE    = MODE &lt;/P&gt;&lt;P&gt;     TABLES &lt;/P&gt;&lt;P&gt;          CUSTTAB   = CUSTITAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'START_OF_BACKGROUNDTASK' &lt;/P&gt;&lt;P&gt;     EXPORTING &lt;/P&gt;&lt;P&gt;          STARTDATE = SY-DATUM &lt;/P&gt;&lt;P&gt;          STARTTIME = TIME &lt;/P&gt;&lt;P&gt;     EXCEPTIONS &lt;/P&gt;&lt;P&gt;          OTHERS    = 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 1. &lt;/P&gt;&lt;P&gt;  EXIT. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'SM58'. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------" /&gt; &lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM READ_CUSTITAB                                   * &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------" /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM READ_CUSTITAB. &lt;/P&gt;&lt;P&gt;  WRITE: / 'System ID:', SY-SYSID. &lt;/P&gt;&lt;P&gt;  SKIP. &lt;/P&gt;&lt;P&gt;  LOOP AT CUSTITAB into WA_CUSTITAB &lt;/P&gt;&lt;P&gt;    WRITE: / WA_CUSTITAB-ID, WA_CUSTITAB-NAME, &lt;/P&gt;&lt;P&gt;             WA_CUSTITAB-TELEPHONE. &lt;/P&gt;&lt;P&gt;  ENDLOOP. &lt;/P&gt;&lt;P&gt;  ULINE. &lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Authorization check &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the instance profile parameter 'auth/rfc_authority_check' is set (=1), the system automatically checks the RFC authorization. This is based on the function group of the function module that you are calling. If the authorization check fails, a runtime error is triggered. You can check the authorization in advance using the function module AUTHORITY_CHECK_RFC. If the RFC communication is within a single system and user context (that is, same client and same user ID), there is no authorization check. For further information, refer to the RFC authorization concept. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;If errors occur, you can refer to Typical RFC problems and solutions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Runtime errors: &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_NO_RECEIVER: &lt;/P&gt;&lt;P&gt;Data received for an unknown CPI-C connection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_DEST_TYPE: &lt;/P&gt;&lt;P&gt;Destination type not allowed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_NO_DEST: &lt;/P&gt;&lt;P&gt;Specified destination does not exist. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_NO_LB_DEST: &lt;/P&gt;&lt;P&gt;Specified destination (in load distribution mode) does not exist. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_TABINFO: &lt;/P&gt;&lt;P&gt;Data error (info internal table) in a Remote Function Call. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_BACK_ENTRY_NOT_FOUND: &lt;/P&gt;&lt;P&gt;The called function module is not released for use in RFC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_FIELD_NOT_FOUND: &lt;/P&gt;&lt;P&gt;The function parameter that you passed is not recognized on the recipient side. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RFC_NO_AUTHORITY: &lt;/P&gt;&lt;P&gt;The user does not have RFC authorization. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_SINGLE_LOGIN_REJ: &lt;/P&gt;&lt;P&gt;No authorization to log on as a trusted system. The error codes have the following meanings: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0) Valid security key but wrong logon data 1) Calling system is not a trusted system, or security key is invalid 2) User either does not have RFC authorization (authorization object S_RFCACL), or logged on as one of the protected users 'DDIC' or 'SAP*' 3) Timestamp of the logon data is invalid &lt;/P&gt;&lt;P&gt;CALL_FUNCTION_DESTINATION_NO_T: &lt;/P&gt;&lt;P&gt;Missing communication type (I for internal connection, 3 for R/3) in an asynchronous RFC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_NOT_REMOTE: &lt;/P&gt;&lt;P&gt;The function module called is not flagged as "RFC supported" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_REMOTE_ERROR: &lt;/P&gt;&lt;P&gt;An error occurred during the Remote Function Call. This has been logged in the target system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_SIGNON_INCOMPL: &lt;/P&gt;&lt;P&gt;The logon data for the user is incomplete. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_SIGNON_INTRUDER: &lt;/P&gt;&lt;P&gt;You cannot log onto a target system using an internal call. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_SIGNON_INVALID: &lt;/P&gt;&lt;P&gt;External RFC without a valid user name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_SIGNON_REJECTED: &lt;/P&gt;&lt;P&gt;Attempt to log onto a target system without a valid user name. The error code can have the following meanings: &lt;/P&gt;&lt;P&gt;1) Wrong password or invalid user ID &lt;/P&gt;&lt;P&gt;2) User locked &lt;/P&gt;&lt;P&gt;3) Too many logon attempts &lt;/P&gt;&lt;P&gt;4) Error in authorization buffer (internal error) &lt;/P&gt;&lt;P&gt;5) No external user check &lt;/P&gt;&lt;P&gt;6) Invalid user type &lt;/P&gt;&lt;P&gt;7) Validity period of user has expired &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_SYSCALL_ONLY: &lt;/P&gt;&lt;P&gt;RFC without a valid user name only allowed when calling system function modules. For the meaning of the error codes, refer to CALL_FUNCTION_SINGLE_LOGIN_REJ. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_TABLE_NO_MEMORY: &lt;/P&gt;&lt;P&gt;No memory available for a table to be imported &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_TASK_IN_USE: &lt;/P&gt;&lt;P&gt;Asynchronous RFC only: Task name already in use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_TASK_YET_OPEN: &lt;/P&gt;&lt;P&gt;Asynchronous RFC only: The specified task is already open. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_SNC_ERROR: &lt;/P&gt;&lt;P&gt;Error reading the SNC information for the destination. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_RPERF_SLOGIN_READ_ERROR: &lt;/P&gt;&lt;P&gt;No valid trusted system entry for the calling system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_RPERF_SLOGIN_AUTH_ERROR: &lt;/P&gt;&lt;P&gt;No trusted authorization for the RFC caller and trusted system. &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;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Reddy Vemuru on Jun 27, 2008 4:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 10:48:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4064677#M971604</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-06-27T10:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4064678#M971605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to make the FM as RFC. otherwise it will not be processed asynchronously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer the documet for further help&lt;/P&gt;&lt;P&gt;check under this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Prerequisites for Parallel Processing&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/22/0425c6488911d189490000e829fbbd/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/22/0425c6488911d189490000e829fbbd/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 10:49:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4064678#M971605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T10:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4064679#M971606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;greetings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the following.....may be of yr help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be able to call a function module in an update work process, you must flag it in the Function Builder. When you create the function module, set the Process Type attribute to one of the following values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update with immediate start&lt;/P&gt;&lt;P&gt;Set this option for high priority ("V1") functions that run in a shared (SAP LUW). These functions can be restarted by the update task in case of errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update w. imm. start, no restart&lt;/P&gt;&lt;P&gt;Set this option for high priority ("V1") functions that run in a shared (SAP LUW). These functions may not be restarted by the update task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update with delayed start&lt;/P&gt;&lt;P&gt;Set this option for low priority ("V2") functions that run in their own update transactions. These functions can be restarted by the update task in case of errors.&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;reward points,if helpful&lt;/P&gt;&lt;P&gt;prashant tiwari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 10:53:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4064679#M971606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T10:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4064680#M971607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your main program that calls this Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use FM  'ENQUEUE_ES_PROG' to lock the program&lt;/P&gt;&lt;P&gt;use FM 'SPBT_INITIALIZE' to initialise the paralell processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call your function module&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get the time management records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call function 'ZGET_Data'&lt;/P&gt;&lt;P&gt;         starting new task w_task1&lt;/P&gt;&lt;P&gt;      destination in group p_srvgrp&lt;/P&gt;&lt;P&gt;       performing come_back on end of task&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              p_pernr                 = i_pa0000-pernr............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your function module will need to be remote enabled and start immediatly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use FM DEQUEUE_ES_PROG to release the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 10:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4064680#M971607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T10:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4064681#M971608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your main program that calls this Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use FM  'ENQUEUE_ES_PROG' to lock the program&lt;/P&gt;&lt;P&gt;use FM 'SPBT_INITIALIZE' to initialise the paralell processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call your function module&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get the time management records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call function 'ZGET_Data'&lt;/P&gt;&lt;P&gt;         starting new task w_task1&lt;/P&gt;&lt;P&gt;      destination in group p_srvgrp&lt;/P&gt;&lt;P&gt;       performing come_back on end of task&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              p_pernr                 = i_pa0000-pernr............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your function module will need to be remote enabled and start immediatly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use FM DEQUEUE_ES_PROG to release the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 10:56:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4064681#M971608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T10:56:05Z</dc:date>
    </item>
  </channel>
</rss>

