cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP AIF - Automatic Reprocessing

Former Member
0 Likes
9,873

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

View Entire Topic
Former Member
0 Likes

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

robphelan
Participant
0 Likes

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 ).

Former Member
0 Likes

Thanks Robert for reply,

You said you found the code and wrote your own method

But did u added this method/logic in FM /AIF/Restart_Msg or was it a separate program you created?

Thanks

robphelan
Participant
0 Likes

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.

Former Member
0 Likes

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.