Fn Mod needed for Material Unit Conversion
Hi All.
I was trying to get the value of a material from EA to KG using a function module MATERIAL_CONVERSION_UNIT with which the data is not correcting properly.
After this I tried with the other Fn Mod MD_CONVERT_MATERIAL_UNIT. But this is calculating the Net Wt of the material where as I need to have the value for the Gross Wt of a Material.
Please hel on this.
Thanks.
Ashok
Try this FM .It works for me so far
CALL FUNCTION 'EHSWA_490_MAT_UNIT_CONVERSION'
EXPORTING
i_matnr = <l_outtab>-matnr
i_source_value = wl_weight
i_source_unit = wl_ergei
i_target_unit = c_lb
IMPORTING
e_target_value = wl_weight.
ENDIF.
Thanks & Regards,
Vivek Gaur
Similar Messages
-
FM for Material number conversion from R/3 to APO in R/3
Hi,
Can anybody tell me conversion exit (function module) for Material number conversion from R/3 to APO in R/3 system. I mean i have 18 digit R/3 material number which i have to convert to 40 digit APO material number in R/3 system.
Please suggest to win full points.
Thaniks in Advance,
Chandan DubeyDear Chandan,
Conversion Exits:
CONVERSION_EXIT_MATN1_INPUT ....... If you are storing Material With Zeros
Then concatenate it with 22 zeros. i.e. '0000000000000000000000000000'.
For example:
data : v_matnr type matnr, "R/3 Material
v_apo_matnr(40) type c, "APO Material with 40 length
v_zeros(22) type c. value '0000000000000000000000000000'.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING INPUT = v_matnr
IMPORTING OUTPUT = v_matnr.
concatenate e_mantr v_zeros into
v_apo_matnr.
Regards,
Naveen. -
"Settings for material number conversion not found" occurs when ...
After I run an initial load data into the InfoCube 0PUR_C01, I want to check the InfoCube Content by the following path:
RSA1 -> pick up the InfoCube 0PUR_C01, right click it and select Manage -> Get to Content tab -> Click InfoCube Content button -> Deselect all selection, only tick the 1st column checkbox next to 0Material, then hit enter, get a small window titled as "Cancel" with a red STOP msg sysing "Settings for material number conversion not found" with an "Exit" button and a question mark button, click Exit button leads to SAP Easy Access screen, if clicking the question mark button, another window pops up with the msg showed above, click Technical Information button causes the original window short dump and the short dump msg shows below in between two dashed lines:
Runtime Errors RPERF_ILLEGAL_STATEMENT
Date and Time 11/28/2005 14:43:13
ShrtText
Statement "CALL SCREEN" is not allowed in this form.
What happened?
Error in ABAP application program.
The current ABAP program "SAPLSHL2" had to be terminated because on
statements could not be executed.
This is probably due to an error in the ABAP program.
Error analysis
There is probably an error in the program
"SAPLSHL2".
The program was probably called in a conversion exit
or in a field exit. These are implemented by
function modules called CONVERSION_EXIT_xxxxx_INPUT/OUTPUT or
USER_EXIT_xxxxx_INPUT.
Conversion exits are triggered during screen field transports or
WRITE statements, field exits during field transports from the
screen to the ABAP/4 program.
In this connection, the following ABAP/4 statements are not allowed:
- CALL SCREEN
- CALL DIALOG
- CALL TRANSACTION
- SUBMIT
- MESSAGE W... and MESSAGE I...
- COMMIT WORK, ROLLBACK WORK
- COMMUNICATION RECEIVE
- STOP
- REJECT
- EXIT FROM STEP-LOOP
Moreover, conversion exits for output conversion
(implemented by function modules called
CONVERSION_EXIT_xxxxx_OUTPUT) do not allow
- MESSAGE E...
to be used.
Trigger Location of Runtime Error
Program SAPLSHL2
Include LSHL2F19
Row 3
Module type (FORM)
Module Name TECHNISCHE_INFO5
rce Code Extract
e SourceCde
1 ***INCLUDE LSHL2F19 .
2 form technische_info5.
>> call screen 1900 starting at 5 8.
4 endform.
5
6 &----
7 *& Form SHRINK_VALUES
8 &----
9 * text *
10 ----
11 * --> p1 text
12 * <-- p2 text
13 ----
14 form shrink_values.
15
16 loop at dynpselect.
17 clear checktable.
18 if dynpvaluetab-lowvalue ne space and dynpvaluetab-lowvalue na '*'.
19 move 'EQ' to checktable-op.
20 move dynpvaluetab-lowvalue to checktable-low_value.
21 append checktable.
22 endif.
What could cause the problem by selecting only 0Material when checking the InfoCube 0PUR_C01 content? What does that mean by this STOP msg "Settings for material number conversion not found"?
ThanksHi Kevin,
Set the length of 0MATERIAL and change conversion to alpha:
Re: Error Installing 0MATERIAL from Business Content
Best regards,
Eugene -
BAPI needed for Material Planning T-code MD20
Hi,
BAPI needed for Material Planning T-code MD20.
Thank You.Hi,
I looked as I needed one too - no BAPI for this - I guess you need to go with batch input for MD20 (worked fine in my LSMW so I guess in ABAP it should be also good)
BR,
Tomek -
Settings for material number conversion not found
"Settings for material number conversion not found"
This is the error that came out. I was everytime i try to access the activated business content 0material, the system comes up with this error. Please help me with this! Thank you!
-PeterHi Peter,
try oss note 555675, it tells you to use transaction OMSL.
regards
Siggi
Message was edited by: Siegfried Szameitat -
Material unit conversion problem
Hi,
I am using transaction mm03 to read a material
In the DisplayBasicData1 view i can see the BAse unit of measurement
and also the alternae UOM in the dimensions box.
I need bapi/function module to convert between these material Units
I tried using
MD_CONVERT_MATERIAL_UNIT but it is not giving result
eg for material 1424 chocolate -
basic unit of meaurement - PC
alternate
weight kg 28
net weight 27.9 kg
volume 0.750 M3
it is showing error in result
How can i achieve this conversion - using some bapi
or func module ?
please help me with the input fields also as i do not have much knowledge about the input fields in ABAP.
Thanks
Points assured for help
Message was edited by:
shobhendra srivastavaHi
Use the fun module
UNIT_CONVERSION_SIMPLE
CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
EXPORTING
input = p_act_in
unit_in = p_uom_in
unit_out = w_unit_out
IMPORTING
output = w_act_out
EXCEPTIONS
conversion_not_found = 1
division_by_zero = 2
input_invalid = 3
output_invalid = 4
overflow = 5
type_invalid = 6
units_missing = 7
unit_in_not_found = 8
unit_out_not_found = 9
OTHERS = 10.
reward points if useful
Regards
Anji -
ABAP Function for Material Unit of measure check
Hi Gurus,
i need to find a FM, a sequence of FM or anything else that return the same list (in internal tables whould be great!) like when i try to change the UM on a material but there are some open items and i got "DISPLAY ERRORS".
i need this because using BAPI_MATERIAL_SAVEREPLICA i got only the message "The base unit of measure cannot be changed; choose "Display errors".
BTThis was my 1st try before coming here and found the function, but it retrieves informations from memory and the memory area is not filled when i use the BAPI.
Anyway i solved otherwise. -
Material unit conversion - rounding up with EA
I need to always round up when doing a conversion to EA. Is this possible in a FM? I currently use FM 'MATERIAL_UNIT_CONVERSION' but it will round up, or down, when converting to EA; I need it to ALWAYS round up.
Regards,
AaronAaron.
As you want always ROUND UP, build your logic for that. FM will not serve your requirement.
Regards,
Kiran -
Batch Determination in SD - Need for Material Master Classification View
Hi!
Is it mandatory to have the classification view of the material maintained to enable expiry date based batch determination at delivery creation?
I have configured BD for the delivery. When testing with a material for which the classification view is maintained, the batch is determined. When testing with a material for which the classification view is <b>not</b> maintained, the batch is not determined.
Appreciate that this may seem like a strange question given what the testing shows but I am working with a colleague who is adamant that the classification view on the material master is not required.
Any casting votes would be much appreciated and rewarded accordingly. Thanks, DuncanClassification of batches is mandatory if you want to use the batch determination feature.
source: http://help.sap.com/saphelp_erp2005/helpdata/en/4d/2b8bd043ad11d189410000e829fbbd/frameset.htm -
What rights do I need for materialized views scheduling
Hello,
Can anyone tell me what rights do I need to schedule a materialized views at 1:00 am every night?
To create material views I've use the folowing script:
CREATE MATERIALIZED VIEW MV_view
REFRESH COMPLETE
START WITH sysdate NEXT round(SYSDATE + 1) + 1/24
AS SELECT ... join tabeles... ;.
The problem is that on my test server the MV_view run every night, but on production server my materialized views run only once (when I've run the script above).
I have take a look into the user_refresh and in field NEXT_DATE it's the time of my MV_view creation.
It is possible tha my DBA put some restrictions on my schema? Or do I need some rights to use START WITH and NEXT in my script on production server?
Thanks,
XaMOriginally Posted by wyld
Hi
I find the correct method: I do not only assign reporting rights to htm , I need modify "Inventory report rights"of "Administrator task" in the left of ZCC Console.
If I assign and modify the correct rights, he will create new & run these reports.
wyldkao
Which version you are using? I can't find Inventory Report Rights anywhere? I could only get this working by giving superadmin Please can some explain Thanks -
I need help on Unit Conversation
1) In mine requirement I have a material, material quantity & its base unit of measure this is what I have loaded in BI (From Standard Extractor).
2) In BI query I want to see Material, itu2019s quantity in selling unit of measure.
3) Different material will have different selling unit of measure.
4) Mine question how to convert base unit of measure into selling unit of measure in BI at transformation level, what all prerequisite I need to do for this.
Please guide me on this, I have gone through various link but not clear regarding same, if anyone can explain me descriptive manner that will be highly appreciated.
SachinHi..
Check these :
http://help.sap.com/saphelp_nw04s/helpdata/en/1b/325d4217139041e10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/4f/707242df019c60e10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/27/b65c42b4e05542e10000000a1550b0/frameset.htm
Also check this :
Re: unit conversions
Hope this helps.........
Regards,
Debjani........
Edited by: Debjani Mukherjee on Oct 13, 2008 7:41 AM -
Tables used for material ledger
What are the standard tables used for material ledger
Hi,
All req. configuration i have defined in last thread...
The following tables contain data that can appear in the material ledger documents:
· MLHD Material Ledger Document: Header
· MLIT Material Ledger Document: Items
· MLPP Material Ledger Document: Posting Periods and Quantities
· MLPPF Material Ledger Document: Field Groups (Posting Periods and Quantities)
· MLCR Material Ledger Document: Currencies and Values
· MLCRF Material Ledger Document: Field Groups (Currencies and Values)
· MLCRP Material Ledger Document: Price Change (Currencies, Prices)
· MLMST Material Ledger Document: Costing Run Header Data
The following types of material ledger documents are available, differing by transaction type:
· CL Material Ledger Closing Entries
· UP Material Ledger Update
· PC Price Changes
· ST Single-Level Price Determination
· MS Multilevel Price Determination
· RE Material Ledger Data Repairs
USE :
Material ledger documents are data that is recorded during each business transaction that is relevant to valuation. You can archive documents for closed periods when they are no longer needed for material price determination or reporting purposes. Archiving the documents deletes them from the database.
Regards,
Priyanka.P
PLS AWARD IF HELPFULL
Edited by: Priyanka Paltanwale on Aug 7, 2008 9:34 AM -
Unit Conversion in Input Ready Query
Hi Experts,
I need to do unit conversion in Input ready query. here is the requirement.
I have 3 columns in report, 'Year to Last Month', 'This Month' and 'YTD'. In this, 'This Month' is input ready. and YTD is sum of the first two collumns. I have a variables 'This Month' and 'Unit'. User may enter units either in Litres and HectoLitres. depends on the user input, i should get the values converted to corresponding units.
currently, if i use Litres, i am able to get the result in Litres, when i select in HectoLitres, i should be able to convert the values in HL. please let me know if this possible and how.
Thanks in advance!
Best Regards,
Ali.Hi,
You can try unit conversion planning function,create planning function and add it at the back of button.
Can refer to link below:-
Not sure if it can solve your problem.As it also depends upon source and target keyfigure used.
http://help.sap.com/saphelp_nw70/helpdata/en/44/21643cedf8648ee10000000a1553f7/content.htm -
Unit Conversion issue for same material with Diff KPI
Hi,
i have a report with multiple key figures which form a structure.
Unit conversion for this report and all the key figures are defined at report level.
Below are the settings in place
Source currency: Data record from target
Target Currency: From variable ( Input variable in BeX report)
Conversion factor: Dyanamic Determination of conversion factor
Using Reference Infobject if available otherwise use T006
Reference Infobject: 0Material
Issue: For 1 Key figure conversion to TO is happening, however for other Key figure conversion is not happening for the same material.
Note: Conversion to TO is defined in BEX settings for Info object 0material and stored in DSO UOM0MATE.
Why for same material some key figures convert to target unit correctly and not the others?
See the attached screenshot. Sales Quantity is convertin to "TO" while Volume third party shows figue in"ERR" for same material.
Thanks
NayabHi,
Following reasons cause to your issue,
1. Unit Conversion is not maintained for that particular material in source system Material itself, so that conversion data data may not updated in DSO (UOM0MATE).
2. For particular transnational data record key figure value don't have any base unit or units measures, that case also you may get that error.
Request check the transnational data in your InfoProvider and 0Material Master data and DSO data (UOM0MATE) . Correct the data based on that.
Check the Master data test in RSRV for 0Material, if any SID generations was missed or not.
I hope this can be help to find the cause of error , based on that you can resolve problem.
Thanks & Regards,
Leela Krishna. -
Function modules for unit conversion
hai gurus.
what is the function module to make one qty to the same unit as other qty.
if one is in kg and other in pounds
i want to make both in pounds.
pls help me with thisHi
chk UNIT_CONVERSION_SAMPLE
also chk this
CF_UT_UNIT_CONVERSION
Some Insights-
Unit conversions
with NW2004s the HOW-TO GUIDE for qty conversion is obsolete.
http://help.sap.com/saphelp_nw2004s/helpdata/en/27/b65c42b4e05542e10000000a1550b0/content.htm
As of SAP NetWeaver 2004s you can create quantity conversion types using transaction RSUOM.
The business transaction rules of the conversion are established in the quantity conversion type. The conversion type is a combination of different parameters (conversion factors, source and target units of measure) that determine how the
conversion is performed.
In terms of functionality, quantity conversion is structured similarly to currency translation.
Quantity conversion allows you to convert key figures with units that have different units of measure in the source system into a uniform unit of measure in the BI system when you update them into InfoCubes
http://help.sap.com/saphelp_nw04s/helpdata/en/27/b38c4284a8c353e10000000a1550b0/content.htm
It is entered in ODS table linked to info object (0material)
What you need to do basically is-
1 ) Goto your infoobject for eg- 0material
2 ) In Info object Maintenance- Tab page- Bex Explorer
3 ) Enter 0BASE_UOM in Base unit of measure
4 ) Generate UOM ODS (System generates it with prefix UOM)
It is made of 4 fields (1 more in case of compounding) with SID for them. This is the place where you enter numerator and
denominator to calculate conversion factor
5 ) Load the UOM ODS with conversion from 0MAT_UNIT_ATTR or flat file
6 ) Define conversion type
7 ) In the conversion type, then you can select 0Material in the dynamic determination of conversion factor
8 ) Select source unit and target unit
For more help refer SAP help file on NW2004s. It is comprehensive and even explain - How to do unit conversion in
transformation rule?
http://help.sap.com/saphelp_nw04s/helpdata/en/4f/707242df019c60e10000000a1550b0/content.htm
Check this sample code,
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
* CLIENT = SY-MANDT
DATE = pdate
FOREIGN_AMOUNT = p_amt1
FOREIGN_CURRENCY = p_curr1
LOCAL_CURRENCY = p_curr2
* RATE = 0
* TYPE_OF_RATE = 'M'
* READ_TCURR = 'X'
IMPORTING
EXCHANGE_RATE = w_rate
FOREIGN_FACTOR = w_fact1
LOCAL_AMOUNT = w_amt
LOCAL_FACTOR = w_fact2
* EXCHANGE_RATEX =
* FIXED_RATE =
* DERIVED_RATE_TYPE =
EXCEPTIONS
NO_RATE_FOUND = 1
OVERFLOW = 2
NO_FACTORS_FOUND = 3
NO_SPREAD_FOUND = 4
DERIVED_2_TIMES = 5
OTHERS = 6.
IF SY-SUBRC <> 0.
write: / 'Conversion to loc.curr. failed:',
p_curr1, '->', p_curr2, 'err.code=', sy-subrc.
ELSE.
write: / 'to Loc.curr:', p_amt1 currency p_curr1, p_curr1, '->',
w_amt currency p_curr2, p_curr2,
'(', w_rate, ')', w_fact1, w_fact2.
ENDIF.
http://www.geocities.com/victorav15/sapr3/examples/currconv.txt
Check this
CONVERSION_FACTOR_GET
Measurement unit conversion: Get measurement unit conversion factor Not for Dimensionless Units of Measure
UNIT_CONVERSION_SIMPLE Measurement unit conversion by table T006, with rounding
UNIT_OF_MEASURE_SAP_TO_ISO
UNIT_OF_MEASURE_ISO_TO_SAP
MATERIAL_UNIT_CONVERSION Material quantity conversion from Base Unit of Measure to Alternative Unit of Measure and vice versa. For Dimensionless Units of Measure (Each, Piece, Box etc.) conversion depends on the given Material (see table MARM). For other Units of Measure (Length, Weigth etc.) conversion can be calculated from the T006 table or via CONVERSION_FACTOR_GET.
CONVERSION_EXIT_CUNIT_INPUT Conversion exit for commercial (3-char) measurement unit INPUT
CONVERSION_EXIT_CUNIT_OUTPUT Conversion exit for commercial (3-char) measurement unit OUTPUT
CONVERSION_EXIT_LUNIT_INPUT Conversion exit for technical (6-char) measurement unit INPUT
CONVERSION_EXIT_LUNIT_OUTPUT Conversion exit for technical (6-char) measurement unit OUTPUT
UNIT_OF_MEASUREMENT_HELP Input help for measurement units of a predefined dimension
http://www.geocities.com/victorav15/sapr3/abapfun.html
Reward all helpfull answers
Regards
Pavan
Maybe you are looking for
-
How do I open a PDF using Adobe Reader in another tab in a browser on android. I don't want it to start Adobe Reader as a separate app and open the doc there. Is there a way to define an add-on to open PDF using preferred software as there is on a
-
Color stablization on flash built website?
Having trouble with losing color(s) within minipages of website built thru www.wix.comusing Adobe Flash. Color is established and saved along with everything else and may look great for a few visits however, eventually the color of the minipage withi
-
Is there a way to integrate existing 2.2 servlets in JDeveloper
I have created an http servlet and imported that into JDeveloper. The Servlet is to the 2.2 Servlet spec. JDev supports the 2.1 Servlet spec. I have no choice but to use Tomcat to run the servlet from Jdeveloper. Can you please send me a guide which
-
I purchased quicktime pro 7 in January 2008. Today I had to reinstall some software on my PC - including Quicktime, yet when I enter the registration key I get an message stating 'invalid key'. I checked to make sure that the key is correct (from the
-
Splitting a form into multiple pages
Ok, the title and summary say it all. My customer has the longest form in history. If I leave it on one screen, by the time the user fills it all in ASP will log the user out. I'm also trying to make each form shorter so there is less chance a user w