SAP ABAP IMG Activity RMSL_APPLY_RULE_NU (BAdI: Data for Nutrition Label/Quantitative Component Label: Execute Rules)
Hierarchy
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
   PLM-RM (Application Component) Recipe Management
     RMSL (Package) Labeling Application
IMG Activity
ID RMSL_APPLY_RULE_NU BAdI: Data for Nutrition Label/Quantitative Component Label: Execute Rules  
Transaction Code S_PRN_53000218   (empty) 
Created on 20061107    
Customizing Attributes RMSL_APPLY_RULE_NU   BAdI: Data for Nutrition Label/Quantitative Component Label: Execute Rules 
Customizing Activity RMSL_APPLY_RULE_NU   BAdI: Data for Nutrition Label/Quantitative Component Label: Execute Rules 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name RMSL_APPLY_RULE_NU    

Use

This Business Add-In (BAdI) is used in the Labeling (PLM-RM-LBL) component.

You use this BAdI to adjust declared values in the nutrition label list.

If the BAdI has been implemented, you can specify in the Include BAdI Implementation for Rules activity that the BAdI is called when the nutrition label list is created. You can also define a pushbutton that you can use to call the BAdI manually in change mode on the Nutrition Label List tab page.

Requirements

Standard settings

In the standard system, the BAdI implementation RMSL_RULE_NUTR_TRANSFER_CALC is activated. It is executed when the system creates the nutrition label list. The pushbutton used to call the BAdI manually on the Nutrition Label List tab page is also defined in the standard system.

In this implementation, you can define your own rounding rules for the declared quantities and recommended daily allowances (RDA). You do this in the recipe workbench in the property tree for nutrients. For more information, see Rounding Rules for Nutrients in Labeling.

If you do not define your own rounding rules, the system automatically transfers the calculated values to the declared values and rounds them to two decimal places.

You can edit these values afterwards.

The BAdI is not designed for multiple use.

The BAdI is filter-dependent.

Activities

For information about implementing BAdIs as part of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

Example

To display the sample code, select the example displayed in the Implementation Examples screen area of the BAdI Builder.

The example shows how declared values in the nutrition label list can be rounded.

See also

This BAdI uses the interface IF_RMSL_APPLY_RULE_NU. For more information, display the interface in the Class Builder.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG RMSL_APPLY_RULE_NU 0 AER0000071 Labeling 
SIMG RMSL_APPLY_RULE_NU 1 /PLMI/E5C0000011  
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20091214 
SAP Release Created in 700