Error Message - Value Entered Does Not Match Format of Field
I keep getting an error message in Adobe Pro X: "The value entered does not match the format of the field [JF13]".
I have JF13 programmed as follows:
On Calculate tab:
if(Number(this.getField("ck4").value) > 0) this.getField("JF13").value = Number(this.getField("FL019").value); else this.getField("JF13").value = " ";
It is programmed this way so if the user checks the check box before the field, only then will JF13 populate a value, which pulls from FL019. I also have the settings set to "number" because the data needs to display as a dollar amount $xxx.xx.
FL019 is a hidden field on the form which pulls a dollar amount from a Mainframe, and its settings are also set to "Number" :
I get four pop up windows with the above mentioned error message, and the only way to make the message stop is to remove the "number" format from the fields. However, when this is done, if any number which ends in a zero is entered, it cuts off the zero. This is not acceptable either.
Is there some sort of script I could add or some other way to prevent both the error message and the cutting off of the zero on JF13?
I am not very proficient with javascript, so any assistance would be appreciated!
Thank you so much for your response!!
Forgive me for my lack of knowledge - but where exactly would I add that in the script?
I tried it like this:
if(Number(this.getField("ck4").value) > 0) this.getField("JF13").value = Number(this.getField("FL019").value); else this.getField("JF13").value = ""(empty string);
And I got an error saying I was missing a parenthesis. Should it go somewhere else or am I completely off?
Similar Messages
-
SQL Error: ORA-01861: literal does not match format string
Hello,
I'm trying to do data mining on a web log which recorded one day web access information from a busy web server. I imported the data into Oracle Data miner, and created a table (WEBLOG). The idea is to create a new field, i.e. session, for the users so that each session could be thought as a representative of a user-intent (aka topic). Now based on this, data mining models would be used to cluster(group) the users based on their similarity. The first step is to prepare the data which involves using SQL queries. So first, all I did was to create a function for date and time. This is the following code I used,
create or replace function ssndate(p_date in varchar2 default '03-01-18',
p_time in varchar2)
return number
$if dbms_db_version.ver_le_10 $then
deterministic
$elsif dbms_db_version.ver_le_11 $then
result_cache
$end
as
begin
return trunc((to_date(p_date||' '||p_time, 'dd-mm-yy hh24:mi:ss')
- to_date('01-01-90','dd-mm-yy')) * (86400/2400));
end ssndate;
The function ssndate compiled successfully.
The next step I took was to create a view through the following query,
create or replace view WEBLOG_VIEWS
as
select (select ssndate(LOG_DATE, LOG_TIME) from dual) as "SESSION_DT",
C_IP,
CS_USER_AGENT,
(CS_URI_STEM||'?'||CS_URI_QUERY) as WEB_LINK
from WEBLOG;
This was successful as well. The problem is in the next step where I try to do data grouping.
create table FINAL_WEBLOG as
select SESSION_DT, C_IP, CS_USER_AGENT,
listagg(WEB_LINK, ' ')
within group(order by C_IP, CS_USER_AGENT) "WEB_LINKS"
from WEBLOG_VIEWS
group by C_IP, CS_USER_AGENT, SESSION_DT
order by SESSION_DT
For this, I got the error,
Error starting at line 1 in command:
create table FINAL_LOG as
select SESSION_DT, C_IP, CS_USER_AGENT,
listagg(WEB_LINK, ' ')
within group(order by C_IP, CS_USER_AGENT) "WEB_LINKS"
from WEBLOG_VIEWS
group by C_IP, CS_USER_AGENT, SESSION_DT
order by SESSION_DT
Error at Command Line:1 Column:7
Error report:
SQL Error: ORA-01861: literal does not match format string
ORA-06512: at "DMUSER.SSNDATE", line 11
ORA-06512: at line 1
01861. 00000 - "literal does not match format string"
*Cause: Literals in the input must be the same length as literals in
the format string (with the exception of leading whitespace).
If the "FX" modifier has been toggled on, the literal must
match exactly, with no extra whitespace.
*Action: Correct the format string to match the literal.
I don't know where I'm going wrong with this.. the to_date function should be fine. In the data that I possess, the date and time are in no format. Example: 30118 and 0:00:09 respectively. If anyone has any clue about this I would be sincerely grateful for any help that I can get!! It's quite urgent..
The Oracle version is 11.2.0.1.0
Edited by: 975265 on Dec 5, 2012 5:31 PM975265 wrote:
Ok.. Looks like I touched a nerve there. I apologize. I'm still a student, and this is the first time that I've tried something at this level. I'm still in the learning process, so I was hoping that someone could point me in the right direction in order to "fix" the data.Not so much touching a nerve as simply trying to implement a very very poor, but all too common, practice. Since you are a student (which we didn't know until this post) most people will cut you some slack. However, this little exchange should now be burned into your brain as you move forward. One of the very first rules of programming is to ALWAYS use the correct data types for your data. And along with that, never ever depend on implicit type conversions - always use the proper explicit conversion functions.
And as a slight follow-on, when considering the appropriate data type, don't assume that just because we refer to a given element as a 'something number' that it is indeed a number. Telephone "numbers" are NOT numbers. U.S. Social Security "numbers" are NOT numbers. U.S. Postal Zip codes are NOT numbers. All are just character strings which, by convention, we limit to the same characters we use to represent numbers.
And since this entire discussion came up around the representation of dates, you might want to take a look at http://edstevensdba.wordpress.com/2011/04/07/nls_date_format/
Now, go forth and be a smarter programmer than your peers.
Edited by: EdStevens on Dec 6, 2012 6:12 AM -
Error: ORA-01861: literal does not match format string
Hi,
I am doing a RFC-XI-JDBC scenario.
In the CC monitoring , i am getting this error for the reciver CC:
"Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. "TableNAMe"(structure 'STATEMENTNAME'): java.sql.SQLException: ORA-01861: literal does not match format string "
Please guide me what can be the cause and how to solve it.
Thanks,
PuneetThis is how my payload looks like :
<?xml version="1.0" encoding="UTF-8"?>
<ns1:MT_JDBC_REC xmlns:ns1="https:namespace.scene3">
<STATEMENTNAME>
<TABLE_NAME action="INSERT">
<TABLE>ggclgis</TABLE>
<access>
<VALVE_ID>12584</VALVE_ID>
<EQUNR>122</EQUNR>
<ERNAM>12122</ERNAM>
<INVNR>1212</INVNR>
<GROES>1212</GROES>
<ELIEF>123</ELIEF>
<GWLEN>21-jul-2008</GWLEN>
<GWLDT>12-jun-2006</GWLDT>
<SERGE>wqwqw</SERGE>
<TYPBZ>wqwqwq</TYPBZ>
</access>
</TABLE_NAME>
</STATEMENTNAME>
</ns1:MT_JDBC_REC>
Please tell me if it looks fine. -
The value entered does not match the format of the field
I am trying to do a simple division of profit by sales to find the profit %. Here is the script I am using and it doesn't work.
var v1 = +getField("Profit%").value;
var v2 = +getField("Contract1").value;
event.value = v2 !== 0 ? v1 / v2 : "";
I continue to get the error The value entered doesnot match the format of the field
I have attached the file. Can someone helpAre you very sure?
Using
var v1 = 0.05; // "Profit%"
var v2 = 100000; // "Contract1"
v1 / v2; // result of division;
5e-7
That is 5 * 10 exponent -7 or 0.00000005
Set the format to "None"
Also so please post the values you are using. -
When trying to purchase an app an error message comes up saying the info I entered does not match my banking info. The odd thing is, the $1.00 hold is shown immediately on my credit card acct. , so I obviously did enter it correctly. Tried 5 times. Any suggestions
When trying to purchase an app an error message comes up saying the info I entered does not match my banking info. The odd thing is, the $1.00 hold is shown immediately on my credit card acct. , so I obviously did enter it correctly. Tried 5 times. Any suggestions
-
Error the entered value does not match the specified field type
Hi,
When I try to insert a null value to a field of the User Defined Table I am getting the error "The entered value does not match the specified field type" in SAP Business One version 2007 PL 42.
Any help would be appreciated.
Thanks in advance.
Sudha.Hi Sudha,
It probably have to do with how you defined the field.
Is Null value allowed?
What are the field definitions?
Thanks,
Jesper -
Error: Literal does not match format string
Can anyone help me with the query below. I am trying to insert CMPGN_ID, PGM_KEY, CMPGN_BEGIN_DT into TEMP.
I get an error 'Literal does not match format string' for 'SELECT to_char(add_months(SYSDATE,-1),'YYYYMM') from dual'
CMPGN_BEGIN_DT has a data type of DATE.
INSERT INTO TEMP (CMPGN_ID, PGM_KEY, CMPGN_BEGIN_DT)
VALUES(
('NCR_'|| (select to_char(add_months(SYSDATE,-1),'YYYYMM') from dual)),
(SELECT PGM_KEY FROM PROGRAM WHERE PGM_NAME = 'NCR'),
(SELECT to_char(add_months(SYSDATE,-1),'YYYYMM') from dual)
ThanksINSERT INTO TEMP (CMPGN_ID, PGM_KEY, CMPGN_BEGIN_DT)
SELECT 'NCR_'|| to_char(add_months(SYSDATE,-1),'YYYYMM'),
PGM_KEY,
to_char(add_months(SYSDATE,-1),'YYYYMM')
FROM PROGRAM
WHERE PGM_NAME = 'NCR';Datatypes are unclear, may need datatype casting with date column, but otherwise the above should work.
Thx,
SriDHAR -
I am unable to redeem my purchase of a Photoshop Elements 12 software license. After entering the redemption code and clicking on the Redeem button, nothing happens. No error message. Screen does not change.
try using a different browser, or contact support Contact Customer Care
-
SQL query error - Literal does not match format string
Hi All,
When I am removing these code form query then it is running fine else it is giving error of "Literal does not match format string."
AND trunc((SYSDATE)) > DECODE(fifs.id_flex_structure_name, 'XXX Service Agreement', trunc(TO_DATE
(pac.segment3, 'YYYY/MM/DD HH24:MI:SS')),trunc(SYSDATE) )
Regards,
AjayAjay Sharma wrote:
It is flexfield segment so it can contain anything. For my query it is returning date.....Oh dear. Two really bad design decisions in one, there - storing dates as varchar2 and storing more than one type of data in one column. I suggest you read this: http://www.simple-talk.com/opinion/opinion-pieces/bad-carma/ in order to see just why that might be a bad design.
If you have any influence at all over the way your tables/app is designed, then I would highly recommend changing the design, as it will save you countless headaches like the one you've currently got.
If you are absolutely stuck with that design, then a) poor you and b) you'll have to add in some filters onto your queryto make sure you're only selecting rows with dates in that column. -
CS4 Upgrade, the serial number you have entered does not match the product you have selected
I have a valid CS2 premium license and have installed CS4 upgrade to a new machine but get the dreaded error "the serial number you have entered does not match the product you have selected" Now I got this error when I originally installed in 2009, back then I could call customer service and get the problem resolved but now when I phone I get an automated message saying phone support is not available for CS4? Does anyone know of a work around or a UK number where I can get this resolved? Any help would be appreciated.
Please see: http://www.hp.com/country/us/en/mda/windows7/upgrade/index_ww.html to select your correct country or region.
Carey Frisch
Microsoft MVP
Windows Expert - Consumer -
ORA-01861 literal does not match format string, ORA-02063preceding line fro
We have upgraded a client from 8.0.5 to 9.2.03. The following query is called from a report that was built using Cold Fusion5. It worked in 8.0.5, but not 9.2.03. When you run the report you get the errors
[Oracle][ODBC][Ora]ORA-01861: literal does not match format string ORA-02063: preceding line from FRPE
Here's the query:
SELECT x.acct, x.obj, x.offn, x.status, x.asofdate, max( decode( x.func_id, 1, t, null ) ) UOB, max( decode( x.func_id, 12, t, null ) ) COB, max( decode( x.func_id, 24, t, null ) ) Rate_Warning, max( decode( x.func_id, 2, t, null ) ) Sector_Change, max( decode( x.func_id, 2006, t, null) ) FRRFRD , max( decode( x.func_id, 2003, t, null ) ) No_Tcode , max( decode( x.func_id, 2004, t, null) ) No_Sector FROM ( SELECT a.acct, a.func_id, count(*) cnt, 'Fail' t, b.obj, b.offn, b.status,a.asofdate FROM frpfaud@FRPE a, frpair@FRPE b WHERE a.acct=b.acct AND a.asofdate='2008-02-29 00:00:00' AND b.bnk not like 'B%' and b.obj not in ('KL') and b.obj in ('GAF') GROUP BY a.acct, a.func_id,b.obj,b.offn,b.status,a.asofdate) x GROUP BY x.acct, x.obj,x.offn,x.status,x.asofdate
Now, this query will not work by running straight through SQL worksheet in either the 8.0.5 or 9.2.03 regions. So I guess it has something to do with Cold Fusion- which I know nothing about. Has anyone had any experience using Cold Fusion to issue a query? What would be the cause of the difference between the Oracle versions? That is the only thing that changed.
Thanks for any input.I actually want the date format of DD-MON-YY. Which, from what I understand, is the default format for both Oracle 8.0.5 and 9.2.03. I'm trying to figure out why it is now displaying as 'yyyy-mm-dd hh24:mi:ss'. I could convince the client that the code needs changing if I had evidence that this version of Oracle (9.2.03) used a different default date format. Or if Cold Fusion pulls the date differently. Ughh.
Here are the database parameters:
SQL> show parameter nls_date_format
NAME TYPE VALUE
nls_date_format string
select sysdate from dual;
SYSDATE
26-FEB-08
1 row selected.
select * from nls_session_parameters
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
17 rows selected.
select * from v$nls_parameters
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_CHARACTERSET WE8MSWIN1252
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
19 rows selected. -
SSIS OLE DB Data Source: literal does not match format string
Dear All,
this is my first post on this forum, so sorry if I choose wrong category for this question, but I stuck...
I'm using SSIS from SQL Server 2k8 R2 in Windows Server 2k8 R2. I have installed Oracle Client 10.2.0.2 32 bits and Oracle Client 10.2.0.4 64bits. I want to connect to Oracle 8i and Oracle 9i by these clients.
Unfortunately when I want to see a preview, only error occurs to me:
ORA-01861: literal does not match format string (OraOLEDB)
I have read a lot about this issue but nothing helps me (to_date, cast, convert etc.).
This is query which I use:
SELECT COMPANYID, TRANSACTIONTYPE, TRANSACTIONDATE,
PRODUCT, PRODUCTIONSITE, BATCHNUMBER,
BINNUMBER, QUANTITYSTOCKUNIT, QUANTITY,
UNITOFMEASURE, TRANSACTIONCURRENCYID, COST
FROM APPS.DW_PRODUCTION
WHERE TRANSACTIONDATE >= '20050101'
AND TRANSACTIONDATE < '99991231'I have investigated that the problem is with TRANSACTIONDATE column (which is VARCHAR2 data type in database).
I want also inform You that the same query in SSIS 2005 on Windows 2005 64 bits worked fine.
Could You help me to find a solution?
Thanks in advance,
Łukasz - chalunster
PS. Sorry for my english
Edited by: BluShadow on 16-May-2011 15:15
put {noformat}{noformat} tags into the message and encoded the < symbol so that it formats correctly.user10450810 wrote:
Dear All,
this is my first post on this forum, so sorry if I choose wrong category for this question, but I stuck...
I'm using SSIS from SQL Server 2k8 R2 in Windows Server 2k8 R2. I have installed Oracle Client 10.2.0.2 32 bits and Oracle Client 10.2.0.4 64bits. I want to connect to Oracle 8i and Oracle 9i by these clients.
Unfortunately when I want to see a preview, only error occurs to me:
ORA-01861: literal does not match format string (OraOLEDB)
I have read a lot about this issue but nothing helps me (to_date, cast, convert etc.).
This is query which I use:
SELECT COMPANYID, TRANSACTIONTYPE, TRANSACTIONDATE,
PRODUCT, PRODUCTIONSITE, BATCHNUMBER,
BINNUMBER, QUANTITYSTOCKUNIT, QUANTITY,
UNITOFMEASURE, TRANSACTIONCURRENCYID, COST
FROM APPS.DW_PRODUCTION
WHERE TRANSACTIONDATE >= '20050101'
AND TRANSACTIONDATE < '99991231'
I have investigated that the problem is with TRANSACTIONDATE column (which is VARCHAR2 data type in database).
I want also inform You that the same query in SSIS 2005 on Windows 2005 64 bits worked fine.
Could You help me to find a solution?
Thanks in advance,
Łukasz - chalunster
PS. Sorry for my englishHi
Welcome to OTN Forums!
Are you sure you are using following code
SELECT COMPANYID, TRANSACTIONTYPE, TRANSACTIONDATE,
PRODUCT, PRODUCTIONSITE, BATCHNUMBER,
BINNUMBER, QUANTITYSTOCKUNIT, QUANTITY,
UNITOFMEASURE, TRANSACTIONCURRENCYID, COST
FROM APPS.DW_PRODUCTION
WHERE TRANSACTIONDATE >= '20050101'
AND TRANSACTIONDATE < 'If yes, then youistake is there,
WHERE TRANSACTIONDATE >= '20050101'
AND TRANSACTIONDATE < 'your script is not ended you can use this
WHERE TRANSACTIONDATE >= '20050101'
AND TRANSACTIONDATE < '20110101'or
WHERE to_date(TRANSACTIONDATE,'YYYYMMDD') >= to_date('20050101','YYYYMMDD')
AND to_date(TRANSACTIONDATE,'YYYYMMDD') < to_date('20110101','YYYYMMDD')Edited by: Mahir M. Quluzade on May 16, 2011 6:59 PM -
how do you manage to install windows 7 when the message on the screen is "The product key entered does not match any of the Windows images available for installation. Enter a different product key. "
That's a really helpful answer and not smug at all, thanks Carey.
I just downloaded a DVD image from my university's MSDN Academic Alliance program, named "Microsoft
Windows 7 with Service Pack 1 Debug/Checked Build 64-bit (English)", which I wanted to use to install over an existing 32-bit version. I thought the install screen was giving this weird unskippable error described in the OP before I even entered
a key because the 32-bit key I had used on the HDD was somehow interpreted to be used in an upgrade, but no. Even after I wiped the hard drive, this error persisted.
Guess I'll go Google some more on how to install my legit copy of Windows, because this self-serving shit sure isn't helping.
edit: IF YOU GOOGLED THIS AND ARE STILL LOOKING FOR YOUR ANSWER, CHECK HERE:
http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_install/the-product-key-entered-does-not-match-any-of-the/47e6f575-5792-404b-9b7f-2065bdb91011 -
ORA-01861: literal does not match format string
Hi Experts,
Whenever i am running the my procedure in oracle appliactions i am getting this error.
ORA-01861: literal does not match format string .
pkg is below:--->
CREATE OR REPLACE PACKAGE Arc0471_Pending_Crc_Prc_Pkg IS
--Insert into Custom Table
PROCEDURE Arc_Insert_Data(P_ORG_ID VARCHAR2, P_BC_CODE VARCHAR2, P_GL_DATE VARCHAR2, P_DB_LINK VARCHAR2);
END Arc0471_Pending_Crc_Prc_Pkg;
CREATE OR REPLACE PACKAGE BODY Arc0471_Pending_Crc_Prc_Pkg IS
PROCEDURE Arc_Insert_Data(P_ORG_ID VARCHAR2, P_BC_CODE VARCHAR2, P_GL_DATE VARCHAR2, P_DB_LINK VARCHAR2)
IS
v_val varchar2(32000);
v_cursor1 integer;
v_cursor2 integer;
v_returncode integer;
BEGIN
v_val := ' ';
v_val :=' INSERT INTO ARC.ARC_CRC_PRC_INVC ';
v_val := v_val||' (CTA_TRX_NUMBER ,CTA_TRX_DATE ,DUE_DATE ,';
v_val := v_val||' BILL_TO_CUSTOMER_NO, BILL_TO_CUSTOMER_NAME , BILL_TO_LOCATION ,';
v_val := v_val||' BILL_TO_ADDRESS ,ORIGINAL_AMOUNT ,APPLIED_AMOUNT , EXCHANGE_RATE ,';
v_val := v_val||' INVOICE_CURRENCY_CODE , ACCOUNT_CLASS , GL_DATE , CTA_CUSTOMER_TRX_ID ,';
v_val := v_val||' ORG_ID , CREATED_BY , CREATION_DATE ,LAST_UPDATE_BY , LAST_UPDATE_DATE , LAST_UPDATE_LOGIN )';
v_val := v_val||' SELECT CTA.TRX_NUMBER , CTA.TRX_DATE , APS.DUE_DATE ,';
v_val := v_val||' HCA.ACCOUNT_NUMBER , HP.PARTY_NAME , HCSUA.LOCATION ,';
v_val := v_val||' SUBSTR(HL.ADDRESS1 ||'||''' '''||'|| HL.ADDRESS2 ||'||''' '''|| '||HL.ADDRESS3||'||''' '''|| '||HL.ADDRESS4|| '||''' ''' ||'||HL.PROVINCE||'||''' '''||'|| HL.CITY ||'||''' '''||'|| HL.STATE ||'||''' '''||'|| HL.POSTAL_CODE ||'||''' '''||'||FTL.TERRITORY_SHORT_NAME,0,1500),';
v_val := v_val||' APS.AMOUNT_DUE_ORIGINAL , APS.AMOUNT_APPLIED,APS.EXCHANGE_RATE, APS.INVOICE_CURRENCY_CODE, CTLA.ACCOUNT_CLASS,';
v_val := v_val||' APS.GL_DATE , CTA.CUSTOMER_TRX_ID , CTA.ORG_ID ,FND_GLOBAL.USER_ID ,';
v_val := v_val||' SYSDATE , FND_GLOBAL.USER_ID , SYSDATE , FND_GLOBAL.LOGIN_ID ' ;
v_val := v_val||' FROM ' ;
v_val := v_val||' AR.RA_CUSTOMER_TRX_ALL CTA,';
v_val := v_val||' AR.RA_CUST_TRX_TYPES_ALL CTTA,';
v_val := v_val||' AR.RA_CUST_TRX_LINE_GL_DIST_ALL CTLA,';
v_val := v_val||' AR.HZ_PARTIES HP,';
v_val := v_val||' AR.HZ_CUST_ACCOUNTS HCA,';
v_val := v_val||' AR.HZ_CUST_SITE_USES_ALL HCSUA,';
v_val := v_val||' AR.HZ_LOCATIONS HL,';
v_val := v_val||' AR.HZ_PARTY_SITES HPS,';
v_val := v_val||' AR.AR_PAYMENT_SCHEDULES_ALL APS,';
v_val := v_val||' AR.HZ_CUST_ACCT_SITES_ALL HCASA,';
v_val := v_val||' GL.GL_CODE_COMBINATIONS GCC,';
v_val := v_val||' AR.AR_RECEIVABLE_APPLICATIONS_ALL ARAA,';
v_val := v_val||' APPLSYS.FND_TERRITORIES_TL FTL ,';
v_val := v_val||' ONT.OE_TRANSACTION_TYPES_TL'|| P_DB_LINK ||' IND_OTT, ' ;
v_val := v_val||' ONT.OE_ORDER_HEADERS_ALL'||P_DB_LINK ||' IND_OH, ';
v_val := v_val||' AR.RA_CUSTOMER_TRX_ALL'||P_DB_LINK ||' IND_RCTA ';
v_val := v_val||' WHERE CTA.ORG_ID = '||''''|| P_ORG_ID||'''';
v_val := v_val||' AND CTTA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
v_val := v_val||' AND CTLA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
v_val := v_val||' AND HCSUA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
v_val := v_val||' AND APS.ORG_ID = '||''''||P_ORG_ID||'''';
v_val := v_val||' AND HCASA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
v_val := v_val||' AND CTLA.ACCOUNT_CLASS = '||'''REC''';
v_val := v_val||' AND CTLA.GL_DATE <= TRUNC(TO_DATE( '||''''||P_GL_DATE||''''||','||'''DD/MM/RRRR HH24:MI:SS'''||'))';
v_val := v_val||' AND NVL(ARAA.APPLY_DATE,TO_DATE( '||''''||P_GL_DATE||''''||','||'''DD/MM/RRRR HH24:MI:SS'''||')) <= TRUNC(TO_DATE ('||''''||P_GL_DATE||''''||','||'''DD/MM/RRRR HH24:MI:SS'''||'))';
v_val := v_val||' AND TO_DATE(APS.TRX_DATE,'||'''DD-MON-RRRR'''||') >'|| '''02-SEP-2007''' ;
v_val := v_val||' AND CTA.CUST_TRX_TYPE_ID = CTTA.CUST_TRX_TYPE_ID';
v_val := v_val||' AND CTLA.CUSTOMER_TRX_ID = CTA.CUSTOMER_TRX_ID';
v_val := v_val||' AND HCA.CUST_ACCOUNT_ID = CTA.BILL_TO_CUSTOMER_ID';
v_val := v_val||' AND HCA.PARTY_ID = HP.PARTY_ID';
v_val := v_val||' AND HCSUA.SITE_USE_ID = CTA.BILL_TO_SITE_USE_ID';
v_val := v_val||' AND HL.LOCATION_ID = HPS.LOCATION_ID';
v_val := v_val||' AND HPS.PARTY_ID = HCA.PARTY_ID';
v_val := v_val||' AND APS.CUSTOMER_TRX_ID = CTLA.CUSTOMER_TRX_ID';
v_val := v_val||' AND HCASA.CUST_ACCOUNT_ID = HCA.CUST_ACCOUNT_ID';
v_val := v_val||' AND HCASA.CUST_ACCT_SITE_ID =HCSUA.CUST_ACCT_SITE_ID';
v_val := v_val||' AND HCASA.PARTY_SITE_ID=HPS.PARTY_SITE_ID';
v_val := v_val||' AND ARAA.APPLIED_CUSTOMER_TRX_ID(+) = CTA.CUSTOMER_TRX_ID';
v_val := v_val||' AND IND_RCTA.TRX_NUMBER = CTA.TRX_NUMBER';
v_val := v_val||' AND TO_CHAR(IND_OH.ORDER_NUMBER) = IND_RCTA.CT_REFERENCE';
v_val := v_val||' AND IND_OTT.TRANSACTION_TYPE_ID = IND_OH.ORDER_TYPE_ID';
--v_val := v_val||' AND ARC.Arc0463_Get_Remng_Amt(APS.TRX_NUMBER,'||''''|| P_GL_DATE||''''||','||'APS.INVOICE_CURRENCY_CODE) <> 0';
v_val := v_val||' AND IND_OTT.NAME IN ('||'''D0M RC Imported Sale'''||','||'''D0M RC Indigenous Sale'''||')';
v_val := v_val||' AND GCC.CODE_COMBINATION_ID = CTLA.CODE_COMBINATION_ID';
v_val := v_val||' AND GCC.SEGMENT1 = '|| ''''||P_BC_CODE||'''';
v_val := v_val||' AND HL.COUNTRY = FTL.TERRITORY_CODE';
v_val := v_val||' AND FTL.LANGUAGE = USERENV('||'''LANG'''||')';
v_cursor1 := dbms_sql.open_cursor;
dbms_sql.parse(v_cursor1,v_val,DBMS_SQL.NATIVE);
v_returncode := dbms_sql.execute(v_cursor1);
dbms_sql.close_cursor(v_cursor1);
COMMIT;
EXCEPTION
WHEN DUP_VAL_ON_INDEX THEN
NULL;
WHEN OTHERS THEN
COMMIT;
FND_FILE.PUT_LINE(FND_FILE.OUTPUT, 'IN WHEN OTHERS THEN OF INSERT INTO ARC.ARC_CRC_PRC_INVC'||SQLCODE || ' - ' || SQLERRM);
-- dbms_output.put_line(sqlcode||sqlerrm);
END Arc_Insert_Data;
END Arc0471_Pending_Crc_Prc_Pkg;in above procdure APS.TRX_DATE having the format like this..23/3/2006. in Backend this procedure is working fine ..in toad(version 8.0.0.47). database is 9.0.
but in oracle apps it is giving error like "literal does not match format string".
please give me the solution...
Thanks in ADv...Hi,
It is the Date Data type...There's your problem then; NEVER, EVER, EVER to_date a date!! As you have discovered, it leads to problems when your code is run on different clients due to the different NLS settings they may have. You've been lucky, in other words, that your code has been working at all!
What to_dating a date does is this:
to_date(to_char(date_value, <format in NLS_DATE_FORMAT parameter>), <format in NLS_DATE_FORMAT parameter>) You've been lucky because your NLS_DATE_FORMAT has the same format as the data, on your client. On the database, however, it is clearly different.
Simply remove the to_date from your already-a-date value, and you should find that it works fine. -
Location entered does not match warehouse location of item
Hello Experts,
I am creating delivery through object.but I am facing this error 'Location entered does not match warehouse location of item'
This is my code .
SAPbobsCOM.Documents oDelivery;
oDelivery = clsAddOn.LDNA_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes);
ldna_Rec = clsAddOn.LDNA_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
string saleordernumber = oMat.Columns.Item("V2").Cells.Item(i).Specific.Value;
string[] ret = GetBinCode.Split('-');
string whs = ret[0];
oDelivery.Lines.BaseEntry = Convert.ToInt16(saleordernumber);
oDelivery.Lines.BaseType = 17;
oDelivery.Lines.ItemCode = oMat.Columns.Item("V7").Cells.Item(i).Specific.Value;
oDelivery.Lines.ItemDescription = oMat.Columns.Item("V6").Cells.Item(i).Specific.Value;
oDelivery.Lines.BaseLine = lineno;
oDelivery.Lines.Quantity = qty;
oDelivery.Lines.WarehouseCode = whs;
oDelivery.Lines.UserFields.Fields.Item("U_TotBird").Value = totalbird;
// code for batch
SAPbobsCOM.Items oItemD;
oItemD = clsAddOn.LDNA_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems);
string it = oMat.Columns.Item("V7").Cells.Item(i).Specific.Value;
oItemD.GetByKey(it);
if (oItemD.ManageBatchNumbers == SAPbobsCOM.BoYesNoEnum.tYES)
ldna_Rec = clsAddOn.LDNA_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
string si = oMat.Columns.Item("V7").Cells.Item(i).Specific.Value;
string strBatch = "select DistNumber from OBTN where ItemCode ='" + it + "' ";
ldna_Rec.DoQuery(strBatch);
while (!ldna_Rec.EoF)
string BatchNo = ldna_Rec.Fields.Item("DistNumber").Value;
if ( BatchNo == mainbatch)
oDelivery.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = 0;
oDelivery.Lines.BatchNumbers.BatchNumber = mainbatch;
oDelivery.Lines.BatchNumbers.Quantity = totalbird;
oDelivery.Lines.BatchNumbers.Add();
ldna_Rec.MoveNext();
//code for bin allocation
ldna_Rec = clsAddOn.LDNA_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
string strQuerybinD = "select AbsEntry from OBIN where BinCode='" + GetBinCode + "'";
ldna_Rec.DoQuery(strQuerybinD);
int binAbsD = ldna_Rec.Fields.Item("AbsEntry").Value;
oDelivery.Lines.BinAllocations.BinAbsEntry = binAbsD;
SAPbobsCOM.DocumentLinesBinAllocations binD = oDelivery.Lines.BinAllocations;
binD.SerialAndBatchNumbersBaseLine =0;
binD.BinAbsEntry = binAbsD;
binD.Quantity = totalbird;
if (oDelivery.Add() == 0)
clsAddOn.LDNA_Application.StatusBar.SetText("Delivery challan created Sucessfully.", SAPbouiCOM.BoMessageTime.bmt_Medium, SAPbouiCOM.BoStatusBarMessageType.smt_Success);
else
BubbleEvent = false;
clsAddOn.LDNA_Application.StatusBar.SetText(clsAddOn.LDNA_Company.GetLastErrorDescription(), SAPbouiCOM.BoMessageTime.bmt_Medium, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
return;
Please help me
Regards,
PritamHi George,
I have another question for you. I have a column that is titled "City" Intitally I wanted to be able to enter in the name of the city into one field and it auto populate the other fields with the same name. Since I'm new to PDF forms I thought I would just copy and paste the same field multiple times so once I enter in the name in the first field it would fill in the rest of the fields with the same name. This works, but in some cases I need one or two of the fields to be different and allow me to edit the name. As you can expect every time I edit one field it changes the name for all the fields. So my question is; Is there a way to have the column auto populate the same name that enter in the first field, but allow me to change the fields below if I need to?
Here is a rough idea of what I'm trying to do
City
CityRow1
CityRow2
CityRow3
CityRow4
This is what I had
City
CityRow1 - Kansas City
CityRow1 - Kansas City
CityRow1 - Kansas City
CityRow1 - Kansas City
I would like the form to initially auto populate the city to save time, but if I have an instance where its in a different city I need to be able to change the value of only that particular field.
City
CityRow1 - Kansas City
CityRow2 - Kansas City
CityRow3 - Lawrence
CityRow4 - Kansas City
Again I appreciate all you help thus for. Thanks again!
Maybe you are looking for
-
Release date for windows phone 8.1
When is the release for the Nokia 928 (Ikon) windows 8.1 going to occur? Or will it? Just a simple answer would help. Thank you
-
How do I get rid of notes displayed when I view my task list
Is there a way to change the Task display so that it does not show all of the notes I have with a task? I just want to see a clean list of task names when I view my Task list, but the latest iPhone IOS includes all the notes below the task name. Th
-
SAP 4.6 work processes too often goes to completed status
Hello, SAP 4.6 C (Oracle 9i / windows NT) system, always work process goes to completed status. This a quality system. As of now we are only restaring the work processes (SM50->process->restart after error-> yes) manually as a temporary fix. Could y
-
Rotated movs not staying rotated after being imported into iMovie
Hi, Used Quicktime to rotate some camera phone videos and saved them as .mov files. They play fine but on importing to iMovie they have reverted to their unrotated state! How annoying!?
-
Issue with profit center while creating sales order (VA01).
Hello Gurus, When I creating sales order (Material need to be configure from VA01->Extra->Configuration) with reference of existing then XVBAP is populating the correct profit center. But when creating new sales order from scratch for the same mater