Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error in application

former_member185124
Participant
0 Likes
1,036

Hi ,

I have one requirement for Quantity Conversion .I am using FM: ' MD_CONVERT_MATERIAL_UNIT' .For particular Unit it rises exception : 'Error_in_application'.

CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'

         EXPORTING

           I_MATNR              = LS_VBRP-MATNR

           I_IN_ME              = LS_VBRP-VRKME

           I_OUT_ME             = LS_VBRP-MEINS

           I_MENGE              = LS_VBRP-FKIMG

         IMPORTING

           E_MENGE              = LS_FINAL-BASE_QUAN

         EXCEPTIONS

           ERROR_IN_APPLICATION = 1

           ERROR                = 2

           OTHERS               = 3.



2 REPLIES 2
Read only

Former Member
0 Likes
791

Dear Mahesh,

          please check conversion factor is maintained or not for the units of I_MENGE w.r.t base unit for the material you are getting error. Also check in mm02 tcode additional data ->units of measure tab.

Read only

oliver_wurm
Active Participant
0 Likes
791

Hi Mahesh,

Exception ERROR_IN_APPLICATION is triggered if the conversion factor cannot be determined OR if the calculated quantity in Base Unit of measurement is higher than "9999999999".

Regards

Oliver