You are on page 1of 14

Pre-requisites.

It is assumed that the reader of this article has some knowledge in SAP workflow BOR objects
and ALE Idoc rocess like rocess code! Partner Profile etc.
Description
"ere! we will be discussing in details the Error handling of an Inbound Idoc through triggering an
e#ent! which in turn will be triggering a workflow attached to the workflow.
Steps:-
$. %reate custom BOR object with the e#ents! Start and Sto e#ent
&. %reate a workflow for the error handling! like generating a notification whene#er an error
occurred in the Inbound Idoc.
'. %reation of (unction )odule and attachment with the Process %ode
4. %reate the settings for the Inbound Process of the Idoc through the Process %ode.
Creation of BOR objects. *o to the transaction SWO1.

Enter a name for the Object t+e and click ,CREATE- button for creating the custom BOR object.
Enter the details re.uired for creating the BOR objects...

%reate the /e+ fields and e#ents of the BOR object.
(or creating the /e+ fields lace the cursor on the /e+ fields and %lick on the %reate Button

%reate e#ents for triggering the workflow and stoing the workflow.
(or creating the e#ent lace the cursor on the E0E12S and %lick the create button like /e+
fields.
%reate two e#ents.
Enter the e#ent name descrition etc and roceed further to create it.

Similarl+ create another e#ent for ending the 3orkflow in the similar manner like that created
earlier.

1ow! *enerate the BOR object through the generate button

Release the E0E12S and subse.uentl+ release the BOR object.

After the creation of BOR object
%reate a workflow for the generation of notification whene#er an error is reached in the Inbound
Idoc.
E4ecute the transaction SWDD.

%lick on the %REA2E button for creating the workflow for error handling.
%hoose the Ste t+e to be inserted for the notification like here we are using Send )ail otion
for sending a mail to the user whene#er an+ error occurred.
Acti#ate the 3orkflow and test it whether it is working as er the re.uirement.
After the successful comletion it is re.uired to attach the workflow with the e#ent.
*o to the "eader section 56enoted b+ %AP7.

*o to the Start E#ents 2AB.

Enter the details of the e#ent with which the workflow should be linked like the categor+! BOR
object t+e and the e#ent with which that should be linked.
Enter here the BOR object that has been created and gi#e the name of e#ent created for starting
the workflow.
%lick on the Binding Button for generating the binding between the e#ent and the workflow.
*enerate the binding and click O/ button to sa#e the binding.
%lick on Acti#ate 8 deacti#ate button for acti#ating the linkage.
After the successful linkage the following sign will aear on the workflow.....
2his shows that the workflow has been linked to the e#ent and it will be triggered whene#er that
articular e#ent will be triggered.
After the creation and successful linkage of workflow with the e#ent it is re.uired it is re.uired to
generate a function module and attached it to the rocess code.
*o to SE3 transaction and co+ a standard rocess code function module to a custom one. 6o
no delete an+ arameters from the function module as the SAP standard rogram itself is calling
this.
In that function module do the re.uired #alidation and whene#er the #alidation fails set a standard
arameter ,WOR!"#OW$RES%#T- to &&&& from within the function module! otherwise normall+
roceed to set the status to '3.
After the creation of function module it is re.uired to attach it to the rocess code and
corresonding attached to the message t+e at the Partner Profile stage.
2he rocess code is being created through the transaction WE()
*o to the change mode and click the 1ew Entries button for creating new rocess code.
Enter the Process %ode 1ame! descrition and choose the rocessing t+e as Processing b+
function module. %lick on the e4tension button of Identification.
2he details for the of the Process %ode after clicking the identification button will be
3hene#er idoc arri#es into the 6estination s+stem then the standard SAP triggers the Process
code attached to the )essage t+e in the artner rofile. 2he artner rofile is being maintained
in the transaction WE)*.

Since! it is and inbound scenario so the message t+e and the corresonding rocess code will
be maintained for the Inbound Parameters.
%lick on %reate Inbound Parameters button for creating new Inbound )essage t+e and the
corresonding message t+e.
Enter the rocess code for the corresonding message t+e.

%lick SA+E button for sa#ing the changes.
3hene#er the I6O% arri#es into the target s+stem! it checks the artner rofile and finds the
corresonding rocess code. 2he rocess code is being linked with the function module through
which the I6O% is re.uired to be rocessed.

You might also like