Seconds to hr/min/sec conversion error
I typed up this simple sample program and for some reason when I execute it, I get one second less than the actual value. For instance, I typed in 9999 and got 2 hours, 46 minutes, 38 seconds. It should be 39. What did I do wrong? Here's the code:
import cs1.Keyboard;
public class Tim
public static void main (String[] args)
final int CONVERSION = 60;
final double HOUR_CONVERSION = 3600.0;
int hour1, minute1, seconds1;
double seconds, minute, hour;
System.out.print ("How many seconds have you been sleeping? ");
seconds = Keyboard.readInt();
hour = seconds / HOUR_CONVERSION;
minute = (hour - (int)hour) * CONVERSION;
seconds = (int) ((minute - (int)minute) * CONVERSION);
hour1 = (int) hour;
minute1 = (int) minute;
seconds1 = (int) seconds;
System.out.print ("You slept for " + hour1 + " hours, "
+ minute1 + " minutes, and "
+ seconds1 + " seconds.");
My suspicion is a rounding error. When you do the
last conversion to seconds, I supect you are getting
something like 38.99999999. and just in case it wasn't clear (no offense, EE), converting fp types to int types in Java always truncates, so (int)38.99999999999 ends up as 38.
Similar Messages
-
To convert value in seconds or decimal value to hr:min:sec
Hi There,
I got 2 keyfigures which have the same data in decimal and seconds format like 1492.000 or 1492. In the <b>query</b> I want to convert this to HR:MIN:SEC format.
Can anybody help me to convert to hr:min:sec format. what is the formula that can convert this?
Thanks alot
AnimaI checked SU01 and didn't see anything there to customize...
In my workstation, control panel / regional and languages settings / tab regional Options / customize; my time format is HH:mm:ss; the HH has to be in capital letter to display the time in 24 hour...
but this is strange anyway... are you reporting with web frontend or excel? -
How to print out time as hr:min:sec without AM/PM?
how to print out time as hr:min:sec without AM/PM
since hr specifies AM/PM. Thank you. My first thought
is that there exists a formatter to do this. My second
thought is that if not I can convert the AM/PM in the
DateFormat.MEDIUM to the right hour.import java.text.*;
import java.util.*;
public class Test {
public static void main (String [] args) {
SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss");
Date d = new Date();
System.out.println( format.format(d) );
} -
Character conversion error: "Unconvertible UTF-8 character beginning with 0
Hi All,
I developed an Adapter Module and added to Adapter Framework.
package sample;
import java.io.InputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.ejb.CreateException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import com.sap.aii.af.mp.module.Module;
import com.sap.aii.af.mp.module.ModuleContext;
import com.sap.aii.af.mp.module.ModuleData;
import com.sap.aii.af.mp.module.ModuleException;
import com.sap.aii.af.ra.ms.api.Message;
import com.sap.aii.af.ra.ms.api.XMLPayload;
@ejbHome <{com.sap.aii.af.mp.module.ModuleHome}>
@ejbLocal <{com.sap.aii.af.mp.module.ModuleLocal}>
@ejbLocalHome <{com.sap.aii.af.mp.module.ModuleLocalHome}>
@ejbRemote <{com.sap.aii.af.mp.module.ModuleRemote}>
@stateless
public class SetAttachmentName implements SessionBean, Module {
private SessionContext myContext;
private String mailFileName = "UStN";
public void ejbRemove() {
public void ejbActivate() {
public void ejbPassivate() {
public void setSessionContext(SessionContext context) {
myContext = context;
public void ejbCreate() throws CreateException {
public ModuleData process(
ModuleContext moduleContext,
ModuleData inputModuleData)
throws ModuleException {
// create a second attachment for the receiver mail adapter
try {
// get the XI message from the environment
Message msg = (Message) inputModuleData.getPrincipalData();
// creating parsable XML document
InputStream XIStreamData = null;
XMLPayload xmlpayload = msg.getDocument();
XIStreamData = xmlpayload.getInputStream();
DocumentBuilderFactory docBuilderFactory =
DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
Document doc = docBuilder.parse(XIStreamData);
// finding the tag's name from the Modules tab in the Directory that will hold the attachment's name
String absenderIDTag = null;
absenderIDTag = moduleContext.getContextData("<RCVPRN>");
// finding the content of the tag that will be used as the attachment's name (assuming it's the only tag with this name)
Element element = doc.getDocumentElement();
NodeList list = doc.getElementsByTagName(absenderIDTag);
mailFileName += "_" + list.item(0).getFirstChild().toString();
String anIDTag = null;
anIDTag = moduleContext.getContextData("<CREDAT>");
element = doc.getDocumentElement();
list = doc.getElementsByTagName(anIDTag);
mailFileName += "_" + list.item(0).getFirstChild().toString();
Date date = new Date(System.currentTimeMillis());
// Add date to the Message
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
mailFileName += "_" + dateFormat.format(date);
String belegNummerTag = null;
belegNummerTag = moduleContext.getContextData("<BULK_REF>");
element = doc.getDocumentElement();
list = doc.getElementsByTagName(belegNummerTag);
mailFileName += "_" + list.item(0).getFirstChild().toString();
// creating the attachment
byte by[] = xmlpayload.getText().getBytes();
XMLPayload attachmentPDF = msg.createXMLPayload();
attachmentPDF.setName(mailFileName);
attachmentPDF.setContentType("application/pdf");
attachmentPDF.setContent(by);
//adding the message to the attachment
msg.addAttachment(attachmentPDF);
// provide the XI message for returning
inputModuleData.setPrincipalData(msg);
} catch (Exception e) {
// raise exception, when an error occurred
ModuleException me = new ModuleException(e);
throw me;
// return XI message
return inputModuleData;
I get the following error
Character conversion error: "Unconvertible UTF-8 character beginning with 0xaa" (line number may be too low).
Any tips, pointers ?
Thanks in Advance
MukhtarHi Henrique,
I am using .getNodeValue()
import java.io.InputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.ejb.CreateException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import com.sap.aii.af.mp.module.*;
import com.sap.aii.af.ra.ms.api.*;
@ejbHome <{com.sap.aii.af.mp.module.ModuleHome}>
@ejbLocal <{com.sap.aii.af.mp.module.ModuleLocal}>
@ejbLocalHome <{com.sap.aii.af.mp.module.ModuleLocalHome}>
@ejbRemote <{com.sap.aii.af.mp.module.ModuleRemote}>
@stateless
public class UStNAttachmentName3 implements SessionBean, Module {
private SessionContext myContext;
private String mailFileName = "UStN";
public void ejbRemove() {
public void ejbActivate() {
public void ejbPassivate() {
public void setSessionContext(SessionContext context) {
myContext = context;
public void ejbCreate() throws CreateException {
public ModuleData process(
ModuleContext moduleContext,
ModuleData inputModuleData)
throws ModuleException {
// create a second attachment for the receiver mail adapter
try {
// get the XI message from the environment
Message msg = (Message) inputModuleData.getPrincipalData();
// creating parsable XML document
InputStream XIStreamData = null;
XMLPayload xmlpayload = msg.getDocument();
XIStreamData = xmlpayload.getInputStream();
DocumentBuilderFactory docBuilderFactory =
DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
Document doc = docBuilder.parse(XIStreamData);
// finding the tag's name from the Modules tab in the Directory that will hold the attachment's name
String absenderIDTag = null;
absenderIDTag = moduleContext.getContextData("<RCVPRN>");
// finding the content of the tag that will be used as the attachment's name (assuming it's the only tag with this name)
Element element = doc.getDocumentElement();
NodeList list = doc.getElementsByTagName(absenderIDTag);
mailFileName += "_" + list.item(0).getFirstChild().getNodeValue();
String anIDTag = null;
anIDTag = moduleContext.getContextData("<CREDAT>");
element = doc.getDocumentElement();
list = doc.getElementsByTagName(anIDTag);
mailFileName += "_" + list.item(0).getFirstChild().getNodeValue();
Date date = new Date(System.currentTimeMillis());
// Add date to the Message
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
mailFileName += "_" + dateFormat.format(date);
String belegNummerTag = null;
belegNummerTag = moduleContext.getContextData("<BULK_REF>");
element = doc.getDocumentElement();
list = doc.getElementsByTagName(belegNummerTag);
mailFileName += "_" + list.item(0).getFirstChild().getNodeValue();
// creating the attachment
byte by[] = xmlpayload.getText().getBytes();
XMLPayload attachmentPDF = msg.createXMLPayload();
attachmentPDF.setName(mailFileName);
attachmentPDF.setContentType("application/pdf");
attachmentPDF.setContent(by);
//adding the message to the attachment
msg.addAttachment(attachmentPDF);
// provide the XI message for returning
inputModuleData.setPrincipalData(msg);
} catch (Exception e) {
// raise exception, when an error occurred
ModuleException me = new ModuleException(e);
throw me;
// return XI message
return inputModuleData;
Still I get the same error.
org.xml.sax.SAXParseException: Character conversion error: "Unconvertible UTF-8 character beginning with 0xaa" (line number may be too low).
Adapter-Framework: Character conversion error: "Unconvertible UTF-8 character beginning with 0xaa" (line number may be too low).
Regards,
Mukhtar -
Import SQL into Fact Table - Conversion Error
Hi All,
I am new to BPC MS and did not know much into MS SQL.
I am facing the Conversion error while converting between unicode and non unicode string data types.
We are using SAP BPC 10.0 MS SP13, EPM-Addin SP18 on .Net 4
The below is the error log
Total Step: 4
SQLToTxt: Failed in 0 seconds
Import SQL into Fact Table: Failed in 0 seconds
[Selection]
DB = BPC
TABLE = GlBalanceOpening
COLUMNS = Account,Auxiliary,Curr,BalanceDateTime,Amount
TRANSFORMATION = \JMG\LIQ_JMG\DataManager\TransformationFiles\GLOpeningBalances.xls
CLEARDATA = No
RUNLOGIC = No
PROCESSCUBE = Yes
CHECKLCK = No
[Message]
An error occurred while executing a package.
Package Error Events:
ErrorCode = -1071636234
Source = SQLToTxt
SubComponent= OLE DB Source [68]
Description = Column "Account" cannot convert between unicode and non-unicode string data types.
IDOfInterfaceWithError= {C81DFC5A-3B22-4DA3-BD3B-10BF861A7F9C}
Package Error Events:
ErrorCode = -1071636234
Source = SQLToTxt
SubComponent= OLE DB Source [68]
Description = Column "AccountName" cannot convert between unicode and non-unicode string data types.
IDOfInterfaceWithError= {C81DFC5A-3B22-4DA3-BD3B-10BF861A7F9C}
Package Error Events:
ErrorCode = -1071636234
Source = SQLToTxt
SubComponent= OLE DB Source [68]
Description = Column "Auxiliary" cannot convert between unicode and non-unicode string data types.
IDOfInterfaceWithError= {C81DFC5A-3B22-4DA3-BD3B-10BF861A7F9C}
Package Error Events:
ErrorCode = -1071636234
Source = SQLToTxt
SubComponent= OLE DB Source [68]
Description = Column "AuxiliaryName" cannot convert between unicode and non-unicode string data types.
IDOfInterfaceWithError= {C81DFC5A-3B22-4DA3-BD3B-10BF861A7F9C}
Package Error Events:
ErrorCode = -1071636234
Source = SQLToTxt
SubComponent= OLE DB Source [68]
Description = Column "Curr" cannot convert between unicode and non-unicode string data types.
IDOfInterfaceWithError= {C81DFC5A-3B22-4DA3-BD3B-10BF861A7F9C}
Package Error Events:
ErrorCode = -1071636234
Source = SQLToTxt
SubComponent= OLE DB Source [68]
Description = Column "Dr" cannot convert between unicode and non-unicode string data types.
IDOfInterfaceWithError= {C81DFC5A-3B22-4DA3-BD3B-10BF861A7F9C}
Package Error Events:
ErrorCode = -1071636234
Source = SQLToTxt
SubComponent= OLE DB Source [68]
Description = Column "Cr" cannot convert between unicode and non-unicode string data types.
IDOfInterfaceWithError= {C81DFC5A-3B22-4DA3-BD3B-10BF861A7F9C}
Package Error Events:
ErrorCode = -1073450901
Source = SQLToTxt
SubComponent= SSIS.Pipeline
Description = "component "OLE DB Source" (68)" failed validation and returned validation status "VS_ISBROKEN".
IDOfInterfaceWithError= {C81DFC5A-3B22-4DA3-BD3B-10BF861A7F9C}
Package Error Events:
ErrorCode = -1073450996
Source = SQLToTxt
SubComponent= SSIS.Pipeline
Description = One or more component failed validation.
IDOfInterfaceWithError= {C81DFC5A-3B22-4DA3-BD3B-10BF861A7F9C}
Package Error Events:
ErrorCode = -1073594105
Source = SQLToTxt
SubComponent=
Description = There were errors during task validation.
IDOfInterfaceWithError= {B4E78907-3D9C-4229-9DB9-6A311E45C779}
Thanks and Regards,
RajHi Raj,
you have to modify the script of your package, see please 1629737 - Error in ImportSQL Data Manager Package
Regards
Roberto -
conversion error occured while using h:selectmanyListbox tag.
Have the exact same problem, am using Rational Application Developer 6 (WSAD 6) in combination with websphere 6. I have a datatable (server side component) which is based on a javabean collection. The javabean has an Integer attribute "id". I'm presenting the "id" as a hidden field which works fine. when I submit the form containing the table I want to bind the hidden field to a requestScope variable. But before it hits my code I already get the table:0:hidden1: Conversion error occured.
Have tried without converter, with numberConverter and a Custom convertor (which is called and works correctly (as in it doesn't generate the Conversion error)).
So the conversion error is generated after my own custom convertor is called. Which part of the JSF code has to convert the field after mine is done ???
And I'm also doing this on 1 page (maybe that's something to look at....)
Hendri -
Conversion Error - when Stored Procedure Execution Statement line is broken
Hi ,
I am getting data type conversion Error whenever any value of a multivalued parameter is brought to the next line(or breaking up of the EXEC command to multiple lines, by enter key or tab.
On executing SP_ABC with second value for @parm3UID in the next line-
THE ERROR IS -
Similarly when date value for @parm4Date is throwing when SP Execution statement is
Kindly help me resolving the issue.
Thanks in Advance!!
Mridhula
Mridhula.SOh sorry Patrick , here is the code-
when second value of @parm3UID is entered to the next line-
exec dbo.SP_ABC @parm1UID=N'DF617C6D-F68F-E411-9CAE-180373C4FF6B',
@parmProgram=N'Null', @parm3UID=N'AA8AC32B-2AC5-E311-80CB-005056B2487C,
661E59C1-29C5-E311-80CB-005056B2487C',
@parm4Date='2015-01-05 00:00:00'
For the above code Error displayed is
Conversion failed when converting from a character string to uniqueidentifier.
when Date value @parm4Date is broken-
exec dbo.SP_ABC @parm1UID=N'DF617C6D-F68F-E411-9CAE-180373C4FF6B',
@parmProgram=N'Null', @parm3UID=N'AA8AC32B-2AC5-E311-80CB-005056B2487C,661E59C1-29C5-E311-80CB-005056B2487C',
@parm4Date='2015-01-05
00:00:00'
For the above code Error displayed is
Msg 8114, Level 16, State 1, Procedure SP_ABC, Line 0
Error converting data type varchar to datetime
When the codes come in a single line exec statement works fine.Only issue is when a carriage return or tab comes in between. Please let me know for further details.
Thanks!!
Mridhula.S -
Open PO LSMW Quantity conversion error in net price calculation
Hi gurus,
I encountered an error as I was tring to upload purchase orders - "Quantity conversion error in net price calculation". What does this mean and how do I fix this?
Please help
ThanksHi Jürgen,
Where in the Material Master can I find the conversion ratio between both units?
Also, I am trying to upload POs for Spare Parts and that's when I get the error. But when I try to use other materials like FGs, everything is ok. I can proceed with the upload without any problem
Please help -
How to custom a conversion error in JSF page in JDeveloper
According to the book "Core JavaServer Faces" p213 (fifth edition), if I add the following line to messages.properties file, and specifiy it in the faces-config.xml and .jsp file, then the displayed conversion error message should be my tailored one instead of the default. However, I still get the default error message. Besides, I didn't find "CONVERSION" variable in UIInput class. Is the book wrong? And what's the correct way?
javax.faces.component.UIInput.CONVERSION=Please correct your inputI didn't choose any special in JDeveloper IDE. I just selected "new" to create a file called "message.properties" and put the line there. I didn't specify converters excepts declaring the type in the Jave Beans. I guess the converting is done by the JSF framework automatically. It must be a JSF converter since I created the page as a JSF page.
-
Decimal format time value to convert into time (hr:min:sec)value in a graph
I need to develop a graph in WAD, in BW7. In the graph the value must be showed as HR:MIN:SEC, which I cannot get it right.
The keyfigure value carries the duration(hr:min:sec) in decimal format. In the query, I use this keyfigure for calculation. To get the time broadcasted for a week range. I get the total duration (say 507835.000). Now I need to convert this value back to hr:min:sec. I use the below formulas to get the hr, min, sec.
D = 507835
Val1 = D/3600
Val2 = Frac(val1)
Val3 = Val2 * 60
Val4 = frac(Val3) * 60
Hr = Val1 Val2
Min = Val3 frac(Val3)
Sec = Val4
In another formula in the query I add Hr + Min/100 + Sec/10000 to get hr.minsec format.
When I do an average on count of weeks, this doesnt round off correctly.
I tried to also use the Data function TIME() which when the time is > 24 hrs changes the value.
Lets say if it is 39:00:00, it shows value as 15:00:00 instead of keeping the value 39:00:00.
When I used this value in the graph it did not show the HR:MIN:SEC values in the value axis instead it showed 0.0, 0.1, .1.0. Bcoz of this the graph is blank.
Can anybody help me to resolve this problem.
Thanks alot
AnimaI checked SU01 and didn't see anything there to customize...
In my workstation, control panel / regional and languages settings / tab regional Options / customize; my time format is HH:mm:ss; the HH has to be in capital letter to display the time in 24 hour...
but this is strange anyway... are you reporting with web frontend or excel? -
What does the "conversion error" I get when converting a pdf file to Microsoft word?
What is the "conversion error" I get when converfting a pdf file to aMicrosoft word?
Adobe reader with export to PDF
Sent from my iPhone 5
Marty Kennedy -
Error while impdp: ORA-02374: conversion error loading table
Hi,
I am trying to convert the character set from WE8ISO8859P1 to AL32UTF8 using expdp/impdp. for this I first convert WE8ISO8859P1 to WE8MSWIN1252 in source DB to get rid of “lossy” data. I created new database(target) with character set AL32UTF8 and nls_length_semantics = ’CHAR’ and created all the tablespaces as in source DB with auoexend on. I took full export (expdp) of source DB excluding TABLESPACE,STATISTICS,INDEX,CONSTRAINT,REF_CONSTRAINT and imported using impdp to target DB. I found below error in the import log file:
ORA-02374: conversion error loading table "SCTCVT"."SPRADDR_CVT"
ORA-26093: input data column size (44) exceeds the maximum input size (40)
ORA-02372: data for row: CONVERT_STREET_LINE1 : 0X'20202020202020202020202020202020202020202020202020'
I checked with select query on both DBs with below results.
source DB:
04:58:42 SQL> select count(*) from "SCTCVT"."SPRADDR_CVT";
COUNT(*)
74553
target DB:
04:59:24 SQL> select count(*) from "SCTCVT"."SPRADDR_CVT";
COUNT(*)
74552
please suggest me a solution to this.
Thanks and Regards.
Edited by: user12045167 on May 9, 2011 10:39 PMThanks for your update maher.
09:15:53 SQL> desc "SCTCVT"."SPRADDR_CVT"
Name Null? Type
SPRADDR_PIDM NUMBER(8)
CONVERT_PIDM VARCHAR2(9 CHAR)
SPRADDR_ATYP_CODE VARCHAR2(2 CHAR)
CONVERT_ATYP_CODE VARCHAR2(2 CHAR)
SPRADDR_SEQNO NUMBER(2)
CONVERT_SEQNO VARCHAR2(2 CHAR)
SPRADDR_FROM_DATE DATE
CONVERT_FROM_DATE VARCHAR2(8 CHAR)
SPRADDR_TO_DATE DATE
CONVERT_TO_DATE VARCHAR2(8 CHAR)
SPRADDR_STREET_LINE1 VARCHAR2(30 CHAR)
CONVERT_STREET_LINE1 VARCHAR2(40 CHAR)
SPRADDR_STREET_LINE2 VARCHAR2(30 CHAR)
CONVERT_STREET_LINE2 VARCHAR2(40 CHAR)
SPRADDR_STREET_LINE3 VARCHAR2(30 CHAR)
CONVERT_STREET_LINE3 VARCHAR2(40 CHAR)
SPRADDR_CITY VARCHAR2(20 CHAR)
CONVERT_CITY VARCHAR2(25 CHAR)
SPRADDR_STAT_CODE VARCHAR2(3 CHAR)
CONVERT_STAT_CODE VARCHAR2(25 CHAR)
SPRADDR_ZIP VARCHAR2(10 CHAR)
CONVERT_ZIP VARCHAR2(15 CHAR)
SPRADDR_CNTY_CODE VARCHAR2(5 CHAR)
CONVERT_CNTY_CODE VARCHAR2(5 CHAR)
SPRADDR_NATN_CODE VARCHAR2(5 CHAR)
CONVERT_NATN_CODE VARCHAR2(5 CHAR)
SPRADDR_PHONE_AREA VARCHAR2(3 CHAR)
CONVERT_PHONE_AREA VARCHAR2(3 CHAR)
SPRADDR_PHONE_NUMBER VARCHAR2(7 CHAR)
CONVERT_PHONE_NUMBER VARCHAR2(7 CHAR)
SPRADDR_PHONE_EXT VARCHAR2(4 CHAR)
CONVERT_PHONE_EXT VARCHAR2(4 CHAR)
SPRADDR_STATUS_IND VARCHAR2(1 CHAR)
CONVERT_STATUS_IND VARCHAR2(1 CHAR)
SPRADDR_ACTIVITY_DATE DATE
CONVERT_ACTIVITY_DATE VARCHAR2(8 CHAR)
SPRADDR_USER VARCHAR2(30 CHAR)
CONVERT_USER VARCHAR2(30 CHAR)
SPRADDR_ASRC_CODE VARCHAR2(4 CHAR)
CONVERT_ASRC_CODE VARCHAR2(4 CHAR)
SPRADDR_DELIVERY_POINT NUMBER(2)
CONVERT_DELIVERY_POINT VARCHAR2(2 CHAR)
SPRADDR_CORRECTION_DIGIT NUMBER(1)
CONVERT_CORRECTION_DIGIT VARCHAR2(1 CHAR)
SPRADDR_CARRIER_ROUTE VARCHAR2(4 CHAR)
CONVERT_CARRIER_ROUTE VARCHAR2(4 CHAR)
SPRADDR_GST_TAX_ID VARCHAR2(15 CHAR)
CONVERT_GST_TAX_ID VARCHAR2(15 CHAR)
SPRADDR_REVIEWED_IND VARCHAR2(1 CHAR)
CONVERT_REVIEWED_IND VARCHAR2(1 CHAR)
SPRADDR_REVIEWED_USER VARCHAR2(30 CHAR)
CONVERT_REVIEWED_USER VARCHAR2(30 CHAR)
SPRADDR_DATA_ORIGIN VARCHAR2(30 CHAR)
CONVERT_DATA_ORIGIN VARCHAR2(30 CHAR)
SPRADDR_CVT_RECORD_ID NUMBER(8)
SPRADDR_CVT_STATUS VARCHAR2(1 CHAR)
SPRADDR_CVT_JOB_ID NUMBER(8)
so here we can see its value is 40 (CONVERT_STREET_LINE1 VARCHAR2(40 CHAR)).
shall i go ahead altering the column? -
ME21N--Quantity conversion error in net price calculation
Hi MM experts,
Issue: while creating PO, when attempting to add the net price for line item. but system removes the cost and gives the follow error message says "Quantity conversion error in net price calculation".
The system was not able to convert the order unit into the purchase order price unit. Possible reasons:
i) the conversion results in a net price that is too high, or
ii) the conversion factor for the units has not been properly maintained.
iii) Check whether the units of measure and their conversion factor are correct.
I have checked material master>unit of measure> 1 PL = 22 KG maintained.
Can you please tell me how to resolve this issue?
Appreciated early response.
Thanks in advance.
SureshHi Suresh,
Please check on Material Master Data - Accounting 1 tab - Price Unit
Moshe -
Quantity Conversion Error in Net Price Calculation
We are currently using SRM 5.0 ECS where we created a material PO and had a problem with the product not having the language E maintain in the material master. This caused the PO to have status of "error in process" Once we fixed this issue and tried to reprocess the PO we're not getting the following error message in the Application Monitor:
No Instance of Object type PurchaseOrder has been created. External Reference
Puchase Order still contains faulty Items
Quantity Conversion Error in Net Price Calculation
Has anyone seen this or know what we can do to resolve this so that the PO gets replicated in R3?
Thanks in advance.Hi Robert,
Regarding this backend error E 212 06 Quantity conversion error in net
price calculation.
This error is because in the PO Order price unit is empty. And
quantity is null. So, please enter the quantity and order price unit
for this PO and order the PO again. Or you can retransfer the
PO manually using the FM BBP_PD_PO_TRANSFER_EXEC. (for this fm you need
to input the PO header guid, which you will get it from tx.BBP_PD
by providing PO number and object type as BUS2201).
This has worked for other customers.
Hope this helps,
Kind Regards,
Matthew -
Quantity conversion error in net price calculation in BAPI_PO_CREATE1
I'm creating PO from BAPI_PO_CREATE1 .here i'm getting follwing error
quantity conversion error in net price calculation.
plz guide me to remove it.Are you using quantities directly entered by the user while calling the function to do the net price calculation? If that is the case, you should use FM CONVERSION_EXIT_ALPHA_INPUT to convert the quantity from the external format into the internal one!
Another possibility is that some customizing is missing for converting quantities in different unit of measures (like the quantity in pieces is known, but the pricing calculation is being done on kilos.. but the convertion between these 2 unit of measures is missing).
Good luck!
Maybe you are looking for
-
my ipod isnt working. every time i turn it on, the apple logo appears for a second, and then a thin black bar appears across the screen and it turns off. i tried charging it, but the battery icon comes on and then freezes. can any1 tell me what is wr
-
File being written to disappears
In our implementation, we use ObjectOutputStream and ObjectInputStream to write/read our objects (serialized). inFile = new ObjectInputStream( new BufferedInputStream(new FileInputStream(FileName), 262144)); outFile = new ObjectOutputStream(new Buffe
-
Jsp call success, http 500 servlet not display
in the project, i have a HelloServlet in application sources SayHello.jsp in Web content in JDeveloper, i successfully run them result is sayhello pass parameter through get in form action called HelloServlet But, After deployed to OC4J standalone ht
-
Illustrator CC 17.1 Crashes on startup brand new install on Mac running 10.6.8
How do I make it work
-
Isn't there a J2SE for Macintosh?
Isn't there a J2SE for Macintosh? I've tried to find something like this on the website but I haven't. Are you restricted to apple software?