on 2014 Apr 08 11:40 AM
Hello All,
Does SAP AIF allows automatic reprocessing of Error records (Proxy scenario) ? We have scenarios where Proxy interface failing because of locking error , we would like to reprocess this automatically.
I tried /AIF/REP_AC_DEF and /AIF/REP_AC_ASGN but I can't see any batch job using this to restart the messages.
Can you please provide transaction name and steps to configure this ?
Thanks & Regards,
Dijesh Tanna
Request clarification before answering.
Hi, Is there a way to reprocess old error messages with the FM /AIF/Restart_Msg.
As the action only works on error received form the day its defined, but we do have a backlog which we to reprocess as well.
Appreciate a reply
Anis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Anis,
I had the same requirement last year and didn't find an answer.
So, I wound up debugging. and debugging. and debugging.
I finally found the code and wrote my own method to resume processing. It's pretty simple, but you'll need your Namespace, Message GUID, Interface name and version.
DATA: pers_queue TYPE REF TO /aif/cl_pers_queue.
CREATE OBJECT pers_queue
EXCEPTIONS
not_exists = 1
OTHERS = 2.
CHECK sy-subrc = 0.
pers_queue->add_message(
msgguid = msg_guid
ns = ns
ifname = ifname
ifversion = ifversion
iv_flg_create_run = space
).
*
pers_queue->save_messages( iv_flg_create_run = abap_true ).
Anis,
I actually created a processing workbench where my external data comes initially through AIF into my DB.
The user then reviews and approves, then clicks "process". This calls another AIF interface which actually creates my documents.
On the workbench, I give them an option to "resume / restart" a message that has stopped. So, to answer your question, it is a custom method within my workbench accessed by a button on the ALV toolbar.
Thanks Robert,
But it means its a manual activity, my ask is to get the messages processed automatically at certain time in background if they are in error.
Just like the AIF action or idoc reprocessing works in background.
The issue I have is the AIF action only processes the messages from the day its defined all old messages are ignored by it.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.