Background
A BoM item usually contains a head item and several sub items. In the output form of
sales document, both the head item and subitems will be displayed. For some suppliers, they prefer not to show the subitem information to their buyers. Therefore, they want to hide the subitems in the final output form. With the solution we provided,
you can customize your output form to hide the BoM subitems that have no price.
Standard Output
Prerequisite
- A business role that contains the following business catalogs is assigned to your user:
SAP_CORE_BC_OM (Output Management)
SAP_CA_BC_IC_LND (End to End Implementation Experience - Implementation Cockpit)
SAP_CA_BC_OC_PC (Output Management - Output Control)
- You have installed the Adobe LiveCycle Designer app.
Procedure
- Logon to the Fiori Launchpad as a key user (extensibility specialist)
- Search and enter the Maintain Form Template app.
- Choose the Predelivered Templates tab.
- Search for the output form template you are using, for example, SD_SLS_ORDER_CONFIRM (sales order confirmation), and open it
- Download the form template.
- Drag the .xdp file to the Adobe LiveCycle Designer app to open it.
- Open the Hierarchy window and the Script Editor window from the menu and find the item node named "rowItem"
- In the Script Editor, write the following code to hide the sub-items whose item net value is zero.
- Save the form.
- In the Maintain Form Template app, create a custom form template.
For the form template file, choose the file that you adapted earlier.
Choose the correct data source (for example, FDP_V1_ORDER_CONFIRM_SRV for sales order confirmation).
Choose the Content form type.
- Assign your custom for template.
In your configuration environment, open the configuration activity Assign Form Templates.
Create a new entry. Use, for example, SALES_DOCUMENT as the application object type and ORDER_CONFIRMATION as the output type. For the form template ID, use the one of the custom form template that you created earlier.
- Define business rules for custom form template
In the Output Parameter Determination app, show the rules for the sales document and the determination step for form templates.
Select the relevant rule (for example, for order confirmations), and edit it.
Note that alternatively, you can also create a new rule.
- Change the form template name to the one of the custom form template that you created earlier.
- Now you can create a sales order with BoM items and check the output form:
Related Links
How to Create and Use a Custom Form Template
Output Management for Sales Documents and Billing Documents