<?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 How to receive result from BGRFC enabled function module ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-receive-result-from-bgrfc-enabled-function-module/m-p/380350#M9052</link>
    <description>&lt;P&gt;SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L0S31 {
font-style: italic;
color: #808080;
}
.L0S33 {
color: #4DA619;
}
.L0S52 {
color: #0000FF;
}
.L0S55 {
color: #800080;
}
.L0S70 {
color: #808080;
}&lt;/P&gt;&lt;P&gt;DATA: my_destination TYPE REF TO if_bgrfc_destination_outbound,&lt;BR /&gt;
 my_unit TYPE REF TO if_qrfc_unit_outbound,&lt;BR /&gt;
 my_unit_2 TYPE REF TO if_qrfc_unit_outbound,&lt;BR /&gt;
 my_unit_3 TYPE REF TO if_qrfc_unit_outbound,&lt;BR /&gt;
 dest_name TYPE bgrfc_dest_name_outbound,&lt;BR /&gt;
 queue_name TYPE qrfc_queue_name,&lt;BR /&gt;
 queue_names TYPE qrfc_queue_name_tab.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
TRY.&lt;BR /&gt;
 dest_name = 'VK_OUTBOUND_DEST'.&lt;BR /&gt;
&lt;BR /&gt;
 my_destination = cl_bgrfc_destination_outbound=&amp;gt;create( dest_name ).&lt;BR /&gt;
&lt;BR /&gt;
 CATCH cx_bgrfc_invalid_destination.&lt;BR /&gt;
&lt;BR /&gt;
 MESSAGE e102(bc).&lt;BR /&gt;
ENDTRY.&lt;BR /&gt;
&lt;BR /&gt;
my_unit = my_destination-&amp;gt;create_qrfc_unit( ).&lt;BR /&gt;
&lt;BR /&gt;
TRY.&lt;BR /&gt;
* Processing Two Function Modules in ONE single LUW.&lt;BR /&gt;
* There are multple queues for the LUW.&lt;BR /&gt;
&lt;BR /&gt;
* Both the FMs will be executed sequentially in the same LUW(multiple queues)&lt;BR /&gt;
 CALL FUNCTION 'ZTEST_BGRFC' IN BACKGROUND UNIT my_unit.&lt;BR /&gt;
 &lt;BR /&gt;
 my_unit-&amp;gt;add_queue_name_outbound( 'VK_Q1' ).&lt;BR /&gt;
&lt;BR /&gt;
* Inserting Multiple Queues to achive Parallel Processing.&lt;BR /&gt;
 queue_name = 'VK_Q2'.&lt;BR /&gt;
 INSERT queue_name INTO TABLE queue_names.&lt;/P&gt;&lt;P&gt;So I am calling the Function Module in background which is BGRFC enables. Can someone tell me how to receive the results back from this function module.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2017 16:01:07 GMT</pubDate>
    <dc:creator>KumarVishal</dc:creator>
    <dc:date>2017-02-13T16:01:07Z</dc:date>
    <item>
      <title>How to receive result from BGRFC enabled function module ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-receive-result-from-bgrfc-enabled-function-module/m-p/380350#M9052</link>
      <description>&lt;P&gt;SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L0S31 {
font-style: italic;
color: #808080;
}
.L0S33 {
color: #4DA619;
}
.L0S52 {
color: #0000FF;
}
.L0S55 {
color: #800080;
}
.L0S70 {
color: #808080;
}&lt;/P&gt;&lt;P&gt;DATA: my_destination TYPE REF TO if_bgrfc_destination_outbound,&lt;BR /&gt;
 my_unit TYPE REF TO if_qrfc_unit_outbound,&lt;BR /&gt;
 my_unit_2 TYPE REF TO if_qrfc_unit_outbound,&lt;BR /&gt;
 my_unit_3 TYPE REF TO if_qrfc_unit_outbound,&lt;BR /&gt;
 dest_name TYPE bgrfc_dest_name_outbound,&lt;BR /&gt;
 queue_name TYPE qrfc_queue_name,&lt;BR /&gt;
 queue_names TYPE qrfc_queue_name_tab.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
TRY.&lt;BR /&gt;
 dest_name = 'VK_OUTBOUND_DEST'.&lt;BR /&gt;
&lt;BR /&gt;
 my_destination = cl_bgrfc_destination_outbound=&amp;gt;create( dest_name ).&lt;BR /&gt;
&lt;BR /&gt;
 CATCH cx_bgrfc_invalid_destination.&lt;BR /&gt;
&lt;BR /&gt;
 MESSAGE e102(bc).&lt;BR /&gt;
ENDTRY.&lt;BR /&gt;
&lt;BR /&gt;
my_unit = my_destination-&amp;gt;create_qrfc_unit( ).&lt;BR /&gt;
&lt;BR /&gt;
TRY.&lt;BR /&gt;
* Processing Two Function Modules in ONE single LUW.&lt;BR /&gt;
* There are multple queues for the LUW.&lt;BR /&gt;
&lt;BR /&gt;
* Both the FMs will be executed sequentially in the same LUW(multiple queues)&lt;BR /&gt;
 CALL FUNCTION 'ZTEST_BGRFC' IN BACKGROUND UNIT my_unit.&lt;BR /&gt;
 &lt;BR /&gt;
 my_unit-&amp;gt;add_queue_name_outbound( 'VK_Q1' ).&lt;BR /&gt;
&lt;BR /&gt;
* Inserting Multiple Queues to achive Parallel Processing.&lt;BR /&gt;
 queue_name = 'VK_Q2'.&lt;BR /&gt;
 INSERT queue_name INTO TABLE queue_names.&lt;/P&gt;&lt;P&gt;So I am calling the Function Module in background which is BGRFC enables. Can someone tell me how to receive the results back from this function module.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 16:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-receive-result-from-bgrfc-enabled-function-module/m-p/380350#M9052</guid>
      <dc:creator>KumarVishal</dc:creator>
      <dc:date>2017-02-13T16:01:07Z</dc:date>
    </item>
  </channel>
</rss>

