Error FUNCTION ' GUI_DOWNLOAD' on OS win 7
Hi experts
recently install OS windows 7, and the applications that they use
PARAMETERS P_FILE TYPE RLGRAP-FILENAME DEFAULT ' C :\ ' OBLIGATORY.
compile but in time of execution not found as XP. Now it doesn't show de dialog box explorer.
Also gives me error when I execute applications with the function CALL FUNCTION ' GUI_DOWNLOAD' the error that recovers is UNKNOWN_DP_ERROR = 14
Somebody knows if I have to install some SP for found on OS win 7?
My Sap GUI is 710
GREETINGS
Yes is ASC.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = 'c:\mg.xls'
filetype = 'ASC'
append = ' '
TABLES
DATA_TAB = FileOut
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22.
Similar Messages
-
Function Gui_Download - Error calling Data Provider
Hello masters, i develop a program that catches a pdf file and then we can download. in windows everything is working but the client uses Linux and SAP Gui For Linux and when is making download of file, systems throws message FES011 - Error calling Data Provider.
when i'm using windows the path is build correct way but i'm using Linux the path isn't build correct, for example like this, /home/rui/desktop\dir_1000.pdf . in debug i changed \ to / but systems throws the same error message.
Someone have some clue to solve this problem.
CONCATENATE gv_dir '\DIR_' <fs_final_alv>-pernr
'.pdf' INTO lv_fich.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = lv_fich
filetype = 'BIN'
TABLES
data_tab = lt_pdf_output
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
regards and thanks in advance.
Mariohello masters, thanks to all.
Soumyaprakash was right... just because Linux is case-sensative, the system was putting all letters of path in upper case
I just change in screen painter the field to accept upper/lower letters and now system mantain the letters has they come.
regards and thanks one more time
Mario -
hi everybody
do u know why we get the error "Error Calling Data Provider" when downloading a file using the fm 'GUI_DOWNLOADHi Sia Anjali,
Use this code to download your records into a text file (.txt).
Its working.
REPORT Z_VENDRP.
***********************************************Type declaration****************************************************
TYPES : BEGIN OF VENDOR,
LIFNR LIKE RF02K-LIFNR,
BUKRS LIKE RF02K-BUKRS,
EKORG LIKE RF02K-EKORG,
KTOKK LIKE RF02K-KTOKK,
ANRED LIKE LFA1-ANRED,
NAME1 LIKE LFA1-NAME1,
SORTL LIKE LFA1-SORTL,
LAND1 LIKE LFA1-LAND1,
SPRAS LIKE LFA1-SPRAS,
WAERS LIKE LFM1-WAERS,
END OF VENDOR.
******************************************Internal Table declaration***********************************************
DATA : VENDOR_TAB TYPE STANDARD TABLE OF VENDOR INITIAL SIZE 10 WITH HEADER LINE.
START-OF-SELECTION.
***************************************Select query into internal table********************************************
SELECT ALIFNR BBUKRS CEKORG AKTOKK AANRED ANAME1 ASORTL ALAND1 ASPRAS CWAERS
FROM ( LFA1 AS A JOIN LFB1 AS B ON ALIFNR = BLIFNR )
JOIN LFM1 AS C ON ALIFNR = CLIFNR
INTO TABLE VENDOR_TAB.
*********************************Use GUI_DOWNLOAD Function Module***************************************
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = 'C:/Vendors1.txt' "File name
FILETYPE = 'DAT' "File type
TABLES
DATA_TAB = VENDOR_TAB. "internal table (data to be passed)
IF SY-SUBRC <> 0.
ENDIF.
Hope this solves your problem.
Thanks & Regards.
Tarun Gambhir. -
FUNCTION 'GUI_DOWNLOAD'
Hi !
When i execute an Online program that use the function 'GUI_DOWNLOAD', then the program is running OK.
However When i execute the same program in background i get an unknown
error from the function 'GUI_DOWNLOAD' (return code 6 ) !
I wanted to know the reason for the error, and how to correct it ?
Thanks
MosheHi Solman,
Any sort of communicatipn with the presentation server in background is not supported. GUI_DOWNLOAD is one such Function module which tries to communicate with the presentation server.
YOu can perhaps only download it to an application server and later move it to presentation server.
There is one work around for this, but its too tedious a solution, which works only on the system on which it is configured.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2
Regards,
ravi -
Hi,
I am using FM 'RH_START_EXCEL_WITH_DATA' to download data of an internal table to excel sheet.
I'm passing the filename, internal table as mentioned below:
CALL FUNCTION 'RH_START_EXCEL_WITH_DATA'
EXPORTING
DATA_FILENAME = v_xls_file
DATA_PATH_FLAG = 'W'
DATA_TABLE = i_test[].
But I am getting this following error:
System Error: unknown error when GUI_DOWNLOAD is called.
Thanks in advance.Hey Wincy , If you want to download Internal Table's data in to Excel just use the Method
cl_gui_frontend_services=>gui_download....
If you need any code assistance kindly Let me know. although the method is easy to use and Works fine. -
Error Message: GUI_DOWNLOAD
Hi people,
You could help me please.
1 - In this case, i have a simple program to download a itab contents. When i executing it on-line, saving in a local drive, the file is created normally, but when is executed in Background saving in a local drive too, the Job is terminated, but the file isn't created. In the end of this message have a example of the code.
2 - In other case, I have 1 program that executing in background too, the JOB aren't concluded and occurs Exception Error: UNKNOWN_ERROR.
Code Example for the 1. problem.
REPORT ZZ_TESTE .
tables: t030.
data: it_t030 LIKE t030 OCCURS 0 WITH HEADER LINE,
i_ktopl LIKE t030-ktopl,
v_tabix like sy-tabix.
data: begin of itab_t030 occurs 0.
include structure t030.
data: end of itab_t030.
selection-screen begin of block b1 with frame title text-001.
parameters: p_ktopl like t030-ktopl obligatory.
selection-screen end of block b1.
v_tabix = sy-tabix.
select ktopl
ktosl
bwmod
komok
bklas
konts
konth
FROM t030
INTO table it_t030
WHERE ktopl = p_ktopl.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = 'C:\TESTE_FLAVIO.TXT'
FILETYPE = 'ASC'
DAT_MODE = space
TABLES
DATA_TAB = it_t030
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22.Hi,
In background the GUI_DOWNLOAD FM fails...so u have to use OPEN DATASET .so that ur file will be downloaded to application server....
Internal table to display error contracts .
i_error TYPE STANDARD TABLE OF t_error.
Declaration of local variables
DATA : lv_dsn3(1000) TYPE c,
lv_dsn4(1000) TYPE c.
IF NOT i_error IS INITIAL.
LOOP AT i_error INTO wa_error.
CONCATENATE wa_error-lifnr
wa_error-evart
wa_error-vedat
wa_error-ekorg
wa_error-ekgrp
wa_error-epstp
wa_error-knttp
wa_error-bukrs
wa_error-kdatb
wa_error-kdate
wa_error-ktwrt
wa_error-waers
wa_error-wkurs
wa_error-inco1
wa_error-inco2
wa_error-ihran
wa_error-angnr
wa_error-msg
INTO wa_input1 SEPARATED BY c_tab .
APPEND wa_input1 TO i_input1.
CLEAR : wa_input1,
wa_error.
ENDLOOP.
Move the contract error files to the application server
CONCATENATE v_fname1(15) lc_path1 p_aerfl1 INTO lv_dsn3.
OPEN DATASET lv_dsn3 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
CHECK sy-subrc EQ 0.
LOOP AT i_input1 INTO wa_input1.
TRANSFER wa_input1 TO lv_dsn3.
ENDLOOP.
CLOSE DATASET lv_dsn3.
ENDIF.
Rewrad if helpful.
Regards,
Nagaraj -
Problem with function 'GUI_DOWNLOAD'
Hi to everybody!!
I've a problem with the function GUI_DOWNLOAD, when I execute the program this make a dump and the problem is in this function.
I've read the log and this said that :
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_NOT_FOUND', was
not caught in
procedure "CREAR_FICHERO" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
Function module "GUI_DOWNLOAD" was called
with the parameter "ACCESS_DENIED".
This parameter is not defined.
Can anybody tell me what's the meaning of this?
Thanks very much,
Regards,
RebecaHi,
You must have the write access to the file in OS level to which you are trying to download the table content using the function module 'GUI_DOWNLOAD'.The error occurs because the system is trying to write in a file to which, the write permission is not permitted for the user.If you are catching the exceptions properly.It will give the proper message instead of dump.
Regards,
Ajith -
Error on installing iTunes under Win 8
Error on installing iTunes under Win 8
I have recently upgraded to Win 8. When installing iTunes the following error shows:
"An error occurred during the installation of assembly 'Microsoft.VC80.CRT.type="win32",version"8.0.50727.4053.publicKeyToken="1fc8b3b 9a1e18e3b",processorArchitecture="amd64". Please refer to Help and Support for more information HRESULT:0x80073715.
I am running the ITunes x64 install. I have installed the V++ redistributable with no change in result.
I have subsequently downloaded and manually installed via the Apple Software update program iTunes. However this does not allow my iPad to be connected as it is not the x64 version.After spending an entire day on this issue, I figured out something that worked. After installing Windows 8 (64-bit) then Visual Studio 2012 (or 2013) then the latest 64-bit iTunes app, I got the 0x80073715 error.
What finally worked for me was:
1) Get all the Windows updates and hotfixes - especially the ones for Visual Studio.
2) Go to http://www.microsoft.com/en-us/download/details.aspx?id=14431 and download the "Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update"
3) Only install vcredist_x64.exe.
After running these steps, I was able to completely install iTunes on my Windows 8 64-bit instance.
Hope this helps. -
Error of "Not a Valid Win 32 application " installing 7.0 for iPod Shuffle
I have downloaded the apple Itunes 7 software and I get an error of : Not a Valid Win 32 application I have windows xp I have been trying to figure this out for a couple of hours.
All I can figure out is that it is because I have dial up and not a broadband connection (which is one of the requirements for 7.0). If this is the problem, what do I do to get around the not having broadband?
Any help would be greatly appreciated!!!! I would love my new present to work! PS. a family member already has an Ipod Nano installed, can we use the same iTunes?I have downloaded the apple Itunes 7 software and I
get an error of : Not a Valid Win 32 application I
have windows xp I have been trying to figure this out
for a couple of hours.
All I can figure out is that it is because I have
dial up and not a broadband connection (which is one
of the requirements for 7.0). If this is the
problem, what do I do to get around the not having
broadband?
Any help would be greatly appreciated!!!! I would
love my new present to work! PS. a family member
already has an Ipod Nano installed, can we use the
same iTunes?
I found that I had a bad (not complete) download. After redownloading 7.0 and installing it, it worked great. Hope this helps other with my same problem. -
Call function 'gui_download'
Hallo Friends,
I am using the above fuction in my program. I want the header of my internal table to be writen als header in the text file. So, I created another Itab (Itab-col_1) and appended all the headers in this, which I later use as below.
Problem:
1.
I am not satisfied with the downloaded output in file.txt I want the header to be excactly over the column content. Please see my output:
MANDT LIFNR LAND1 NAME1 NAME2 NAME3
010§§§§§§0000010000§§§§§§§§§§§§§§§§§§DE§§§§§§Test
010§§§§§§0000100000§§§§§§§§§§§§§§§§§§US§§§§§§TEST
§ § means Space
It is Obvious LAND1 should be over DE / US, NAME1 should be over Test / TEST etc etc
2.
I would like filed seperator to be ( ; ) not space. The flag 'X' gives space.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = str
filetype = 'ASC'
write_field_separator = 'X'
dat_mode = 'X'
TABLES
data_tab = itab_kreditor
fieldnames = itab_datei_col_header
EXCEPTIONS
file_write_error = 1
file_not_found = 19
OTHERS = 22.
So, how can I solve these two problems.
Blacky.CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = BIN_FILESIZE
filename = filename
FILETYPE = 'ASC'
APPEND = ' '
<b> WRITE_FIELD_SEPARATOR = ';'</b>
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
FILELENGTH = FILELENGTH
TABLES
data_tab = data_tab
FIELDNAMES = FIELDNAMES
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Vasu -
Fm CALL FUNCTION 'GUI_DOWNLOAD'
hi experts:
How to add a field name line in fm 'GUI_DOWNLOAD'?
allenhI,
DATA: V_PATH TYPE STRING.
V_PATH = P_FILE.
**-- Function GUI_DOWNLOAD is used to save the data back in the
**-- flat file from the internal table
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = V_PATH
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = I_PIPE
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
****DO REWARD IF USEFULL
VIJAY -
Job in batch R/3 CallReceive error Function RFC_ABAP_INSTALL_AND_RUN
Hi,
I have an scenario where I am integrating SAP with a DB. I am pulling data from 2 tables from SAP using the R/3 Data flow. I need to run this job on batch, so I changed the parameters on the datastore used to access SAP, when it runs, the job gets terminated, and I got the following error
|Dataflow df_sap2tables2file
R/3 CallReceive error <Function RFC_ABAP_INSTALL_AND_RUN: . Exception condition "INVALID_TARGET" raised.. The problem may go
away if you change the SAP datastore property to Execute in background(batch)>.
|Dataflow df_sap2tables2file
R/3 CallReceive error <Function RFC_ABAP_INSTALL_AND_RUN: . Exception condition "INVALID_TARGET" raised.. The problem may go
away if you change the SAP datastore property to Execute in background(batch)>
The abap program gets created on the shared folder.
Anyone has faced this issue?
Thanks,
JulioHi,
The issue has been resolved. You have to:
Upload DS function modules into SAP
Define an RFC destination on SAP
Run the task RfcSrv on the DS Server
Thanks, for the help
Julio -
How to download ANSI coding text file using function GUI_DOWNLOAD?
Hi All,
Is the coding page of the file created by funtion GUI_DOWNLOAD or WS_DOWNLOAD is ANSI or UTF-8? How to download a text file which's coding page is ANSI please?
Is this correct?
CALL function 'GUI_DOWNLOAD'
exporting
codepage = '4110'
importingThis Function Lodule will give the CODE PAGE VALUE
SCP_CODEPAGE_BY_EXTERNAL_NAME ... You have to give type of tht ENcoding like ANSI ..etc
call function 'GUI_DOWNLOAD'
exporting
filename = 'd:\customer_details.txt'
filetype = 'ASC'
CODEPAGE = code
tables
data_tab = t_customer_details
FIELDNAMES =
exceptions
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
others = 22
if sy-subrc <> 0.
write : / 'Upload Failed' , sy-subrc.
else.
write : / 'Upload Completed'.
endif.
endif.
Reward if helpful... -
Error: "Function or method not supported." when using RF List Mode on NI 5673E
Hi,
I am trying to use the RF List Mode in NI RFSG 5673E. I tried running the sample code "RFSG Configuration List Frequency and Power Sweep.vi" but an error would show up:
"Error: niRFSGCreateConfigurationList.VI <ERR> The LO reported the following error: Function or method not supported." with the error code: BFFA4239.
I also tried running other sample codes that contain the Configuration List VI's but the same error appeared. I am using NI RFSG 1.8.5.
I would really appreciate any help on this. Thanks!Hello jdlabrador,
I setup a 5673E here and tried to run the same example. I did not encounter an error.
Other reports I've found pertaining to this error usually involved a large number of steps - there was not enough space on the hardware to accommodate them. The error text you're seeing is a little different in that it states that the Create Configuration List method isn't supported for the LO.
Do each of the modules in your 5673E (5450, 5611, 5652) pass a self-test in MAX?
Have you associated the 5450 and 5652 with the 5611?
Could you post a screenshot of the fully-expanded Devices and Interfaces tree from MAX?
Since RFSG 1.9.5 is available, it may be a good first-step to upgrade to it.
Best regards,
Matthew H.
Applications Engineer
National Instruments -
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
Maybe you are looking for
-
How to get ALL validate-errors while insert xml-file into xml_schema_table
How to get all validate-errors while using insert into xml_schema when having a xml-instance with more then one error inside ? Hi, I can validate a xml-file by using isSchemaValid() - function to get the validate-status 0 or 1 . To get a error-output
-
Leopard reversed mouse wheel behavior in cmd+tab switcher
in Tiger when you have many apps open, pressing cmd+tab brings up the app switcher, and then pulling towards you on the mouse wheel scrolls to the right, and pushing away on the wheel scrolls to the left. leopard has reversed this, making a pull on t
-
USING STRUTS2 DOJO PLUGIN TAGS GIVES COMPILER ERROR (JDev 10.1.3.3)
Hi. Using Struts 2.1.2 dojo plugin tags gives compiler error: Error(9): Couldn't instantiate tag sx:head (class: null). Be sure that the tag class is available... (translated from spanish) So I can't run the application. When configured, tags can be
-
Hi I want to buy adobe acrobat pro full version. It is £448 on the adobe site but seems able to be purchased elsewhere for about £150 full version new and comes with download from adobe and licence. Can anyone explain? It is just for my own personal
-
I can't delete apps on my Ipod neither from the laptop. I try to restart the Ipod but impossible too. Thanks for your help.