Post Processing Framework in EWM: Author: Sharmila Parmar
Post Processing Framework in EWM: Author: Sharmila Parmar
• The Post Processing Framework is part of the SAP Web Application Server
and can be used by different applications. It is the successor to Message
Control
2
Determination & Triggering of PPF Actions
3
Determination & Triggering of PPF Actions
4
Determination & Triggering of PPF Actions
Check the processing log. Inbound Delivery created through method call of Action
5
How PPF action got determine
• When Inbound Delivery Notification is created, in background, PPF is
triggered and Action Profile is read, based upon Document type and
Document category of the document.
• The action profile contains action definitions and the settings for all the action
definitions in the profile.
• Each Action is analyzed one by one and if condition is met, action is consider
and added in the PPF tab.
6
PPF Configuration Steps
In Customizing for Delivery Processing, you execute the following activities:
• Under the action profile, define actions, for example sending of messages,
printing delivery note or posting goods receipt.
• For every action, you define processing type, action determination and
processing time-spots.
• Assign the action profile to the document type and item type.
7
Action Profile
An action profile contains action definitions and the settings for all the action
definitions in the profile.
8
Action Profile
Eg: /SCDL/IDR
9
Actions linked to Action Profile
10
Processing Type for Action
11
Processing Type for Action (Contd)
12
Linkage of Action Profile
Linkage of Action Profile to Document Type and Document Category in
Customizing. In example: Action Profile is linked to /SCDL/IDR
13
Connection of PPF to the Application
If you want your application to use the PPF, you must perform a number of
programming steps. The connection is object-oriented using the classes.
Necessary Classes
A persistent class (in the sense of Object Services) that represents the application
object (Eg: /SCDL/CL_DLV_PPF)
14
Application Class & Context Class
The PPF expects a persistent class so it can handle different types of application
objects.
The application object implements the interface IF_LOCK_PPF and thus both
methods for locking and unlocking the application object.
These two methods are important so that an action does not operate on documents
that are already locked. If the interface is not implemented, this can result in actions
being executed twice under certain circumstances. Generally, the interface must be
implemented.
Eg: /SCDL/CL_DLV_PPF
The context class encapsulates all the application data necessary for the PPF.
The context class redefines the method GET_VALUE_OF_ATTRIBUTE of class
CL_CONTEXT_PPF
Eg: (/SCDL/CL_DLV_CONTEXT_PPF)
15
Application & Context Class linked to Action
Profile
16
Smartform processing class linked to
Processing Type
In the Smart Forms processing options, enter the name of the Smart Form used
and a processing class with a processing method,
17
Interaction Between Application & PPF at Runtime
Data declarations
Reference to application/proxy object
appl_object TYPE REF TO /SCDL/CL_DLV_PPF
18
Interaction Between Application & PPF at Runtime
Generate the application object and set the key fields so that the application object can
be found
appl_object ?= /SCDL/CL_DLV_PPF=>agent->if_os_factory~create_persistent_by_key( i_key
= id ).
19
Interaction Between Application & PPF at Runtime
Start PPF
COMMIT WORK
20
Thank You