Use of FM KCD_EXCEL_OLE_TO_INT_CONVERT on WebGui
Hi all,
Anyone knows if there is an issue of using KCD_EXCEL_OLE_TO_INT_CONVERT on the Web Gui? Because I have tested my program on the SAP system and it works fine. But when I tested it on the Web Application Server, the program raises an exception (a run time error)- Exception condition "UPLOAD_OLE" raised.
The error analysis is as follows:
A RAISE statement in the program "SAPLKCDE" raised the exception condition "UPLOAD_OLE". Since the exception was not intercepted by a superior program, processing was terminated.
Trigger Location of Runtime Error
Program SAPLKCDE
Include LKCDEU03
Row 43
Module type (FUNCTION)
Module Name KCD_EXCEL_OLE_TO_INT_CONVERT.
My program uses this function to convert data from an excel file to an internal table and I want to be able to read the time data in the excel file as it is entered in the excel file(excel auto converts anything written in HH:MM:SS to custom text format for the cell format, so if i use WS_UPLOAD or GUI_UPLOAD, it won't be able to read the time, but this module KCD_EXCEL_OLE_TO_INT_CONVERT will be able to do that, but the problem is it can't work on WebGui). Is this a known issue? Or can anyone suggest another FM that will work on WebGui to convert data from excel to internal table and reading the data as it is entered in the excel file, instead of converting to TEXT?
Thank you for your time.
I have found me with the same problem, and simply has resolved adding the extension of the file.
We are worinking at SAP ERP2004 and office 2003.
Example:
1. with these data fails
FM " KCD_EXCEL_OLE_TO_INT_CONVERT "
FILENAME C:\TEMP\Notas de venta
I_BEGIN_COL 1
I_BEGIN_ROW 8
I_END_COL 7
I_END_ROW 33
2. with these data does not give error
FM " KCD_EXCEL_OLE_TO_INT_CONVERT "
FILENAME C:\TEMP\Notas de venta.xls
I_BEGIN_COL 1
I_BEGIN_ROW 8
I_END_COL 7
I_END_ROW 33
I hope that this comment help you.
Similar Messages
-
Open PDF-File in WEBGUI ?
hi there,
i have business documents in PDF-format.
i am opening it in ABAP with
CALL METHOD cl_bds_document=>display
this works perfect for SAP WINGUI, acrobat reader is opened with the document.
BUT: i have to use my abap in SAP WEBGUI.
there i only get the info 'xxxxxx bytes downloaded' and NO acrobat reader is opened. it seems
that the document is only downloades somewhere.
any ideas ? i need to open the document
reg, Martinhi,
i have tried out with the following code:
but at the end nothing is displayed in webgui, the abap runs trough 'empty'
IF cl_htmlviewer IS INITIAL.
CREATE OBJECT my_container
EXPORTING
container_name = 'HTML'.
CREATE OBJECT cl_htmlviewer
EXPORTING
parent = my_container.
ENDIF.
CALL METHOD cl_htmlviewer->load_data
EXPORTING
type = 'APPLICATION'
subtype = 'pdf'
IMPORTING
assigned_url = gf_url
CHANGING
data_table = gt_content
EXCEPTIONS
dp_invalid_parameter = 1
dp_error_general = 2
cntl_error = 3
OTHERS = 4.
CALL METHOD cl_htmlviewer->show_url "data
EXPORTING
url = gf_url
in_place = 'X'
EXCEPTIONS
cntl_error = 1
cnht_error_not_allowed = 2
cnht_error_parameter = 3
dp_error_general = 4
OTHERS = 5. -
Blank SU53 transaction via WebGui.
Hi Experts,
We are facing a problem using the SU53 transaction via WebGui.
You can recreate the error using T-code SICF via testing the webgui service and loging on to xxx 100.
- Call the SU53 transaction using the transactioncodefield in the WebGui.
- As a result you will receive an empty screen
We already applied SAP Note 1111145 , but it doesn´t.
Please suggest a solution.
Thanks,
SridharCould you solve your problem? I got a similar one, I want to use transaction ES32 via CALL TRANSACTION to jump into edit mode of an installation. The program says that there is no dynpro field EANLD-PRORATE.
My coding:
DATA: lt_bdc_data TYPE TABLE OF bdcdata,
wa_bdc_data LIKE LINE OF lt_bdc_data.
CLEAR lt_bdc_data.
CLEAR lt_bdc_data[].
CLEAR wa_bdc_data.
wa_bdc_data-program = 'SAPLES30'.
wa_bdc_data-dynpro = '0110'.
wa_bdc_data-dynbegin = 'X'.
APPEND wa_bdc_data TO lt_bdc_data.
CLEAR wa_bdc_data.
wa_bdc_data-fnam = 'EANLD-ANLAGE'.
wa_bdc_data-fval = wa_mscons_chk-anlage.
APPEND wa_bdc_data TO lt_bdc_data.
CLEAR wa_bdc_data.
wa_bdc_data-fnam = 'BDC_OKCODE'.
wa_bdc_data-fval = '=CHNG'.
APPEND wa_bdc_data TO lt_bdc_data.
CLEAR wa_bdc_data.
wa_bdc_data-fnam = 'EANLD-STICHTAG'.
wa_bdc_data-fval = wa_mscons_chk-ab.
APPEND wa_bdc_data TO lt_bdc_data.
CLEAR wa_bdc_data.
wa_bdc_data-fnam = 'EANLD-PRORATE'.
wa_bdc_data-fval = 'X'.
APPEND wa_bdc_data TO lt_bdc_data.
CALL TRANSACTION 'ES32' USING lt_bdc_data.
I also tried to put BDC_OKCODE at the end. Any ideas? -
Message exchanging by using Support Desk
Hi everyone.
I want to know wheher it is possible or not that user can exchange message
by using only R/3.
I know it is possible that user can register message.
But if answer from Support Desk is not satisfied , message exchange is go on.
thanks!
ToshiDear Toshi,
If an Support Desk message has to be replied by the creator of the message, he has to access the message. ( using either Solution Manager or Webgui or ICwebclient ). There is no chance that he can append the message using the satellite system unless you have some kind of an transaction developed so that end users can access and reply to their messages or add more information to their messages if it is required.
I hope that this clarifies the doubt.
Regards
Amit -
hi all,
the following report fetches data from an excel sheet to an internal table itab and then data from this itab is populated into an idoc.
The segment ZVISTAPMS has two char fields.
at the following point:
Create a data segment for each line of I_ZVISTA
LOOP AT ITAB INTO WA_ZVISTA_PM.
MOVE-CORRESPONDING WA_ZVISTA_PM TO WA_Z1VISTAPM.
data is not getting transferred to wa_zvistapm .
kindly help ....
regards
shilpi
REPORT ZIDOC3.
DATA : ITAB TYPE TABLE OF DATA_TAB.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
EXPORTING
FILENAME = 'E:\K.CSV'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = SPACE
CODEPAGE = SPACE
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
VIRUS_SCAN_PROFILE =
IMPORTING
FILELENGTH =
HEADER =
CHANGING
DATA_TAB = 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
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CONSTANTS:
C_MESTYP TYPE EDIDC-MESTYP VALUE 'ZVISTAPMSH',
C_DOCTYP TYPE EDIDC-IDOCTP VALUE 'ZVISTAPM01S',
C_SEGNAM TYPE EDIDD-SEGNAM VALUE 'Z1VISTAPMS'.
DATA:
I_ZVISTA TYPE ITAB OCCURS 6000,
I_EDIDC TYPE EDIDC OCCURS 0,
I_EDIDD TYPE EDIDD OCCURS 0,
WA_ZVISTA_PM TYPE ITAB,
WA_EDIDC TYPE EDIDC,
WA_EDIDD TYPE EDIDD,
WA_Z1VISTAPM TYPE Z1VISTAPMS,
V_OCCMAX TYPE IDOCSYN-OCCMAX,
V_NBSEG TYPE I.
CLEAR WA_ZVISTA_PM.
CLEAR WA_EDIDC.
Save the message type and the basic IDoc type
in the control segment
MOVE C_MESTYP TO WA_EDIDC-MESTYP.
MOVE C_DOCTYP TO WA_EDIDC-IDOCTP.
Retrieve the maximum number of segments in the basic IDoc* typeSELECT MIN( OCCMAX ) FROM IDOCSYN INTO V_OCCMAX WHERE IDOCTYP EQ C_DOCTYP AND SEGTYP EQ C_SEGNAM.
SELECT MIN( OCCMAX )
FROM IDOCSYN
INTO V_OCCMAX
WHERE IDOCTYP EQ C_DOCTYP AND SEGTYP EQ C_SEGNAM.
Create a data segment for each line of I_ZVISTA
LOOP AT ITAB INTO WA_ZVISTA_PM.
MOVE-CORRESPONDING WA_ZVISTA_PM TO WA_Z1VISTAPM.
CLEAR WA_EDIDD.
MOVE C_SEGNAM TO WA_EDIDD-SEGNAM.
MOVE WA_Z1VISTAPM TO WA_EDIDD-SDATA.
APPEND WA_EDIDD TO I_EDIDD.
CLEAR WA_ZVISTA_PM.
CLEAR WA_Z1VISTAPM.
ENDLOOP.
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
EXPORTING
MASTER_IDOC_CONTROL = wa_edidc
OBJ_TYPE = ''
CHNUM = ''
TABLES
COMMUNICATION_IDOC_CONTROL = i_edidc
MASTER_IDOC_DATA = i_edidd
EXCEPTIONS
ERROR_IN_IDOC_CONTROL = 1
ERROR_WRITING_IDOC_STATUS = 2
ERROR_IN_IDOC_DATA = 3
SENDING_LOGICAL_SYSTEM_UNKNOWN = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.Hi,
You can use
TEXT_CONVERT_XLS_TO_SAP
or
'KCD_EXCEL_OLE_TO_INT_CONVERT' for excel to internal table
reward points if helpful.
Thanks and regards. -
How to load the values in excel sheet directly into the table of smart form
could u help me out of this
Hi krishna,
insert this code in u r smartform print program
parameter p_file type rlgrap-filename.
at selection-screen on value-request for p_file.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'P_FILE'
IMPORTING
FILE_NAME = p_file
start-of-selection.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
I_FIELD_SEPERATOR =
I_LINE_HEADER = 'X'
i_tab_raw_data = it_type
i_filename = p_file
tables
i_tab_converted_data = itab[]
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.
<b>U can also use ALSM_EXCEL_TO_INTERNAL_TABLE or KCD_EXCEL_OLE_TO_INT_CONVERT</b>
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = wf_filename
i_begin_col = v_start_col
i_begin_row = v_start_row
i_end_col = v_end_col
i_end_row = v_end_row
TABLES
intern = int_excel
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
EXPORTING
filename = p_file
i_begin_col = p_scol
i_begin_row = p_srow
i_end_col = p_ecol
i_end_row = p_erow
TABLES
intern = LT_INTERN
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3. -
Reading long text from excel file to an internal table
Hi
Can any body tell me how to read long text from excel file to an internal table.
When i am using this FM KCD_EXCEL_OLE_TO_INT_CONVERT then it is reading only 32 characters from each cell.
But in my excel sheet in one of the cell has very long text which i need to upload into a internal table.
may i know which FM or what logic i need to use for this problem.
RegardsHi,
Here is an example program. It will upload an Excel file with two columns. You could also assign the Excel structure dynamically, but I wanted to keep the example simple. The main point is that the internal table (it_excel in this example) must match the Excel structure that you want to convert.
Remember, this is just an example to help you figure out how to properly use the technique. It will certainly need to be modified to fit your requirements, and as always there may be a better way to get the Excel converted... this is just one possibility that has worked for me in the past.
*& Report zexcel_upload_test *
REPORT zexcel_upload_test.
TYPE-POOLS: truxs.
TYPES: BEGIN OF ty_excel,
col_a(10) TYPE n,
col_b(35) TYPE c,
END OF ty_excel.
DATA: l_data_tab TYPE TABLE OF string,
l_text_data TYPE truxs_t_text_data,
l_gui_filename TYPE string,
it_excel TYPE TABLE OF ty_excel.
FIELD-SYMBOLS: <wa_excel> TYPE ty_excel.
PARAMETERS: p_file TYPE rlgrap-filename.
* Pass the file name in the correct format
l_gui_filename = p_file.
* Upload data from PC
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = l_gui_filename
filetype = 'ASC'
has_field_separator = 'X'
CHANGING
data_tab = l_data_tab
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
OTHERS = 17.
IF sy-subrc <> 0.
* MESSAGE ...
EXIT.
ENDIF.
* Convert from Excel into the appropriate itab
l_text_data[] = l_data_tab[].
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_field_seperator = 'X'
i_tab_raw_data = l_text_data
i_filename = p_file
TABLES
i_tab_converted_data = it_excel
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ...
EXIT.
ENDIF.
LOOP AT it_excel ASSIGNING <wa_excel>.
* Do something here...
ENDLOOP.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
PERFORM filename_get CHANGING p_file.
* FORM filename_get *
FORM filename_get CHANGING p_in_file TYPE rlgrap-filename.
DATA: l_in_file TYPE string,
l_filetab TYPE filetable,
wa_filetab TYPE LINE OF filetable,
l_rc TYPE i,
l_action TYPE i,
l_init_dir TYPE string.
* Set the initial directory to whatever you want it to be
l_init_dir = 'C:\'.
* Call the file open dialog without multiselect
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'Load file'
default_extension = '.XLS'
default_filename = l_in_file
initial_directory = l_init_dir
multiselection = 'X'
CHANGING
file_table = l_filetab
rc = l_rc
user_action = l_action
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
OTHERS = 4.
IF sy-subrc <> 0.
REFRESH l_filetab.
ENDIF.
* Read the selected filename
READ TABLE l_filetab INTO wa_filetab INDEX 1.
IF sy-subrc = 0.
p_in_file = wa_filetab-filename.
ENDIF.
ENDFORM. " filename_get
Regards,
Jamie -
Upload excel data into Internal table
Hi,
I'm trying to upload excel data into internal table, well the excel file layout will be different on each run of the report.
Excel file will have 60 columns and 500 record limit. I can upload the excel data using 'ALSM_EXCEL_TO_INTERNAL_TABLE' and 'KCD_EXCEL_OLE_TO_INT_CONVERT' but the output table is generates 60 lines for each record i.e.., 60 * 500 = 30,000 which could cause performance.
I try with the FM 'TEXT_CONVERT_XLS_TO_SAP', but this will only work if the file structure is static. It didn't work for dynamic file layout. Even GUI_UPLOAD doesn't work to upload excel file, it will work if I convert the file to Tab delimited file.
Please advise if you know any alternate procedure to upload excel data into internal table.
Thanks,
Kumar.Moderator message - Cross post locked
Rob -
Desktop Office Integration in SAP GUI for HTML - dont works?
Hello all,
my program reads an Excel-File with multiple Worksheets into SAP by using class:
CL_GUI_CUSTOM_CONTAINER
and intefaces:
I_OI_CONTAINER_CONTROL,
I_OI_DOCUMENT_PROXY AND
I_OI_SPREADSHEET.
All works fine, but when I integrated the SAP Transaction into our Portal and using the Program through the WEBGUI it dont works.
It looks like that he can't create a container Control, to open the File in Background in Excel.
I worked with Desktop Office Integration to read all Worksheets into SAP, like here:
http://abap-explorer.blogspot.com/2008/12/upload-data-from-multiple-worksheets-of.html
Is there any solution to solve my problem?
it returns me this message
"Cannot initialize control"
It seems that the error comes from this Method in Webgui:
Data iref_document type ref to i_oi_document_proxy.
call method iref_document->open_document
exporting
document_title = 'Excel'
document_url = v_document_url
open_inplace = 'X'
importing
error = iref_error.
if iref_error->has_failed = 'X'.
call method iref_error->raise_message
exporting
type = 'I'.
leave list-processing.
exit.
endif.
I hope someone can help me.
Thanks.
EDIT:
Today I tested the ABAP Report SAPRDEMOOFFICEINTEGRATION in our webgui
it returns me this error:
In dem Programm "C_OI_CONTAINER_CONTROL_CREATORCP" wurde durch eine
RAISE-Anweisung die Exception
(Ausnahmebedingung) "JAVABEANNOTSUPPORTED" ausgelöst.
Da die Exception nicht durch ein in der Aufrufhierarchie
Auslösestelle des Laufzeitfehlers
Programm C_OI_CONTAINER_CONTROL_CREATORCP
Include OFFICEINTEGRATIONDCCIMP
Zeile 70
Modultyp (METHOD)
Modulname I_OI_CONTAINER_CONTROL~INIT_CONTROL
Edited by: Sascha Baumann on Jul 15, 2009 9:18 AM
Edited by: Sascha Baumann on Jul 16, 2009 8:04 AMHi Sascha,
I have the same issue as yours.
Did you find a way to open your excel file in the WebGui?
Regards, -
Hi All,
I hit a road block on providing a solution where the outside vendors could carry out the redlining and markups on a PDF document published on the portal. DMS is used as the back end and I need to export back the markups files along with the original image. I taught of redlining features of cFolders which opens up in a browser and saves the files on the SAP database which could be latter exported back to DMS.
But I am not sure if the ECL viewer has to be installed at the vendors desktop for redlining in CFolder?
Did any of you hit the same path for any of your business requirement for redlining on PDF documents on portal? What are the third party softwares or development which could be considered in this scenario. Please share!!
PaddyHi Parry,
I agree with you. Hope in the next version of ECL Viewer this will be taken care of, as its the requirement of many businesses.
But if you are going to use the SAP DMS on webGUI then it would be easier for you to use the DMS red-lining functionality.
Alternatively till you get the PDF red-lining in cFolders, there is a work-around available.
Try converting your PDF files into tiff files and then you will be able to make red-lining in cFolders.
Regards,
Nishit Jani
Award points for useful information. -
Unable to Render IAC's in EP6 in Streamline
Hello,
We are now switching about 10 function to Integrated ITS 640. All but
one will run through WebGui (SL). The one IAC has been running using a
portal style but now we'd prefer it to look just as the others through
WebGui are using StreamLine. When I run a trace I see that the first
call to webgui has a ~design=portal_theme parameter inserted in the
URL. I believe this is wired into the master IAC iView. One note mentions
removing this parameter from the the master IAC iView UTL Template
parameter but this is not reccomemded and I think is outdated.
If I enter the ~design=sap_tradeshow parameter in the IAC service settings this
accomplishes setting that design but we want to use StreamLine to match
the webgui theme used for other transactions. When I look on the portal
for the themes avaialble the following are included. sap_tradeshow,
sap_standard, sap_highcont, sap_hcb, sap_chrome. sap_streamline seems
to be missing and we are unable to have consistnt look and feel between
portal launched transaction iViews using webgui (streamline) and IAC's.
Thanks,
Doug
We are on ECC 5.0
ITS 640
Edited by: Doug Steckel on May 20, 2009 11:43 AMI'd start by using In/Out marks to export the segments of the sequence. Start by dividing it in half. If one half succeeds and the other half fails, then bisect the part that failed. If the problem is a clip or effect or transition, this will allow you to isolate the problem.
Does the sequence contain any AE comps or 3rd party effects? If so, then I'd focus on them because the crash log points to dynamiclinkmanager. -
Hi frends,
Iam using the FM 'KCD_EXCEL_OLE_TO_INT_CONVERT' to upload
the data of transcation code 'F-02' using session method and call transaction method. what feilds i have to use in progmme. I want the
progmme codes.
Plz help me,
Thanks and regards in advance.hi,
Check this out
http://www.sap-img.com/abap/excel_upload_alternative-kcd-excel-ole-to-int-convert.htm
Regards,
Santosh -
How to configure an external Cisco MDS 9124 Switch
I have worked with some other Fibre switches before but not Cisco and was wondering if someone can pass me some quick info on how to configure the MDS 9124. I saw the Quick Guide and it briefly talked about config, but do I have to go thru hyperterminal to do the initial IP config? Is there a default one already I can use to get to the WebGUI. Some of the ones I worked with (like the ones that come with the Bladecenter) have a default IP, where I can enter the IP into the web browser and access the GUI right away and start doing configs.
With the MDS 9124, can I do this? Or do I have to configure IP thru hyperterminal and then install Fabric Manager etc.
Thanks in advance for any help!I assume that you actually read the guide:
http://www.cisco.com/en/US/docs/storage/san_switches/mds9000/hw/9124/quick/quide/9124QSG.html
Setup of the network is pretty clear. If the switch is brand new, you have to give it an IP address. Generally just follow the dotted line and don't vary except if you know what you are doing.
Once its on the network, DM and FM can do the rest.
The 9124e's don't have serial ports so the OA looks after that for you. -
Hi all,
I am an MM consultant in US and trying to learn SRM on my own. How do i get SRM system access to practice? Please let me know.
Thanks,
Neetha.Hi Sushil,
The following might be a useful SDN thread for you:
[Apache Reverse Proxy to 2 ITS Hosts |Apache Reverse Proxy to 2 ITS Hosts;
Shows how the rewrite rules are written.
You say above:
When I test webgui service, I am getting the logon screen but when testing mime, it throws an error.(Could this be a reason for failure)."
Dont worry about this - this is not a useful test if I understand correctly what you did here. Did you try and right click on MIME when viewing it in transaction SICF and then you select "Test Service" from the Context menu? If YES then this is not a useful test. If the WEBGUI works correctly i.e in that it shows images and icons correctly, then WEBGUI's MIME's are being accessed correctly.
Regards,
Oisin -
Why do we use TEXT_CONVERT_XLS_TO_SAP??????? what exactly this FM perform???????????
Hi,
ABAP code for uploading an Excel document into an internal table. See code below for structures. The code is based on uploading a simple Excel spreadsheet or for an actual Excel file click here.
There are also a couple of alternatives which use fucntion modules KCD_EXCEL_OLE_TO_INT_CONVERT
and ALSM_EXCEL_TO_INTERNAL_TABLE but the method below is by far the simplest method to use.
*: Description :
*: This is a simple example program to get data from an excel :
*: file and store it in an internal table. :
*: Author : www.sapdev.co.uk, based on code from Jayanta :
*: SAP Version : 4.7 :
REPORT zupload_excel_to_itab.
TYPE-POOLS: truxs.
PARAMETERS: p_file TYPE rlgrap-filename.
TYPES: BEGIN OF t_datatab,
col1(30) TYPE c,
col2(30) TYPE c,
col3(30) TYPE c,
END OF t_datatab.
DATA: it_datatab type standard table of 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.
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.
LOOP AT it_datatab INTO wa_datatab.
WRITE:/ wa_datatab-col1,
wa_datatab-col2,
wa_datatab-col3.
ENDLOOP.
Maybe you are looking for
-
Crystal Reports VS 2008 "The request could not be submitted for background processing"
Hi, I am going to try to explain this issue the best I can. Please let me know if you need any other information or have any ideas as I have exhausted my resources. We have an ASP.NET application that has highly formatted crystal reports in them that
-
HT5278 I can't get my IPad2 to download th IOS5. How do I do it?
I can not download IOS5 on my IPad2 from ITunes . Can you help me? Theresa Bradshaw
-
CPO 3.0 Security Questions
Perhaps there is documentation that tells me this, but I only have the changelog and install docs. I need to submit a design document to our security team before CPO will be allowed to run any of our PROD environments. I understand that I can
-
Partner data copy from notification to repair order
Hi, all I have this question, where I want to use one time customer for my repair order. Usually I add this one time customer in notification, when I creating service order (SM03)from repair order it not showing the customer in the service order... a
-
Last night I had difficulty syncing my iPad to my laptop. I had purchased some new music on my laptop and wanted to pull them over to my iPad for listening. I couldn't ever get it to start Step 5 of 5 - just kept spinning. I gave up and we just went