Opening of Excel files in SAP
Hi
I have a custom program which displays data in an ALV (Non OO) format. There is this excel button that the user can click to display the spreadsheet in the same SAP screen. However, some users are reporting an empty spreadsheet when they clicked on the button, even though the data are showing fine in the ALV display. Exporting to a spreadsheet works fine for them. So far, we have tried a couple of cases and it seems that only those running Excel 2002 instead of 97 have this problem. Are there other possible reasons for this? Or is there a workaround for the problem.
Another problem faced by a particular user running Excel 97 is that even though the ALV display shows of 32 rows of data, the Excel spreadsheet only shows 17 records. We tried it on different PCs running Excel 97 and it turns up the same results. As predicted, PCs running Excel 2002 could not display any records. We are really scratching our heads on this. Any advice is appreciated. Thanks.
Hi,
This is what I did, I suggest that you try doing this because mine worked:
1. Go to SE41
2. Put this program name - SAPLKKBL
3. And type STANDARD in Status
4. Press Control+F6
5. Copy the STANDARD Status in your program
Type the following in your code. This enables you to add a button and at the same time has the standard buttons in ALV Grid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
is_layout = gs_layout
it_fieldcat = gt_fieldcat[]
it_events = gt_events[]
TABLES
t_outtab = itab.
FORM PF_STATUS USING P_EXTAB TYPE SLIS_T_EXTAB.
Set the pf status for CHG BOM button
SET PF-STATUS 'STANDARD' EXCLUDING P_EXTAB.
ENDFORM. "top_of_page
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
P_SELFLD TYPE SLIS_SELFIELD.
CASE p_ucomm.
WHEN 'SAVE'.
"Write your command actions here.
ENDCASE.
ENDFORM.
Hope this helps.
Kindly give points if helpful. Thanks.
Similar Messages
-
Opening external Excel file by VBA in Excel Inplace template
Hi all experts,
I am working on a sq01 query which used an Excel inplace template. Inside the template, I have written the code to open another Excel file by absolute path, and it works when I run it in my computer. However, when I uploaded the template to the SAP and run the code, the external Excel file did not open. May I ask how I can open an external Excel file when the template is inside SAP server? Thanks a lot for your help.
Best regards,
LeonDo you have a language pack installed? I assume your computer language is set to French?
Maurice -
Microsoft Forms and Microsoft Visual Basic while opening the Excel file
Hello,
I have issues with 2010 64 bit Office Pro Plus Excel. Whenever I open an Excel file (97-2003 worksheet) which has macros then I get below 2 errors in sequence.
Please note that all macro settings are enabled and below are my system configs.
Win 7 Ultimate 64 bit,
MS Office Pro Plus 2010 64 bit with SP2.
Googled all and tried but in vein and also note that I dont have any .exd files under ../forms to delete. Please help.
Please note that for others with same system config/office versions and same 97-2003 worksheet it works so issues is only in my system.
First Error
Microsoft Forms
Could not load an object because it is not available on this machine.
Second Error
Microsoft Visual Basic for Applications
Compile error in hidden module: MainUtilities2.
This error commonly occurs when code is incompatible with the version, platform, or architecture of this application. Click "Help" for information on how to correct this error.
Thanks.Your macro's will not run in a Office 64 environment only in a 32bit environment. The 64bit environment has a whole different setup and macro's created in an earlier 32 bit environment will stop working.
So if you want to use them in a 64 Office environment you have to rewrite the macro's.
have a look here:
http://msdn.microsoft.com/en-us/library/gg264421.aspx
Maurice -
After upgrade to 10.9.1 office for mac 2011 will not open most excel files.
After upgrade to 10.9.1 office for mac will not open most excel files. The files will open in open office. I have tried re-saving as excel file, no joy.
I have repaired permissions, no joy.
below are the results of EtreCheck scan.
Hardware Information:
MacBook Pro (13-inch, Early 2011)
MacBook Pro - model: MacBookPro8,1
1 2.3 GHz Intel Core i5 CPU: 2 cores
8 GB RAM
Video Information:
Intel HD Graphics 3000 - VRAM: 512 MB
System Software:
OS X 10.9.1 (13B42) - Uptime: 5 days 3:45:14
Disk Information:
Hitachi HTS545032B9A302 disk0 : (320.07 GB)
EFI (disk0s1) <not mounted>: 209.7 MB
Macintosh HD (disk0s2) / [Startup]: 319.21 GB (64.84 GB free)
Recovery HD (disk0s3) <not mounted>: 650 MB
OPTIARC DVD RW AD-5970H
USB Information:
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Inc. BRCM2070 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Computer, Inc. IR Receiver
FireWire Information:
Thunderbolt Information:
Apple Inc. thunderbolt_bus
Kernel Extensions:
org.virtualbox.kext.VBoxDrv (4.1.2)
org.virtualbox.kext.VBoxUSB (4.1.2)
com.logmein.driver.LogMeInSoundDriver (1.0.3 - SDK 10.5)
Startup Items:
VirtualBox: Path: /Library/StartupItems/VirtualBox
Launch Daemons:
[System] com.adobe.fpsaud.plist 3rd-Party support link
[System] com.logmein.logmeinblanker.plist 3rd-Party support link
[System] com.logmein.logmeinserver.plist 3rd-Party support link
[System] com.logmein.raupdate.plist 3rd-Party support link
[System] com.microsoft.office.licensing.helper.plist 3rd-Party support link
[System] com.oracle.java.Helper-Tool.plist 3rd-Party support link
[System] com.sharpcast.xfsmond.plist 3rd-Party support link
[System] com.teamviewer.teamviewer_service.plist 3rd-Party support link
[System] com.zeobit.MacKeeper.AntiVirus.plist 3rd-Party support link
[System] org.macosforge.xquartz.privileged_startx.plist 3rd-Party support link
Launch Agents:
[System] com.logmein.LMILaunchAgentFixer.plist 3rd-Party support link
[System] com.logmein.logmeingui.plist 3rd-Party support link
[System] com.logmein.logmeinguiagent.plist 3rd-Party support link
[System] com.logmein.logmeinguiagentatlogin.plist 3rd-Party support link
[System] com.oracle.java.Java-Updater.plist 3rd-Party support link
[System] com.teamviewer.teamviewer.plist 3rd-Party support link
[System] com.teamviewer.teamviewer_desktop.plist 3rd-Party support link
[System] org.macosforge.xquartz.startx.plist 3rd-Party support link
User Launch Agents:
[not loaded] .dat0157.000 (hidden)/Users/fboyd3/Library/Application Support/Spotify/SpotifyWebHelper
[not loaded] com.adobe.ARM.[...].plist 3rd-Party support link
[not loaded] com.google.keystone.agent.plist 3rd-Party support link
[not loaded] com.microsoft.LaunchAgent.SyncServicesAgent.plist 3rd-Party support link
[not loaded] com.spotify.webhelper.plist 3rd-Party support link
[not loaded] com.zeobit.MacKeeper.Helper.plist 3rd-Party support link
[not loaded] org.virtualbox.vboxwebsrv.plist 3rd-Party support link
User Login Items:
iTunesHelper
GrowlHelperApp
Alarm Clock
Canon IJ Network Scanner Selector2
Microsoft Database Daemon
SugarSync Manager
Neat
LogMeIn
Dropbox
Spotify
Spotify
AdobeResourceSynchronizer
Internet Plug-ins:
LogMeInSafari64: Version: 1.0.730 3rd-Party support link
OVSHelper: Version: 1.0 3rd-Party support link
Default Browser: Version: 537 - SDK 10.9
Flip4Mac WMV Plugin: Version: 3.0.0.126 - SDK 10.8 3rd-Party support link
AmazonMP3DownloaderPlugin101750: Version: AmazonMP3DownloaderPlugin 1.0.17 - SDK 10.4 3rd-Party support link
AdobePDFViewerNPAPI: Version: 11.0.03 - SDK 10.6 3rd-Party support link
FlashPlayer-10.6: Version: 12.0.0.70 - SDK 10.6 3rd-Party support link
DivXBrowserPlugin: Version: 2.1 3rd-Party support link
LogMeIn: Version: 1.0.730 3rd-Party support link
Flash Player: Version: 12.0.0.70 - SDK 10.6 3rd-Party support link
iPhotoPhotocast: Version: 7.0 - SDK 10.8
LogMeInSafari32: Version: 1.0.730 3rd-Party support link
QuickTime Plugin: Version: 7.7.3
AdobePDFViewer: Version: 11.0.03 - SDK 10.6 3rd-Party support link
SharePointBrowserPlugin: Version: 14.3.4 - SDK 10.6 3rd-Party support link
Silverlight: Version: 5.1.20125.0 - SDK 10.6 3rd-Party support link
EPPEX Plugin: Version: 3.0.0.0 3rd-Party support link
WidevineMediaTransformer: Version: (null) 3rd-Party support link
JavaAppletPlugin: Version: Java 7 Update 25 Outdated! Update
Safari Extensions:
DivX Plus Web Player HTML5 <video>: Version: 2.1.0.900
Open in Internet Explorer: Version: 1.0
ClickToPlugin: Version: 2.5.3
DivX HiQ: Version: 2.1.0.900
Audio Plug-ins:
BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
AirPlay: Version: 1.9 - SDK 10.9
AppleAVBAudio: Version: 2.0.0 - SDK 10.9
iSightAudio: Version: 7.7.3 - SDK 10.9
iTunes Plug-ins:
Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
User Internet Plug-ins:
Move-Media-Player: Version: npmnqmp 071705000010 3rd-Party support link
WebEx64: Version: 1.0 - SDK 10.6 3rd-Party support link
3rd Party Preference Panes:
DivX 3rd-Party support link
Flash Player 3rd-Party support link
Flip4Mac WMV 3rd-Party support link
Growl 3rd-Party support link
Java 3rd-Party support link
Old Applications:
Microsoft Language Register: Version: 14.3.4 - SDK 10.5 3rd-Party support link
/Applications/Microsoft Office 2011/Additional Tools/Microsoft Language Register/Microsoft Language Register.app
/Users/[redacted]/Library/Application Support/WebEx Folder/1326
Cisco WebEx Event Center: Version: 1304.07.2811.0 - SDK 10.5 3rd-Party support link
convertpdf: Version: 1.2 - SDK 10.5 3rd-Party support link
asannotation2: Version: 1206.25.2804.0 - SDK 10.5 3rd-Party support link
Neat ADF Scanner 2008 10_5: Version: 1.0.0.15 - SDK 10.5 3rd-Party support link
/Library/Image Capture/Devices/Neat ADF Scanner 2008 10_5.app
SLLauncher: Version: 1.0 - SDK 10.5 3rd-Party support link
/Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
/Users/[redacted]/Library/Application Support/WebEx Folder/1324
convertpdf: Version: 1.2 - SDK 10.5 3rd-Party support link
Cisco WebEx Meeting Center: Version: 1304.23.2811.0 - SDK 10.5 3rd-Party support link
asannotation2: Version: 1206.25.2804.0 - SDK 10.5 3rd-Party support link
atmsupload: Version: 1209.12.2806.0 - SDK 10.5 3rd-Party support link
Amazon MP3 Downloader: Version: INFO_PLIST_VERSION - SDK 10.4 3rd-Party support link
/Applications/Microsoft Office 2011
Microsoft PowerPoint: Version: 14.3.4 - SDK 10.5 3rd-Party support link
Microsoft Excel: Version: 14.3.4 - SDK 10.5 3rd-Party support link
Microsoft Outlook: Version: 14.3.4 - SDK 10.5 3rd-Party support link
Microsoft Word: Version: 14.3.4 - SDK 10.5 3rd-Party support link
Microsoft Document Connection: Version: 14.3.4 - SDK 10.5 3rd-Party support link
Solver: Version: 1.0 - SDK 10.5 3rd-Party support link
/Applications/Microsoft Office 2011/Office/Add-Ins/Solver.app
/Applications/Microsoft Office 2011/Office
Microsoft Graph: Version: 14.3.4 - SDK 10.5 3rd-Party support link
Microsoft Database Utility: Version: 14.3.4 - SDK 10.5 3rd-Party support link
Microsoft Office Reminders: Version: 14.3.4 - SDK 10.5 3rd-Party support link
Microsoft Upload Center: Version: 14.3.4 - SDK 10.5 3rd-Party support link
My Day: Version: 14.3.4 - SDK 10.5 3rd-Party support link
SyncServicesAgent: Version: 14.3.4 - SDK 10.5 3rd-Party support link
Open XML for Excel: Version: 14.3.4 - SDK 10.5 3rd-Party support link
Microsoft Alerts Daemon: Version: 14.3.4 - SDK 10.5 3rd-Party support link
Microsoft Database Daemon: Version: 14.3.4 - SDK 10.5 3rd-Party support link
Microsoft Chart Converter: Version: 14.3.4 - SDK 10.5 3rd-Party support link
Microsoft Clip Gallery: Version: 14.3.4 - SDK 10.5 3rd-Party support link
/Applications/iWork '09
Microsoft AutoUpdate: Version: 2.3.6 - SDK 10.4 3rd-Party support link
/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
/Library/Application Support/Microsoft/MERP2.0
Microsoft Error Reporting: Version: 2.2.9 - SDK 10.4 3rd-Party support link
Microsoft Ship Asserts: Version: 1.1.4 - SDK 10.4 3rd-Party support link
/Users/[redacted]/Downloads
Install Spotify 7: Version: 1.0 - SDK 10.5 3rd-Party support link
Install Spotify 3: Version: 1.0 - SDK 10.5 3rd-Party support link
Install Spotify: Version: 1.0 - SDK 10.5 3rd-Party support link
Install Spotify 2: Version: 1.0 - SDK 10.5 3rd-Party support link
Install Spotify 4: Version: 1.0 - SDK 10.5 3rd-Party support link
Install Spotify 5: Version: 1.0 - SDK 10.5 3rd-Party support link
Install Spotify 6: Version: 1.0 - SDK 10.5 3rd-Party support link
Time Machine:
Time Machine not configured!
Top Processes by CPU:
97% Microsoft Outlook
16% Google Chrome
5% WindowServer
3% Finder
2% EtreCheck
Top Processes by Memory:
180 MB Finder
164 MB soffice
156 MB mds_stores
147 MB Google Chrome
131 MB Numbers
Virtual Memory Information:
928 MB Free RAM
2.59 GB Active RAM
1.22 GB Inactive RAM
1.57 GB Wired RAM
31.52 GB Page-ins
1.33 GB Page-outsFollow these instructions to uninstall MacKeeper. They have been tested with the most recent version of MacKeeper (v 2.8). Earlier versions than the one released in 2012 require more extensive work to uninstall all its components.
The effects of having actually used MacKeeper to do anything are a completely different matter. The fastest way to take an exquisitely designed and painstakingly engineered Mac and make it run like a steaming pile of dung is to install and use such ill-conceived "cleaning" or "security" products. This is just one example of a broad category of time- and money-wasters capable of causing damage that can only be rectified by reinstalling OS X, restoring from a backup, or completely erasing your system and rebuilding it from the ground up. Never install such junk on a Mac.
If you used MacKeeper to encrypt any files or folders, use MacKeeper to un-encrypt them first.
Quit the MacKeeper app if it is running.
Open your Applications folder: Using the Finder's Go menu, select Applications.
Drag the MacKeeper icon from your Applications folder (not the Dock) to the Trash.
You will be asked to authenticate (twice):
You do not need to provide a reason for uninstalling it:
Just click the Uninstall MacKeeper button. You will be asked to authenticate again.
After it uninstalls you may empty the Trash and restart your Mac. All that will remain is an inert log file that does nothing but occupy space on your hard disk. -
Hi, i'm new using numbers, and when I try to open a excel file don't let me do it, instead appears a box whit a error and close app, any help?
What does the error say?
A couple of thoughts: the file is corrupted or is password-protected. Corruption is more likely to cause Numbers to crash & Numbers cannot open password-protected Excel files. Try using one of the free Office clones & see what happens. -
Intermittent Error 41106 Error when trying to open an Excel file.
I am having an intermittent problem while opening an Excel file. The problem only occurs occasionally during execution of my program. My program has a cluster of buttons each button opens a sub VI that is part of a calibration process. The first VI generates an EXCEL filename that is used to save all calibration data. A template is opened, data is placed in this template, and then it is saved under the generated filename. Most of the time this seems to work fine, but every once in a while I receive a -41106 error indicating that Microsoft EXCEL did not open. As far as I can tell when I run each sub VI independently they work fine and no errors are generated. Does anyone know why this might be happening? I would appreciate any help.
ThanksWhat version of LabVIEW and the Report Generation Toolkit are you using? I remember adding some code in the 1.1 version of the toolkit to attempt to avoid some Microsoft Excel latencies with opening/closing the application repeatedly, but it was by no means fool proof, since Excel sometimes takes its sweet time leaving memory when the application exits. Without knowing any more specifics, my best suggestion is for you to add a small delay between successive operations regarding opening/closing Excel and see if that helps. Also, if you could post a simple VI that demonstrates the behavior, that would be extra helpful.
Oh yeah, and another suggestion would be to open one report reference at the beginning of your program, and use this reference through the whole thing...I understand that this might not be possible, though, if you're opening different worksheets throughout the course of your application running.
Good luck,
-D
P.S. - For those of you reading this wondering why I would automatically assume MegaMan is using the Report Generation Toolkit, he cites error -41106, which is an error specific to this toolkit.
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman -
Office 2013 can't open word, excel files from the network after upgrade to 8.1
Hello,
Recently, I upgraded all PCs from WIN 8 to Win 8.1. After the upgrade I noticed that I can't open any word documents and excel files. Before the upgraded I have no problem opened any files. All PCs have over 500GB free space on hard drive. Other PCs that
run Win 7 have no problem open them only the one with Win 8.1. This is what I got:
I right click--> property and there is no unblocked. All files resided on the network server.
Please help.
JimmyHi Jimmy,
Did you get any error message when you try to open an Excel file/Word document?
If so, you can post the error message and event log here.Also ,if you had antivirus software installed, try to disable them to test this issue.
In addition, what happens if you add the network server location as a trusted location?
Wind Zhang
TechNet Community Support -
Upload excel file in SAP BI-7.0
Hi ,
i need to upload an excel file in SAP BI 7.0 where the standard r/3 fm are not available.
Currently we uploading a file in CSV format but now we want to upload using XLS also.
ia way to upload excel file in SAP BI 7.0
Best Regards,
Sharad
Edited by: sharad narayan on Jan 7, 2011 10:58 AM
while searching the forum i found the fm MS_EXCEL_OLE_STANDARD_DAT .
but while using this FM i am getting the exception file not exist.
Kindlu suggest what to do
i even tried the FM TMP_GUI_GET_FILE_EXIST' to check the existence of the file.
even then same problem.
Please suggest
Edited by: sharad narayan on Jan 10, 2011 2:51 PMHi,
Scheduled jobs are the jobs for which we have scheduled for a time, may be daily so that each day the scheduled jobs will trigger at the time given.So that every time u need not to trigger the job manully urself as the schedule time will hit the job will trigger itself.
Released job means the job which is in between Sheduled state and active state.say For eg: 10 jobs are Scheduled in a queue Job no 1 is released from the queue that means any moment it will be in active state.So it is the state between Schedule and Active state of a job.
Thanks
Varun -
Hi Friends,
Iam trying to Upload Excel file into SAP using the FM
ALSM_EXCEL_TO_INTERNAL_TABLE. But it is going to dump n the error is
The call to the function module "ALSM_EXCEL_TO_INTERNAL_TABLE" is incorrect:
In the function module interface, you can specify only
fields of a specific type and length under "INTERN".
Although the currently specified field
"ITAB" is the correct type, its length is incorrect.
I have attached the code also.
Please let me know where iam getting the error.
Code :
Tables : mara,
ztable.
parameters : p_infile like rlgrap-filename.
data : begin of itab occurs 0,
matnr like mara-matnr,
mbrsh like mara-mbrsh,
matkl like mara-matkl,
end of itab.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = p_infile
I_BEGIN_COL = 1
I_BEGIN_ROW = 1
I_END_COL = 100
I_END_ROW = 100
TABLES
INTERN = itab
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
sort itab by matnr.
loop at itab.
write:/ itab.
*modify ztable from table itab.
endloop.hi check this code:
DATA : BEGIN OF TYP_INPUT ,
MATNR LIKE MARA-MATNR,
WERKS LIKE MARC-WERKS,
LGORT LIKE MARD-LGORT,
LGNUM LIKE MLGN-LGNUM,
LGTYP LIKE MLGT-LGTYP,
LTKZA LIKE MLGN-LTKZA,
LTKZE LIKE MLGN-LTKZE,
LGBKZ LIKE MLGN-LGBKZ,
LGPLA LIKE MLGT-LGPLA,
END OF TYP_INPUT.
*Input File Data
DATA : IT_FILE LIKE TYP_INPUT OCCURS 0 WITH HEADER LINE.
*"INTERNAL TAB TO TAKE EXCEL SHEET.
DATA : IT_EXCEL LIKE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = P_PFILE
I_BEGIN_COL = 1
I_BEGIN_ROW = 2
I_END_COL = 9
I_END_ROW = 6000
TABLES
INTERN = IT_EXCEL
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3.
* IT_EXCEL CONTAINS DATA IN THE FORM OF ROW, COL, VALUE *
* CONVERTING THAT INTERNAL TABLE TO FORMAT THAT OF EXCEL SHEET *
IF NOT IT_EXCEL[] IS INITIAL.
SORT IT_EXCEL BY ROW COL.
LOOP AT IT_EXCEL.
CASE IT_EXCEL-COL.
WHEN 1.
IT_FILE-MATNR = IT_EXCEL-VALUE.
WHEN 2.
IT_FILE-WERKS = IT_EXCEL-VALUE.
WHEN 3.
IT_FILE-LGORT = IT_EXCEL-VALUE.
WHEN 4.
IT_FILE-LGNUM = IT_EXCEL-VALUE.
WHEN 5.
IT_FILE-LGTYP = IT_EXCEL-VALUE.
WHEN 6.
IT_FILE-LTKZA = IT_EXCEL-VALUE.
WHEN 7.
IT_FILE-LTKZE = IT_EXCEL-VALUE.
WHEN 8.
IT_FILE-LGBKZ = IT_EXCEL-VALUE.
WHEN 9.
IT_FILE-LGPLA = IT_EXCEL-VALUE.
ENDCASE.
AT END OF ROW.
APPEND IT_FILE.
CLEAR IT_FILE.
ENDAT.
ENDLOOP.
ELSE.
MESSAGE I000 WITH 'The input file is empty'.
STOP.
ENDIF. -
Need help in uploading an excel file into SAP
Hi All,
I got a requirement to upload an excel file to SAP.
But When i tried with the FM "ALSM_EXCEL_TO_INTERNAL_TABLE" , file not getting uploaded to internal table.
Getting expection 2, UPLOAD_OLE...
I think the problem is with the file... the following the sample text of the file...
Technical IdentNo. Line No. Text Location
BS-PZ-180 1 035-05 EXZENTER-SCHNECKENPUMPE 0026
BS-PZ-180 2 LIEFERANT : SOCSIL-INTER SA ECUBLENS 0026
BS-PZ-180 3 HERSTELLER : MONO PUMPS LIMITED MANCH 0026
BS-PZ-180 4 MODELL/TYP : SH 60 0026
But when I tried with only one Column..its getting successfully uploaded...
Pls suggest me how to upload the file? ( May be with sample code)
Also pls let me know hw to handle the file..which contains 5 differnt sheets of texts.. ( May be with sample code)
Your suggestion will be highly appreciated...
Thanks,
PriyaHi,
Use the FM: TEXT_CONVERT_XLS_TO_SAP. It will work perfectly. I used this function module and uploaded data from xls to sap. check the following code:
TYPE-POOLS: truxs.
PARAMETERS: p_file TYPE rlgrap-filename.
TYPES: BEGIN OF t_datatab,
PROP_NAME like SDOKPROP-PROP_NAME,
PROP_CHECK like SDOKPROP-PROP_CHECK,
TABNAME like SDOKPROP-TABNAME,
FIELDNAME like SDOKPROP-FIELDNAME,
DESCRIPT(30) type c,
END OF t_datatab.
DATA: it_datatab type standard table of t_datatab,
itab TYPE STANDARD TABLE OF t_datatab,
wa_itab TYPE t_datatab,
wa_datatab type t_datatab.
DATA: it_raw TYPE truxs_t_text_data.
At selection screen
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
field_name = 'P_FILE'
IMPORTING
file_name = p_file.
*START-OF-SELECTION.
START-OF-SELECTION.
SELECT * FROM sdokprop INTO CORRESPONDING FIELDS OF TABLE itab
WHERE PROP_NAME LIKE 'DMS%'.
WRITE / 'Before Modification'.
LOOP AT itab INTO wa_itab.
WRITE:/1 wa_itab-PROP_NAME, 27 wa_itab-PROP_CHECK, 31 wa_itab-TABNAME, 65 wa_itab-FIELDNAME, 96 wa_itab-DESCRIPT.
CLEAR wa_itab.
ENDLOOP.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
I_FIELD_SEPERATOR =
i_line_header = 'X'
i_tab_raw_data = it_raw " WORK TABLE
i_filename = p_file
TABLES
i_tab_converted_data = it_datatab[] "ACTUAL DATA
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
END-OF-SELECTION.
END-OF-SELECTION.
WRITE / 'After Modification'.
MODIFY sdokprop FROM TABLE it_datatab.
LOOP AT it_datatab INTO wa_datatab.
WRITE:/1 wa_datatab-PROP_NAME, 27 wa_datatab-PROP_CHECK, 31 wa_datatab-TABNAME, 65 wa_datatab-FIELDNAME, 96 wa_datatab-DESCRIPT.
CLEAR wa_datatab.
ENDLOOP.
IF sy-subrc = 0.
MESSAGE 'successfull' TYPE 'S'.
ELSE.
MESSAGE 'failed' TYPE 'E'.
ENDIF.
Regards,
Bhaskar -
Opening an Excel file configures MSO Pro 2007
Using Win7 & MSO Pro 2007.
When I try to open an Excel file two unusual things happen after the splash window opens
1> A message box opens and says stdole32.tlb. When dismissed by clicking
[OK]...
2> A window opens and starts to configure MSO Pro 2007 which takes 20-40 seconds to complete
Taking a clue from KB 2528748 ..
3> I looked in the registry at: HKCU\Software\Microsoft\Office\12.0\Excel\Options and
found no NoReReg Key, so
4> I executed , in the RUN BOX..
reg add HKCU\Software\Microsoft\Office\12.0\Excel\Options /v NoReReg /t REG_DWORD /d 1
The registry now contains the appropriate noReReg key BUT the the behavior remains unchanged.
Is this likely due to the unclear message about stdole32.tlb at
1>?
Could some one help me unravel and fix this nuisance problem?
Thanx
ArvinHi,
Please try the following method and check if it is helpful:
Right Click the Excel>Properties>Compatibility>Choose Run this program in compatibility mode and Run this program as administrator
Copy/paste a new stdole32.tlb from installation copy or other pc
More similar issue:
http://answers.microsoft.com/en-us/office/forum/office_2007-office_install/stdole32tlb-file-missing/ba3e940d-d628-4334-ac89-5e8ac9878093
http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_28171576.html
http://andyjwilliams.co.uk/technology/vista-office-2007-installation-problems-stdole32tlb/
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Regards,
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Opening an excel file from a button. square brackets in filename
Internet explorer 6. Apex 3.1
When I open an excel file (via a button) , it has the filename as follows:
production_report[1].csv
The prompt to save or open has the name as production_report.csv
This prevents people saving the opened file as square brackets are not allowed in the file name.
Is this an apex issue (ie a problem with the way I specify the filename) or a browser issue, and is there a solution?
I am passing the filename in to my excel download page using the items/values settings.
eg
ITEM P12_FILENAME
ITEM VALUE production_report.csvYes, It works on firefox. It is only an issue with Internet Explorer.
However our web based application has to use IE and therefore when it calls apex it is in an IE browser.
I am really just producing a csv file, and opening it in excel. If this was fixed (or customisable in some way in IE that would help) -
How to stop prompt while opening an excel file in new window
hi all
i made one table in jsf and i am having two icons corresponding to each row one for open and one for save. on the click of open i am calling web services getting the excel file and opening it but it is happening only . when i choose to open option from the prompt which comes when i click on the link. how to remove that prompt so that on click of the open it should directly open the excel file. plzzzzzzzzz heplin the url of the new page that you are opening add --> &RetainAM=Y at the end.
Following points should be useful :
Suppose ,you have to open a new window from your page by clicking on a link or a button and after opening, when you click on any button in the parent page, if you are getting a session out error… try the following solutions:
1. Add retainAM=Y in the destination URI of the button or link
2. If you have the back button handling in your code, ensure that…
if (!pageContext.isBackNavigationFired(true)) is written instead of
if (!pageContext.isBackNavigationFired(false))
3. Also ensure that the trasaction name is exactly same in both startTransactionUnit and end TransactionUnit
TransactionUnitHelper.startTransactionUnit(pageContext, "sameName");
TransactionUnitHelper.endTransactionUnit(pageContext, " sameName "); -
how do you open an excel file in my jsp and target it to a table?
can't it be done using the file class?
i just want to open the excel file, that's all--
Open means what ?
See if this is useful
String myDB = "jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ=c:/book.xls;"
+ "DriverID=22;READONLY=false";
//con=DriverManager.getConnection("jdbc:odbc:myExcel");
con=DriverManager.getConnection(myDB,"","");
dbmd=con.getMetaData();
stat=con.createStatement();
rs=stat.executeQuery("Select * from `Sheet1$`");//[Sheet1$]--
I think it is not possible with File class. and if it is so
then how you are going to handle the data ? -
Unable to export report to excel file from SAP
Hi all,
I have a problem to download data from a report. The XL gets downloaded in a different format than my colleague.
We are using the same XL version but two weeks back the SAP GUI 730 got reinstalled to my machine and since then the problem
started.
Can you please confirm is there is any particular user settings for this?
I have login in any different working ( SAP Export ) machine with my login ID and Password and try to export the report to excel file from SAP, and I have same issue . Same we have requested another user to login in my machine with their ID and Password and check the same, They have tried and its working for then in my machine.
see screenshots attached.
Thanks.Execute report>
Right click anywhere in the report output and select Spreadsheet.
A pop up box will appear, select which export option you would like to use and click green check.
NOTE: If you don't see this option then goto Settings>Switch List then try above said.
Thanks,
Kumar
Maybe you are looking for
-
MacBook Pro running slow please HELP..!!!
Hi Need some help, my MacBook Pro is running slow it takes like 10 - 13 minutes to start, most of the times when I'm going to type something, it doesn't matter which app do I use (Facebook, messages, search on google, it get stuck once in a while and
-
Dear all, We have certain foreign vendors for which transaction is already completed.Balance is laying zero in their accounts.Now when we are clearing those open items the system takes the exchange rate of current date. In which we are not able t
-
I'm new to Java and am just going through some basic exercises with the Date object. Consider the following method of an invoice object: public Date getDueDate() long current = invoiceDate.getTime(); Date date = new Date(current
-
Hi Experts, I have a requirement to view standard tabs on BP transaction which are not visible. For Eg: While Creating Business partner with role as (BP General) I could see the following tabs :- Address , Address Overview , Identification , Control
-
OWB import fails with corrupted repository error
Hi, Please anyone can suggest a solution for the below problem. I am trying to import set of changes done in development through a Colllection into acceptance. But it keeps failing due to the 'Corrupted Repository' error. The OWB Version is OWB 11.1.