Ansicht
Dokumentation

JBRDR001 - RM: User Exit in Derivation of Characteristics

JBRDR001 - RM: User Exit in Derivation of Characteristics

General Data in Customer Master   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Enhancements to Characteristic Derivation

Within the framework of characteristic derivation in Risk Management, you have the possibility of extending the standard derivation with individually-programmed derivation steps.

You can insert the enhancements anywhere in the derivation strategy and as often as required.

Before using this enhancement, please check whether the step you require could be achieved by carefully organizing the step sequence and using the step and field properties plus the temporary fields.

As with the other derivation types, you enter the source and target fields you want to work with in the enhancement.

Within module EXIT_SAPLJBRDR_001 you can then store your own coding in include ZXRMDRU01. There you will find the fields you have specified, the name of the RM area, the derivation date, and an individually-defined step identifier (if entered), which you can use to distinguish between your enhancement steps when you are using several in one strategy.

Recommendations

  1. Only use enhancement steps if absolutely necessary. This helps you avoid subsequent work to ensure compatibility every time there is a release change.
  2. Only define the source and target fields actually used in the enhancement for the derivation step. If you want to execute several logically-independent derivations per enhancement, break these down into separate derivation steps and use step identifiers to distinguish between them. This allows the system to automatically recognize the logical dependencies represented in the enhancement and use them for optimization purposes.
  3. Field I_RM_CHAR in the function module interface contains the RM area characteristics. This field has no structure however (because the structure of the RM area is not known). In order to access individual characteristics, you need to define an internal structure with reference to the generated structure I75xxxx (xxxx: name of the RM area used) and enter the contents of I_RM_CHAR into this structure. The same applies to the returned structure E_RM_CHAR.
  4. Field E_EXIT_IS_ACTIVE must be returned with 'X' in order for the results of the derivation step to be processed further.

Permitted Source Fields

  • All optional characteristics in the RM area (as part of I_RM_CHAR).
  • All fields in I_OBJECT (information about the finance transaction, e.g. product type, contract number, securities account, portfolio). These fields are contained in the transferred structure I_OBJECT.
  • Temporary help fields (structure I_TEMP).

Permitted Target Fields

  • All optional characteristics in the RM area as part of E_RM_CHAR (the fixed characteristics company code and summarization rule must not be changed).
  • The valuation rule (as part of E_OBJECT).
  • Temporary help fields (structure E_TEMP).

Other Fields in the Interface

  • I_RMBID: Name of the Risk Management area
  • I_DATE: Derivation date
  • I_STEP_ID: User-defined identifier for derivation step..
  • E_EXIT_IS_ACTIVE: Indicator that shows the enhancement is active and that the derivation was successful.
  • E_FAILED: Indicator that shows there is an error in the derivation. If this field is returned with an entry, the results of the derivation step are not processed any further.
  • If the exception DERIVATION_FAILED is activated, the derivation step is interrupted. A message possibly stored as message raising.... is written to the data transfer log.

Other Function Exits within the Enhancement

Function exit EXIT_SAPLJBRDR_001described above, is called for each individual finance object. For performance reasons, it may make sense to execute some steps in one block. This particularly applies to database access.

For this purpose, the same enhancement also provides the function exits EXIT_SAPLJBRDR_002and EXIT_SAPLJBRDR_003 together with the corresponding includes ZXRMDRU02and ZXRMDRU03.

EXIT_SAPLJBRDR_002is called before processing of individual finance objects in characteristic derivation. The fields in the interface correspond to those described above, but I_OBJECTS_T und I_RM_CHAR_T are tables that contain information about all finance objects processed in the current data transfer block. At this event, all necessary records can be read from the database table and buffered in an internal table. Within characteristic derivation itself, the system then only has to access the internal table.

You should note that I_OBJECTS_T and I_RM_CHAR_T are import parameters and must not be changed (not even by sorting the tables, for example).

EXIT_SAPLJBRDR_003 is called after characteristic derivation for all finance objects in a transfer block. At this event, the information stored in internal tables should be deleted in order to free up the main memory. This function exit has no interface.






General Data in Customer Master   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 5578 Date: 20240427 Time: 055725     sap01-206 ( 104 ms )