Function ws_upload error
Hi ,
I am uploading a file through function module 'WS_UPLOAD' but it does not uploads everything.
It just uploads first 7 fields .
The file which i am uploading is a tab delimited file .Here is my code .
data: pathname type rlgrap-filename,
filename type rlgrap-filename,
file_length type n.
data: tmp_filename type rlgrap-filename,
ftype type rlgrap-filetype.
* Get the file name
clear pathname.
* perform get_filename using filename 'O' changing pathname.
call function 'WS_FILENAME_GET'
exporting
def_filename = filename
def_path = pathname
mask = ',*.*,*.*.'
mode = 'O'
importing
filename = tmp_filename
exceptions
inv_winsys = 01
no_batch = 02
selection_cancel = 03
selection_error = 04.
if sy-subrc = 0.
pathname = tmp_filename.
endif.
ftype = 'DAT'.
* Upload the data from the mentioned file name
if not pathname is initial.
* perform upload using pathname ftype file_length.
call function 'WS_UPLOAD'
exporting
codepage = 'IBM'
filename = pathname
filetype = ftype
user_form = ' '
user_prog = ' '
dat_d_format = ' '
importing
filelength = file_length
tables
data_tab = user_temp_tab
exceptions
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
others = 10.
endif.
Can anyone tell me the reason for this because i am using this function in a BADI to upload the data.
DATA: BEGIN OF WA_MARA,
matnr type matnr,
END OF WA_MARA.
DATA: FF_PATH TYPE STRING.
FF_PATH = 'C:\Documents and Settings\Desktop\VIG.txt'.
DATA: IT_MARA LIKE TABLE OF WA_MARA WITH HEADER LINE .
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FF_PATH
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = ' '
TABLES
DATA_TAB = IT_MARA.
WRITE / 'the uploaded records in the internal table are'.
WRITE /.
LOOP AT IT_MARA.
WRITE: / IT_MARA.
ENDLOOP.
Similar Messages
-
Hi Chris, we where using this Java code with TimesTen 5.1.34:
while (rs.next()) {
associatedMsbs.add(Integer.toString(rs.getInt(HGROUPID)));
// Prepare object to insert in database
SvcLog_VO svcLog = new SvcLog_VO();
svcLog.setLogId(svcLogDAO.getlogIdNextVal(conn));
svcLog.setService( CommonConstants.MobileSwitchboardSvcId );
svcLog.setOperType( CommonConstants.OPER_TYPE_UPDREL );
svcLog.setEntityType( CommonConstants.ENTITY_TYPE_MOBILESWITCHBOARD);
svcLog.setEntityId( rs.getInt(HGROUPID) );
svcLog.setRelEntityId( woUserId );
// Insert object in database
svcLogDAO.insertData(svcLog, conn);
This code no longer works in TimesTen 7.0.3. We receive the following error:
[TimesTen 7.0.3.0.0 ODBC Driver]Function sequence error.
We had to change the code this way:
while (rs.next()) {
// Prepare object to insert in database
SvcLog_VO svcLog = new SvcLog_VO();
svcLog.setLogId(svcLogDAO.getlogIdNextVal(conn));
svcLog.setService( CommonConstants.MobileSwitchboardSvcId );
svcLog.setOperType( CommonConstants.OPER_TYPE_UPDREL );
svcLog.setEntityType( CommonConstants.ENTITY_TYPE_MOBILESWITCHBOARD);
svcLog.setEntityId( rs.getInt(HGROUPID) );
svcLog.setRelEntityId( woUserId );
// Store object in ArrayList
svcLogs.add(svcLog);
// Insert the objects in the ArrayList in database
for (int i = 0; i < svcLogs.size(); i++) {
SvcLog_VO svcLog = (SvcLog_VO)svcLogs.get(i);
svcLogDAO.insertData(svcLog, conn);
Once we split the code in two, first iterating the ResultSet and then inserting the objects, it works properly again. Is there any known issue in TimesTen about this?
Thanks in advance,Hi, Chris:
The code where this occurs is the following:
public void insertParameters(String xxx1, String xxx2, String xxx3,
int xxx4, Connection conn) throws TTException, SQLException {
PreparedStatement ps = null;
String query = null;
try {
query = queryInsert;
ps = conn.prepareStatement(query);
ps.setInt(1, xxx1);
ps.setString(2, xxx2);
ps.setString(3, xxx3);
ps.setString(4, xxx4);
// If debug is activated, the query is printed
if (log.isDebugEnabled()) {
ReadableQuery rq = new ReadableQuery();
rq.addParam(new Integer(xxx1));
rq.addParam(new String(xxx2));
rq.addParam(new String(xxx3));
rq.addParam(new String(xxx4));
log.debug(" Query to execute .. [" + rq.get(query) + "]");
ps.executeUpdate();
// Exception handling
catch (Exception ex) {
log.error(ex);
throw new TTException(ex);
} // Resources are closed
finally {
try {
if (ps != null) {
ps.close();
} catch (SQLException e) {
log.error("Error closing JDBC resources");
throw e;
This method accesses to DDBB and inserts data in a table with the following structure
Command> desc wo.bs_tb_bsvc_param_values;
Table XXXXXXX:
Columns:
*aaa TT_INTEGER NOT NULL
*bbb TT_CHAR (35) NOT NULL
ccc TT_CHAR (10) NOT NULL
ddd TT_CHAR (256) NOT NULL
1 table found.
(primary key columns are indicated with *)
Command>
Thanks. -
Function returning error text validation
Hi,
I have a page where i can insert/update user, organisation, responsible.
Organisation can be nullable.
Only one user at a time can be responsible for a organisation.
To check this responsible validation i made a function returning error text validation as follow:
BEGIN
FOR c IN (SELECT usr_spa
FROM kpi_users
WHERE usr_org_id = :p22_usr_org_id
LOOP
IF upper(:p22_usr_spa) = upper('YES') and upper(c.usr_spa) = upper('YES')
THEN
RETURN 'A user is already responsible for this organisation'||'!';
END IF;
END LOOP;
END;
The validation works fine.
But it goes wrong when i want to insert a new user, without assigning him to an organisation.
I get following message:
ORA-01722: invalid number
ERR-1024 Unable to run "function body returning text" validation.
Can someone please help me solve this problem?
ThanksHi,
try:
BEGIN
FOR c IN (SELECT usr_spa
FROM kpi_users
WHERE usr_org_id = nvl(:p22_usr_org_id,-1)
LOOP
IF upper(:p22_usr_spa) = upper('YES') and upper(c.usr_spa) = upper('YES')
THEN
RETURN 'A user is already responsible for this organisation'||'!';
END IF;
END LOOP;
END;This assumes that :p22_usr_org_id could be null and converts this to -1 (pick another default value if this may exist as an id). It is possible that the statement would otherwise be seen as WHERE usr_org_id = null which is invalid.
or you could do:
BEGIN
IF :p22_usr_org_id IS NOT NULL THEN
FOR c IN (SELECT usr_spa
FROM kpi_users
WHERE usr_org_id = :p22_usr_org_id
LOOP
IF upper(:p22_usr_spa) = upper('YES') and upper(c.usr_spa) = upper('YES')
THEN
RETURN 'A user is already responsible for this organisation'||'!';
END IF;
END LOOP;
END IF;
END;As this would stop the validation running if the :p22_usr_org_id is null.
Or, you could just make your validation conditional on p22_usr_org_id not being null?
Andy -
Function returning error - change notification
I have a function returning error text. When error occurs I get the message
'xx error has occurred' on the screen (in notification). Is there a way to control the message text so I can display different text?It's something like this:
DECLARE l_code zip.code%TYPE;
got_error varchar2(1) := 'N';
l_check_fld varchar2(30000);
l_error_fld varchar2(32000);
vErrorFields varchar2(1000);
CURSOR check_zip IS
select ''
from zip
where code = l_code;
BEGIN
apex_collection.create_or_truncate_collection('ZIP');
FOR i IN 1 .. apex_application.g_f03.COUNT LOOP
vErrorFields := '';
/* Code MUST be entered */
if (apex_application.g_f03(i) is null and
(apex_application.g_f04(i) is not null or
apex_application.g_f05(i) is not null))then
got_error := 'Y';
vErrorFields := vErrorFields || ',f03';
l_error_fld := l_error_fld || 'Row ' || to_char(i) || ':' ||' <span style="color: red">Code cannot be <strong>blank.</strong></span><br>';
end if;
END LOOP;
if got_error = 'N' then
apex_collection.delete_collection('ZIP');
end if;
RETURN l_error_fld;
END; -
To_numer function return error in pl/sql
Hello,
I don't have a prob when running select to_number('1234.56') from dual, the numer contains digit decimal
But this stm return error Invalid number in procedure unless I use to_number('1234.56','9999999.99')
Please help me out.
Do I have to set parameter in DB ?
BTW: my NLS_NUMERIC_CHARACTER is set to '.,'
Thanks.to_numer function return error in pl/sql
hlthanh wrote:
Hello,
I don't have a prob when running select to_number('1234.56') from dual, the numer contains digit decimal
But this stm return error Invalid number in procedure unless I use to_number('1234.56','9999999.99')
Please help me out.
Do I have to set parameter in DB ?
BTW: my NLS_NUMERIC_CHARACTER is set to '.,'
Thanks.Handle: hlthanh
Status Level: Newbie
Registered: Mar 7, 1999
Total Posts: 94
Total Questions: 60 (38 unresolved)
so many questions & so few answers.
How SAD! -
Function sequence error. in 64bit Windows 2008 Server.
Hi All,
Pardon me if the posting is not in the correct group.
I am migrating my application from 32bit(Windows 2003 Server) to 64bit (Windows 2008 Server R2).
I am getting the following while trying to execute a SQL command
Encountered ODBC error -1: S1010, 0, [Microsoft][ODBC Driver Manager] Function sequence error .
Basically internal function call is SQLExecute() function call. This works perfectly for Windows 2003 Server 32bit. I tried the command execute at the background from the command prompt and it is working.
I checked the squence of call.We have two consecutive SQLBindParameter function call and then we call SQLExecute. Is this sequence incorrect in case of 64bit? I also checked the return code given by SQLExecute which is 99.
Any help or suggestion would be very much appreciated.
Thanks,
-RHi Teun,
Yes i have build the addon & installer with x86. I am using Interop.SAPbouiCOM.dll , Interop.SAPbouiCOM.dll, System.dll , System.XML.dll.
I have not specified the relative path in code as such but iam loading my forms Load batch action i don't know if it ok in this scenario or not.
Building the Solution/Project is Successful without any warning.
While debugging it on my server it gives the same error "Object Reference Not Set to an Instance of an Object".
Debug Out put last errors are as follows:
A first chance exception of type 'System.IndexOutOfRangeException' occurred in mscorlib.dll
'TAMPA800.exe': Loaded 'C:\Windows\SysWOW64\sxs.dll'
First-chance exception at 0x76afe124 in TAMPA800.exe: Microsoft C++ exception: EEMessageException at memory location 0x0036ecec..
A first chance exception of type 'System.IO.FileNotFoundException' occurred in TAMPA800.exe
A first chance exception of type 'System.NullReferenceException' occurred in TAMPA800.exe
The thread 'Win32 Thread' (0x460) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xdb8) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xfdc) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xfb4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xdc8) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xe04) has exited with code 0 (0x0).
The program '[3872] TAMPA800.exe: Managed' has exited with code 0 (0x0).
The program '[3872] TAMPA800.exe: Native' has exited with code 0 (0x0).
Regards
John -
When exporting html and viewing locally we receive the following error... This error disappears after removing menu from top of page. This error does not occur when viewed on Outdoors360.businesscatalyst.com (our temporary site)
Muse JS Assert: Error calling selector function:Type error: Object has no method Muse Menu
Any ideas??I fix the problem.
I have carefully reviewed JAVASCRIPT files and I could see that these are not a major influence within the site, only are reference code and utilities of the same application.
By removing these files nothing has stopped working, I thought I would have some error in the sliders, or opacities, but no, nothing happened.
DELETE IT
FRANCISCO CATALDO DISEÑADOR GRÁFICO -
What (the hell) is SQL Exception called Function sequence error?
...doing in a code like this:
ResultSet friends=...executeQuery...
while (friends.next())
log.append(friends.getString("sendergsm"));
somewhere in between that loop, or sometimes the loop runs out fine, and sometimes it throws SQLException called General Error. Not guite normal...Thank you for replying... that must be agains some of the policies of the sun, to make methods that may be called normally, but may cause an error.
Anyway, this is my first database application. The number of problems I've had in few days is unbelivable. I wonder does it load the drivers from disk or something everytime it reads one record from database. I mean when I did the above query, the table had about 10 entries (the program showed 5 to 10 before function sequense error) and displaying each record to TextArea took over second. (In paradox (The dosversion) this would have taken less than a second).
And paradox tables doesn't work at all because it raises exception: Table isn't expected format. If I set paradox 4.0 drivers and put paradox 4.0 tables, you would guess that the format would be expected. And you cannot create paradox tables with SQL. Now I need to use access databases. How can database containing 60 records be 500kb:s? When it will contain 50000 new records every day, i guess I'll be in problem. Each tranaction (say 5 simple queries) taking minutes... heelp meee!! -
[ODBC Driver Manager] Function sequence error
Hi all,
i´m trying to built an webservice and if i try to run my code i get following
error: [ODBC Driver Manager] Function sequence error .CAn someone tell me what
this means?
Here comes my code:
static String Daten(int Nummer)
java.sql.Connection conn = null;
java.sql.Statement stmt = null;
try
Context ctx = null;
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL,
"t3://localhost:7001");
// Get a context for the JNDI look up
ctx = new InitialContext(ht);
javax.sql.DataSource ds
= (javax.sql.DataSource) ctx.lookup ("webservice-data-source");
conn = ds.getConnection();
System.out.println("Making connection...\n");
// execute some SQL statements to demonstrate the connection.
stmt = conn.createStatement();
System.out.println("Vor ResultSet");
ResultSet result = stmt.getResultSet(); //Bringt Fehler
final Vector erstespalte = new Vector();
final Vector zweitespalte = new Vector();
final Vector drittespalte = new Vector();
final Vector Zeilen;
final Vector end = new Vector();
try {//2.Block
stmt.executeQuery("Select * from Person where Kundennummer=5");
while(result.next())
erstespalte.add(result.getObject(1));
zweitespalte.add(result.getObject(2));
drittespalte.add(result.getObject(3));
Zeilen = new Vector();
for(Enumeration a = erstespalte.elements() ; a.hasMoreElements()
for(Enumeration b = zweitespalte.elements() ;b .hasMoreElements()
for(Enumeration c = drittespalte.elements() ; c.hasMoreElements()
Zeilen.add(a.nextElement());
Zeilen.add(b.nextElement());
Zeilen.add(c.nextElement());
end.add(Zeilen);
}System.out.println(end);
result.close();
}//2.try-Block
catch (SQLException e) {
System.out.println(e);
}//1.try-Block schliessen
catch (Exception e) {
System.out.println("Exception was thrown: " + e.getMessage());
finally {
try {
if (stmt != null)
stmt.close();
if (conn != null)
conn.close();
catch (SQLException sqle) {
System.out.println("SQLException during close(): " + sqle.getMessage());
}//finally-Block schliessen
return ("HAllo");
}//Methode abschliessen
Thank you very much for helping !!!Please post this in the JDBC newsgroup: weblogic.developer.interest.jdbc
Also, please include your full error message.
-- Rob
Hakan wrote:
Hi all,
i´m trying to built an webservice and if i try to run my code i get following
error: [ODBC Driver Manager] Function sequence error .CAn someone tell me what
this means?
Here comes my code:
static String Daten(int Nummer)
java.sql.Connection conn = null;
java.sql.Statement stmt = null;
try
Context ctx = null;
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL,
"t3://localhost:7001");
// Get a context for the JNDI look up
ctx = new InitialContext(ht);
javax.sql.DataSource ds
= (javax.sql.DataSource) ctx.lookup ("webservice-data-source");
conn = ds.getConnection();
System.out.println("Making connection...\n");
// execute some SQL statements to demonstrate the connection.
stmt = conn.createStatement();
System.out.println("Vor ResultSet");
ResultSet result = stmt.getResultSet(); //Bringt Fehler
final Vector erstespalte = new Vector();
final Vector zweitespalte = new Vector();
final Vector drittespalte = new Vector();
final Vector Zeilen;
final Vector end = new Vector();
try {//2.Block
stmt.executeQuery("Select * from Person where Kundennummer=5");
while(result.next())
erstespalte.add(result.getObject(1));
zweitespalte.add(result.getObject(2));
drittespalte.add(result.getObject(3));
Zeilen = new Vector();
for(Enumeration a = erstespalte.elements() ; a.hasMoreElements()
for(Enumeration b = zweitespalte.elements() ;b .hasMoreElements()
for(Enumeration c = drittespalte.elements() ; c.hasMoreElements()
Zeilen.add(a.nextElement());
Zeilen.add(b.nextElement());
Zeilen.add(c.nextElement());
end.add(Zeilen);
}System.out.println(end);
result.close();
}//2.try-Block
catch (SQLException e) {
System.out.println(e);
}//1.try-Block schliessen
catch (Exception e) {
System.out.println("Exception was thrown: " + e.getMessage());
finally {
try {
if (stmt != null)
stmt.close();
if (conn != null)
conn.close();
catch (SQLException sqle) {
System.out.println("SQLException during close(): " + sqle.getMessage());
}//finally-Block schliessen
return ("HAllo");
}//Methode abschliessen
Thank you very much for helping !!! -
Running SQL Procedure with dg4msql errors: Function sequence error HY010
I am trying to execute a stored procedure on a SQL database and get the error Function sequence error HY010.
A simple query on a table returns teh expected result.
I have a single Win2008R2 server with MSSQL Express 2008 and Oracle 11gR2 (32bit not 64bit version of Oracle)
Below is the gateway init, listener and tnsnames files and the query I am trying to run:
-- initORIONWASP.ora --
HS_FDS_CONNECT_INFO=INGRDB//waspForGIS
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
HS_CALL_NAME=dbo.spTest;dbo.spQueryAsset;dbo.spQueryAssetDetails
HS_FDS_PROC_IS_FUNC=TRUE
HS_FDS_RESULTSET_SUPPORT=TRUE
-- Listener.ora -- (partial)
(SID_DESC =
(SID_NAME = ORIONWASP)
(ORACLE_HOME = C:\Oracle\product\11.2.0\dbhome_1)
(PROGRAM=dg4msql)
-- tnsnames.ora -- (partial)
ORIONWASP =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=INGRDB)(PORT=1521))
(CONNECT_DATA=(SID=ORIONWASP))
(HS=OK)
-- Simple Query --
Running select "Asset_ID" from asset@ORIONWASP; returns the correct result
Running select * from sys.procedures@ORIONWASP; returns a list of procedures including the procedure I want to run
-- This pl/sql block returns the error ******* identifier 'spTest@ORIONWASP' must be declared *******
declare
begin
"spTest"@ORIONWASP;
end;
-- This passthrough pl/sql block returns ******** [Oracle][ODBC SQL Server Driver]Function sequence error {HY010} ********
DECLARE
CRS BINARY_INTEGER;
RET BINARY_INTEGER;
v_COL1 VARCHAR2(50);
v_COL2 VARCHAR2(50);
BEGIN
CRS := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@ORIONWASP;
DBMS_HS_PASSTHROUGH.PARSE@ORIONWASP(CRS, 'exec spTest');
BEGIN
RET := 0;
WHILE (TRUE)
LOOP
ret := DBMS_HS_PASSTHROUGH.FETCH_ROW@ORIONWASP(CRS, FALSE);
DBMS_HS_PASSTHROUGH.GET_VALUE@ORIONWASP(CRS, 1, v_COL1);
DBMS_HS_PASSTHROUGH.GET_VALUE@ORIONWASP(CRS, 2, v_COL2);
DBMS_OUTPUT.PUT_Line('Col1:'||v_COL1||' Col2:'||v_COL2);
END LOOP;
EXCEPTION
WHEN NO_DATA_FOUND THEN
BEGIN
DBMS_OUTPUT.PUT_LINE('End of Fetch');
DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@ORIONWASP(CRS);
END;
END;
END;
/The gateway configuration file contains:
HS_FDS_PROC_IS_FUNC=TRUE
HS_FDS_RESULTSET_SUPPORT=TRUE
This setting commonly causes problems and you need to set
HS_FDS_PROC_IS_FUNC=TRUE
HS_FDS_RESULTSET_SUPPORT=FALSE
for normal procedure calls and
HS_FDS_PROC_IS_FUNC=FALSE
HS_FDS_RESULTSET_SUPPORT=TRUE
when calling the procedure with ref cursors.
There's a note in My Oracle Support that gives you examples how to call remote SQl Server procedures
Note.197192.1 Different Methods How To Call MS SQL Server Procedures Using TG4MSQL - DG4MSQL
and another one for the Sybase gateway but this code is similar for the SQL Server:
Article-ID: Note 351400.1
Title: How to Call a Remote Sybase Procedure Using TG4SYBS -
SQL developer 3.1 throws Function sequence error
Hi,
I was able to connect to my remote timesten db and was able to compile and execute packages.
I tried modifying one of my packages to include dbms_lock.sleep in my code and then compiled the package.
while running the package i got some error related to locking.
The strange this is after this i am not able to connect to the timesten db using sql developer.
An error is thrown, "Could not connect to the database Function sequence error"
I tried restarting the timesten server and then also the same error exists.
How can i resolve this?
regards
LalHi,
This looks like a problem with the SQL*Developer Early Adopter release itself so it would be better if you opened a new thread in the SQL*Developer forum -
SQL Developer
That is monitored by the developers more than this thread so they are more likely to see it.
Regards,
Mikei -
FB50: Functional Area error
Hello Gurus-
We created a template using FB50 for our JE Revenue Expense with functional area. When we go to input something, changing amount, we get a Functional Area error F5394 is not permitted for account NNNNNN.
The only way we can get it to post is if we clear out the functional area. When this is done, the same functional area is posted?
Why is this happening?
Thanks!Thank you Laks-
But these notes are irrelevant. We are on ECC 6.0.
After much time on this, the problem is when the user saves the account assignment via FB50. When the cost center is entered and saved. The functional area is automatically populated. Next time they access that variant, because the functional area is there, we get the error. The user then has to clear the functional area only for SAP to input back?
Is there a way around this? I've never seen this at any of my last projects.
Thank you! -
FRF-00025 Unable to call function. Error message: Syntax error in program
hi,
when we try to import the export file,we are getting the following error in the 24th phase
i.e., check DDIC Password.
The Error is
INFO 2007-10-29 15:53:20 [iaxxrfcimp.cpp:1017]
CAbRfcImpl::callLibraryFunction
Generating interface for remote function.
TRACE [iaxxrfcimp.cpp:1056]
CAbRfcImpl::performFunctionCall
Calling function module: INST_RFC_GET_INTERFACE
WARNING[E] 2007-10-29 15:53:21 [iaxxrfcimp.cpp:1089]
CAbRfcImpl::performFunctionCall
FRF-00025 Unable to call function. Error message: Syntax error in program SAPLSUNI . .
TRACE [iaxxrfcimp.cpp:1090]
CAbRfcImpl::performFunctionCall
RFC failure or system exception raised
TRACE [iaxxrfcimp.cpp:1091]
CAbRfcImpl::performFunctionCall
Syntax error in program SAPLSUNI .
TRACE [iaxxbjsmod.cpp:657]
CJSlibModule::showOkCancelBox_impl()
<html>Test logon to SAP System I50 failed.<p>Make sure that the system is started, that the user DDIC exists and that the password of user DDIC is correct.</html>
TRACE [iaxxgenimp.cpp:1093]
showDialog()
waiting for an answer from gui
What Could be the solution for this.
waiting for ur reply
SSHi Friend,
Please check whether or not there is view missing error recorded in dev_w0 trace file.
if there is , you can try to follow this procedure in order to manually
import the missing view definitions.
All steps must be carried out with the <sid>adm user of the target
system and from the install-directory:
1. In the install-directory
<sapinst_instdir>\...COPY\IMPORTT\SYSTEM\ABAP\ORA\UC\DB
create a file SAPVIEW.cmd with the following content:
tsk: "<sapinst_instdir>\...\COPY\IMPORT\SYSTEM\ABAP\ORA\UC\DB\SAPVIEW.TSK"
icf: "
<YOUR_EXPORT_DIRECTORY>\export\DATA\SAPVIEW.STR"
dcf: "<sapinst_instdir>\...\COPY\IMPORT\SYSTEM\ABAP\ORA\UC\DB\DDLORA.TPL"
dat: null
dir: null
ext: null
Please make sure that all paths are written correctly (in one line) and
the refered files are existant and readable. One exception:
The SAPVIEW.TSK file is created with step 2.:
2. Run from the command-line:
R3load -ctf I
<YOUR_EXPORT_DIRECTORY>\export\DATA\SAPVIEW.STR <sapinst_instdir>\...\COPY\IMPORT\SYSTEM\ABAP\ORA\UC\DB\DDLORA.TPL SAPVIEW.TSK ORA -l SAPVIEW.log
If there's a problem reading the 'SAPVIEW.STR' file, copy the
file to the install directory and adapt the path accordingly.
3. Run the view import by:
R3load.exe -i SAPVIEW.cmd -dbcodepage <YOUR_CODE_PAGE> -l SAPVIEW.log
-stop_on_error
4. Check both the SAPVIEW.log and the SAPVIEW.TSK file whether all views
have been created successfully.
If 4. is okay, restart the central instance and check whether you are
able to log on now. If yes, continue 'sapinst' by the option 'retry' or
'continue old installation'.
I Hope It can be helpful.
With Best Regards
Julia -
Function sequence error / Recursive functions error
Hi! I've a little problem over here. I have an application (servlet) that makes recursive functions with DB access. This function contains a resultset that calls the same function again until no more data is found. The problem, is that I'm using JDBC-ODBC bridge (because this must work in SQL Server, Informix, Sybase, Access and Oracle), so I need to make commit of the connection in every resultset. If I make the commit inside the resultset, I got a "Function Sequence error" exception. Of course, I can't close every statement inside the resultset (or at least I don't know how). My code looks like this:
public void myfunction(String odbc,String data1,String data2) throws SQLException,Exception{
//this class, myclassDB, just return a established connection with the DB
Connection connection = myclassDB.connect(odbc);
Statement statement = connection.createStatement();
ResultSet rs = statement.executeQuery("query");
while(rs.next()){
//do something with the information
//make recursive
connection.commit();
myfunction(odbc,data1,data2);
statement.close();
connection.close();
}Hope you can help me!
Feel free to email me at [email protected]
Regards!I am not really sure what the question is but...
Presuming that there isn't something wrong with your design (which recursive calls suggest) then you need to extract all of the data, close the resultset/statement then do the recursive calls. If you do processing first then you can still commit on the connection. -
Function Sequence Error -- After upgrading to Crystal Reports 2008
Since we intergrated Crystal 2008 in our application, We are having the ODBC DRIVER ERROR "S1010, Function Sequence Error"
The following steps reproduces the error.
I open any crystal report(using my application) and close it.
And then I try to close another dialog in my application.
The destructor of that dialog has the DELETE FROM TMPRPT WHERE etc... But actually the TMPRPT table is empty.
But This Scenario in general, does not produce any error. Only after I open and close Crystal report, and when the TMPRPT table doesn't have any records, executing the above DELETE sql throws CDBException, Funciton Sequence Error.
Is it because of the upgrade/mismatch of dlls? Can any one help how to work around this?
Thanks.Hi Don,
I would like to thank you for your helpful advice. your tips for odbc tracing really works.
Just to simplify things, I have created a simple mfc dialog based application that opens a connection using CDatabase in the initdialog and closes the connection in the destructor(because that is how we do in our main large application). On the dialog i put a "Print" button and when i click it, I open a crystalreportform and fill the connectioninfo structure and then call SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument). on the Form_closed function, I close database connections and close the report document.
When I come back to mfc application I execute a Delete from table where 1 =0, basically any delete/update that return empty recordset and it throws function sequence error.
BOOL CCrystalDemoDlgDlg::OnInitDialog()
CDialog::OnInitDialog();
ConnectDatabase() ;
return TRUE; // return TRUE unless you set the focus to a control
BOOL CCrystalDemoDlgDlg::ConnectDatabase()
if ( m_Database.IsOpen() )
m_Database.Close();
// Process database open request.
CString szConnection("DSN=CRYSTALTEST32;UID=DBA;PWD=picture");
!m_Database.OpenEx( szConnection, CDatabase::noOdbcDialog ) )
return TRUE;
BOOL CCrystalDemoDlgDlg::bExecuteSQL( CString SqlString )
if(m_Database.IsOpen())
m_Database.ExecuteSQL( (LPCTSTR)SqlString );
return TRUE;
void CCrystalDemoDlgDlg::OnBnClickedBtnPrint()
TRY
bExecuteSQL(_T("DELETE FROM TMPRPT WHERE 1=0"));
CrystalReportsForm ^ CRForm = gcnew CrystalReportsForm(gcnew System::String("ActvSumm1.rpt"));
CRForm->ShowDialog();
//CRForm->RunCrystalReports();
delete CRForm;
CRForm = nullptr;
bExecuteSQL(_T("DELETE FROM TMPRPT WHERE 1=0"));
CATCH(CDBException, e)
AfxMessageBox( e->m_strError );
return ;
END_CATCH
the following is the code in crystalreports library
namespace CR2008Library
public partial class CrystalReportsForm : Form
private ReportDocument _reportDocument;
private string _reportFile = "C:\\Nomadic\\Report\\";
public CrystalReportsForm(string reportFile)
InitializeComponent();
_reportDocument = CreateReportDocument(reportFile);
private ReportDocument CreateReportDocument(string reportFile)
ReportDocument newDocument = new ReportDocument();
_reportFile += reportFile;
newDocument.Load(_reportFile);
return newDocument;
public void ConfigureCrystalReports()
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.DatabaseName = "CRYSTALTEST";
connectionInfo.UserID = "DBA";
connectionInfo.Password = "picture";
connectionInfo.ServerName = "CRYSTALTEST32";
SetDBLogonForReport(connectionInfo, _reportDocument);
crystalReportViewer.ReportSource = _reportDocument;
private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
Tables tables = reportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
TableLogOnInfo tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
public void CrystalReportForm_Load(object sender, EventArgs e)
ConfigureCrystalReports();
private void CrystalReportsForm_FormClosed(object sender, FormClosedEventArgs e)
DisposeCR();
private void DisposeCR()
// Clean up by closing and disposing of the ReportDocument object
if (_reportDocument != null)
if (_reportDocument.Database.Tables.Count > 0)
Tables tables = _reportDocument.Database.Tables;
foreach (Table table in tables)
table.Dispose();
_reportDocument.Database.Dispose();
_reportDocument.Close();
_reportDocument.Dispose();
_reportDocument = null;
I have the log file which doesn't show any error in crystalreports library. I am giving some of the log file for your reference to see what's happening while exiting from crystal and executing the problem sql
CrystalDemoDlg 16c8-e8c EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 00F41CC0
CrystalDemoDlg 16c8-e8c ENTER SQLFetch
HSTMT 00F41CC0
CrystalDemoDlg 16c8-e8c EXIT SQLFetch with return code 100 (SQL_NO_DATA_FOUND)
HSTMT 00F41CC0
CrystalDemoDlg 16c8-e8c ENTER SQLCloseCursor
SQLHSTMT 00F41CC0
CrystalDemoDlg 16c8-e8c EXIT SQLCloseCursor with return code 0 (SQL_SUCCESS)
SQLHSTMT 00F41CC0
CrystalDemoDlg 16c8-e8c ENTER SQLFreeHandle
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 00F41CC0
CrystalDemoDlg 16c8-e8c EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 00F41CC0
CrystalDemoDlg 16c8-e8c ENTER SQLDisconnect
HDBC 00F427A0
CrystalDemoDlg 16c8-e8c EXIT SQLDisconnect with return code 0 (SQL_SUCCESS)
HDBC 00F427A0
CrystalDemoDlg 16c8-e8c ENTER SQLFreeHandle
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 00F427A0
CrystalDemoDlg 16c8-e8c EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 00F427A0
CrystalDemoDlg 16c8-e8c ENTER SQLFreeHandle
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00F42718
CrystalDemoDlg 16c8-e8c EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00F42718
CrystalDemoDlg 16c8-a34 ENTER SQLAllocStmt
HDBC 00F419A0
HSTMT * 0012E2C4
CrystalDemoDlg 16c8-a34 EXIT SQLAllocStmt with return code 0 (SQL_SUCCESS)
HDBC 00F419A0
HSTMT * 0x0012E2C4 ( 0x00f41cc0)
CrystalDemoDlg 16c8-a34 ENTER SQLSetStmtOption
HSTMT 00F41CC0
UWORD 0 <SQL_QUERY_TIMEOUT>
SQLPOINTER 0x0000000F
CrystalDemoDlg 16c8-a34 EXIT SQLSetStmtOption with return code 0 (SQL_SUCCESS)
HSTMT 00F41CC0
UWORD 0 <SQL_QUERY_TIMEOUT>
SQLPOINTER 0x0000000F (BADMEM)
CrystalDemoDlg 16c8-a34 ENTER SQLExecDirectW
HSTMT 00F41CC0
WCHAR * 0x03A30458 [ -3] "DELETE FROM TMPRPT WHERE 1=0\ 0"
SDWORD -3
CrystalDemoDlg 16c8-a34 EXIT SQLExecDirectW with return code 100 (SQL_NO_DATA_FOUND)
HSTMT 00F41CC0
WCHAR * 0x03A30458 [ -3] "DELETE FROM TMPRPT WHERE 1=0\ 0"
SDWORD -3
CrystalDemoDlg 16c8-a34 ENTER SQLNumResultCols
HSTMT 00F41CC0
SWORD * 0x0012E2B8
CrystalDemoDlg 16c8-a34 EXIT SQLNumResultCols with return code -1 (SQL_ERROR)
HSTMT 00F41CC0
SWORD * 0x0012E2B8
DIAG [S1010] [Microsoft][ODBC Driver Manager] Function sequence error (0)
CrystalDemoDlg 16c8-a34 ENTER SQLErrorW
HENV 00F418D8
HDBC 00F419A0
HSTMT 00F41CC0
WCHAR * 0x0012DE00 (NYI)
SDWORD * 0x0012E224
WCHAR * 0x0012DE20
SWORD 511
SWORD * 0x0012DE14
CrystalDemoDlg 16c8-a34 EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
HENV 00F418D8
HDBC 00F419A0
HSTMT 00F41CC0
WCHAR * 0x0012DE00 (NYI)
SDWORD * 0x0012E224 (0)
WCHAR * 0x0012DE20 [ 56] "[Microsoft][ODBC Driver Manager] Function sequence error"
SWORD 511
SWORD * 0x0012DE14 (56)
CrystalDemoDlg 16c8-a34 ENTER SQLErrorW
HENV 00F418D8
HDBC 00F419A0
HSTMT 00F41CC0
WCHAR * 0x0012DE00 (NYI)
SDWORD * 0x0012E224
WCHAR * 0x0012DE20
SWORD 511
SWORD * 0x0012DE14
I know that my post is too long, but i would like to give enough information for you to see what's happening. I use visual studio 2008 with crystal library 2008.
Thanks,
Lavanya.
Maybe you are looking for
-
Any Suggestions for opening .p65 files in InDesign CC....
Ask a simple question and get a simple answer...see below...hilarious: All representatives are actively assisting other customers. Your estimated wait time is 0 minute(s) and 1 second(s) or longer. Thank you for your patience. You are now chatting wi
-
Connecting to a projector using iPhone
is there a way to use a project with my iphone to show excel or power point docs?
-
Am I really the winner of a very large sum of mone...
Yesterday, I received a post on Skype, from a christopher.foster16 who wanted to make contact with me, but also informed me that I was the winner of a very large sum of money in Great British Pounds. He gave security ? numbers and a name I must conta
-
AW01N : Difference of value
Hi, In Transaction AW01N (Planned values tab) we have two tables : - table 1 : Planned value book depreciation - table 2 : Transactions for an Asset I have : - Table 1 : Acquisition value = 300.000,00 - Table 2 : total transactions = 260.000,00 So I
-
Need some Helpful Links for downloading documents
Hi Experts, I would like to know if there are any links from where i can view and download the documents that will be helpful for me in gaining more knowledge on any particular topic in detail for SAP B1 2005B & 2007B. I am looking for topics such as