Tracking progress of tRFC units in BGRFC mode in SAP ABAP

I’ve a scenario as follows:

Background:
I’ve a Parent class (let’s say ZCL_PARENT) and have 3 child classes (ZCL_CHILD1, ZCL_CHILD2, ZCL_CHILD3).

All the 3 child classes process different set of datasets from different DB Tables (Tab1, Tab2, Tab3).

I’ve 3 different programs (PROG-A1, PROG-B1, PROG-C1) to instantiate these individual child classes and they all call the parent class method ‘Execute’.

So, PROG-A1 runs the following code:

NEW zcl_child1( )->execute( ).

Similar for PROG-B1 and PROG-C1.

The implementation for ‘Execute’ method is centrally done in ZCL_PARENT and it calls the method ‘Prepare_Data’ that is implemented in each child class.
Method ‘Prepare_Data’ basically is about collecting all the data that the specific child class needs to gather from the corresponding Table. Data is returned as TYPE REF TO DATA.
Method ‘Execute’ then calls another method ‘Process_Data’ (implemented within ZCL_PARENT) passing in the data gathered from ‘Prepare_Data’:

...
process_data( prepare_data( ) ).
...

Method ‘Process_data’ has the following logic:
Data is received as –
IR_DATA TYPE REF TO DATA.

Logic:

FIELD-SYMBOLS: <lt_data>  TYPE ANY TABLE.
ASSIGN ir_data->* TO <lt_data>.
IF <lt_data> is assigned.
 "The field-symbol would be only be assigned if there's any data in the importing table
 LOOP AT <lt_data> ASSIGNING FIELD-SYMBOL(<ls_data_record>).
  "Serialize the key content
  DATA(lv_key) = /ui2/cl_json=>serialize( data = <ls_data_record> ).
  TRY.
   "Create Unit
 DATA(lo_bgrfc_unit) = cl_bgrfc_destination_inbound=>create( 'ZDESTINATION' )->create_trfc_unit( ). 

   CALL FUNCTION 'ZDATA_PROCESSOR'
     IN BACKGROUND UNIT lo_bgrfc_unit
    EXPORTING
     iv_keys = lv_key.
   COMMIT WORK.
 ENDLOOP.
ENDIF.

So basically, the code above fires away tRFC units for each record of data.
And when the unit executes, it performs some logic in the FM ‘ZDATA_PROCESSOR’.

This entire process works fine and has been thoroughly tested.

The problem that I’m looking a solution for, is to track the execution state of these tRFC units once the programs have individually finished running. I basically want to track the status of the tRFC units for each program separately as there are other dependent programs (PROG-A2, PROG-B2, PROG-C2) (that are triggered separately from an orchestration process) that need this status to finish processing.
As all these units are loaded against the same bgRFC destination, I couldn’t find a way to tell these units apart for each program (PROG-A1, PROG-B1, PROG-C1).
As a BAU, the tRFCs should process fine but I’m interested in tracking the statuses of these for if any are in error and also for aforementioned for dependent programs.

I have been using qRFC units till now instead of tRFC units and tracking the qRFC units’ status is quite straightforward as I just have to check the queue names for processing status.
But I’ve been requested by my Basis team to look into the tRFC units solution instead as:

  1. It’ll improve performance of bgRFC processing.
  2. These units are not dependent on each other so a qRFC spawning isn’t relevant.

Any ideas and solutions are welcome.

Thanks

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật