cancel
Showing results for 
Search instead for 
Did you mean: 

Unit of measure JHR not defined

Former Member
0 Kudos

Hi Friends,

What can cause this problem. I am getting this error message

"Unit of measure JHR not defined" after I am creating a Shopping card in EBP.

JHR is existing on both sides Backend and EBP in the table T006.

Regards

Marco M.

Accepted Solutions (1)

Accepted Solutions (1)

former_member183819
Active Contributor
0 Kudos

COM_PRODUCT_UNIT

you need to debug this program . JHR is not SAP or international UOM . it could be customised one

COM_PRODUCT_UNIT_READ_API

  • Is a unit of the product convertable into i_unit?

CALL FUNCTION 'DIMENSIONCHECK_DIMENSIONLESS'

EXPORTING

meinh = iv_unit

EXCEPTIONS

dimension_not_dimensionless = 1

t006d_entry_missing = 2

t006_entry_missing = 3

OTHERS = 4.

CASE sy-subrc.

WHEN 0.

MESSAGE e020(com_product_unit) "unit is dimensionless

WITH iv_unit

RAISING unit_not_allowed.

l_lines = l_lines + 1.

CALL FUNCTION 'COM_PR_UNIT_CHECK_CONVERTABLE'

EXPORTING

i_base_unit = ls_base_unit-unit

i_alt_unit = iv_unit

i_tabix = l_lines

it_pr_unit = lt_pr_unit

IMPORTING

e_add_const = l_add_const

e_numerator = l_numerator

e_denominator = l_denominator

e_unit = l_unit

e_sub_num = l_sub_num

e_sub_denom = l_sub_denom

EXCEPTIONS

not_convertable = 1

overflow = 2

OTHERS = 3.

CASE sy-subrc.

WHEN 1.

MESSAGE e020(com_product_unit)

WITH iv_unit

RAISING unit_not_allowed.

CALL FUNCTION 'COM_PR_UNIT_CHECK_CONVERTABLE'

EXPORTING

i_base_unit = ls_base_unit-unit

i_alt_unit = iv_unit

i_tabix = l_lines

it_pr_unit = lt_pr_unit

IMPORTING

e_add_const = l_add_const

e_numerator = l_numerator

e_denominator = l_denominator

e_unit = l_unit

e_sub_num = l_sub_num

e_sub_denom = l_sub_denom

EXCEPTIONS

not_convertable = 1

overflow = 2

OTHERS = 3.

CASE sy-subrc.

WHEN 1.

MESSAGE e020(com_product_unit)

WITH iv_unit

RAISING unit_not_allowed.

WHEN 2.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4

RAISING overflow.

E COM_PRODUCT_UNIT 020 Unit of measure & is not defined for product

When do you get this error ? while ordering Internal goods and services or describe procurement?

or while procure from catalog.

Answers (2)

Answers (2)

Former Member
0 Kudos

Do you verify in u201CCheck Units of Measurementu201D IMG active for JHR unit??

Thanks!!

Bharath

Former Member
0 Kudos

Hi Marco,

Is JHR your commercial unit of code or Internal code in the system?

Thanks

Iftekhar Alam