Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Read archived data in parallel processing - Does it work?

alanknecht
Explorer
0 Likes
1,169

Hi guys.

I have a function module that gets data from database tables and I just archive enabled it to also gets data from archive.

This FM is being called by a program in parallel process because the amount of data is huge. The problem is it is just returning the data from database not from archive.

When I execute the same FM calling it normally it brings both data from DB and archive.

Does anyone know if is it possible to get archived data using parallel process? If yes, should I do something specific?

I would appreciate your inputs.

Thanks 🙂

1 ACCEPTED SOLUTION
Read only

alanknecht
Explorer
995

Hi Sandra. Thanks for your help.

Actually the problem was that I've forgotten to check the FM as RFC Enabled...

Now it is "kinda" working... Im calling the FM withing a loop where I'm appending a key field in a range and passing it to be executed in parallel in sets of 10. All of them has results to retrieve but some executions return zero records even though the SY-SUBRC is 0.

Trying to investigate this problem now.

3 REPLIES 3
Read only

Sandra_Rossi
Active Contributor
995

Yes it's possible. I guess your code has a bug: try to restrict to a minimum reproducible case, then do a SAT non-aggregated trace for both dialog and parallel, and use the compare tool to detect when the execution starts to be different.

Read only

alanknecht
Explorer
996

Hi Sandra. Thanks for your help.

Actually the problem was that I've forgotten to check the FM as RFC Enabled...

Now it is "kinda" working... Im calling the FM withing a loop where I'm appending a key field in a range and passing it to be executed in parallel in sets of 10. All of them has results to retrieve but some executions return zero records even though the SY-SUBRC is 0.

Trying to investigate this problem now.

Read only

995

Thanks. So you have solved the question, please mark yourself "accepted". If you have another question around this topic, open a new one and eventually link to this question to give the context.