About OLE2_OBJECT problem
Hi everybody!
I found a few OLE code. as follows
CREATE OBJECT EXCEL_OBJ 'Excel.Application'.
IF SY-SUBRC NE 0.
MESSAGE E796(F9) WITH 'Can not Create Excel Object!'.
ENDIF.
CALL METHOD OF EXCEL_OBJ 'Workbooks' = WORKBOOK_OBJ.
CALL METHOD OF WORKBOOK_OBJ 'Open' = WORKBOOK_OBJ
EXPORTING
#1 = FILE_NAME.
SET PROPERTY OF EXCEL_OBJ 'Visible' = '1'.
I don't know how to search this value! - ('Workbooks', 'Open', 'Visible' )
Please help me!
thanks advanced.
Hi Xiongfei,
The below method is OLE method of uploading or downloading the data.
'Workbooks', 'Open', 'Visible' are all OLE objects used(declared) to hold the Excel worksheet related data which belong to OLE2 type group.
Below is an Example as how these are used.
*-- Get TAB-sign for separation of fields
CLASS cl_abap_char_utilities DEFINITION LOAD.
w_separator = cl_abap_char_utilities=>horizontal_tab.
*-- Open file in Excel
IF w_application-header = space OR w_application-handle = -1.
CREATE OBJECT w_application 'Excel.Application'.
IF sy-subrc NE '0'.
EXIT.
ENDIF.
ENDIF.
CALL METHOD OF w_application 'Workbooks' = w_workbook.
IF sy-subrc NE '0'.
EXIT.
ENDIF.
CALL METHOD OF w_workbook 'Open' EXPORTING #1 = filename.
IF sy-subrc NE '0'.
RAISE file_open_error.
ENDIF.
*-- Pass the tab number to be opened
CALL METHOD OF w_application 'Worksheets' = w_sheet
EXPORTING
#1 = tabnumber.
*-- Check if the tab number mentioned exists in the spread sheet
IF sy-subrc NE '0'.
*-- Free all the used Excel Objects
PERFORM free_excel_objects.
RAISE invalid_tab_number.
ENDIF.
*-- Activate the sheet to be opened
CALL METHOD OF w_sheet 'Activate'.
IF sy-subrc NE '0'.
EXIT.
ENDIF.
GET PROPERTY OF w_application 'ACTIVESHEET' = w_worksheet.
IF sy-subrc NE '0'.
EXIT.
ENDIF.
*-- Mark whole spread sheet
CALL METHOD OF w_worksheet 'Cells' = w_cell
EXPORTING #1 = c_begin_row #2 = c_begin_col.
IF sy-subrc NE '0'.
EXIT.
ENDIF.
CALL METHOD OF w_worksheet 'Cells' = w_cell1
EXPORTING #1 = c_end_row #2 = c_end_col.
IF sy-subrc NE '0'.
EXIT.
ENDIF.
CALL METHOD OF w_worksheet 'RANGE' = w_range
EXPORTING #1 = w_cell #2 = w_cell1.
IF sy-subrc NE '0'.
EXIT.
ENDIF.
*-- Select the data in the range
CALL METHOD OF w_range 'SELECT'.
IF sy-subrc NE '0'.
EXIT.
ENDIF.
*-- Copy marked area (whole spread sheet) into Clip board
CALL METHOD OF w_range 'COPY'.
IF sy-subrc NE '0'.
EXIT.
ENDIF.
*-- Read clipboard into ABAP
CALL METHOD cl_gui_frontend_services=>clipboard_import
IMPORTING
data = t_excel_tab
EXCEPTIONS
cntl_error = 1
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE a037(alsmex).
ENDIF.
u2003
Where in;
*-- Work Fields declared to hold the Spread Sheet Data
DATA: w_application TYPE ole2_object,
w_workbook TYPE ole2_object,
w_range TYPE ole2_object,
w_sheet TYPE ole2_object,
w_worksheet TYPE ole2_object,
w_cell TYPE ole2_object,
w_cell1 TYPE ole2_object.
The values passed to the variables are fixed, ex: 'Workbooks'.
p_file the file from which we need to read the data.
p_tab is the sheet number which needs to be read.
Please see the Function Module ALSM_EXCEL_TO_INTERNAL_TABLE.
Please let me know if you need any further details.
Regards,
Amit.
Similar Messages
-
TS3212 Why can't I find a help # to call about my problem "iTunes has stopped working"
"iTunes has stopped working"
Acer system, Windows 8, trying to download iTunes for Windows 8. Partial loads but at @ 75% stops. Worked with prior version of Windows transferred over.
Full message: "A problem caused the program to stop working correctly, Windows will close the program and notify you if a solution is available."
Troubleshooter didn't help, removing and down loading iTunes for Windows 8 did not work. same message each time.
Windows message says its an "incompatible program."
How do I get this to load correctly? AND HOW IN THE WORLD CAN I TALK TO SUPPORT ABOUT THIS PROBLEM, I HAVE SPENT 1/2 DAY TRYINGApple don't provide free telephone support for iTunes.
For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it, which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
tt2 -
I've checked my current plugins and it still shows Adobe Acrobat Version 7 for Netscape (7.0.9.50)
I tried to do the update but I get the same error each time - "Please tell Microsoft about this problem" "Send Error Report/ Don't Send".
Also, do I need to Disable or Uninstall the Extension: "SEO For Firefox 3.3.4 as this was highlighted?
== This happened ==
Every time Firefox opened
== When I try to do the updatehttp://www.microsoft.com/mac/support
http://answers.microsoft.com/en-us/mac/forum/macword?auth=1
http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/microsoft-wor d-for-mac-2011-will-not-open-error/ecc42616-6f49-40bb-b8f5-e21c711ea359 -
Everytime I start Firefox 4 beta it crashes. I usually can visit one site on the web (doesn't matter what site) and then it locks up. The only thing that works on the browser then is the close button. After clicking the close button I'll try to restart the browser and I'll get an error message saying it can't open Firefox because it's already open. Which is a bunch of BS. The only I can get Firefox started again is to restart my computer. This is so frustrating that I've given up trying. Hopefully you guys know about this bug and can do something about it. I wasn't trying to post a question here I just wanted to make sure you guys heard about this problem.
yeah it is the gayest thing that happens :S what i do is turn off the internet, then open it, then turn on internet, then use it. :S OR make your homepage a tab.
-
I have a hard time understanding why I can't contact support about THEIR problem. I plugged my iPhone into my pc. iTunes came up. It said there was an update available for the phone. I accepted that. Clicked on the "download only" because I didn't have the time to install it at that point. It downloaded but didn't stop. It continued to the 'backing up your iPhone' segment then froze. I waited at least an hour with no change. Finally I unplugged my phone..iTunes wasn't responding.I rebooted my pc then tried the same thing again. Same outcome even though I let it "Back Up" for 7-8 hrs while I slept. Same Story............... iTunes 10.4.0.80 is the software I'm using. When my phone is 'plugged' in what I see on it's face is "Sync in Progress".....for hours!
Error 1611
This error typically occur when security software interferes with the restore and update process. FollowTroubleshooting security software issues to resolve this issue. In rare cases, this error may be a hardware issue. If the errors persist on another computer, the device may need service.
Synced media like apps and music are not included in the iPod backup that iTunes makes. You can redownload iTunes purchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store -
Hi,
I am doing my MSc dissertation about "The Impact of Visual Composer upon Business Requirements Gathering".
When I am triied to deploy my application, I got this error message
Deploying.....
Error in executing a process for flex compilation, not enough space.
Can you give me a solution for this, coz i couldn't do further more without this.
I am waiting for favourable reply.
Best Regards,
Dinusha.
Edited by: Dinusha Somarathne on Dec 7, 2008 3:46 PMHi Dinusha,
Can you please supply us with more details about the problem:
1. What Version of Visual Composer are you using?
2. What have you added to the model?
3. Is the error consistent or only appears when you have a vertain object in your Visual Composer Model?
Thanks,
Omer. -
MAC OSX 10.8.5
Processor 2.7 GHz
Memory 4GB1333 MHz DDR3
Logic Pro 9.1.8 (1700.67) 32 BIT
"The Operation could not be completed. No other information is available about the problem."
Uploaded on google drive a series of project files. downloaded them and now the message above is what pops up effectively blocking me from my work. After talking with google support, they confirmed the successful upload and download with no file corruption. All file extensions are the same. Can someone please help.
Sincerely,
Butta LoveTry the following..
Compress the audio files before uploading them to Google.. using Apple's built in file compressor... (Right/Control click on an audio file and choose compress from the popup menu...
Download from Google and then decompress audio files..
Now test in Logic and see if you get the same issue.... -
when I try to make a new video, a window comes up that says,"The operation could not be completed," and then under it, it says,"No other information is available about the problem," what is happening and how do I fix it?
Hi
And without info - it's near to impossibly to help. Try my general troubleshooting note:
Troubleshooting note
When iMovie doesn't work as intended this can be due to a lot of reasons
iMovie Pref files got corrupted - trash it/they and iMovie makes new and error free one's
problem in iMovie Cache folder - trash Cache.mov and Cache.plist
Creating a new User-Account and log into this
This forces iMovie to create all pref. and cache files new and error free
Event or Project got corrupted - try to make a copy and repair
a Codec is used that doesn't work (even though iMovie and/or iDVD tries to / they fail in the end)
version miss match of QuickTime Player / iMovie / iDVD
preferences are wrong - Repair Preferences
other hard disk problem - Repair Hard Disk (Disk Util tool - but start Mac from ext HD or DVD)
External hard disks - MUST BE - Mac OS Extended (hfs) formatted to work with Video
( UNIX/DOS/FAT32/Mac OS Exchange - works for most other things - but not for Video )
USB-flash-memories - usually do not work
Net-work connected hard disks - usually do not work (most often not fast enough and WRONGLY FORMATTES as DOS etc)
iPhoto Library got problems - let iPhoto select another one or repair it. Re-build this first then try to re-start iMovie. When iMovie starts-up it first look trough this iPhoto library and if faulty it all Halt’s.
This You do by
First - close iPhoto
Secondly - on start up of iPhoto - Keep {cmd and alt-keys down}
Thirdly - now select all five options presented
THEN - WAIT a long long time (>20 hours are not strange)
free space on Start-Up (Mac OS) hard disk to low (<1Gb) - I never go under 25Gb free space for SD-Video (4-5 times more for HD)
external devices interferes - turn off Mac - disconnect all of them and - Start up again and re-try
GarageBand fix - start GB - play a few notes - Close it again and now try iMovie
Screen must be set to million-colors
Third-party plug-ins doesn't work OK
Run "Cache Out X", clear out all caches and restarts the Mac
Let Your Mac be turned on during one night. At about midnight there is a set of maintenance programs that runs and tidying up. This might help
Turn off Your Mac - and disconnect Mains - for about 20-30 minutes - at least this resets the FireWire port.
In QuickTime - DivX, 3ivx codec, Flip4Mac, Perian etc - might be problematic - temporarily move them out and re-try
(I deleted the file "3ivxVideoCodec.component" located in Mac HD/Library/Quicktime and this resolved my issue.)
buenrodri wrote
I solved the problem by removing the file: 3ivxVideoCodec.component. after that, up-dated iMovie runs ok.
Last resort: Trash all of iMovie and re-install it
Yours Bengt W -
every time i try to create a new movie or a trailer an error message appear saying:"the operation could not be completed. no other information is available about the problem."
Open the iCloud preference pane and uncheck the Contacts box. Do the alerts stop?
-
I get about one or two of these error messages, from Contacts each day: "The Operation could not be completed. No other information is available about the problem." It seemed to start after I deleted some of what appeared to me to be the duplicate cards between "On My Mac" and iCloud. I have Contacts version 9.0 in OS X 10.10 Yosemite on a MacBook Pro (15-inch, Early 2011). Anyone else seen this error?
Try the following..
Compress the audio files before uploading them to Google.. using Apple's built in file compressor... (Right/Control click on an audio file and choose compress from the popup menu...
Download from Google and then decompress audio files..
Now test in Logic and see if you get the same issue.... -
I get about one or two of these error messages, from Contacts each day: "The Operation could not be completed. No other information is available about the problem." It seemed to start after I deleted some of what appeared to me to be the duplicate cards between "On My Mac" and iCloud. I have Contacts version 9.0 in OS X 10.10 Yosemite on a MacBook Pro (15-inch, Early 2011). Anyone else seen this error?
Thanks! I looked at the Busycal post:
To fix this, open System Preferences > Security & Privacy, select Contacts in the left sidebar, then check BusyCal.app.
On my system, only Skype, Parallels, and Contacts Cleaner are enabled to access contacts.
FYI, LinkedIn doesn't list any apps as having asked for, or been given access.
If that doesn't work, here is a bigger hammer:
OK
1) Launch Terminal in /Applications/Utilities.
2) Paste the following text and hit return:
tccutil reset AddressBook
First, I want to see what that does so I ran man tccutil
NAME
tccutil -- manage the privacy database
SYNOPSIS
tccutil command service
DESCRIPTION
The tccutil command manages the privacy database, which stores decisions the
user has made about whether apps may access personal data.
One command is current supported:
reset Reset all decisions for the specified service, causing apps to prompt
again the next time they access the service.
EXAMPLES
To reset all decisions about whether apps may access the address book:
tccutil reset AddressBook
3) Quit Terminal.
4) Launch BusyCal, and click OK when asked whether to allow access to your contacts.
Now I see under System Preferences->Security&Privacy->Privacy->Contacts that all apps were removed from the list.
I haven't had BusyCal in years so I just launched Calendar and Contacts.
Unfortunately, as soon as I launch Contacts, I get the pop-up again about the LinkedIn -
Bought i movie for my macbook pro. it crashed, now i can't use it "The operation could not be completed. No other information is available about the problem." any suggestions?
Same problem!
-
Firefox could not install this item because "install.rdf" (provided by the item) is not well-formed or does not exist. Please contact the author about this problem.
The statement above is in the pop up error box every time, when I launch Firefox. If I click ok in the box Firefox then opens. How do I fix this initializing/launch problem?Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")<br /> -
Is this the most up to date article on up-dating the iPhone OS - is there anything about the problems relating to the up-date to OS 6 - my G3 no longer works and Apple seems to have gone to ground. No Genius bar appointments available for a week!
iOS 7 devices need iTunes 11.1 or newer to sync. Depending upon your computer and the OS it is running, you may not be able to upgrade to iTunes 11.1 based on the requirements for iTunes 11.1. What computer and OS are you running your iTunes on? From the iTunes download pages I see the requiorements are:
Macintosh System Requirements
Mac computer with an Intel Core processor
OS X version 10.6.8 or later
400MB of available disk space
Broadband Internet connection to use the iTunes Store
Windows System Requirements
PC with a 1GHz Intel or AMD processor and 512MB of RAM
Windows XP Service Pack 2 or later, 32-bit editions of Windows Vista, Windows 7, or Windows 8
64-bit editions of Windows Vista, Windows 7, or Windows 8 require the iTunes 64-bit installer
400MB of available disk space
Broadband Internet connection to use the iTunes Store -
Hi! My name is Nazım . I live in North Cyprus. I’ve got Apple Ipad 2 and Iphone 4. My ıpad2 is iPad 2 Wi-Fi + 3G: Serial number: DQTFFVC1DFJ3., IOS 5.0.1 (9A405), model MC775LL .my itunes is last version. I bought my ipad from America.
I’ve recently bought Philips DC390 from Apple Store in Oxford Street. Althouh Philips dock 1 seemed to work properly (charged and player). The second dock isnot compatible with my ipad2. It didn’t work(play),It charges though.
I sended e-mailed to Philips.uk for assistance. They recomend met o reset my ipad2 to see if this clears any issue, but it does indicate a fault with the unit. It didn’t work either.s(everal time Ireset my Ipad2)
In addition to this, I contacted Apple support.UK on 22nd December 2011-12-23. I informed about the problem was likely to be with the apparatur.However I tried my father’s Ipad2 last night.software is the same my Ipad2’s IOS 5.0.1 (9A405), to my surprise it worked properly. I’ve already reset my ipad2 several times but it didn’work.
I would be grateful if you could make me some recommendations to sort out the refered my problem.Hi Nazim
This is a user to user group. There is no-one from Apple here.
Use this link to contact Apple directly.
Maybe you are looking for
-
Hi there! Perhaps you could help me with this issue. I have been trying to ugrade to OS X Mavericks but i keep getting this message: "Error 1004" Please help.
-
What are all the Function Keys for on my new KU-0841?
I just got an HP KU-0841 Keyboard and want to know what the Function Keys are for F1-F12. Where can I learn about how to use them? Thanks
-
On a specific website, when I left click a link it opens but when trying to open the link in a new tab, the new tab opens blank and "javascript:subValue(1)" is seen in the address bar. This website hosts many, many images which I hope to download usi
-
When I put my earphone in the sound isn't clear
When I put my earphones in the sound isn't clear. There's a new head jack in as well.
-
Mobile account disabled unable to re-enable
First some background. We have an Open Directory Master setup on Snow Leopard Server 10.6.2. I have a default password policy of 5 attempts and the user account is locked out. I am in the process of binding Snow Leopard clients to Open Directory. All