Hierarchy

⤷

⤷

IMG Activity
ID | FRML_CMP_VALUES_CALC | BAdI: Conversion of Composition to Permitted Unit |
Transaction Code | S_P7E_63000010 | (empty) |
Created on | 20051222 | |
Customizing Attributes | FRML_CMP_VALUES_CALC | BAdI: Conversion of Composition to Permitted Unit |
Customizing Activity | FRML_CMP_VALUES_CALC | BAdI: Conversion of Composition to Permitted Unit |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | FRML_CMP_VALUES_CALC |
Use
This Business Add-In (BAdI) is used in the Recipe Management (PLM-RM) component.
When you open the Composition formula view and it is not ready for input, the system determines the composition of the primary output. To do this, it performs a formula explosion in which, in the standard system, it also uses the compositions that were entered in the property tree for the specifications of the substances determined. It is possible that these compositions were entered in units of measure that are not permitted in the Composition formula view. Only the units of measure that you defined in Customizing for Recipe Management in the IMG activity Define Allowed Units of Measure are permitted there.
You use this BAdI to convert units of measure from the composition of a specification to one of the units of measure that are allowed in the Composition formula view.
Standard settings
A default implementation is supplied. It executes the following steps:
- If the unit of measure for the composition of the specification in the Composition formula view is allowed, conversion does not take place.
- If the unit of measure for the composition of the specification in the Composition formula view is not allowed, the system tries to convert to the default unit of measure for the Composition formula view.
- If this is not possible, the system tries to convert to any unit of measure that is allowed in the Composition formula view.
- If the unit of measure for the composition of the specification cannot be converted to a unit of measure that is allowed in the Composition formula view, the system writes an error message to the application log. The system then displays the component in the Composition formula view, but without a quantity, upper limit, lower limit, or unit of measure.
If conversion is possible, the system converts quantity, upper limit, and lower limit.
Activities
After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.
If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:
- In the dialog box, enter a name for the implementation of the Add-In and choose Create.
The system displays the initial screen for creating Business Add-In implementations. - On this screen, enter a short description for your implementation in the Implementation Short Text field.
- If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
- Save your entries and assign the Add-In to a package.
- To edit a method, double-click its name.
- Enter your implementation code between the
method <Interface Name>~<Name of Method>.
andendmethod.
statements. - Save and activate your code. Navigate back to the Change Implementation screen.
Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step: - Choose Activate.
When the application program is executed, the code you created is run through.
See also
Method
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 1 | 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 | FRML_CMP_VALUES_CALC | 0 | ALN0000101 | Recipe Management |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20051222 |
SAP Release Created in | 600 |