SAP® Documentation

Single view

/NAM/CL_UNIT_CONVERSION - Disjunction ID ISM_AM_UNIT_CONVERSION

Fill RESBD Structure from EBP Component Structure   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Unit of Measure (UOM) conversion is based on booking unit, content component, and design type. There is also a need to maintain the source unit of measure and the target unit of measure for conversion. The access sequence is as shown below:

Booking Unit, Content Component and Design Type

Booking Unit and Content Component

Booking Unit

It will be maintained in the Easy Access Menu path: Logistics --> Advertising Management --> Master data --> Conditions --> Order/Billing Document --> NAE Unit Conversion

The conversion logic is as shown below:

For the Search Unit (Target UOM ), if the standard functionality in function module ISP_UNIT_CONVERSION is not able to compute the converted value, then the new functionality needs to be called.

-- For the Target UOM and the Source UOM, conversion factor (Numerator and Denominator) needs to be retrieved from the custom table.

-- If the entered UOM can be converted into any of the Source UOM retrieved from the custom table (refer the step above), then the converted value is multiplied by the Numerator and divided by the Denominator to compute the value in the Search Unit (Target UOM).

Relationships

Example

The entered planned ad size is 2 CO X 70 HLN and the Target UOM is in CIN for pricing.

For the Target UOM as CIN, assume the following entries are maintained in the custom table:

Source UOM,,Numerator ,,Denominator,,

LN,,,,,,14,,,,1,,

Direct calculation: Not possible to calculate CO x HLN --> CIN directly

Calculation performed via Source UOM:

It needs to be checked if 2 CO X 70 HLN can be converted to LN or not. With the new calculation (1 CO X 1 HLN = 1 LN), it is possible to calculate the value in LN. The value obtained is 140 LN.

Next, the value in LN needs to be divided by 14 (numerator from the custom table) and multiplied by 1 (denominator from the custom table) to get the converted value in CIN, which is 10 CIN.

Ad Size in Target UOM = Ad Size in Source UOM X (Numerator / Denominator).

In this example, Source UOM is LN and Target UOM is CIN.

Notes

Further information






rdisp/max_wprun_time - Maximum work process run time   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 2482 Date: 20190626 Time: 114301     sap01-206 ( 26 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.