"ABAP Basics" Book - arithmetic expression error in the sample code
Hi all,
I have just started learning ABAP on mini SAP system (NW7.01) by following "ABAP Basics" book.
This question might be a FAQ, but I have spent a few days searching a right answer without success.
I appreciate if you could help me on this.
On the page 162, there is a function module sample, which contains the line as following:
e_amount = i_km * '0.3'.
Here l_km (import) is type of i, and e_amount (export) is type of f.
Though I do not think of any problem with this line, it throws an arithmetic expression error when executed directly for testing as well as when called from a program.
When I tried a similar thing in a program, it was fine.
However within a function module it throws this error.
Thanks in advance.
Terry
Like I said before, I do not think any problem about the code itself.
I suspect some environmental things?
I should have mentioned SAP mini system NW7.01 is running on Vista Business?
To be specifc, I receive this message:
Arithmetic operations are only expected for operands that can be converted to numbers.
(numeric operands). - (numeric operands). - - - -
with the following function module:
[code]
FUNCTION ZPTB00_CALCULATE_TRAVEL_EXPENS.
""Local Interface:
*" IMPORTING
*" VALUE(I_KM) TYPE REF TO I
*" EXPORTING
*" VALUE(E_AMOUNT) TYPE REF TO F
*" EXCEPTIONS
*" FAILED
e_amount = i_km * '0.3'.
IF sy-subrc <> 0.
RAISE failed.
ENDIF.
ENDFUNCTION.
[/code]
Similar Messages
-
SC ERROR : Enter the company code
Hi,
I am using ECC6 and SRM 7, Ext. Classic
At the time of creation Shopping Cart with FREE TEXT an error comes that is Enter the company code .
With Product ID all process runs fine.
And in ECC6.0 all process runs fine.
Please help me
SumitHi Sumit ,
ERROR : Enter the company code
u2022 Go to PPOMA_BBP and look for Company which user in question is assigned;
u2022 Check the "Function" tab and see the logical systems maintained there. You can have more than one;
u2022 Now, check the affected user and go to "Extended Attributes" tab. Here, ensure that logical systems maintained in "Product Category" attribute are the same ones assigned to the company code (step 2).
If this is correctly maintained, check the following steps:
u2022 Go to SPRO transaction -> SAP Supplier Relationship Management -> SRM Server -> Technical Basic Settings -> Define Backend System for Product Category;
u2022 you have to maintain entries for Product Category, Source System and Target System.
Source and Target Systems should be maintained as local SRM system only if you have local scenario. If you have Classic or Extended Classic Scenarios, you have to maintain the ECC system ID in both fields (Source and Target).
Logical system maintained in "Define Backend System for Product Category" should be the same as defined in Company Function tab in PPOMA_BBP.
Thanks & Regards
Pradeep Kumar Dondeti -
hi i am receiving "exact fetch returns more than requested number of rows oracle error". but i am not able to locate the error in the below code. Any help would be appreciated!!!
CREATE OR REPLACE PROCEDURE load_scene_collection_item (
--pdname VARCHAR2,
-- LOCATION TO ADD/CHANGE below!!!
pITEM_TYPE_ID INTEGER,
pSCENE_COLLECTION_ID INTEGER,
pCOLLECTION_ITEM_NAME VARCHAR2,
pCOLLECTION_ITEM_DESC VARCHAR2,
pDEFAULT_COORD_X NUMBER,
pDEFAULT_COORD_Y NUMBER,
pDEFAULT_COORD_Z NUMBER,
pDEFAULT_WIDTH NUMBER,
pDEFAULT_HEIGHT NUMBER,
pDEFAULT_ROTATION INTEGER,
pDEFAULT_ALPHA INTEGER,
pfname VARCHAR2) IS
src_file BFILE;
dst_file BLOB;
lgh_file BINARY_INTEGER;
BEGIN
src_file := bfilename('BUSINESSBLOBSIMAGES', pfname);
-- insert a NULL record to lock
Insert into SCENE_COLLECTION_ITEM
( ITEM_TYPE_ID,
SCENE_COLLECTION_ID,
COLLECTION_ITEM_NAME,
COLLECTION_ITEM_DESC,
COLLECTION_ITEM_IMAGE,
DEFAULT_COORD_X,
DEFAULT_COORD_Y,
DEFAULT_COORD_Z,
DEFAULT_WIDTH,
DEFAULT_HEIGHT,
DEFAULT_ROTATION,
DEFAULT_ALPHA,
CREATE_USER,
CREATE_DATE)
Values ( pITEM_TYPE_ID, pSCENE_COLLECTION_ID, pCOLLECTION_ITEM_NAME, pCOLLECTION_ITEM_DESC, EMPTY_BLOB(),
pDEFAULT_COORD_X,
pDEFAULT_COORD_Y,
pDEFAULT_COORD_Z,
pDEFAULT_WIDTH,
pDEFAULT_HEIGHT,
pDEFAULT_ROTATION,
pDEFAULT_ALPHA,
sys_context('USERENV', 'OS_USER'),
sys_extract_utc(systimestamp))
RETURNING COLLECTION_ITEM_IMAGE INTO dst_file;
-- LOCATIONs(2) TO ADD/CHANGE above!!!
-- lock record
SELECT COLLECTION_ITEM_IMAGE
INTO dst_file
FROM SCENE_COLLECTION_ITEM
WHERE ITEM_TYPE_ID = pITEM_TYPE_ID
AND SCENE_COLLECTION_ID = pSCENE_COLLECTION_ID
AND COLLECTION_ITEM_NAME= pCOLLECTION_ITEM_NAME
AND COLLECTION_ITEM_DESC= pCOLLECTION_ITEM_DESC
AND pDEFAULT_COORD_X = DEFAULT_COORD_X
AND pDEFAULT_COORD_Y = DEFAULT_COORD_Y
AND pDEFAULT_COORD_Z = DEFAULT_COORD_Z
AND pDEFAULT_WIDTH = DEFAULT_WIDTH
AND pDEFAULT_HEIGHT = DEFAULT_HEIGHT
AND pDEFAULT_ROTATION = DEFAULT_ROTATION
AND pDEFAULT_ALPHA = DEFAULT_ALPHA
FOR UPDATE;
-- LOCATION TO ADD/CHANGE above!!!
-- open the file
dbms_lob.fileopen(src_file, dbms_lob.file_readonly);
-- determine length
lgh_file := dbms_lob.getlength(src_file);
-- read the file
dbms_lob.loadfromfile(dst_file, src_file, lgh_file);
-- update the blob field
UPDATE SCENE_COLLECTION_ITEM
SET COLLECTION_ITEM_IMAGE = dst_file
WHERE ITEM_TYPE_ID = pITEM_TYPE_ID
AND SCENE_COLLECTION_ID = pSCENE_COLLECTION_ID
AND COLLECTION_ITEM_NAME= pCOLLECTION_ITEM_NAME
AND COLLECTION_ITEM_DESC= pCOLLECTION_ITEM_DESC
AND pDEFAULT_COORD_X = DEFAULT_COORD_X
AND pDEFAULT_COORD_Y = DEFAULT_COORD_Y
AND pDEFAULT_COORD_Z = DEFAULT_COORD_Z
AND pDEFAULT_WIDTH = DEFAULT_WIDTH
AND pDEFAULT_HEIGHT = DEFAULT_HEIGHT
AND pDEFAULT_ROTATION = DEFAULT_ROTATION
AND pDEFAULT_ALPHA = DEFAULT_ALPHA
-- LOCATION TO ADD/CHANGE above!!!
-- close file
dbms_lob.fileclose(src_file);
END load_scene_collection_item;
Thanks in advance!!!!Hi PaulHorth,
Thanks for the quick reply.
Actually, i am getting error while updating the records.
below is the error message:
Error starting at line 1 in command:
exec load_scene_collection_item(3,15,'2 Lane 4way Stop','4 Way Stop Intersection with 2 lanes in each direction',0,0,0,400,517,0,1,'2 Lane 4way Stop.PNG');
Error report:
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "DP_OWNER.LOAD_SCENE_COLLECTION_ITEM", line 55
ORA-06512: at line 1
01422. 00000 - "exact fetch returns more than requested number of rows"
*Cause: The number specified in exact fetch is less than the rows returned.
*Action: Rewrite the query or change number of rows requested -
When I ran the sample code(WebLogicContextExample.java)
Hi:
when I ran the sample code(c:\weblogic\examples\jndi\WebLogicContextExample.java) occuring some errors.
Any Body can help me. Thx a lot!
Anny Chen
Here's error message:
C:\weblogic>java examples.jndi.WebLogicContextExample
WebGain Java! JustInTime Compiler Version 4.00.002(x) for JDK 1.2
Copyright (C) 2000 WebGain, Inc.
null
java.lang.NoSuchMethodError: java.lang.NoSuchMethodException: getNameInNamespace
at weblogic.jndi.toolkit.BasicWLContext_WLStub.ensureInitialized(BasicWL
Context_WLStub.java:127)
at weblogic.jndi.toolkit.BasicWLContext_WLStub.<init>(BasicWLContext_WLS
tub.java:146)
at java.lang.reflect.Constructor.newInstance(Native Method)
at weblogic.common.internal.ClassTableEntry.newInstance(ClassTableEntry.
java:86)
at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjec
tInputStreamBase.java:248)
at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObj
ectInputStreamBase.java:202)
at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectI
nputStreamBase.java:949)
at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjec
tInputStreamBase.java:308)
at weblogic.jndi.toolkit.WLContextStub.readExternal(WLContextStub.java:7
9)
at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializab
le(WLObjectInputStreamBase.java:269)
at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjec
tInputStreamBase.java:254)
at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObj
ectInputStreamBase.java:202)
at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectI
nputStreamBase.java:949)
at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjec
tInputStreamBase.java:308)
at weblogic.rmi.extensions.AbstractInputStream2.readObject(AbstractInput
Stream2.java:25)
at weblogic.jndi.internal.RemoteContextFactoryImpl_WLStub.getContext(Rem
oteContextFactoryImpl_WLStub.java:99)
at weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInit
ialContextFactoryDelegate.java:316)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialCon
textFactoryDelegate.java:242)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java, Compiled Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java:148)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
extFactory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:7
71)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:169
at javax.naming.InitialContext.<init>(InitialContext.java:146)
at examples.jndi.WebLogicContextExample.main(WebLogicContextExample.java
:107)
Initial context created
Subcontext 'example' created
Bound 'Example String created at 2000/1/3 下午 05:48:18' to 'example.one' for th
e first time.
Example finished successfully.This is very likely a CLASSPATH issue. Make sure weblogicaux.jar is
at the head of your CLASSPATH.
Mike
"pamal" <[email protected]> wrote in message
news:[email protected]...
I just installed 5.1 with sp2 and have the same problem. Anyone know
about this one?
Anny Chen wrote:
Hi:
when I ran the sample
code(c:\weblogic\examples\jndi\WebLogicContextExample.java) occuring some
errors.
Any Body can help me. Thx a lot!
Anny Chen
Here's error message:
C:\weblogic>java examples.jndi.WebLogicContextExample
WebGain Java! JustInTime Compiler Version 4.00.002(x) for JDK 1.2
Copyright (C) 2000 WebGain, Inc.
null
java.lang.NoSuchMethodError: java.lang.NoSuchMethodException:getNameInNamespace
>>
atweblogic.jndi.toolkit.BasicWLContext_WLStub.ensureInitialized(BasicWL
Context_WLStub.java:127)
atweblogic.jndi.toolkit.BasicWLContext_WLStub.<init>(BasicWLContext_WLS
tub.java:146)
at java.lang.reflect.Constructor.newInstance(Native Method)
atweblogic.common.internal.ClassTableEntry.newInstance(ClassTableEntry.
java:86)
atweblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjec
tInputStreamBase.java:248)
atweblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObj
ectInputStreamBase.java:202)
atweblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectI
nputStreamBase.java:949)
atweblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjec
tInputStreamBase.java:308)
atweblogic.jndi.toolkit.WLContextStub.readExternal(WLContextStub.java:7
9)
atweblogic.common.internal.WLObjectInputStreamBase.readPublicSerializab
le(WLObjectInputStreamBase.java:269)
atweblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjec
tInputStreamBase.java:254)
atweblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObj
ectInputStreamBase.java:202)
atweblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectI
nputStreamBase.java:949)
atweblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjec
tInputStreamBase.java:308)
atweblogic.rmi.extensions.AbstractInputStream2.readObject(AbstractInput
Stream2.java:25)
atweblogic.jndi.internal.RemoteContextFactoryImpl_WLStub.getContext(Rem
oteContextFactoryImpl_WLStub.java:99)
atweblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInit
ialContextFactoryDelegate.java:316)
atweblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialCon
textFactoryDelegate.java:242)
atweblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java, Compiled Code)
atweblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java:148)
atweblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
extFactory.java:123)
atjavax.naming.spi.NamingManager.getInitialContext(NamingManager.java:7
71)
atjavax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:169
at javax.naming.InitialContext.<init>(InitialContext.java:146)
atexamples.jndi.WebLogicContextExample.main(WebLogicContextExample.java
:107)
Initial context created
Subcontext 'example' created
Bound 'Example String created at 2000/1/3 下午 05:48:18' to'example.one' for th
e first time.
Example finished successfully. -
Where can I get the sample code of gantt chart?
hi, all
I want to use gantt chart component.I find this video http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/DVT_Gantt_Chart/ADFDVTGanttChartDemo.html.
where can I get the sample code in this video?
I have got the demo <strong>dvt-faces-demo.ear</strong>.but in this demo, the code of events process is too simple.I want more detail code of date change, denpendency change and so on.
this is my mail [email protected]
Thanks
Best Regards
kenshin
Edited by: Himura Kenshin on 2010-8-20 上午4:57
Edited by: Himura Kenshin on 2010-8-20 上午9:03Hi Katia,
Essentially the same sample app which was referenced above (http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/DVT_Gantt_Chart/ADFDVTGanttChartDemo.html). There are many features implemented in this sample which I'll be "reinventing the wheel" with. Its been a bit since I worked with the gantt component as I had to abandon for other development but will be getting back into it here shortly.
Namely as I remember, I had difficult time getting the gantt to load quickly with large amount of tasks, difficulty getting the selected item when using context menus or buttons defined within the control, and a few other minor issues which could be fixed as I was using the first release of 11g and cannot remember specifics. I'll let you know as I get back into it if I see similar problems.
For example, if you go to the ADF Demo Site (http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/index.jspx) and click on "Project Gantt Custom Menu and Toolbar - add menus and buttons on the Project Gantt Menu and Toolbar". The buttons work, however if you first select a row in the left and then click the button, you have to click twice for it to work (in my findings the action listener never "fires"). So in my case I want to select a row and then have a custom event for that selected row when I click the button. There were other similar findings I had when I tried to go off of the examples.
Hope this helps.
Thank you,
Kris -
How can I install the sample code in my pc?
I have installed Oracle 8.17 on my pc, my operating system is Win2000. But now I cannot install the sample code on OTN. the requirement is winNT, is that the problem? I think Win2000 should be okay. Who can give me some advice, thank you in advance!!!
Do what Ethmoid mentioned: publish your site to a folder on your hard drive and open the html file with a text or html editor like the free TextWrangler. That's the only way to view or edit the code created by iWeb when it publishes the website.
However, there is a website design application, Flux, that can open a published iWeb site and view the code and webpage simultaneously.
OT -
Where Can the Sample Code for That Balloon Game Demoed on WWDC for Swift Be Downloaded
Hi. I can't find the balloon game sample code used in the WWDC in the Sample Code for iOS or OS X (assuming it's available for download). If it is available for download by Apple, where can it be downloaded?
Thank you in advance.
God bless, Cor. 13The assets are in the .playground file's file package. Select the .playground file in the Finder, right-click, and choose Show Package Contents to browse the file package. The graphics files are in the Resources folder inside the file package.
-
Where to download the sample code of Expense Tracker application
Several JSC2 tutorial articles mention a sample application called Expense Tracker. Does anyone know where to download it? The links in the articles are invalid now.
Thanks in advanceSorry for the inconvenience. The sample code is getting updated to work with the latest release of Creator. It will be replaced soon.
-
HELP!how to show lines in the sample code 'docsig'
I want to show my handwritten in the pdf and my code is based on the sample code 'docsig',
can anyone read the following code, and tell me the reason why it not show the line. Thanks!
//from the project 'docsig' in the acrobat sdk 9.0 sample code
CosObj DSHandler::CreateN2XObject( CosDoc cosDoc, const CosObj sigField, const CosObj sigAnnot, const ASFixedRect* const pBBoxRec )
//Define a stream to draw a line
char buf [500];
sprintf(buf,"150 250 m 150 350 l S");
//Get the stream length
ASUns32 streamLength = (ASUns32)strlen(buf);
//Create a CosObj object that represents the stream length
CosObj LengthEntry = CosNewInteger(cosDoc, false,streamLength);
//Create a CosObj that represents a stream dictionary
//and sets its key-value pairs
CosObj AttrDict = CosNewDict(cosDoc, false, 5);
char *Length_KStr = "Length";
CosDictPutKeyString(AttrDict, Length_KStr, LengthEntry);
CosObj cosStm = CosNewStream64(
cosDoc, // cos document to use the newly created stream
true , // cos stream is indirect object?
0, // input stream
0, // start reading from stream position
false , // stream is decoded?
AttrDict, // attributes dictionary
CosNewNull(), // encode params
-1, // decode length
false // allowing delayed reading of input stream
return cosStm;
Why I just get a blank signature ? It should draw a line, but not showed in the pdf file.you need to change the following piece of code
case 10: // * pressed
case 11: // # pressed
clearText = true;
if (first) // first operand
if(lcdField.getText().length()==0)
result = 0.0;
else
result = Double.parseDouble(lcdField.getText());
first = false;
prevOperator = i;
else //second operand already entered, so calculate total
switch(prevOperator)
case 10: //divide button
result /= Double.parseDouble(lcdField.getText());
break;
case 11: //multiply button
result *= Double.parseDouble(lcdField.getText());
break;
lcdField.setText(Double.toString(result));
if(i==14) //equal button
first = true;
else
prevOperator = i; //save last operator
break;
}its gets excuted when you press the * or # buuton -
How can I get the sample code for crawler plugins?
Hi,
One SES document mentioned that there are three sample crawler plugins, which reside in $ORACLE_HOME/search/sample/agent. However, I couldn't find them. Did I miss installing something? Can anyone share with me the sample code?
Thanks.
Jun GaoThe original 10.1.6 sample plugins are no longer distributed in 10.1.8.1 as there were a few problems with them. I would suggest you take a look at
Simple File Crawler
http://www.oracle.com/technology/products/oses/pdf/Buidling_Custom_CrawlersJan12_07.doc
Sourcecode here:
http://www.oracle.com/technology/products/oses/files/simplefilecrawlerpluginmanager.java
and here
http://www.oracle.com/technology/products/oses/files/simplefilecrawlerplugin.java
And the two crawlers under "Sample Code" on the OTN page:
http://www.oracle.com/technology/products/oses/index.html -
Methods in SSOEnablerUtil class does not match the sample code
Hi,
Please refer to the sample code at:
http://otn.oracle.com/sample_code/products/iportal/htdocs/sso/ssoover.html
This mentions that the bakeAppCookie() and unbakeAppCookie() are methods in the SSOEnablerUtil class. I have downloaded iAS 9.0.2 from OTN.
The SSOEnablerUtil class does not have the above mentioned methods. Are these methods similar to the encryptCookie() and decryptCookie() methods in the SSOEnabler class?
Please do let me know.
Thanks,
Rashmi.This was a part of the old package.
-
Unknown error in the prescript code( Extension Collection)
Hello Export ,
Kindly need help to solve the below error which is coming in the below code(part of the prescript code is given below)
import com.frictionless.api.common.exception.*;
import com.frictionless.api.common.log.Logger;
import com.frictionless.api.common.platform.*;
import com.frictionless.api.common.types.*;
import com.frictionless.api.doc.collaboration.*;
import com.frictionless.api.doccommon.masterdata.*;
import com.frictionless.api.ibean.*;
import com.frictionless.api.ibean.metadata.*;
import com.frictionless.api.util.*;
import com.frictionless.api.workflow.*;
import com.frictionless.api.doccommon.userdefined.*;
import java.lang.String;
import com.frictionless.api.usermgmt.masterdata.*;
import com.frictionless.api.contracts.*;
import java.math.BigDecimal;
import com.frictionless.api.doccommon.masterdata.analysis.spend.*;
import com.frictionless.api.ibean.common.*;
log = Logger.createLogMessage(session);
// Convenience method - Errors
logError(msg) {
log.setLogMessage(msg);
Logger.error(log);
// Convenience method - Informational
logInfo(msg) {
log.setLogMessage(msg);
Logger.info(log);
/* * Get the user who submits the workflow */
getSubmitter() {
processHome = IBeanHomeLocator.lookup(session,WorkflowProcessIBeanHomeIfc.sHOME_NAME);
process = processHome.findByNativeId(nativeId);
return process.getCreator();
//try {
logInfo("Start of workflow");
logInfo("Start of" + nativeName);
submitter = getSubmitter();
logInfo("submitter" + submitter);
PriceIfc estimatedValue = doc.getExtensionField("CR_ESTIMATED").get();
contractValue = estimatedValue.getPrice();
logInfo("contractValue:" + contractValue);
customMD1Home = IBeanHomeLocator.lookup(session, SACustomMD1IBeanHomeIfc.sHOME_NAME);
// Find by Unique Document Identifier
customMD1 = customMD1Home.findUnique("TEST WF Approval Requirements");
logInfo("customMD1:"+customMD1);
logInfo("customMD1.getDisplayName():"+customMD1.getDisplayName());
ExtensionCollectionIfc table3Colln = customMD1.getExtensionCollection("Table3");
logInfo(" table3Colln:"+table3Colln);
// Go through the metadata and look for a match
for(int i=0;i<table3Colln.size();i++)
table3Member = table3Colln.get(i);
logInfo("table3Member:"+table3Member);
contractLevel = table3Member.get("LVL");
if (contractLevel.startsWith("R")); {
logInfo("contractLevel:"+contractLevel);
BigDecimal min = new BigDecimal(table3Member.get("MIN"));
BigDecimal max = new BigDecimal(table3Member.get("MAX"));
if (contractValue.compareTo(min) >= 0 @and contractValue.compareTo(max) <= -1) {
contractRLevel = contractLevel; }
TRACE:
table3Member:-2147483548:525:null
inline evaluation of: ``import com.frictionless.api.common.exception.*; import com.frictionless.api.com . . . '' unknown error: 1 : at Line: 59 : in file: inline evaluation of: ``import com.frictionless.api.common.exception.*; import com.frictionless.api.com . . . '' : for ( int i = 0 ;
I have also tried with the Iterator to get the collection's member but still it is giving the same error as above.One point that I have observed that for the below code
logInfo(" table3Colln:"+table3Colln);
Iterator table3Iter = table3Colln.iterator();
logInfo("table3Iterator:"+table3Iter);
the trace is
table3Colln:[email protected]
table3Iterator:com.frictionless.api.ibean.common.AbsCollection$BeanIterator@254c0e4d
so instead of ExtensionCollectionIfc, the collection is of type AbsExtensionCollection.
your help is very much appreciated.
Kind Regards,
Kubra.Thanks every body.
eliminating blanks worked.
AS I am new to ABAP,I have one more error saying
Unable to interpret "IT_YEAR". Possible causes of error: Incorrect spelling or comma error.The error occured at the staement:
<b>read it_year with key /BIC/LESS = calmonth+0(4) binary search.</b>
IT_YEAR is an internal table
data: it_year like /BIC/PZ_JB occurs 0 with header line.
Any ideas!!
JB -
Error while running the Sample code
Hi,
I am using jdeveloper 10.3 and I was trying to run the sample application that is present in the following url. I didnt change any thing in the code.
http://www.oracle.com/technology/sample_code/products/jdev/readmes/samples/ldapdatacontrol/ldapapplication/public_html/index.html
But While running the Test.java I get the following error. Is there any one who can help me in this please?
javax.naming.OperationNotSupportedException: [LDAP: error code 53 - Please enter more characters]; remaining name 'dc=yourcompany,dc=users'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3058)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2737)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1808)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
at dc.ldap.model.LDAPSearch.executeSearch(LDAPSearch.java:55)
at dc.ldap.runtime.Test.main(Test.java:19)
Exception in thread "main" java.lang.NullPointerException
Thanks,
Haripriya.SProbably you'll get more answers when you post this kinda questions in the JDev forum.
-
Hi
If anyone can let me know why there is a problem with the following code. I get the following errors:
')' or ',' expectedSorry I did add in but it did not post....Anyway code below the erroe line are in bold. Line: 22,23 & 24.
function scaleMovieClip(movieclip, seconds, startAtX, endAtX, startAtY, endAtY, trans)
new mx.transitions.Tween(movieclip, "_yscale", trans, startAtY, endAtY, seconds, true);
var _loc2 = new mx.transitions.Tween(movieclip, "_xscale", trans, startAtX, endAtX, seconds, true);
} // End of the function
function setPage()
btnN = ["b" + prod];
page = btnN;
pageT.text = page;
ptest.text = mypage;
var mcTween = new mx.transitions.Tween(main, "_alpha", mx.transitions.easing.Strong.easeOut, 100, 0, 1.000000E-001, true);
mcTween.onMotionFinished = function (ev)
main.gotoAndStop(page);
var _loc1 = new mx.transitions.Tween(main, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 3, true);
for (i = 0; i < prodArray.length; i++)
bNum = i + 1;
eval("["b" + bNum]")._xscale = 100;
eval("["b" + bNum]")._yscale = 100;
eval("["b" + bNum]").enabled = true;
} // end of for
eval("[page]").swapDepths(_root.getNextHighestDepth());
quote1.removeMovieClip();
eval("[page]").enabled = false;
eval("[page]")._xscale = 120;
eval("[page]")._yscale = 120;
} // End of the function
stop();
prodArray = new Array("CFL Change-Over", "Showerheads", "Insulation", "Solar PV", "Solar Hot Water", "Tank to Toilet", "Heat Pumps", "Misc Hot Water");
b1.onRollOver = b2.onRollOver = b3.onRollOver = b4.onRollOver = b5.onRollOver = b6.onRollOver = b7.onRollOver = b8.onRollOver = function ()
scaleMovieClip(this, 1, 100, 120, 100, 120, mx.transitions.easing.Strong.easeOut);
attachMovie("quote", "quote1", _root.getNextHighestDepth());
quote1._x = -300;
quote1._x = _xmouse + 10;
quote1._y = _ymouse + 35;
trace (_xmouse);
if (_xmouse <= 130)
quote1.gotoAndStop(2);
quote1._x = _xmouse;
quote1._y = _ymouse + 35;
} // end if
if (_xmouse >= 790)
quote1.gotoAndStop(3);
quote1._x = _xmouse + 10;
quote1._y = _ymouse + 35;
} // end if
quote1.startDrag(lockcenter);
btnN = this._name;
item = btnN.substr(btnN.length - 1, btnN.length) - 1;
myMsg = prodArray[item];
quote1.msg = myMsg;
b1.onRollOut = b2.onRollOut = b3.onRollOut = b4.onRollOut = b5.onRollOut = b6.onRollOut = b7.onRollOut = b8.onRollOut = function ()
scaleMovieClip(this, 1, 120, 100, 120, 100, mx.transitions.easing.Strong.easeOut);
quote1.removeMovieClip();
b1.onRelease = b2.onRelease = b3.onRelease = b4.onRelease = b5.onRelease = b6.onRelease = b7.onRelease = b8.onRelease = function ()
btnN = this._name;
item = btnN.substr(btnN.length - 1, btnN.length) - 1;
page = btnN;
var mcTween = new mx.transitions.Tween(main, "_alpha", mx.transitions.easing.Strong.easeOut, 100, 0, 1.000000E-001, true);
mcTween.onMotionFinished = function (ev)
main.gotoAndStop(page);
var _loc1 = new mx.transitions.Tween(main, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 3, true);
for (i = 0; i < prodArray.length; i++)
bNum = i + 1;
eval("["b" + bNum]")._xscale = 100;
eval("["b" + bNum]")._yscale = 100;
eval("["b" + bNum]").enabled = true;
} // end of for
this.swapDepths(_root.getNextHighestDepth());
quote1.removeMovieClip();
this.enabled = false;
this._xscale = 120;
this._yscale = 120;
if (prod != "" || prod != null)
prodTxt.text = prod;
setPage();
} // end if -
Hi,
I am using an IDES system share of our company. Whenever i am assigning a material in the goods receipt or in Orders. The material is automatically change and take a predefine text say "RADIO" and followed by the material code.
I feel someone has done some mistake and its affecting all the material code. And surprisingly only the external material code RADIO is possible to do any transaction . If I put a material code say 10002 system automatically converted into RADIO0000000001002 to make the 18 character and giving an error that material code not exist in the MARA table.
What could be the reason please help.
DPClosing the thread
Edited by: DP SINGH on Jul 22, 2010 7:10 PM
Edited by: DP SINGH on Jul 22, 2010 7:14 PM
Maybe you are looking for
-
Osx 10.8.4 does not run macbook pro late 2011
does any have issues after installing osx 10.8.4??? because i have an issue after i update my macbook pro late 2011 ,it doesn't start and only stay on the mac logo and appears the pointer i restarted many times and does not work the only option i ha
-
PDF file gets open with blank page behind in IE7
Hi , We have recently upgraded the IE from IE6 to IE7 version. Now when we are tring to open the PDF file ,it opens in Adobe Acrobat reader leaving the blank page in the behind. Bur earlier i.e. in IE6 we were able to open the PDF in the browser itse
-
Hi, I noticed in one of SAP's demo screens, they had customized the the imgaes that show up against the names on the TLN. There is a separate image for "Welcome" tab and the rest of the tabs like MSS, ESS have a same image. Anybody know from where we
-
Resent successful message failed at JDBC adapter
Hello, I have successfully configured scenario IDOC to JDBC. Now I have one issue that if my message passes successfully from SAP XI and get stuck at JDBC adapter (not reached to database bcoz of any reason like server is shutdown, etc). I need to re
-
Hi All, Can anyone tell me what is the difference between classic, extended classic and stand alone workflows and how they differ in functioning?? Thanks and regards, Raj