Error Raised while uploading Excel file to SAP
Hi All,
I am getting error while uploading excel file into SAP using the function module 'TEXT_CONVERT_XLS_TO_SAP'.
Error Message is UX(893) - 'Excel file & cannot be processed' .
Please let me know what went wrong.
Regards,
Deepthi
Hi,
1 .TEXT_CONVERT_XLS_TO_SAP Funtion module will work if you have installed Microsoft Excel at front end.
2. Whenyou declare internal table for upload, specify the char only in the strcture ,don't specify any data element or dictionary reference. If the data element and dictionaly reference is character field then its ok.
eg.
types:begin of st_data,
field1 type char15,
field2 type char23,
endif.
3. Close the excel before you upload
Hope this might solve your issue.
Regards
Aromal R
Similar Messages
-
Error message while upload excel file (with macro) to sap (iw28)
While upload excel file to sap through iw28, i get error message (vb)
u2022 i have to say that the excel file contain macro , with out the macro , work fine .
u2022 The error display just in refresh command.
the error message :
Public Sub ALV_CUS_Exit()
Dim objs As ChartObjects
Dim obj As ChartObject
Dim sheet As Worksheet
Dim r As Range
For Each sheet In Sheets
Set objs = sheet.ChartObjects
For Each obj In objs
Set r = Sheets("RawData").UsedRange
obj.Chart.SetSourceData Source:=r
Next obj
Next sheet
End Subhi,
This is releated to the ABAP coding...There might be some ouput problem in the Abap list viewer...Pls check it with the ABAP consultant...
Regards
Priyanka.P -
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. -
Uploading Excel File in SAP In Background Mode
Dear All,
We require to upload Excel File in SAP in Background Mode.
Could anyone suggest me the Function Module for this?
Or any other method..........please.
Thanks in advance for ur kind help.
Best Regards,
Prasadhi check this..
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2
Download in Background
http://sapabap.iespana.es/sap/info/rfcexec/rfcexec_e.htm
Reward if find useful -
Error while uploading excel file
Hi All,
I am using class cl_gui_frontend_services=>gui_upload, to upload an excel file for ASCII as well as for DAT format.
I am passing the following parameters to the method :
IF ascii EQ 'X'.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = gv_filename
filetype = 'ASC'
has_field_separator = space
CHANGING
data_tab = inputdata_itab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
not_supported_by_gui = 17
error_no_gui = 18
others = 19
ELSEIF dat EQ 'X'.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = gv_filename
filetype = 'DAT'
has_field_separator = 'X'
CHANGING
data_tab = inputdata_itab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
not_supported_by_gui = 17
error_no_gui = 18
others = 19.
endif.
In both the cases it is giving junk characters in the inetrnal table 'inputdata_tab'.
I tried without using the separator also but still sam eerror.
Can anyone please help me out of this.
Thanks in Advance.
Sunanda.Hi Sunanda,
Kindly go through this link below link, have posted one wiki on this topic:
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/upload%252bexcel%252bdocument%252binto%252binternal%252btable
Hope it helps
Regrds
Mansi -
Problem while uploading excel file to server
Hello,
I have created an excel file using OLE and saved it to local desktop. Then I use GUI_UPLOAD to upload the excel into SAP and attach it to mail. but while using Function GUI_UPLOAD I am getting dump for CNTL_ERROR.
If I skip the process of excel creation by OLE and passes the excel file created earlier then it gives no dump and is executed successfully.
Kindly help on this.Hi Suchendar,
Try using the FM - F4_FILENAME to get the valid file name and use TEXT_CONVERT_XLS_TO_SAP FM to upload into SAP based on the required format.
Regards,
Suresh -
Uploading Excel file into SAP Database table?
I built a table in the SAP Data Dictionary, and i need to write a program that uploads the Excel table, into the SAP Database table. Does anybody have a sample program that may help me? Thanks!
TYPES:
BEGIN OF ty_upload,
matnr like mara-matnr,
meins like mara-meins,
mtart like mara-mtart,
mbrsh like mara-mbrsh,
END OF ty_upload.
DATA it_upload TYPE STANDARD TABLE OF ty_upload WITH header line.
DATA wa_upload TYPE ty_upload.
DATA: itab TYPE STANDARD TABLE OF alsmex_tabline WITH header line.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = 'C:\Documents and Settings\venkatapp\Desktop\venkat.xls'
i_begin_col = 1
i_begin_row = 1
i_end_col = 4
i_end_row = 65535
TABLES
intern = itab.
if not itab[] is initial.
loop at itab .
case itab-col.
when '0001'.
it_upload-matnr = itab-value.
when '0002'.
it_upload-meins = itab-value.
when '0003'.
it_upload-mtart = itab-value.
when '0004'.
it_upload-mbrsh = itab-value.
append it_upload.
clear it_upload.
clear itab.
endcase.
endloop.
endif.
loop at it_upload into wa_upload.
ztable-matnr = wa_upload-matnr.
ztable-meins = wa_upload-meins.
ztable-mtart = wa_upload-mtart.
ztable-mbrsh = wa_upload-mbrsh.
insert ztable.
endloop. -
Urgent: DBrefresh error 354 while creating control file, oracle9i, SAP R3
Hi experts,
I have created trace file in Source system and moved the same to target system and edited and then while executing the trace file to create control file the following eeror is coming
my trace file is like this. . .
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "P47" RESETLOGS ARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 255
MAXLOGMEMBERS 3
MAXDATAFILES 336
MAXINSTANCES 50
MAXLOGHISTORY 8168
'/oracle/P47/sapdata9/btabd_63/btabd.data63',
'/oracle/P47/sapdata9/stabi_27/stabi.data27',
'/oracle/P47/sapdata9/btabi_122/btabi.data122',
'/oracle/P47/sapdata9/stabd_28/stabd.data28',
'/oracle/P47/sapdata9/btabi_123/btabi.data123',
'/oracle/P47/sapdata9/btabd_64/btabd.data64',
'/oracle/P47/sapdata9/btabi_124/btabi.data124'
CHARACTER SET WE8DEC
i run command like this:
SQL> @/oracle/P47/saptrace/usertrace/control.sql
ORACLE instance started.
Total System Global Area 1249618992 bytes
Fixed Size 732208 bytes
Variable Size 788529152 bytes
Database Buffers 459022446 bytes
Redo Buffers 1335296 bytes
<b>354</b>
when I press 'enter' again SQL prompt is comming
Please help
rgdsHi markus,
thanks for reply . .
control files are not created. . . .
alertSID logs shows as follows
orap47> tail -f alert_P47.log
ARCH shutting down
Thu Dec 13 13:01:51 2007
ARC0: Archival stopped
Thu Dec 13 13:01:51 2007
ARC1: Archival stopped
Thu Dec 13 13:01:54 2007
ARCH: Archiving is disabled
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
<b>When @/oracle/saptrace/usertrace/control.sql command given in sepearate SQL window</b>
Thu Dec 13 13:03:37 2007
Starting ORACLE instance (normal)
Disable cache advisory with old cache parameters
Thu Dec 13 13:03:37 2007
WARNING: EINVAL creating segment of size 0x000000004b800000
fix shm parameters in /etc/system or equivalent
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
SCN scheme 3
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up ORACLE RDBMS Version: 9.2.0.4.0.
System parameters with non-default values:
processes = 80
sessions = 96
timed_statistics = TRUE
shared_pool_size = 704643072
enqueue_resources = 8000
control_files = /oracle/P47/sapdata1/cntrl/cntrlP47.dbf, /oracle/P47/sapdata2/cntrl/cntrlP47.dbf, /oracle/P47/sapdata3/cntrl/cntrlP47.dbf
db_block_buffers = 56033
db_block_checksum = FALSE
db_block_size = 8192
compatible = 9.2.0
log_archive_start = TRUE
log_archive_dest = /oracle/P47/saparch/P47arch
log_buffer = 1048576
log_checkpoint_interval = 0
db_files = 354
db_file_multiblock_read_count= 8
log_checkpoints_to_alert = TRUE
control_file_record_keep_time= 30
dml_locks = 2500
row_locking = always
replication_dependency_tracking= FALSE
transactions_per_rollback_segment= 20
rollback_segments = PRS_0, PRS_1, PRS_10, PRS_11, PRS_12, PRS_13, PRS_14, PRS_2, PRS_3, PRS_4, PRS_5, PRS_6, PRS_7, PRS_8, PRS_9
transaction_auditing = FALSE
remote_os_authent = TRUE
db_domain = world
parallel_max_servers = 20
hash_join_enabled = FALSE
background_dump_dest = /oracle/P47/saptrace/background
user_dump_dest = /oracle/P47/saptrace/usertrace
core_dump_dest = /oracle/P47/saptrace/background
optimizer_features_enable= 9.2.0
sort_area_size = 2097152
sort_area_retained_size = 0
db_name = P47
open_cursors = 800
optimizer_mode = choose
btree_bitmap_plans = FALSE
pushjoin_predicate = FALSE
optimizer_index_cost_adj = 10
newinitial_join_orders = FALSE
optimpeek_user_binds = FALSE
PMON started with pid=2
DBW0 started with pid=3
LGWR started with pid=4
CKPT started with pid=5
SMON started with pid=6
RECO started with pid=7
Thu Dec 13 13:03:39 2007
ARCH: STARTING ARCH PROCESSES
ARC0 started with pid=8
ARC0: Archival started
ARC1 started with pid=9
Thu Dec 13 13:03:39 2007
ARCH: STARTING ARCH PROCESSES COMPLETE
Thu Dec 13 13:03:39 2007
ARC0: Thread not mounted
Thu Dec 13 13:03:39 2007
ARC1: Archival started
ARC1: Thread not mounted
rgds -
Error while uploading .xml file for Customer/Vendor List for Italy
Hi All,
We are facing problem while uploading the .xml file in DMEE transaction for the new Customer/Vendor List for Italy.
We have followed the entire process given in the OSS Note(1090857).
We have SAP 4.6c and followed the below steps:
1. Created ID-FI-IT Development class
2. Added domains
3. Added Data elements
4. Tried to upload the given .xml file and got any error saying ".xml file could not be interpreted".
Also there is a .SAR file mentioned to upload if we receive any errors while uploading .xml file.
Tried uploading the .SAR file also. STill we are recieving the same Error.
Can any one of you help us out.
Thanks in Advance.
RameshOk, we upload .SAR file in this way:
1. unpack .SAR file with SAPCAR.EXE program. Yuo obtain 2 files
R492445.P9C and K492445.P9C
2. put K492445.P9C in directory \SAPMNT\TRANS\COFILES and put R492445.P9C in directory \SAPMNT\TRANS\DATA of your system (DEV, TST or PRD)
3. Use Tx STMS. If You want create DMEE tree in DEV system, go to DEV import queue. Choose menu Extras | Other requests | Add. Insert P9CK492445 in Transp. request field.
4. Import the request. This creates the DMEE tree. You don't need ti upload XML file after. You can see the DMEE tree created with Tx DMEE and inserting
Tree type UMS1
Format tree IT_CUST_VEN_LIST
5. after continue follow the note
I hope this help you
Roberto -
Error message while uploading the flat file
Hi Experts,
I am getting the error message while uploading the flat file.
Message class: MG
Number: 147
The message is: Several descriptions exist for the language JA.
Please guide me why this error is occuring.
Regards
Akshayhi,
how are you uploading the file and where ?
u can use open dataset , read dataset or gui_upload
check this link
http://help.sap.com/saphelp_nw04/helpdata/en/c8/e92637c2cbf357e10000009b38f936/frameset.htm -
SharePoint 2013 Foundation error when uploading Excel files
Hello
I have a specific problem. I have an xlsx file that I cannot upload in SharePoint. Normally our SharePoint can upload Excel files and other file formats normally but this one has data with nearly 5000 rows. The size of the file is less then 500 KB. The error
message is: "The URL is invalid. Perhaps it refers to a nonexistent file or folder, or it refers to a valid file or folder in the current Web." When I am uploading this file I am getting the same error message in every library. When I save
the file as a 97-2003 compatible xls then it works. Sometimes even Excel files with Macros won't upload.
Kind regards
ivicapro1987Hi,
This issue occurs when the Version column is configured as an Indexed Column.
To work around this issue, remove the Version column from the list of Indexed Columns for the list that has this issue. To do this, follow these steps:
Browse to the list where the issue exists.
In the ribbon, click the Library tab, and then click
Library Settings.
In the fields list, click Indexed Columns.
In the Indexed Columns list, click Version.
Click Delete, and then click OK.
Upload any files that you previously experienced the issue with.
Reference:
https://support.microsoft.com/kb/2796640?wa=wsignin1.0
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Error while accessing excel file using ODBC
Hi
I am getting the below error message while accessing excel sheet using ODBC from Oracle:
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from EXCL
Can anyone help me on this...
Cheers
Pradeep
Message was edited by:
user634393Hi
Thank you.Is there a way to read a file which is existing in the war file.
Regards
Anand Mohan
"Wenjin Zhang" <[email protected]> wrote:
>
>In Weblogic, if your files are archived in a WAR, you cannot get an entry
>as individual
>file since it is only bytes in a large archive file. So getRealPath will
>give
>you null result. If you only want the path, try to use other getXXXPath,
>getURL,
>or getURI method. If you want to read the content, use getResource.
>
>
>"Anand" <[email protected]> wrote:
>>
>>Hi
>>I am having problem while accessing the file located in the server from
>>a JSP
>>page. I am not getting the RealPath from a JSP page using getRealPath(request.getServletpath()).
>>
>>The same code is working if the jsp placd under defaultwebApp directory
>>and not
>>working if i create a war and deploy the same.
>>
>>I am using weblogic server 7.0 trail version.I am setting the context
>>path also.
>>
>>Can any help me in this regard.
>>
>>Thank And Regards
>>
>>Anand Mohan
>
-
Error while loading .sim file with sap tutor 2.2
Dear Gurus,
I had recorded a tutorial which is am attempting to edit now.
On opening the tutorial through the editor, I get the following message:
"The following error occured while opening the file:
error loading archive: no valid header or TOC found (80040002)"
I am able to edit other tutorials satisfactorily.
I seek guidance in resolving the error and opening the tutorial.
Note: I downloaded SAP Tutor from SWDC.
Regards,
AjayI was using the SAP Personal Player to play the tutorials. After I installed the licenced version from service.sap.com, I was able to open the .sim files.
Thanks! -
Getting error while uploading multiple files in sharepoint hosted app in 2013 with REST API
Hi All,
In one of my tasks, I was struck with one issue, that is "While uploading multiple files into custom list with REST API".
Iam trying to upload multiple files in library with REST calls for an APP development, my issue is if i wants to upload 4 image at once its storing only
3 image file and further giving "Conflict" error". Below is the attached screenshot of exact error.
Error within screenshot are : status Code : 409
status Text :conflict
For this operation i am uploading different files as an attachment to an list item, below is the code used for uploading multiple files.
my code is
function PerformUpload(listName, fileName, listItem, fileData)
var urlOfAttachment="";
// var itemId = listItem.get_id();
urlOfAttachment = appWebUrl + "/_api/web/lists/GetByTitle('" + listName + "')/items(" + listItem + ")/AttachmentFiles/add(FileName='" + fileName + "')"
// use the request executor (cross domain library) to perform the upload
var reqExecutor = new SP.RequestExecutor(appWebUrl);
reqExecutor.executeAsync({
url: urlOfAttachment,
method: "POST",
headers: {
"Accept": "application/json; odata=verbose",
"X-RequestDigest": digest
contentType: "application/json;odata=verbose",
binaryStringRequestBody: true,
body: fileData,
success: function (x, y, z) {
alert("Success!");
error: function (x, y, z) {
alert(z);Hi,
THis is common issue if your file size exceeds
upload a document of size more than 1mb. worksss well for kb files.
https://social.technet.microsoft.com/Forums/office/en-US/b888ac78-eb4e-4653-b69d-1917c84cc777/getting-error-while-uploading-multiple-files-in-sharepoint-hosted-app-in-2013-with-rest-api?forum=sharepointdevelopment
or try the below method
https://social.technet.microsoft.com/Forums/office/en-US/40b0cb04-1fbb-4639-96f3-a95fe3bdbd78/upload-files-using-rest-api-in-sharepoint-2013?forum=sharepointdevelopment
Please remember to click 'Mark as Answer' on the answer if it helps you
Maybe you are looking for
-
I enabled radio on my iPod Touch 2G...now I can't turn it off
I was breadboarding a microphone for my iPod Touch 2G using the headphone/mic jack as an input. I made a simple circuit to power the mics with an additional 2.4V (I suspected the PIP wasn't enough for the 4 mics I was using) but I left out the DC blo
-
How can I see my contacts from my phone on my iPad
How can I see my contacts from my phone on my iPad
-
How to bind complex input/output types in web service data control
Hi, I have created data control using external web service for simple input & output data type and its working fine. But I don't know how it can be done for complex data types. My external Web services have complex input & output types. Such as java
-
HTML 5 Compatible File Browser Control
Has anyone seen a a plugin or sample demonstrating a html 5 compliant file browser control for APEX 4.x? I know of a pay to use plugin but my office is leery about buying a 3rd party plugin. I know there are jquery plugins available, but was lookin
-
Accessing members of an "attached" movieclip
Hi, I have a movieclip in my Library and at runtime I attached it to the stage like so var classDefintion:Object = getDefinitionByName("pathOption_mc"); var pathOption:Sprite = new classDefintion(); pathOption.x=400; pathOption.y=200; addChild(pathOp