cancel
Showing results for 
Search instead for 
Did you mean: 

How to process AIF inbound XML messages asynchronously in testrun

Joris
Explorer
0 Kudos

Hi All,

I am trying, from ABAP, to process multiple inbound XML messages asynchronously and with the possibility to run in 'Testrun'. But I run into problems;

Normally when processing a single XML based message I'd use FM

/AIF/FILE_PROCESS_DATA

Which processes synchronously and has the TESTRUN option available.

Now I have a batch of these messages which I want to send to AIF and trigger processing asynchronously, and importantly; retain the possibility to execute in TESTRUN.
When I set up and use a Runtime Configuration Group for this I can pass the data like this

/aif/cl_enabler_xml=>transfer_to_aif( EXPORTING  
is_any_structure = ls_raw
iv_queue_ns      = 'P2P001' "Runtime Configuration Group Namespace
iv_queue_name = 'I01' ). "Runtime Configuration Group

This will schedule the messages in parallel- asynchronous processing.
However: There is no way to process them with TESTRUN.

I've looked at

/AIF/CL_APPL_ENGINE_XML->PROCESS( )

Which does have the TESTRUN available, but Its not clear if and how I can use this to trigger asynchronous processing.

Any suggestions?

Thanks alot!

Accepted Solutions (0)

Answers (0)