Conversion of weight from KG to Pounds
hello experts,
I am retreiving the details from LIPS table based on the delivery number, I want to chage the weight unit from KGs to Pounds and vice versa based on the country.how to convert it.
thanks in advance,
Hi,
You can try this function module
'UNIT_CONVERSION_SIMPLE'
"OR
CIF_GEN_CONVERT_BASE_UOM
Thanks
Arun
Edited by: Arun Kayal on Feb 6, 2009 12:48 PM
Similar Messages
-
How can I read weight from scale
Hi,
I want to setup SAP so that HUPAST transaction can read the weight from the scale. I could see that it looks for an RFC destination and scale name etc. But didnt succeed in creating the RFC destination
Please let me know if a third party software is a MUST or SAP has an inbuilt software for reading scales, if so how can we configure it. We are on ECC 5.0
Thanks for reading.After a few more experiments, you can get correct values from the 'bounds'-descriptor.
function getTextExtents(text_item) {
app.activeDocument.activeLayer = text_item.parent
var ref = new ActionReference()
ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") )
var desc = executeActionGet(ref).getObjectValue(stringIDToTypeID('textKey'))
var bounds = desc.getObjectValue(stringIDToTypeID('bounds'))
var width = bounds.getUnitDoubleValue (stringIDToTypeID('right'))
var height = bounds.getUnitDoubleValue (stringIDToTypeID('bottom'))
var x_scale = 1
var y_scale = 1
if (desc.hasKey(stringIDToTypeID('transform'))) {
var transform = desc.getObjectValue(stringIDToTypeID('transform'))
x_scale = transform.getUnitDoubleValue (stringIDToTypeID('xx'))
y_scale = transform.getUnitDoubleValue (stringIDToTypeID('yy'))
return { x:Math.round(text_item.position[0]), y:Math.round(text_item.position[1]) , width:Math.round(width*x_scale), height:Math.round(height*y_scale) }
I tested that this returns correct values both when image and text box get scaled. There is some strange Photoshop behaviour to note though:
bounds.left seems to be always 0 like one could assume
bounds.top on the other had is most times -1-3px. This probably corresponds to the amount the actual text rises above the text box. I feel it's a bug, i.e. it should be part of content bounding box, not the text area. But maybe it's like it was specced and I'm just interpreting it wrong.
x_scale and y_scale seem to be always equal. For example if you create a 100x100px text box and scale it to 200px horizontally, both x_scale and y_scale will be 2 and text_item.height will be 50. -
Weighted from quality score of chars. with Inspection Lots
Dear QM Guru's.
My question is about Quality Score with Inspection Lots.
The Scenario:
1. In a Quality master View in Material Master I use the option number 05 of The Q-Score Procedure (Weighted from quality score of chars.)
2. I use Inspection Points.
3. I have 10 Inspection Points in a Characteristic.
4. When I make the Usage desicion, the Quality Score takes the last Inspeciton point.
The questions:
1. Why the Quality Score does take the last Inspection points, ?
2. Is there a chance The Quality Score taking the average of all inspection points ?
Thanks in advance.
FedericoThis procedure calculates the quality score as the weighted average of the characteristic scores.
The score for the characteristic is determined on the basis of the defect class score for the characteristic result. You define the weight of the characteristic in the inspection plan.
Sum ( E_KQD(characteristic) * WEIGHT )
E_KQD = ___________________________
Sum ( WEIGHT )
With E_KQD (charac.): Score for characteristic defect class.
If the defect class is blank or zero,
the result corresponds to the maximum
allowed score.
WEIGHTING: Weight of characteristic according to
inspection plan.
Now
As I understand It is Maximum allowed score which you have defined or the Avg one.
If you want to have the Avg of all inspection points then Copy & modify the function module KQD_COPY_REFERENCE_FORM ( originally KQD_FEATURE_CLASS_WEIGHTED ) -
Manual Gross Weight from Handling Unit to Outbound Delviery
Hi Friends,
I have a question related to gross weight replication from HU to outbound delivery document. During delivery process, for packing, system calculates the gross weight on the basis of weight from the material master however the weight is not accuare and for that we modify the value with the actual gross weight of the physical packing. Now when return to the outbound delivery screen, system is not replicating the updated weight entered in HU and showing as blank value.
Please help, is this standard behaviour or how to correct the problem...we are using ECC5.0
Appreciate your support.
Best Regards,
GouthamHi Gaoutham,
This issue is related to suspicious development in user exit. I faced the same issue in an earlier project, where the HU weight is not changed manually when u go back to delivery screen. Finally developer had found the some Z table where it was mentioned like if sales organsation so and so... then it should not allow to change the weight manually and the remark was maintained as "X" in front of particular field.
Please try this and confirm.
Thanks & Regards,
Rahul Verulkar -
Conversion/Creating Contract from Install Base Information
Hi All,
My client has just completed Install base conversion from the legacy system
(both history and active information).They have also completed sales order conversion for the open orders only from legacy system.They have done the customer conversion,item conversion as well from the legacy system.
Now the customer wants to create program for running the Contract conversion from Install base.They want to take extract from install base and done some validation and call the contract api to create the contract.
I am assigned this job,I need some information on this :-
1. Is it possible to run a extract from install base and though contract api,create the contract (since the billing,invoicing,payment rule is missing).As per client,these values will be defaulted.Also price list information,they want to derive the price based on the item at the run time.
2. If the first method of getting the extract from install base is considered,which all fields from install base are necessary to create the contracts.
3.Further to ,if starting from the install base extract,what are the list of validation done before calling the contract api to create the contract headers,lines.
4. Is it better idea to start the extract from legacy system and do the validation program and then call the contract api to create the contract.
5. If the first method of getting the extract from legacy is considered,which all fields from install base are necessary to create the contracts.
6.Further to ,if starting from the legacy extract,what are the list of validation done before calling the contract api to create the contract headers,lines.
7.I am basically keen to know how this design will work.Any help,support will be highly appreciated.
Thanks,
Pooja
[email protected]Ajay,
I would say to change the business process and adapt new practices in Oracle.I am not sure at what point of time they get the information about the "instance" in their field service system (Booking or Picking).
When the order is booked we do not choose the serial number (if it is non serial it is even worse), only at the time of pick confirmation we do that if you have setup such serial number control in inventory for the item (unless you are selling airplanes or ships where you know which customer is getting what much in advance).
If you are feeding them after pick confirmation when the instance information is known (not final yet!), you can institute a business process where unless FS gives the final go for ship confirmation cannot happen (notification based).
It is not a good idea to update IB (There is no API Support for the instances that are in inventory) that is still in inventory.
You can place an order line on hold order ship confirmation and before invoicing.
Let the ship confirmtion update IB and FS (I am not sure why you call it Field Service when they want to touch the machine that is still in Inventory) can come update the instance again after they finish the work using debrief for the service request. There is no harm in that. Once they do this, you can identify the order line that is on hold and release it so that invoicing can happen.
Ship Confirmation is a system transaction, and does not mean that the physially the product is out yet.!
Thanks
Nagamohan -
Consume conversational web services from WebLogic
hi all,
any one tried to consume conversational async webservices from weblogic 7 ? or tried to create conversational async webserices on sunONE ?
I am looking for standards to create interoperable async webservices which will use callbacks on the client side for notifications. Please advise...Hi Raja,
Following patterns will likely give you a good idea of the type of problems you will have to address in real-world apps involving interactions with async Web services. I would encourage you to make the leap to studying BPEL4WS (and possibly WS-Transaction as well if you have true transactional requirements).
App servers are at the core synchronous engines while BPEL4WS calls for asynchrony top to bottom. Saying that, it is possible to create an orchestration engine (as a J2EE container) on top of an app server to deliver orchestration infrastructure that deals with asynchrony, exception handling, long-running transactions, to enable developers to focus on the orchestration logic (i.e. BPEL) rather than re-invent the infrastructure wheel for each application built.
Take a look at the Q&A content here, hope it helps.
http://searchwebservices.techtarget.com/ateAnswers/0,289620,sid26_cid492833_tax292928,00.html
Doron\ -
Reading Weight from Weigh Bridge....
Hi.
The scenario here is that we have to create module pool for picking up
the weights of trucks from weigh bridge ( AVERY brand ).
The existing system is in foxpro . Please find attached the text of AVERY guidance which exhaustively shows how the fox system is reading the
weight from the port, to which the weigh bridge is attached, on the
system kept at the location.
I wish to have the info regarding how, this functionality can be
achieved in ABAP as my perception is that this is not a simple
execution / run of an external program.
regards,
Suman
TEXT
getwt.prg
sample weight recieving program for Avery CTH
this is demo program for getting weight from the CTH
using the CALL and LOAD commands of dBASE III PLUS only.
This demo program demonstrates the use of LOAD and CALL commands
of dBASE III PLUS to get the weight from the CTH. The actual
program to get the weight is a file called GETCTH.BIN
To use GETCTH.BIN directly do the following:
1. Start dBASE III PLUS normally.
2. Type the command - LOAD GETCTH at the dot prompt of dBASE III PLUS.
(Be sure to give the correct drive and/or directory where the
file GETCTH.BIN resides in your computer system).
3. The program GETCTH.BIN will return the weight in a variable
passed from dBASE III PLUS, so first initialize a variable in
dBASE III PLUS to recieve the weight.
The weight string returned by the CTH is 26 charecters long so
define a variable of length 26 by typing the following command
at the dot prompt:
WEIGHT = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" { Any dummy value }
or
WEIGHT = "2BCDEFGHIJKLMNOPQRSTUVWXYZ" for COM2 port
( Note -> The choice for the name of the above variable is
purely arbitrary. Any name could have been chosen)
4. Next type the following command at the dot prompt to call the
GETCTH function :
CALL GETCTH WITH WEIGHT
5. After some time the dot prompt will return. At the dot prompt
type the following :
? WEIGHT
If the GETCTH function has been successfull in getting the weight
from the CTH then this function will return the weight as a string
of 26 charecters containing the weight and other information.
Otherwise, if the function is not successfull then the value of
the variable passed will be set to 26 spaces. The major reason
for the failure of the function will be a timeout error i.e.
the CTH did not respond after a preset time interval had elasped.
The returning of 26 spaces makes it easy for a dBASE III PLUS
program to retry the weighing operation if failure is detected.
The use of this in a loop till the function succeeds in getting
a weight is illustrated below in the program.
The weight returned by the CTH consists of a string of 26 charecters
A sample weight that could be returned is reproduced below:
ABCDEFGHIJKLMNOPQRSTUVWXYZ
19600 kg G 000016 O
The following is the sequence of charecters :
1. The first two charecters ( positions A - B above ) are
space charecters.
2. The next five charecters ( positions C - G above ) is the
weight from the CTH - ( 19600 in this case).
3. The next charecter ( position H above ) is a space charecter.
4. The next two charecters ( positions I - J above ) are the weight
units - ( kg in this case ).
5. The next four charecters ( positions K - N above ) are space
space charecters.
6. The next charecter ( position O above ) specifies mode of
operation. It shows 'G' for Gross mode and 'T' for Tare
mode of operation.
7. The next charecter ( position P above ) is a space charecter.
8. The next six charecters ( positions Q - V above ) is the
consecutive number which is unique for each weighing.
9. The next charecter ( position W above ) is a space charecter.
10. The next charecter ( position X above ) is the machine ID number.
11. The last two charecters ( positions Y - Z above ) are
Carriage return and Line feed charecters.
Clear the screen and show the copyright notice.
clear
@ 0, 0 TO 23, 79 DOUBLE
@ 3, 1 TO 3, 78
@ 11, 25 TO 18, 57
set color to w/n+
@ 1, 26 SAY "A V E R Y I N D I A L I M I T E D"
set color to
set color to n/w+
@ 2, 10 SAY " Demo program for getting weight from Avery weight digitiser - CTH "
set color to
set color to w/n+
@ 6, 3 SAY "(C) Avery India Ltd.- 1989,1990 All rights reserved."
@ 8, 10 SAY "The source code of this program is for pure demo purposes and all"
@ 9, 10 SAY "copyright of this demo program and its source rests with"
@ 10, 10 SAY "Avery India Ltd."
@ 20, 10 SAY "This program and its accompaining source code cannot be used"
@ 21, 10 SAY "without the prior permission of Avery India Ltd."
set color to
set color to n/w+
@ 17,26 say " Press any key to continue... "
set color to
wait ""
@ 4,0 clear to 23,79
@ 0,0 to 19,79 double
WEIGHT = space(26) && define a variable to get the weight
load getcth && load the module from disk
&& this assumes that the file GETCTH.BIN
&& is in the current drive/directory.
&& If not, use drive specifier.
do while weight = space(26) && the main loop
call getcth with weight
enddo
set color to w/n+
As explained above the last two charecters of the weight string
are the Carriage return (CR) and the Line feed (LF) charecters
out of the total of 26 charecters of the weight string. So to get
the whole weight string other than these last two chareceters we
can use the SUBSTR command of dBASE III PLUS as follows :-
@ 14,20 say "The weight is : " + substr(weight,1,24)
This will show the whole weight string on the screen i.e. all
24 charecters ( it will not show the CR and the LF charecters ).
The CR and the LF charecters are as it is unprintable charecters
and will show up as control charecters if printed on the screen.
If the whole weight string is not required and only, say, the
weight and the weight units are required, then the following command
could be used :-
@ 14,20 say "The weight is : " + substr(weight,1,10)
This will show the weight value and the weight units (this substring
will include the embedded space charecters in this susbtring).
Similarly, other parameters from the weight string could be
incorporated, if required, from the whole string to enhance
the weighing process on the computer.
The idea of putting the CALL statement above in a loop is that
sometimes due to unavoidable reasons, there may some garbage
charecters on the serial port. Thus it may be necessary to flush these
charecters from the port by CALLing the function again.
Sometimes, the function may return without a timeout error but the
variable may contain some control charecters which do not make sense.
In this case the function should called repeatedly till the proper
charecters are returned. This occurs due to the reason explained
above.
@ 14,20 say "The weight is : " + substr(weight,1,24)
set color to
set color to n/w+
@ 16,5 say "Please read the README.DOC file on this disk for more information"
release module getcth && release module from memory
set color to
Please refer to the dBASE III PLUS manuals for a
complete discussion on the LOAD, CALL and RELEASE
commands.
Message was edited by: Suman TyagiThanks, but I've already seen this thread and done the steps described on it.
Actually, my question is very specific... How to populate the fields LinkVal and LinkUnit of the registry...
I read all the threads here in SDN and they don't answer my question...
I'd be glad if someone had already done tcode HUPAST works for Filizola...
Tks again. -
Barcode / Weight from RS232 Cable interface
We are in the process of developing a solution in WDA which is very tightly integrated with standard SAP.
For most of the inputs, my client uses barcode readers attached to the PC and also for some of the operations we are suppose to get the weights from Weigh Scales directly without human intervention except for click of a button.
My queries, will WDA support these features, as it does it in standard Dynpro, Is there any specific coding beside the interface for weigh scale is required.
Regards
Rohit ChowdharyHi Rohit,
as far as i know,but i'm really not sure in this case,there are only WD BarCode Reader API's available for Web Dynpro Java.
http://help.sap.com/saphelp_nw04/helpdata/de/6b/cdf740c42f8566e10000000a1550b0/frameset.htm
These and also the RFID API's are part or the mobile Add on libary and WDA isn't supported fr mobile devices up to now.
But you have a possiblility to use a virtual keystroke(simulating a keyboaurd during the scan) if your barcode vendor shippes a PC software for that. The value is then transfered into the focused WDA Input Field as if it is typed manually. For that have a look into this thread:
https://forums.sdn.sap.com/click.jspa?searchID=2078804&messageID=2963928
Regards
Frank -
HUPAST - Reading weight from scale
Hello everyone,
I've found some threads explaining how to get the weight from transaction HUPAST.
We've already done almost all the configs related.
I've a specific doubt regarding the registry parameters LinkUnit and LinkVal.
When I execute HUPAST, I receive error on the values entered on these fields.
I'm trying to connect to PcScale from Filizola. If someone has already done this configurations, please let me know...
Tks in advance.
FlavioThanks, but I've already seen this thread and done the steps described on it.
Actually, my question is very specific... How to populate the fields LinkVal and LinkUnit of the registry...
I read all the threads here in SDN and they don't answer my question...
I'd be glad if someone had already done tcode HUPAST works for Filizola...
Tks again. -
On-dispatch-event trigger related to mscomm (load weight from weight scale
aoa!
please guide me to pick weight from weight scale.
i m using mscomm32 ocx for this purpose.
clarify the role of on-dispatch-event trigger and specify all events
regarding mscomm and also explain how to trap events for accomplish
task.
thanks in advance.
Tool used:developer 6i & oracle 10g windows xp(sp2)professional.Thanks, but I've already seen this thread and done the steps described on it.
Actually, my question is very specific... How to populate the fields LinkVal and LinkUnit of the registry...
I read all the threads here in SDN and they don't answer my question...
I'd be glad if someone had already done tcode HUPAST works for Filizola...
Tks again. -
What are the commonly used conversion routines apart from alpha conversion?
hi all,
Can any one let me know the commonly used conversion routines apart from alpha conversion routines ?
thanxs ina dvance
hariHari
There are lot of conversion routines, like
BUCAT Conversion Routine. eg. The BUCAT conversion routine converts the internal presentation of the budget type
(0BUD_CAT) into the external presentation (0BUD_CAT_EX), using the active entries in the
master data table for the budget type InfoObject (0BUD_CAT).
see the link below for all the routines.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b9119290-0201-0010-69af-96fe3bf00243
assign points if helpful
Kalyan -
Char set conversion to and from UTF-7
Hi,
I am working on Char set conversion to and from UTF-7. However I cannot find and ChatToByte classes for UTF-7 in i18n.jar . Any ideas as how to proceed further with this issue. I feel that there must be a way since UTF-7 is a pretty popular charset especially in emails.
Thanx in advance.
KhurramHi!
I had the same problem a couple of months ago. I didn't find any classes in the jdk distribution to do this, nor did I find any classes or package on the web that did this.
The solution? I got a bit of C code from one of my working mates and converted it to Java. I have the code, but my company own the code. I have to check if it�s ok to share this code with you.
BTW. If you find any package on the web that does this, pleas inform me.
Regards
Johan -
Hi All,
I have a keyfigure Quantity in the cube. These values are stored in KGs. I have a requirement where I have to display the values in the report both in KGs and Pounds. Could someone please let me know how can I do this conversion?
Thanks,
JHi,
you can't test it simply via SE37.
Use the following piece of code in a test report (SE38)
DATA: lv_input TYPE P DECIMALS 2,
lv_output TYPE P DECIMALS 2.
lv_input = 1.
CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
EXPORTING
input = lv_input
x NO_TYPE_CHECK = 'X'
x ROUND_SIGN = ' '
UNIT_IN = 'KG'
UNIT_OUT = 'LB'
IMPORTING
x ADD_CONST =
x DECIMALS =
x DENOMINATOR =
x NUMERATOR =
OUTPUT = lv_output
x EXCEPTIONS
x CONVERSION_NOT_FOUND = 1
x DIVISION_BY_ZERO = 2
x INPUT_INVALID = 3
x OUTPUT_INVALID = 4
x OVERFLOW = 5
x TYPE_INVALID = 6
x UNITS_MISSING = 7
x UNIT_IN_NOT_FOUND = 8
x UNIT_OUT_NOT_FOUND = 9
x OTHERS = 10
IF sy-subrc <> 0.
x MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
x WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
replace the x at the begining of a line by a "star"
after the call, lv_output = 2.20
hope this helps...
Olivier.
Edited by: Olivier Cora on Jan 16, 2008 11:55 AM -
Import conversion data table from SAP R/3 into value mapping table in XI
Hi:
Somebody knows how to import a table with conversion data that are in SAP R/3 and to take it to a value mapping table in XI?
The purpose is to use a mapping table that can change in the future. Must I use a ABAP programming that retrieve data and build the value mapping table?
If so, how I specify in the ABAP programming the group id, the scheme, the agency and the corresponding value?
Please, help me.
Regards!!!Hi David,
please refer to this section in the help: http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
There is an interface for mass replication of mapping data. The steps you need to carry out to use this are:
+Activities
To implement a value-mapping replication scenario, proceed as follows:
1. Register the Java (inbound) proxies.
To do so, call the following URLs in the following order in your Internet browser:
¡ http://:/ProxyServer/register?ns=http://sap.com/xi/XI/System&interface=ValueMappingReplication&bean=localejbs/sap.com/com.sap.xi.services/ValueMappingApplication&method=valueMappingReplication (for the asynchronous replication scenario)
¡ http://:/ProxyServer/register?ns=http://sap.com/xi/XI/System&interface=ValueMappingReplicationSynchronous&bean=localejbs/sap.com/com.sap.xi.services/ValueMappingApplicationSynchronous&method=valueMappingReplicationSynchronous (for the synchronous replication scenario)
You only need to perform this step once (for each installation).
2. Application programming
The ABAP program must perform the following tasks:
¡ Read the value mapping data from the external table
¡ Call the outbound proxy used to transfer the data to a message, which is then sent to the Integration Server
3. Configuration of the replication scenario in the Integration Directory
This involves creating all the configuration objects you need to execute the scenario successfully. One special aspect of the value-mapping replication scenario is that the receiver is predefined (it must be on the Integration Server). The sender, however, is not predefined in the replication scenario and can be defined to meet your individual requirements.
For example, you can use the shipped ABAP proxies.
In the case of the receiver communication channel, choose the adapter type XI. Ensure that you configure a channel for the Java proxy receiver in this case.
Enter the path prefix /MessagingSystem/receive/JPR/XI for this purpose.
+
Regards
Christine -
File Content Conversion--- Removing Quotations from csv file
I have a csv file in the folowing format:
field1,field2,field3,field4
"111","222","333","444"
"aaa","bbb","ccc","ddd"
Suppose the header name is row in IR.
While configuring the sender file adapter in XI, i have given following parameters under file content conversion.
row.fieldNames=field1,field2,field3,field4
row.fieldSeparator=","
row.processFieldNames=fromConfiguration
row.beginSeparator="
After picking up the XML file XI processes the data so that we have out put as
row
field1 111
field2 222
field3 333
field4 444"
row
row
field1 aaa
field2 bbb
field3 ccc
field4 ddd"
row
My Problem is what parameter should I add in ID to remove this last quote say 444" and ddd" from the XML message ????
I tried using
row.endSeparator=" but it is still giving the same output.
Can anyone help ????????????????????????Hi,
Try this FCC instead
row.fieldNames=field1,field2,field3,field4
row.fieldSeparator=,
row.processFieldNames=fromConfiguration
row.enclosureSign=u201C
row.enclosureSignEsc=u201Cu201C
row.endSeparator='nl'
http://help.sap.com/saphelp_NW04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
If you specify xml.enclosureSign=u201C and xml.enclosureSignEsc=u201Cu201C, text enclosed in quotation marks is transferred unchanged and the quotation marks are removed.
Thanks
SaNv...
Maybe you are looking for
-
None of my Adobe programs work on any of my devices, why?
I recently purchased Adobe Creative Cloud last week and continued to install it on my desktop as well as my Microsoft Surface Pro. I have been trying to finish the project I started before my last subscription ended. Adobe has worked prior to my rece
-
Air For Android - Full Screen not working
Opened CS5.5 > Chose "Air For Android" which gave me a stage dimension of 480x800 default. I then created my app. I am using a Droid Bionic and testing my app on it. It will not go to full screen, regardless of how I am holding the Droid. When publis
-
TS1368 click on itunes and it states new itunes library error
I was downloading music 2 days ago and went to log on today and it states New itunes Library. Did I lose all my information/account
-
Hello all, I have a problem starting database Here is the error message from sqlplus: sqlplus: error while loading shared libraries: /u01/app/oracle/product/9.0.1/lib/libwtc9.so: undefined symbol: kpggwcx_ any suggestion would be highly appreciated P
-
HI all, Is it possible to add one more date field in MIGO transaction? If yes, how? Thanks in advance, Madhu