Setting up data transfer via PPF
Data can be transferred on the basis of the following documents via PPF:
- Freight order
Configuring the Post Processing Framework (PPF) for transfer
In SAP S/4HANA, you can configure transfer via PPF. Start the transaction SPPFCADM.
Definition of the actions
In the overview of PPF applications, first select the entry /SCMTMS/TRANSPORTATION and click the "Define Action Profiles and Actions” button.
Create a new action profile with the New Entries button with the following values:
- Action profile: ZAEB_PA
- Object Type: Persistent class
- Object Type Name: /BOFU/CL_PPF_CONTAINER
- Context Class: /BOFU/CL_PPF_CONTEXT
Then select the Action Definition node on the left. Create a new entry for an action definition with the name ZAEB_PA_FRO_TO_CONS_OPC and any description. Change the already filled values as follows:
- Processed At: Processing using selection report
- Sort Order For Display: 0
- Schedule Automatically: enabled
- Changeable in Dialog: disabled
- Executable in Dialog: disabled
- Determination Technology: Determination using conditions that can be transported
- Rule Type: Conditions Using Business AddIn (BAdI)
- Action Merging: Maximum of one action for each action definition
Now switch to the Processing Types node on the left. Click the New Entries button. In the first line of the displayed table, use the input help (or F4) to select the Method Call entry. In the Method Call field group, select /BOFU/PPF_STANDARD as the method using the input help. Save all changes.

Configuration of the conditions
Go back to the overview of PPF applications (transaction SPPFCADM). Select the /SCMTMS/TRANSPORTATION entry again and click the Condition Configuration (Transportable Conditions) button. Switch to change mode and double-click the action profile you created in the first step. Create a new condition for the selected action profile:

Switch to the Schedule Condition sheet and use the input help to select the value /BOFU/EVAL_SCHEDULE_CONDITION as the schedule condition.
Switch to the Start Condition sheet and use the input help to select the value /BOFU/EVAL_START_CONDITION as the start condition. Save all changes.
These conditions ultimately represent BAdI implementations. Using the Edit Condition button, you can branch to the respective BAdI implementation and edit it. You can also define and use your own conditions.
Creating a PPF Output Agent
Switch to the SPRO transaction and click SAP Reference IMG. Find the Output Management Adapter Settings entry and run the application.
Create a new entry for a PPF Output Agent with the following values:
- Business Object: /SCMTMS/TOR
- Node : ROOT
- Output Agent: ZAEB_PA_TOR
- Agnt Class for Node: /AE1/CL_PA_FRO_CNS_EXP_PS_BC
- Enable: enabled
Save your changes. Click ENTER to confirm the prompt. Switch to the Assign PPF Profiles node on the left side and create a new entry:
- Action profile: ZAEB_PA
- Output Type: Has Uncritical...
- Enable: enabled
Save your changes. Switch to the Action Settings node on the left side and create a new entry:
- Action Definition: ZAEB_PA_FRO_TO_CONS_OPC
- Activate Action: enabled
Save the entry.
Schedule program RSPPFPROCESS (PPF: Selection and Processing of Actions) as a periodically running job, if this is not already the case. This selects the scheduled actions and checks the start condition from the action profile. You can implement your own specifications using the BAdI implementation of the start condition. No condition is implemented in the standard version. The job processes the action and displays this accordingly in the freight order.
When the actions are processed by the RSPPFPROCESS program, they are always set to successful as soon as the transfer of the data to the add-on has taken place. The data is only transferred to the target system via the add-on by means of a function call. In the event of an error, a retry should therefore only take place via the FCC monitor or the FCC retry job, but not via the re-execution of actions with the RSPPFPROCESS program.