cancel
Showing results for 
Search instead for 
Did you mean: 

AOT for document type

nitesh_hatizar
Participant
0 Kudos

Hi All,

How can we restrict to determine Application Object type for document type (Different purchase orders) to trigger event handler type.

Regards

Nitesh

Accepted Solutions (1)

Accepted Solutions (1)

former_member190756
Active Contributor
0 Kudos

Hi Nitesh,

what exactly would you achieve:

1 AO Type and then different EH Types?

-> You can have a Condition Function in the EH TYpe in transaction /SAPTRX/TSC0TT (EM System)

2 Different AO Type per Purchase Order Type and then different EH Types?

-> Use relevant function on your AO Type in transaction /SAPTRX/ASC0AO (in your ECC system)

Best regards,

Steffen

Answers (2)

Answers (2)

nitesh_hatizar
Participant
0 Kudos

Thanks Steffen and Gopi for your Input.

Former Member
0 Kudos

Hi Nitesh,

Please follow these steps add on to Steffen:

SAP ECC:

1. Create custom table ZEM_POEHRELV and maintain fields PO type, Company code, Pur Org, Item Category (optional), Go-live date (not to trigger EM updates for old orders in SAP EM)

2. Create new functional module like ZEM_PO_RELEVANCE_CON (Refer FM /SAPTRX/XRA_SD_DELIV_OBP10) and import PO fields from PO tables EKKO and EKPO and validate those fields to check in the table ZEM_POEHRELV relevance condition.

3. Go to IMG -> Integration with Other SAP Components -> Event Management Interface -> Define Application Interface -> Define SAP EM Extraction Functions -> EM Relevance Functions (App. Obj. Types) -> create a new entry and assign the newly created functional module.

3. Go to  IMG -> Integration with Other SAP Components -> Event Management Interface -> Define Application Interface -> Define Used Bus. Proc. Types, Appl. Obj. Types, and Evt Types -> Select ESC_PURORD -> Double click Define Application Object Types -> Select your ZPO_XXXXX Application Obj.Type -> Assign EM Rel. Function (which you have created in 3).

You can use relevance EM Rel. Condition instead of EM Rel Function to check PO type directly for AO types. , however SAP suggest us to use EM Rel Function due to performance and to make validation fast.  Also, it leverage clients to make further validation in future.

SAP EM:

1. Go to IMG -> Event Management -> Event Handlers and Event Handler Data -> Event Handlers -> Define Conditions for Event Handler Types and Event Handler Sets -> EH Type Conditions -> Create a new condition ZPO_XXXXX and enter "&EH Header.Appl.Obj.Type&" in Express. 1, Operator "=" and ZPO_XXXXX in Express. 2 (this should be same name of your ECC AO Obj. Type).

2. Go to IMG -> Event Management -> Event Handlers and Event Handler Data ->Event Handlers -> Define Event Handler Types -> Select your event handler type and assign your newly created EH type condition in condition field.

Check and let us know your outcome.

Regards

GGOPII