Ansicht
Dokumentation

CRM_PPR_RULES - Define Rules for Partner/Product Ranges

CRM_PPR_RULES - Define Rules for Partner/Product Ranges

Fill RESBD Structure from EBP Component Structure   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

In this activity, you define rules for partner/product ranges (PPR rules). A PPR rule is used to automatically fill PPRs items with new or additional entries.

You can define three differenty types of rules:

  • product rules
  • business partner rules
  • validity period rules

A rule is a customer-specific function module that returns a list of products (in the case of a product rule), accounts (in the case of a business partner rule), or time intervals (in the case of a validity period rule), according to the logic implemented into it.

Note:
To define and implement a PPR rule, you need ABAP/4 program knowledge.

By setting the Execute PPR Rule indicator, you can define that the rule is executed each time the corresponding PPR is used in an application or business transaction to either carry out a PPR check or generate product proposals. If the indicator is not set, you can execute the rule asynchronously by running the Execute Parter/Product Range Rules report; the result is stored in the relevant PPR item.

Note:
Setting the Execute PPR Rule indicator has an impact on system performance. When very complex PPR rules are executed in an application or business transaction, performance can deteriorate considerably.

When you execute a PPR rule again using the report, the products, accounts, and validity periods previously stored in the PPR are deleted and replaced by the result returned by the new rule execution.

When you delete or change a rule ID on the Partner/Product Range Item page, any parameter values entered for the rule and any products, accounts, or validity periods returned by the previous rule execution are deleted.

Note:
A rule can only be executed for a PPR if the following reference types have been assigned to the relevant PPR type in the Customizing activity Define Partner/Product Range Types:
  • product from PPR product rule (for product rules)

  • business partner from PPR BP rule (for business partner rules)

  • validity period from PPR validity period rule (for validity period rules)

You can enter a parameter ID for your rule. Parameters are used to restrict the entries returned by the execution of a PPR rule. For example, you want a rule to return only products of a particular product type.
Parameter IDs are not bound to a specific rule, but can be used more than once.

You have the option of specifying a customer-defined parameter check function module that will run a consistency check on the values entered for your rule in the PPR. In the check module itself, you can control which type of message (error, information or success message) is issued during the parameter check.

The entry in the application column is used to indicate which application has generated this rule, or which application uses this rule.

To create a new rule, proceed as follows:

  1. Enter a rule ID and a description.
  2. Set the Execute PPR Rule indicator if you want the PPR rule to be executed each time the assigned PPR is used in an application or business transaction (for example, to generate product proposals).
  3. In the Function Module column, enter the function module that you have copied, renamed and modified from the CRM_PRP_RULES_I_SAMPLE function group. You also have to define a new message class in the global data for the function group.
  4. In the Param. ID column, choose the required parameter ID.
  5. In the Parameter Check FM column, enter the function module that is to be used to check the parameters.
  6. Choose the required application.
  7. Save your entry.






BAL Application Log Documentation   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 5002 Date: 20240523 Time: 154106     sap01-206 ( 85 ms )