Forward Error Handling (FEH) For Proxy
Forward Error Handling (FEH) For Proxy
24/01/2013
CIAL
Saritha Rema
SAP
Confidentiality Statement
Include the confidentiality statement within the box provided. This has to be legally
approved
Confidentiality and Non-Disclosure Notice
The information contained in this document is confidential and proprietary to TATA
Consultancy Services. This information may not be disclosed, duplicated or used for any
other purposes. The information contained in this document may not be released in
whole or in part outside TCS for any purpose without the express written permission of
TATA Consultancy Services.
Table of Content
1.
2.
3.
4.
Configuration............................................................................................................................................... 4
1.1 Configuration
Step1: Activate Error and Conflict Handler in TCODE SPRO.
This configuration is optional and only required for custom objects and is part of the Post Processing
Office.
TCODE: SM30, View: /SAPPO/VS_BPROC
This is where the Action Class (from Proxy Class) is assigned to the Business Component and Business
Process. TCODE: SM30, TABLE: ECHVC_PROCESSES
Assign the ECH Business Component and Business Process to the Post processing Business Component and
Business Process. TCODE: SM30, TABLE: ECHVC_PP_PROCESS
This configuration will link the Business Component & Process to the Proxy Class & Method.
Note that the proxy class here is an interface object.
Without this configuration, you will get an Exception is not handled error during the runtime, in the RFC
Queue.
We defined different Business Process for each interface to identify the proxy class and method from
Action class. Action class will be generic to all incoming proxys.
2. Process Flow
SAP ERP
Inbound Service
Proxy Framework
Standard Proxy Logic
Proxy Class
(Custom Class, implementing Proxy
Interface,
Auto-generated)
Action Class
(Custom Class, implementing ECH
Interface: IF_ECH_ACTION, collecting
error messages for FEH)
Standard Proxy Logic, including:
- Persistent (Store the data for
Postprocessing)
Inbound proxys in ERP system normally throws an exception in case something went wrong. FEH process will try
to change this behavior and whenever an exception is thrown, the message will be passed to the ECH service in
order to be able to process it in Post Processing Office.
3. Action Class
Action Class is manually created in TCODE SE24, to cater for the processing in Async service.
10
The error messages will have the below status (Transferred to external application) in transaction SXMB_MONI.
In case if there are no errors, the document would be posted successfully and SXMB_MONI will have the message
status
processed successfully.
In TCODE: /n/SAPPO/PPO2 (Edit Postprocessing Order), the screen looks as shown below
11
If no error exist, we can send out confirmation message in this method, or we can let the application send out the
message, e.g. via output type.
12
= method IF_ECH_ACTION~RETRY
= method IF_ECH_ACTION~FINISH
= method IF ECH ACTION~FAIL
Status change
This configuration will control the FEH-PPO Processing Mode, Retry Mode, etc:
a.
b.
c.
d.
e.
13
[Column Group, Retry Modus] The Automatic Retry intervals by assigning to specific group, plus
activating batch job via TCode: /SAPPO/RESUBMIT
[Column Conf. Mode] This can control whether the object in error can be reprocessed manually or
not.
[Column Disc. Mode] This can control whether the object in error can be discarded.
[Column Persistent, Transient] These controls whether the object in error should be reprocess by
system, before it is transfer to the post processing (persistent).
Use case: if the object is locked by other user, system will try to reprocess it before it is transfer to
postprocessing.
[Column Error Category] This has to match the error category raised in the program/proxy class.
The program will typically derive the error category based on the error message, error type and
error class. The logic to derive this error category depends on the service (typically it picks up the
first error or abort message from the processing).
14
Description
Customizing Error
Process Error
Authorization Error
Lock Error
Value Error
2. Method: IF_ECH_ACTION~FAIL
When PPO issue Discard action, this method will be called.
We can issue the Discard/Error service in this method.
The flow logic:
1. Retrieve the Inbound service data by calling method: cl_feh_registration=>s_retrieve_data.
2. Register the error to ECH/Post processing by calling method: cl_feh_registration=>s_fail.
This is where the error data are written into the database and Post processing is completed.
9.
3. Method: IF_ECH_ACTION~FINISH
15
16
Thank You
Contact
For more information, contact [email protected](Email Id of ISU)
IT Services
Business Solutions
Outsourcing
All content / information present here is the exclusive property of Tata Consultancy Services Limited (TCS). The content /
information contained here is correct at the time of publishing. No material from here may be copied, modified, reproduced,
republished, uploaded, transmitted, posted or distributed in any form without prior written permission from TCS.
Unauthorized use of the content / information appearing here may violate copyright, trademark and other applicable laws,
and could result in criminal or civil penalties. Copyright 2011 Tata Consultancy Services Limited
17