Delphi OLE automation to read/write in SAP
Hi, i want to develop a macro in Delphi for reading and writng values on a SAP gui, i've found very llittle documentation on how to do this, i know how to create the ole object and and initialize the session but i can't read or write the values shown on screen, could you point me in the right direction.
Thanks.
> we can't connect directly to the sap db
Strange way to say that you are not authorized to call SAP APIs... (RFC I mean)
Maybe you can use SAP GUI scripting, see here: SAP GUI Scripting [original link is broken]
Similar Messages
-
Read/write operation on SAP IDOC file
Hi All,
We are developing an application, which will be used for registering and processing of travel data for a client.One of itu2019s functionality is to get the data from external system in different format(like CSV, Excel, Fixed Flat file, XML, main frame file, DBF and SAP IDOC) and import it into Oracle databases.
One of the design considerations for it, is to read these files and convert it into predefined XML format
and then import these data from XML to oracle database.
Currently we are analyzing the requirement and trying to find out all the Open Source JAVA API which can convert these different format files to predefined XML format, using some mapping file.
We have found out Open Source JAVA API for all the file format, except SAP IDOC files.
Any Java API to read/write the SAP IDOC file, Please advise
Regards,
Madhu
Edited by: Madhu Sudhan on Feb 17, 2009 12:06 PMHi All,
We are developing an application, which will be used for registering and processing of travel data for a client.One of itu2019s functionality is to get the data from external system in different format(like CSV, Excel, Fixed Flat file, XML, main frame file, DBF and SAP IDOC) and import it into Oracle databases.
One of the design considerations for it, is to read these files and convert it into predefined XML format
and then import these data from XML to oracle database.
Currently we are analyzing the requirement and trying to find out all the Open Source JAVA API which can convert these different format files to predefined XML format, using some mapping file.
We have found out Open Source JAVA API for all the file format, except SAP IDOC files.
Any Java API to read/write the SAP IDOC file, Please advise
Regards,
Madhu
Edited by: Madhu Sudhan on Feb 17, 2009 12:06 PM -
PICTURE MTHOD in OLE AUTOMATION
Hi,
Can anyone send me information for the "picture" method using OLE AUTOMATION for Excel Objects.
Thanks and Regards
AKhi
good
go through the following links i hope this will help you to solve your problem.
Re: OLE Automation with Excel
http://www.sap-img.com/abap/download-to-excel-with-format-border-color-cell-etc.htm
http://sap.ittoolbox.com/code/archives.asp?d=3027&a=s&i=10
thanks
mrutyun -
OLE Automation for Acrobat Reader
Hello guys
I have been reading some lines about OLE Automation for Acrobat READER and Full Acrobat.
So far I have seen most saying that Reader is not fully compliant with OLE. I really have zero experience with Adobe and before I buy a full acrobat license, I want to make sure of the following:
What I need to do is the next 4 simple calls:
Connect to Acrobat
Open a pdf file in invisible mode
Perform "Select All"
Copy Selection to clipboard
After that, I will importclipboard to my datawindow and I will be done for my programming task.
Have you had similar experiences about Acrobat OLE for PDF ?
some references are in help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp
Thanks so much in advance for any hint.
RegardsHello again
Chris, thanks so much for your very quick response.
At a first glance, the PDF Toolkit looks good and with a good price too, but I did not see if I can call functionality from PowerBuilder code without opening a user interface. Are you familiar with this ?
Stuart, very nice approach for my need, but I apologize for not explaining clearly what I want.
I just want to process the content of some lines in the file to find specific strings.
As you may see, if you open the file with Adobe Reader or Adobe Acrobat and go to the edit menu, by clicking "Select All" and "Copy" you will get the text ready for pasting.
I want to automate this process to prevent the users from opening the Adobe application.
I'm now testing with the functions provided by Adobe documentation to perform OLE Automation and ALMOST gave me what I need with the following code:
Documentation is found in
http://help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?&accessible=true
// Start Code
boolean lb
oleobject luo_app, luo_file
luo_app = create oleobject
luo_app.connecttonewobject('AcroExch.app')
luo_file = create oleobject
luo_file.connecttonewobject('AcroExch.AvDoc')
luo_file.open('c:\some_file.pdf')
// Next three lines are for visual debugging and confirming that file is opening well during testing of code :=)
luo_file.show()
luo_file.bringtofront()
luo_file.setviewmode(1)
// Next two lines return FALSE, meaning they did not execute because the words "Select All" (or "SelectAll") and "Copy" are not the right words linked to the
// menu items
lb = luo_app.menuitemexecute('Select All') // Neither "SelectAll"
lb = luo_app.menuitemexecute('Copy')
// End of code
Everything works fine except the two lines. The Adobe application is open and the file shown, but when calling "Select All" and "Copy" in the function menuitemexecute, Adobe does not interpret these phrases.
Just to confirm that menuitemexecute has the right syntax, I tested a call for luo_app.menuitemexecute("find") and this command is well interpreted by Adobe, which immediately opens the find window at the right corner of the file
I hope not to be too dense with this explanation ( but maybe I was ) :=)
Thanks for your feedback -
VBA automation to read from SAP
Hi,
Does anyone know how to read from an SAP screen using VBA code? I am NOT referring to reading from a table like VBAK, MARA etc.
The requirement is to enter a transaction code lets say VA03/VA43, enter a document/order number and read the contents of the screen using the screen field name like VBELN, KUNNR etc.
RegardsUsing vbs:
If Not IsObject(application) Then
Set SapGuiAuto = GetObject("SAPGUI")
Set application = SapGuiAuto.GetScriptingEngine
End If
If Not IsObject(connection) Then
Set connection = application.Children(0)
End If
If Not IsObject(session) Then
Set session = connection.Children(0)
End If
If IsObject(WScript) Then
WScript.ConnectObject session, "on"
WScript.ConnectObject application, "on"
End If
session.findById("wnd[0]").maximize
session.findById("wnd[0]/tbar[0]/okcd").text = "VA03"
session.findById("wnd[0]/tbar[0]/btn[0]").press
session.findById("wnd[0]/usr/ctxtSOMEFIELDNAME").text = some_variable_you_can_store_later
etc, etc
I am not familiar with tath screen so you might need more code in wnd[0]/usr/ctxtSOMEFIELDNAME if there are multiple tabs.
It will be a lot easier to make SAP record the script: ALT+F12 -> "Script Recording and Playback", etc then go to the file which is saved in your local SAP directory and see what SAP did.
Hope this helps -
OLE Automation is not working in Portal
Hi Experts,
We have one report where OLE automation technique is used to upload the data from multiple worksheets (single excel).
But when we try to execute it from Portal using IView then it doesn't run and give problem in CREATE OBJECT excel "EXCEL.APPLICATION" statement. But when we run it from SAP GUI, it run successfully.
Please suggest if you have any idea.
Also let me know if some more information required because i am new to this kind of issue.
regards
SubirHi,
Are you using SAP GUI for HTML??? There are several issues and limitations with OLE using HTML.
Look this OSS: 314568
Hope this helps,
Iván. -
OLE objects and OO methods - Error using OLE automation
Hi,
I'm developing an class to read/write excel sheets and i'm getting an error on the OLE method that is:
on this instruction
call method of l_obj_excel 'WORKBOOKS' = l_workb_col.
i got a dump that give me the following error UC_OBJECTS_NOT_CONVERTIBLE
The strange is that i've got the same code running on reports and it works fine only when passing it to a oo method i get that dump.
Thzs in advanced to all
Best regards
Jaimehi check this..
Report ZMULTICOLOR_TEST no standard page heading.
this report demonstrates how to send some ABAP data to an
EXCEL sheet using OLE automation.
include ole2incl.
handles for OLE objects
data: h_excel type ole2_object, " Excel object
h_mapl type ole2_object, " list of workbooks
h_map type ole2_object, " workbook
h_zl type ole2_object, " cell
h_f type ole2_object, " font
h_c type ole2_object. " color
DATA: FILENAME LIKE RLGRAP-FILENAME.
tables: spfli.
data h type i.
table of flights
data: it_spfli like spfli occurs 10 with header line.
*& Event START-OF-SELECTION
start-of-selection.
read flights
select * from spfli into table it_spfli.
display header
uline (61).
write: / sy-vline no-gap,
(3) 'Flg'(001) color col_heading no-gap, sy-vline no-gap,
(4) 'Nr'(002) color col_heading no-gap, sy-vline no-gap,
(20) 'Von'(003) color col_heading no-gap, sy-vline no-gap,
(20) 'Nach'(004) color col_heading no-gap, sy-vline no-gap,
(8) 'Zeit'(005) color col_heading no-gap, sy-vline no-gap.
uline /(61).
display flights
loop at it_spfli.
write: / sy-vline no-gap,
it_spfli-carrid color col_key no-gap, sy-vline no-gap,
it_spfli-connid color col_normal no-gap, sy-vline no-gap,
it_spfli-cityfrom color col_normal no-gap, sy-vline no-gap,
it_spfli-cityto color col_normal no-gap, sy-vline no-gap,
it_spfli-deptime color col_normal no-gap, sy-vline no-gap.
endloop.
uline /(61).
tell user what is going on
call function 'SAPGUI_PROGRESS_INDICATOR'
exporting
PERCENTAGE = 0
text = text-007
exceptions
others = 1.
start Excel
create object h_excel 'EXCEL.APPLICATION'.
PERFORM ERR_HDL.
set property of h_excel 'Visible' = 1.
CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:\kis_excel.xls' .
PERFORM ERR_HDL.
tell user what is going on
call function 'SAPGUI_PROGRESS_INDICATOR'
exporting
PERCENTAGE = 0
text = text-008
exceptions
others = 1.
get list of workbooks, initially empty
call method of h_excel 'Workbooks' = h_mapl.
perform err_hdl.
add a new workbook
call method of h_mapl 'Add' = h_map.
perform err_hdl.
tell user what is going on
call function 'SAPGUI_PROGRESS_INDICATOR'
exporting
PERCENTAGE = 0
text = text-009
exceptions
others = 1.
output column headings to active Excel sheet
perform fill_cell using 1 1 1 200 'Carrier id'(001).
perform fill_cell using 1 2 1 200 'Connection id'(002).
perform fill_cell using 1 3 1 200 'City from'(003).
perform fill_cell using 1 4 1 200 'City to'(004).
perform fill_cell using 1 5 1 200 'Dep. Time'(005).
loop at it_spfli.
copy flights to active EXCEL sheet
h = sy-tabix + 1.
if it_spfli-carrid cs 'AA'.
perform fill_cell using h 1 0 000255000 it_spfli-carrid.
elseif it_spfli-carrid cs 'AZ'.
perform fill_cell using h 1 0 168000000 it_spfli-carrid.
elseif it_spfli-carrid cs 'JL'.
perform fill_cell using h 1 0 168168000 it_spfli-carrid.
elseif it_spfli-carrid cs 'LH'.
perform fill_cell using h 1 0 111111111 it_spfli-carrid.
elseif it_spfli-carrid cs 'SQ'.
perform fill_cell using h 1 0 100100100 it_spfli-carrid.
else.
perform fill_cell using h 1 0 000145000 it_spfli-carrid.
endif.
if it_spfli-connid lt 400.
perform fill_cell using h 2 0 255000255 it_spfli-connid.
elseif it_spfli-connid lt 800.
perform fill_cell using h 2 0 077099088 it_spfli-connid.
else.
perform fill_cell using h 2 0 246156138 it_spfli-connid.
endif.
if it_spfli-cityfrom cp 'S*'.
perform fill_cell using h 3 0 155155155 it_spfli-cityfrom.
elseif it_spfli-cityfrom cp 'N*'.
perform fill_cell using h 3 0 189111222 it_spfli-cityfrom.
else.
perform fill_cell using h 3 0 111230222 it_spfli-cityfrom.
endif.
if it_spfli-cityto cp 'S*'.
perform fill_cell using h 4 0 200200200 it_spfli-cityto.
elseif it_spfli-cityto cp 'N*'.
perform fill_cell using h 4 0 000111222 it_spfli-cityto.
else.
perform fill_cell using h 4 0 130230230 it_spfli-cityto.
endif.
if it_spfli-deptime lt '020000'.
perform fill_cell using h 5 0 145145145 it_spfli-deptime.
elseif it_spfli-deptime lt '120000' .
perform fill_cell using h 5 0 015215205 it_spfli-deptime.
elseif it_spfli-deptime lt '180000' .
perform fill_cell using h 5 0 000215205 it_spfli-deptime.
else.
perform fill_cell using h 5 0 115115105 it_spfli-deptime.
endif.
endloop.
EXCEL FILENAME
CONCATENATE SY-REPID '_' SY-DATUM6(2) '_' SY-DATUM4(2) '_'
SY-DATUM(4) '_' SY-UZEIT '.XLS' INTO FILENAME.
CALL METHOD OF H_MAP 'SAVEAS' EXPORTING #1 = FILENAME.
free object h_excel.
perform err_hdl.
FORM FILL_CELL *
sets cell at coordinates i,j to value val boldtype bold *
form fill_cell using i j bold col val.
call method of h_excel 'Cells' = h_zl
exporting
#1 = i
#2 = j.
perform err_hdl.
set property of h_zl 'Value' = val .
perform err_hdl.
get property of h_zl 'Font' = h_f.
perform err_hdl.
set property of h_f 'Bold' = bold .
perform err_hdl.
set property of h_f 'Color' = col.
perform err_hdl.
endform. "FILL_CELL
*& Form ERR_HDL
outputs OLE error if any *
--> p1 text
<-- p2 text
form err_hdl.
if sy-subrc <> 0.
write: / 'OLE-Automation Error:'(010), sy-subrc.
stop.
endif.
endform. " ERR_HDL
regards,
venkat -
RE: Ole Automation with forte.
Tran,
Here is a piece of code(using Forte Version 3OF2 & Word 97) that we've
used to determine if there is already an instance of Word running:
// Create an instance of a Word Application and activate it.
// If an a Word application exists, just activate it.
if ( aTasks <> NIL and aTasks.Exists(aWordApplication.Name) )
then
aWordApplication.visible = TRUE;
aWordApplication.Activate();
else
aWordApplication = new();
aTasks = new();
aWordApplication.CreateUsingProgID( 'word.application'
aWordApplication.visible = TRUE;
aWordApplication.Activate();
aTasks is an attribute of type Tasks on our window & aWordApplication is
an attribute of type _Application on our window. This code will work if
there already is an instance of Word that was started from a Forte
applicaiton. It doesn't recognize a instance of Word that was started
outside of a Forte app. Hope this helps!!
From: Quy Tran[SMTP:[email protected]]
Sent: Wednesday, May 20, 1998 11:17 PM
To: [email protected]
Subject: Ole Automation with forte.
Good Day forte users,
I'm trying to invoke MSWord from a forte application.
I set the objectreference using CreateUsingProgId(This is the only way
that I could get it to work).
The problem is when using CreateUsingProgId, forte will create another
instance of Word. Is there a way to know if the instance already
exists
and retrieve the objectreference of that instance?
Any help would be appreciated.
Thanks
Quy Tran
Lumley Technology
Analyst/Programmer
[email protected]
Ph : 612 93186722
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
If you are not the intended recipient, please notify the Sender.
Non-business opinions may not reflect opinions of Piper JaffrayHi Aurang
You can call almost all methods using OLE. What is required is to know how to interpret a script to ABAP OLE call. This is explained in the tutorial<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1d54348-0601-0010-3e98-bd2a2dcd9e6c">"An Easy Reference For OLE Automation"</a>
Regards
*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a> -
Auteur : Corinne Ribeyre-F085785 à _CARPO04
I need help with OLE Automation implementation (Excel,
CrystalReport,Word ...)
I generate Excel project with OleGen but no documentation exist for
this project. So I made severals tests (with Excel).
I can do (see examples):
- open a file
- open Excel Application
- open WorkBook, WoorkSheet
- Write and Read a Cell (but I am not sure it's the more efficient
method to do this)
- run a macro with parameters
But, I CAN'T do:
- run a command with parameters like PivotTableWizard (tableau croise
dynamique)
Does a Documentation exist about Forte project generated by Olegen
Tool (Excel..) ?
Does a Documentation exist about Forte/Crystal Report ?
Thank You for all answers and examples,
Corinne
Examples
-- Open Excel
theApplication : Excel . Application = New;
theApplication . CreateUsingProgID(NX('excel.application'));
--- Excel Visible /not visible
theApplication . Visible = VariantBoolean(Value = False);
-- Get all WorkBooks of Excel Application
theWorkBooks : Excel . WorkBooks = New;
theWorkBooks . SetDispatchObject(theApplication . Workbooks());
-- Open File.xls (added with previous Application)
theWorkBooks . Open (VariantString(Value = 'C:\\temp\\File.xls'));
-- Link file with a WorkBook
aWorkBook : Excel . WorkBook = New;
aWorkBook . SetDispatchObject(theApplication .
Workbooks(VariantString(value='File.xls')));
-- Link a Folder (Sheet1) from File with WorkSheet
aWorksheet : Excel . Worksheet = New;
aWorksheet . SetDispatchObject(aWorkBook .
Worksheets(VariantString(value='Sheet1')));
aRange : Excel . Range = New;
-- Fill Cell (1,1) with 'Article'
TitreArt : VariantString = VariantString(Value = 'Article');
aRange . SetDispatchObject(aWorksheet . Cells(VariantInteger(Value =
1), VariantInteger(Value = 1)));
aRange . Value = titreArt;
-- Fill Cell (1,2) with 'Date'
TitreDate : VariantString = VariantString(Value = 'Date');
aRange . SetDispatchObject(aWorksheet . Cells(VariantInteger(Value =
1), VariantInteger(Value = 2)));
aRange . Value = TitreDate;
-- Run a Macro
theApplication . Run(VariantString(Value = NX('MacroName')),
VariantInteger(Value = 65),
VariantInteger(Value = 7));
-- Page Setup
-- Link a Folder (Sheet2) from File with WorkSheet
aWorksheet . SetDispatchObject(aWorkBook .
Worksheets(VariantString(value='Sheet2')));
aPageSetup : Excel . PageSetUp = New;
aPageSetup . SetDispatchObject(aWorksheet.PageSetup);
aPageSetup . PrintTitleRows = VariantString (Value = '');
aPageSetup . PrintTitleColumns = VariantString (Value = '');
aPageSetup . LeftHeader = VariantString (Value = 'MICKEY');
aPageSetup . CenterHeader = VariantString (Value = 'MOUSE');
aPageSetup . RightHeader = VariantString (Value = '&J &H'); --
Attention J H en Excel Français; D T en Anglais
aPageSetup . LeftFooter = VariantString (Value = '');
aPageSetup . CenterFooter = VariantString (Value = 'DISNEYLAND
PARIS');
aPageSetup . RightFooter = VariantString (Value = '&P / &T');
aPageSetup . LeftMargin = VariantInteger(Value = 1);
aPageSetup . RightMargin = VariantInteger(Value = 1);
aPageSetup . TopMargin = VariantInteger(Value = 1);
aPageSetup . BottomMargin = VariantInteger(Value = 1);
aPageSetup . HeaderMargin = VariantDouble(Value = 0.5);
aPageSetup . FooterMargin = VariantDouble(Value = 0.5);
aPageSetup . PrintHeadings = VariantBoolean(Value = False);
aPageSetup . PrintGridlines = VariantBoolean(Value = False);
aPageSetup . PrintNotes = VariantBoolean(Value = False);
aPageSetup . CenterHorizontally = VariantBoolean(Value = True);
aPageSetup . CenterVertically = VariantBoolean(Value = True);
aPageSetup . Orientation = VariantInteger(Value = 2); --
(1:xlPortrait, 2:xlLandscape)
aPageSetup . Draft = VariantBoolean(Value = False);
aPageSetup . PaperSize = VariantInteger(Value = 9);
-- (8: xlPaperA3, 9: xlPaperA4)
aPageSetup . FirstPageNumber = VariantInteger(Value = -4105);
-- xlAutomatic
aPageSetup . Order = VariantInteger(Value = 1);
-- xlDownThenOver
aPageSetup . BlackAndWhite = VariantBoolean(Value = True);
aPageSetup . Zoom = VariantBoolean(Value = False);
aPageSetup . FitToPagesWide = VariantInteger(Value = 1);
aPageSetup . FitToPagesTall = VariantInteger(Value = 1);
-- Save File
aFilename : VariantString = VariantString(Value =
NX('C:/Temp/Essai.xls'));
aWorkBook . SaveAS(FileName = aFilename);
-- Print File
PrintOptions : PrintOptionsDesc;
PrintOptions = Self . Window . WindowSystem . DefaultPrintOptions .
Clone (Deep = True);
If (self.Window.PrintDialog (PrintOptions= PrintOptions,
ShowSetupDialog = TRUE,
ShowJobDialog = FALSE) = BV_OK) Then
aWorksheet . PrintOut();
End If;
-- Unlink
aWorkBook . RunAutoMacros(VariantInteger(Value = 2)); --xlAutoFermer
-- Cf doc VBA
aWorkBook . Close(variantboolean (Value = False));
TheApplication . Quit();
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Hi all, forget this silly question...
I studied a little bit and learned how to handle OLEs properly...
Many thanks -
Hello.
We're using OLE automation to generate formatted Excel in a client. They wanted to have data in Excel with formulas, locked cells, colors, logos, etc.
The problem is that we're having performance issues when we work with more than 1.000 records. We're having timeouts and low memory.
I'm wondering if someone who worked with that could tell me if there's a limit of records to work with this approach or if there's a way to improve performance for OLE automation??.
If we're working with too many records, is there another way to generate formatted excel from R3??.Hi Joaquin,
For inserting many lines you should better use the OO technique instead of OLE. Check the help on Desktop Office Integration (e.g. for 4.6C):"
http://help.sap.com/saphelp_46c/helpdata/en/e9/0bee9f408e11d1893b0000e8323c4f/frameset.htm
Regards,
John. -
Venkat,
We have also had problems with OLE automation. In our case, we were trying
to open Lotus WordPro from our Forte Application. There are definitely
some issues with Forte releasing system resources, particularly if you are
working across tasks. In our case, one task was requesting a session which
then got started from another task. This meant that when we were finished,
Forte incorrectly kept the count of apps using the session > 0, and the
session never ended. I suspect if you check the task manager you will see
multiple sessions of Impromptu running. This quickly eats up memory, which
in turn leads to the less than gracious OLE_RESOURCE crash you describe.
Even after restricting all related calls to one task, the WordPro session
never goes away completely. We did manage to reconnect to any first
session started rather than eating up system resources with multiple
sessions.
Hope this helps.
Sioban Keane
NAC Re
We communicate between Forte and our Reporting tool, Impromptu, through
OLE.
Our clients run on all three Microsoft OS. Our version of Impromptu is 16
bit.
We notice this problem predominantly in Win 95 and 3.11, sometimes on NT
4.0. When we run a report in Impromptu that has considerable data (
~30-50k), Impromptu fails to respond to Forte. Forte thinks that it is not
started Impromptu yet. We have code in place to retry for 10 times before
giving up. Forte gives up after 10 times, even though Impromptu is up. The
next time we run this report on the same machine, without restarting, we
get
a OLE_RESOURCE exception from Forte, and the application crashes.
Has any one noticed this problem? Is there a way from Forte, to control OLE
resources?
Any help will be appreciated.
Venkat Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]Hi Joaquin,
For inserting many lines you should better use the OO technique instead of OLE. Check the help on Desktop Office Integration (e.g. for 4.6C):"
http://help.sap.com/saphelp_46c/helpdata/en/e9/0bee9f408e11d1893b0000e8323c4f/frameset.htm
Regards,
John. -
Hi All,
I have the following Qs.
-- I am using OLE automation to download data to excel. I have two sheets in my workbook. After I am done downloading the data on the first sheet, how can I activate or select the second sheet for displaying the data on that.
-- What are the classes in SAP used for OLE automation. How can I look at them. Is it possible to see them in SE24.
Thanks for your help.Hi Aurang
You can have a look to the tutorial<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1d54348-0601-0010-3e98-bd2a2dcd9e6c">"An Easy Reference For OLE Automation"</a>
Regards
*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a> -
Hi All,
Does anyone know of any reference/help/material on how to use OLE automation to download and format data from ABAP to Excel.
I need to know what the available methods and properties are so I could format the data the way I want.
Any help will be greatly appreciated.
Regards.Hi Aurang
You can call almost all methods using OLE. What is required is to know how to interpret a script to ABAP OLE call. This is explained in the tutorial<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1d54348-0601-0010-3e98-bd2a2dcd9e6c">"An Easy Reference For OLE Automation"</a>
Regards
*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a> -
GPF and OLE Automation with Word6
Has anyone else had a problem with GPFs when trying to use Word6 as an OLE
Automation Server? Whenever our users try to open Word6 from the
application they get a GPF in QQKN.DLL at 000C:955C. What does the QQKN.DLL
do?
Any ideas?
- Scott Splavec - MIS 8
Business Analyst
Kirke-Van Orsdel, Inc.
1776 West Lakes Parkway
West Des Moines, IA 50398
(515) 248-6472
eMail: kvi!kvidm01![email protected]Hi Aurang
You can call almost all methods using OLE. What is required is to know how to interpret a script to ABAP OLE call. This is explained in the tutorial<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1d54348-0601-0010-3e98-bd2a2dcd9e6c">"An Easy Reference For OLE Automation"</a>
Regards
*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a> -
Reliability of Forte's OLE Automation Server
Hi Forte Users,
We are currently working on the feasibility of developing OLE interface
for our existing Forte services. In that process we are wondering about the
reliability these Forte OLE servers as compared to any other normal Forte
Servers. Has anyone have any experience of using them or any ideas about the
thing we need to concentrate before starting the development of these
servers.
Any input on this issue will be appreciated.
Thanks in advance,
Charu.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>A point worth mentioning here is about fail-over of service objects
that are configured as OLE automation servers.
If you are using Forte clients to talk to the service object,
then you really will not see any changes in automatic failover
situations.
However, in case of a non-Forte client( a.k.a. OLE client ), the
automatic failover does not happen. The non-Forte clients should be
coded to detect communication failures with the primary server. They
should have the intelligence to re-connect and retry methods on the (
new ) OLE server. This means you will have to program fail-over logic in
non-Forte clients, which you get for free with Forte clients.
I am not sure what kind of requirements is driving your process of
converting Forte services to OLE servers, but it is worth deliberating
on this problem, if you are not planning to use non-Forte clients, but
want to implement the services as OLE automation server.
Ofcourse you don't have to worry about this issue if you are not
planning to use non-Forte clients...
Good luck
Ajith Kallambella M.
Forte Consultant.
Please respond to Shi-Long Yin <[email protected]>
Subject: Re: Reliability of Forte's OLE Automation Server
Hi,
Essentially, I don't see any big differences between configuring and
exporting
the Forte service objects as normal Forte servers and DCE, Encina,
Tuxedo,
Object Broker, IIOP or OLE servers. We have already succeeded
configuring the
Forte servers as IIOP and OLE servers. Our Visual Basic client can
communicate
with the OLE server. The big difficulties are that there are two
limitations to
what elements of the service object€s class are available to an OLE
client.
First, an OLE client application can access any methods provided by that
service
object€s class, except for methods that use objects as parameters.
Second, OLE
clients can not access attributes of a Forte service object. OLE
clients can
only pass the following objects and data types as parameters and return
values:
TOOL data type Maps to OLE data type
Boolean Boolean
Cdispatch IDispatch
Cunknown IUnknown
Double Double
Float Float
Integer Long
i2 Iteger
string String
ui2 Short
ui4 Long
If a Forte service object includes methods that have object parameters
or return
values other than CUnknown and CDispatch, these methods are not included
as part
of the interface to this OLE server. Compared to the IIOP
configurations, the
limitations listed above may be too strict, especially, when you want to
export
your existing Forte services which may have interfaces with classes as
their
parameters or return types. But for IIOP, you can freely pass class
objects
(even deeply nested and derived) as method€s parameters or return
values. This
feature has significantly saved our development and maintenance time.
Other
alternatives may be to write the wrappers to overcome these limitations.
In one word, if you intend to integrate the EXISTING codes, which have
methods
with class parameters, you'd better to avoid configuring Forte service
objects
as OLE server. Try to use IIOP as much as you can because it is more
OOP
compatible and interoperable.
Shilong Yin
US West in Denver
=====================================================================
Charu wrote:
Hi Forte Users,
We are currently working on the feasibility of developing OLE interface
for our existing Forte services. In that process we are wondering about the
reliability these Forte OLE servers as compared to any other normal Forte
Servers. Has anyone have any experience of using them or any ideas about the
thing we need to concentrate before starting the development of these
servers.
Any input on this issue will be appreciated.
Thanks in advance,
Charu.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
Get Your Private, Free Email at http://www.hotmail.com
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
Maybe you are looking for
-
Wireless LAN does not work after restart
Hey My brand new laptop suddenly went blank earlier today and when I restarted it I noticed my wireless internet won't work. It is also asking me to install some new driver, the Network Controller? I am confused as everything was working fine and sud
-
HT204014 How can I get spotlight search to work over a network running OS X Server?
I have installed OS X Server on an iMac to share its files over a network. I can access the files fine, but if I try and search the shared folders from another Mac on the network it yields no results. How can I get search to work as well as it does o
-
Dear All While doing invoice system is telling cost centre not belongs bussiness area 9012.I checked the assignment in OKENN it is found to be OK. Regards Srinivasan.P Edited by: srinivasan ponnurangam on Apr 25, 2009 10:40 AM
-
System Error occurs, with Japanese annotation.
Dear Developers. I'm a user of "Adobe Reader for Android" in Japan. (This content is translated from Japanese.) When I open any PDF file with Adobe Reader for Android and put annotation comment in japanese, "System error" occurs. Here is my steps. 1
-
Linking Java to Windows Command
Hie all, I would like to call a certain executable program from windows while i am running my program. I have tried looking at classes like System, Process, and Runtime. I wonder if i had missed out anything else. Say for instance i want to "Ping" an