Hello , there is nothing wrong EA is the same as ST (SAP language dependent codes) . When migrating data to create materials or other objects you may have to enter ST and after data load it will show as EA. Please explain your problem i understand that you are retrieving data perhaps after the data has been retrieved you may do the conversion ST--->EA for reporting etc. Hope this has been of help Furqan Khan SAP Data Migration Consultant Date: Thu, 30 Sep 2010 10:36:32 -0400 From: sap-dev@Groups.ITtoolbox.com To: email@removed Subject: [sap-dev] Problem with Unit of Measure Posted by edsonluiz on Sep 30 at 10:37 AM Hi All, Here I am with a new issue. I have tried to fix but it was not possible. So, I need your help. I have a FM : *"---------------------------------------------------------------------- ""Local Interface: *" IMPORTING *" VALUE(I_MATERIAL) TYPE BAPIMATVP-MATNR *" VALUE(I_CENTRO) TYPE BAPIMATVP-WERKS *" VALUE(I_DEPOSITO) TYPE BAPICM61V-LGORT *" EXPORTING *" VALUE(E_UNIDADE) TYPE BAPIMATVP-MEINS * DATA: vunit TYPE bapimatvp-meins ,tab_wmdvsx TYPE TABLE OF bapiwmdvs WITH HEADER LINE ,tab_wmdvex TYPE TABLE OF bapiwmdve WITH HEADER LINE ,vstge_loc TYPE bapicm61v-lgort ,vendleadtime TYPE bapicm61m-wzter ,vav_qty_plt TYPE bapicm61v-wkbst ,vdialogflag TYPE bapicm61v-diafl ,vreturn TYPE BAPIRETURN ,vmat_gen_data TYPE bapimatdoa ,vreturn_detail TYPE bapireturn ,vmat_plant_data TYPE bapimatdoc ,vmat_valuation_data TYPE bapimatdobew . CALL FUNCTION 'CONVERSION_EXIT_MATN2_INPUT' EXPORTING input = i_material IMPORTING output = i_material. CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL' EXPORTING material = i_material " bapimatdet-material Material No. plant = i_centro " bapimatall-plant Plant * valuationarea = " bapimatall-val_area Valuation area * valuationtype = " bapimatall-val_type Valuation type IMPORTING material_general_data = vmat_gen_data " bapimatdoa General material data return = vreturn_detail " bapireturn Return Parameter materialplantdata = vmat_plant_data " bapimatdoc Plant data materialvaluationdata = vmat_valuation_data " bapimatdobew Valuation area data . e_unidade = vmat_gen_data-BASE_UOM. CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY' EXPORTING plant = i_centro material = i_material unit = e_unidade stge_loc = i_deposito IMPORTING endleadtme = vendleadtime av_qty_plt = vav_qty_plt dialogflag = vdialogflag return = vreturn TABLES wmdvsx = tab_wmdvsx " bapiwmdvs Input table (date and quantity) wmdvex = tab_wmdvex " bapiwmdve Output table (date and ATP quantity) . ================================================================= So, when I test this FM into SAP, the answer is e_unidade = EA. This is ok. But When I consume this FM, the answer is e_unidade = ST. This is not ok. Please, do I need to do any conversion, as I did with article number? Thanks in advance, Edson Luiz | __.____._ Copyright © 2010 Toolbox.com and message author. Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251 | | Related Content White Papers In the Spotlight _.____.__ |