Ansicht
Dokumentation

SOMU_FORM_DERIVATION - Define Rules for Determination of Master Form Template

SOMU_FORM_DERIVATION - Define Rules for Determination of Master Form Template

Vendor Master (General Section)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

In this activity, you can define rules that determine the master form template.

Every time a document is output by the end user in an application, these rules identify the master form template that is to be used. The rules are based on several parameters: sender data, channel, and form template.

Note: Master form templates can contain placeholders for static data, for example, a logo and a footer. This data is displayed on each form page. In this activity, you can assign SAPscript texts and graphics to these placeholders.

You assign an ordinal number to each rule. Whenever an output process is triggered, the master form template is determined by comparing the defined rules in their numerical order with the data provided by the application.

The following logic applies to the numbers: The lower the number, the higher the priority. This implies that lower numbers should be assigned to more specific rules.

The comparison starts with the rule with the lowest number, the most specific rule. If not all parameter conditions are satisfied, the comparison moves on to the rule with the next lowest number.

The comparison continues until it finds a rule where all the parameters match the data. The determination process now ends, and the master form template specified in this rule is used for the output.

Note: Each rule comprises several parameters. Some of the parameters are optional. If you leave the relevant fields blank, any value is deemed as satisfying the condition.

Steps 3 to 5 are optional.

  1. Enter free text to create a rule ID. It’s advisable to choose a descriptive name.
    Once you have given a rule a specific ID, you can no longer change this ID.
  2. Enter an ordinal number. This number determines the priority of the rule in the determination sequence.
  3. Enter additional data such as organization type, channel, or form template.
    The applications provide information about which parameters they support.
  4. Enter the master form template that is to be used if all the conditions for the rule are satisfied.
  5. If you want to provide content for the master form template, enter the IDs of the relevant SAPscript texts and graphics.

You have created the companywide master form template YY1_DEFAULT_LAYOUT (default layout). You want to use this template for all output, except for documents that are intended for your sales organizations.

For your sales organizations, you have created corresponding master form templates with specific layouts.

To ensure that the correct master form templates are used, you create one rule for each sales organization and one company-wide rule.

Since the company-wide rule should be very generic, most of the parameters are left blank.

Please note that while you can assign the same number to the rules for the sales organizations to ensure that they have the same priority, you need to enter at least one differing parameter, for example, the organization unit ID. Otherwise, you will end up creating several identical rules.






CPI1466 during Backup   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 5073 Date: 20240523 Time: 181540     sap01-206 ( 65 ms )
Form Derivation Rule ID Number Org. Type Organization ID Unit Type Org. Unit ID Channel Country Form Template ID Master Form Template
SALES_ORG1 100   VKORG 0001     YY1_SALES_ORG_1
SALES_ORG2 100   VKORG 0002     YY1_SALES_ORG_2
SALES_ORG3 100   VKORG 0003     YY1_SALES_ORG_3
COMPANY_DEFAULT 999         YY1_DEFAULT_LAYOUT