In Sales, you often need to create output for sales documents (for example, printed sales orders) or share document output via email. To meet these requirements, SAP S/4HANA Public Cloud provides the Output Management Framework, which enables documents to be printed as PDFs or sent electronically. SAP delivers preconfigured form templates and gateway services for each type of sales document.
However, the fields available in the predelivered form templates may not always fulfill specific customer needs. In such cases, you can enhance the services to include additional fields and customize form templates accordingly. Before implementing any enhancement, check whether the desired field already exists in the predelivered form templates in the Maintain Form Templates app.
Here are some examples of form template customization:
The predelivered form templates support four partner functions:
Output data includes the country, address, language of correspondence for the address, and the partner's full name.
You can include additional partner functions (e.g., sales employee) in your custom form templates (that is, copies of the predelivered form templates). For more information, see How to Enable Printing of Partner Function-Specific Information.
Note: The fields available for the output are hardcoded and fixed.
You can enable additional condition types in your custom form templates. Complete the following steps:
Identify the relevant pricing procedure used in the sales document.
Open the sales document and check the information in the document header.
In your configuration environment, open the configuration activity Set Pricing Procedures (101117) and make settings for the target condition types in "Procedures-Control Data".
Example: For condition type PPR0, enter a or A in the Print Type column.
(Optional) Add calculation logic in the form template using scripting.
For example, to get a subtotal of two condition types, you can add a script to perform this calculation within the custom form template. This allows for dynamic adjustments and tailored outputs based on specific business needs.
Some standard fields (for example, customer group) are not available in the predelivered form templates by default. You can enable these standard fields in your custom form templates via data source extension in the Custom Fields app.
For example, for sales orders, you can create a data source extension for the Sales: Sales Order Confirmation Form (FDP_V1_ORDER_CONFIRM_SRV) form service in the Custom Fields app. As shown below, you can select fields from the list.
Note:
For more information, see How to Extend a Custom Form Template with Standard Fields.
You can extend your custom forms templates (that is, copies of the predelivered form templates) with custom fields created in the Custom Fields app.
Complete the following steps in the Custom Fields app:
Create custom fields in the following business contexts:
Enable usage of the custom fields under Form Templates for the respective form templates.
Note: When you use the following BAdIs to set or change values of custom fields in sales documents, do not use CDS views as input data in your custom logic:
Instead, you should use the input parameters of the BAdIs in your custom logic. This ensures real-time transactional data in document output.
For more information, see How to Extend a Custom Form Template with Custom Fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |