SAP EWM – Custom PPF

How to create and test a SAP EWM – Custom PPF Action

PPF Action is a tool for the generic execution of functions and processes. Help in triggering actions like Print, email fax, and labels.

It also triggers automatic subsequent documents and workflow.

PPF Purpose:

  • Printing
  • Communication with other systems like SAP ERP or GTS
  • Sending XI messages
  • Asynchronous updates between business objects within SAP EWM
  • Execution of loosely coupled actions into the business process with the goal of having a separate application log
  • Generic option to enable customer extensions of SAP EWM processes, especially for asynchronous processes, printing and workflow

The below example is done for Warehouse Order related PPFs, but the same process applies to all other PPFs.

Navigate to the associated config in SPRO

SAP EWM - Custom PPF

Select the relevant Action Profile

Action Definition
@Scm-Cloudbook

Select the Action Definition you want to copy.

PPF Action

Give your PPF Action a name. It must not be the same as the one you’ve copied else it will be difficult to identify when you maintain the PPF Condition shown later in this document.

associated entries
@Scm-Cloudbook

Copy all the associated entries

Make sure your action is not marked as “Inactive”

Save your changes

Make sure your action is not marked as “Inactive”

Select the Action Definition and then select the Processing Type

Action Definition

If you need to use custom logic to influence the result of the PPF action e.g. different information on a label, then you need to define a custom method as shown below. Select the “Create” option. Note: You will need an ABAP developer key to do this.

custom logic to influence the result of the PPF action

Create a new BAdi Filter

custom implementation

Name the custom implementation

implementation short text and then add a custom filter

Provide the implementation short text and then add a custom filter as shown below.

Activate the implementation

Activate the implementation.

PPF Action by pressing F3

Go back to the PPF Action by pressing F3 and now select your custom filter.

Save the change

Save the change

PPF Action

Now you need to create the PPF Condition. This is where giving your PPF Action a unique name instead of copying the standard name will come into play.

Show the technical names and then select the associated Action Profile

Create a new entry as shown below and select your PPF Action

Schedule Condition and Start Condition

Compare the Schedule Condition and Start Condition of the standard PPF Action you used when creating when creating the custom entry and then maintain the same entries on the custom action as shown below

PPF action

If you want to be able to manually create the PPF action e.g. via the Warehouse Monitor, then you need to add a 2nd entry as shown below.

Default Settings

Make sure that the 2nd entry as the “Default Settings…” unchecked as shown below. No Schedule or Start Conditions are required in this instance.

custom PPF Action. Tcode - /SCWM/PRWO6

You may need to create condition records for the custom PPF Action. Tcode – /SCWM/PRWO6

Specify the maintenance group

To create a new entry, select the field shown below and specify the condition type. Maintain the required entries. Here you will specify the custom action definition and associated form. The result is that the custom action definition will be determined when the maintain conditions are true.

custom method

A practical tip to debug the custom method: PPF Actions are called asynchronously to the object that creates them and this makes it difficult to debug. In order to easily debug you should change the processing time of the PPF action to be done using a report. This means that the action is created, but not triggered to execute.

T-Code SPPFP

To execute the PPF you need to use T-Code SPPFP

Specify the relevant entries shown below to display the entries.

display the entries

On execution, Select the relevant entry and then execute. The code should now stop in your custom method if you have added a breakpoint.

Here it is all about SAP EWM – Custom PPF. Come and join us at SCM-Cloudbook, the top SAP institute in Pune, to learn all about SAP. With our expert instructors and comprehensive curriculum, you’ll gain the skills and knowledge needed to excel in this field. We believe that with determination and hard work, anyone can achieve success in learning SAP. Start your journey with us today and unlock a world of opportunities in the realm of SAP.

Blog By: Nitin Kumar

SCM-CloudBook

One comment

  1. […] Explore the dynamic world of SAP EWM's Custom Post Processing Framework (PPF) with CloudBook. Gain insights into optimizing processes, automating tasks, and tailoring workflows for seamless supply chain operations. Elevate your SAP expertise and uncover the potential of customization.  […]

Leave a Reply

Your email address will not be published. Required fields are marked *