Professional Documents
Culture Documents
ALE Error Handling
ALE Error Handling
Enter a name for the Object type and click CREATE button for creating the custom BOR object.
For more Tips, Tutorials, Certification Questions and Interview Questions, visit
SAPTechnical.com
Create events for triggering the workflow and stopping the workflow.
For creating the event place the cursor on the EVENTS and Click the create button like Key
fields.
Create two events.
Enter the event name description etc and proceed further to create it.
For more Tips, Tutorials, Certification Questions and Interview Questions, visit
SAPTechnical.com
Similarly create another event for ending the Workflow in the similar manner like that created
earlier.
For more Tips, Tutorials, Certification Questions and Interview Questions, visit
SAPTechnical.com
Click on the CREATE button for creating the workflow for error handling.
Choose
the Step type to be inserted for the notification like here we are using Send Mail option for
sending a mail to the user whenever any error occurred.
Activate the Workflow and test it whether it is working as per the requirement.
After the successful completion it is required to attach the workflow with the event.
Go to the Header section (Denoted by CAP).
For more Tips, Tutorials, Certification Questions and Interview Questions, visit
SAPTechnical.com
Enter the details of the event with which the workflow should be linked like the category, BOR
object type and the event with which that should be linked.
Enter here the BOR object that has been created and give the name of event created for starting
the workflow.
Click on the Binding Button for generating the binding between the event and the workflow.
For more Tips, Tutorials, Certification Questions and Interview Questions, visit
SAPTechnical.com
After the successful linkage the following sign will appear on the workflow.....
For more Tips, Tutorials, Certification Questions and Interview Questions, visit
SAPTechnical.com
This shows that the workflow has been linked to the event and it will be triggered whenever that
particular event will be triggered.
After the creation and successful linkage of workflow with the event it is required it is required to
generate a function module and attached it to the process code.
Go to SE37 transaction and copy a standard process code function module to a custom one. Do
no delete any parameters from the function module as the SAP standard program itself is calling
this.
In that function module do the required validation and whenever the validation fails set a standard
parameter WORKFLOW_RESULT to 9999 from within the function module, otherwise normally
proceed to set the status to 53.
For more Tips, Tutorials, Certification Questions and Interview Questions, visit
SAPTechnical.com
Af
ter the creation of function module it is required to attach it to the process code and
corresponding attached to the message type at the Partner Profile stage.
The process code is being created through the transaction WE42
Go to the change mode and click the New Entries button for creating new process code.
For more Tips, Tutorials, Certification Questions and Interview Questions, visit
SAPTechnical.com
Enter the Process Code Name, description and choose the processing type as Processing by
function module. Click on the extension button of Identification.
The details for the of the Process Code after clicking the identification button will be
For more Tips, Tutorials, Certification Questions and Interview Questions, visit
SAPTechnical.com
Whenever idoc arrives into the Destination system then the standard SAP triggers the Process
code attached to the Message type in the partner profile. The partner profile is being maintained
in the transaction WE20.
For more Tips, Tutorials, Certification Questions and Interview Questions, visit
SAPTechnical.com
10
Since, it is and inbound scenario so the message type and the corresponding process code will
be maintained for the Inbound Parameters.
Click on Create Inbound Parameters button for creating new Inbound Message type and the
corresponding message type.
For more Tips, Tutorials, Certification Questions and Interview Questions, visit
SAPTechnical.com
11
For more Tips, Tutorials, Certification Questions and Interview Questions, visit
SAPTechnical.com
12