<?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 Call Function  starting new task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task/m-p/5128168#M1188936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  We are not able to get data in RECIEVE of call fucntion new task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'ZRFC_PER_DIEM' starting new task lc_taskid PERFORMING SUBR ON END OF TASK&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          h_guid                          = it_header_guid_n&lt;/P&gt;&lt;P&gt;          request_obj                   = lt_requested_objects_n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form subr   USING task_id type clike.&lt;/P&gt;&lt;P&gt;RECEIVE RESULTS FROM FUNCTION 'ZRFC_PER_DIEM'&lt;/P&gt;&lt;P&gt;                             CHANGING&lt;/P&gt;&lt;P&gt;          var1          = return 1        &lt;/P&gt;&lt;P&gt;          var2          = return 1  .&lt;/P&gt;&lt;P&gt;endform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in above code , we are getting the value in RFC but when we are trying to get those values from RECIEVE RESULT i.e. return1 and return2 , we are not finding it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we have any syntax problem in above code.Or we dont need perfom RECIVE RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also we want that , till the RFC is executing the calling program whould not execute i.e after the RFC call is done then and only then my calling program should move for the next line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what hould be the proper way to do the same thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Feb 2009 11:17:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-02T11:17:29Z</dc:date>
    <item>
      <title>Call Function  starting new task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task/m-p/5128168#M1188936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  We are not able to get data in RECIEVE of call fucntion new task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'ZRFC_PER_DIEM' starting new task lc_taskid PERFORMING SUBR ON END OF TASK&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          h_guid                          = it_header_guid_n&lt;/P&gt;&lt;P&gt;          request_obj                   = lt_requested_objects_n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form subr   USING task_id type clike.&lt;/P&gt;&lt;P&gt;RECEIVE RESULTS FROM FUNCTION 'ZRFC_PER_DIEM'&lt;/P&gt;&lt;P&gt;                             CHANGING&lt;/P&gt;&lt;P&gt;          var1          = return 1        &lt;/P&gt;&lt;P&gt;          var2          = return 1  .&lt;/P&gt;&lt;P&gt;endform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in above code , we are getting the value in RFC but when we are trying to get those values from RECIEVE RESULT i.e. return1 and return2 , we are not finding it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we have any syntax problem in above code.Or we dont need perfom RECIVE RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also we want that , till the RFC is executing the calling program whould not execute i.e after the RFC call is done then and only then my calling program should move for the next line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what hould be the proper way to do the same thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 11:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task/m-p/5128168#M1188936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T11:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Call Function  starting new task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task/m-p/5128169#M1188937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at SAP Library:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/22/042592488911d189490000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/22/042592488911d189490000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make the program waits until the end of the asynchronous RFC execution you can use the statement WAIT UNTIL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only the following receiving parameters are allowed: IMPORTING, TABLES and EXCEPTIONS. CHANGING does not work for asynchronous RFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it could help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 11:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task/m-p/5128169#M1188937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T11:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Call Function  starting new task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task/m-p/5128170#M1188938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Lqueiroz  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now again i am getting a DUMP by saying ,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;"An error occurred when executing a REMOTE FUNCTION CALL.&lt;/P&gt;&lt;P&gt;It was logged under the name "At least one entry could not be "&lt;/P&gt;&lt;P&gt;on the called page."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what can be the reason for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'ZRFC_PER_DIEM' starting new task lc_taskid performing subr on end of task&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          h_guid      = it_header_guid_n&lt;/P&gt;&lt;P&gt;          request_obj = lt_requested_objects_n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      wait up to '1' seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      read table gt_scl into ls_scl index 1.&lt;/P&gt;&lt;P&gt;      p_transaction_per_diem =  ls_scl-value.&lt;/P&gt;&lt;P&gt;      read table gt_scl into ls_scl index 2.&lt;/P&gt;&lt;P&gt;      transaction_currency_code = ls_scl-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  form subr   using task_id type clike.&lt;/P&gt;&lt;P&gt;  data: p_transaction_per_diem  type  char13,&lt;/P&gt;&lt;P&gt;        transaction_currency_code type  char3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  receive results from function 'ZRFC_PER_DIEM' &lt;/P&gt;&lt;P&gt;                           tables&lt;/P&gt;&lt;P&gt;                            value = gt_scl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically i am getting dumo when receive statenment is running , by giving above dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 04:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-starting-new-task/m-p/5128170#M1188938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T04:50:51Z</dc:date>
    </item>
  </channel>
</rss>

