Data to Excel...Urgent
Hi All,
I have a below requirement
I have list of suppliers that I need the data for. what I would like for each supplier is the detailed AP and PO data from the last 12 months.I want to make sure that PO # is on both files.
Pl let me theknow this ASAP
Thanks in Advance
Regards,
GENERAL LEDGER
Information Systems
1. Structured Account Balances (Balance Sheet & P&L Account in FS Version Format)
S_ALR_87012279
2. GL Account Balances (Totals & Balances ) S_ALR_87012301
3. GL Line Items S_ALR_87012282
4. Statements for GL Accounts, Customers & Vendors S_ALR_87012332
5. Document Journal S_ALR_87012287
6. Compact Document Journal S_ALR_87012289
7. Line Item Journal S_ALR_87012291
8. Display of Changed Documents S_ALR_87012293
9. Invoice Numbers assigned Twice S_ALR_87012341
10. Gaps in Document Number Assignments S_ALR_87012342
11. Posting Totals Document Type wise S_ALR_87012344
12. Recurring Entry Documents S_ALR_87012346
Try all these Reports what ever u want u can take in the Selection screen enter your company code, Date from to
system will show the report u want press ctrl+y select what ever data u want and paste it in excel
Hope it helps u, Try - 2 GL Account Balances (Totals & Balances ) S_ALR_87012301
Similar Messages
-
Import data from table,export to excel----URGENT
Dear all ,
I have a requirement of importing data from database table and then export those data to excel. that means irrespective of column number and row number present in the table,i have to export that table's records to excel. In my from i have text field, by which user will enter table name, it will validate whether DB have that table....if that table present in DB , i have to export it's data to excel..............
any kind of help and suggestion is welcomeWelcome to the Oracle Forums. Please take a few minutes to review the following:
<ul>
<li>Before posting on this forum please read
<li>10 Commandments for the OTN Forums Member
<li>Announcement: Forums Etiquette / Reward Points
</ul>
Please provide us with your Forms version, Java version and Client OS version. This information is needed in order to offer you potential solutions. Performing this task in Forms 6i (Client/Server) is completly different than in Forms 9i/10g/11g.
With respects to your "Urgent!" request. You have to understand that forum contributers are all volunteers - this is not our full-time job. If your issue is truely urgent, it is always best to open a Service Request (SR) with Oracle Support than to rely on the forum for an urgent reply! ;-)
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Upload data from excel file -URGENT
Hi All,
Advanced thanks to ur reply
How to upload data from excel sheet to itab
what are the functional modules we are using for that
Please help me
i look forward to ur reply
Regards
Raja Sekhar.THi,
TYPE-POOLS: truxs.
DATA: i_text_data TYPE truxs_t_text_data,
v_filename_string TYPE string.
DATA: BEGIN OF itab OCCURS 0,
Name(30),
Phone(15),
Fax(500).
DATA: END OF itab.
PARAMETERS: p_file LIKE rlgrap-filename.
START-OF-SELECTION.
v_filename_string = p_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = v_filename_string
filetype = 'ASC'
has_field_separator = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
dat_mode = ''
IMPORTING
FILELENGTH =
HEADER =
TABLES
data_tab = i_text_data
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 ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_field_seperator = 'X'
I_LINE_HEADER =
i_tab_raw_data = i_text_data
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.
I think this code will help u.
With Regards,
Ranganathan -
Urgent - Migrate data from Excel sheets
Hello all..
I want to move data from excel sheets into oracle9i Database
I have a bout 50 table with average of 5000 row per table
How could I do it
I will be so obligated if you could detail it for me
Thanks in advanceI want to insert data using loader in the table Tablename
Name Type
CL_CL_CODE NUMBER(3)
SUBCL_CODE VARCHAR2(50)
SUBCL_NAME NUMBER(2)
P_CODE_LENTH NUMBER(3)
SCE_NAME VARCHAR2(50)
I use this statement:
load data
infile 'D:\Sqlldr\load.dat'
replace
into table subclasses
FIELDS TERMINATED BY ";" OPTIONALLY ENCLOSED BY '"'
(CL_CL_CODE,SUBCL_CODE,SUBCL_NAME,P_CODE_LENTH SCE_NAME)
I need to use default value for the column SCE_NAME,P_CODE_LENTH
what is the formula for this
Thanks -
Interactive Bar/pie chart and line graph, data from excel/text file -urgent
Hi,
I have a huge data in excell sheet which keeps updating every month. Data basically consists of service provider and there respective subscribers from various regions of the country over the years. The requirement is to give the viewers an interactive page where in they can make various combinations and can compare, cross examine data according to thier choice.
We want the pie chart / bar graph or line graph to be created on the fly according to the combination made by the user.
The site is hosted on a red hat linux server. how can a connection to the excel spreadsheet be made or is it possible to read from the text file if the entire data is exported to a text file.
Is there any ready made tool/code available which can be customised according to the need.
Thanx in advance
Regards
PrakashI certainly wouldn't pay for the graphing package at the previous link. check out http://www.object-refinery.com/jfreechart/ for a free, open-source, much better looking graphing package.
-
How to export the data to excel in OAF Page - Urgent
Hi All,
I have a developed a page wich dispaly the records based on some condition.
The Page has two regions.
1.RowLayout Region
2.Table Region
Both the regions are getting the data from two diffrent VOs.
In this case how to export the data to excel as the export button will not work if the page uses more than one VO(I think).
Please help me.
Thanks,
Srinivas
Edited by: SrinivasChanda on Oct 7, 2009 10:07 AMHi Gaurav,
Yes you are rite.When i tried exporting the data(which is coming from two different VOs altogether),i got only one region's data and then got error.
Please note: Two regions(RowLayout,Table) are getting data from two different VOs
below is one of the region(row layout) data:
Hierarchy Learning Certification Status Learning Certification Supervisor
Direct Reports Passed Only All Michael Swinnerton
below is the error:
<div CLASS="errorText">
<html lang="en-US">
<head>
<script>
function ignoreWarnAboutChanges(url)
document.location.href = url;
</script>
<title>Error Page</title>
<link rel="stylesheet" charset="UTF-8" type="text/css" href="/OA_HTML/cabo/styles/blaf.css">
<META name="fwk-error" content="Error occured while processing the request">
<META name="fwk-error-detail" content="oracle.apps.fnd.framework.OAException: Application: FND Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.io.IOException: Stream closed;
" at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)"
" at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:865)"
" at OAErrorPage.jspService(OAErrorPage.jsp:34)"
" at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"
" at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"
" at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"
" at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"
" at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"
" at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"
" at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:119)"
" at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:547)"
" at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:518)"
" at OAExport.jspService(OAExport.jsp:122)"
" at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"
" at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"
" at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"
" at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"
" at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"
" at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"
" at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)"
" at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)"
" at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)"
" at java.lang.Thread.run(Thread.java:534)"
## Detail 0 ##
java.io.IOException: Stream closed
" at java.io.BufferedWriter.ensureOpen(BufferedWriter.java:98)"
" at java.io.BufferedWriter.write(BufferedWriter.java:197)"
" at OAExport.jspService(OAExport.jsp:107)"
" at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"
" at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"
" at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"
" at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"
" at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"
" at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"
" at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)"
" at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)"
" at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)"
" at java.lang.Thread.run(Thread.java:534)"
java.io.IOException: Stream closed
" at java.io.BufferedWriter.ensureOpen(BufferedWriter.java:98)"
" at java.io.BufferedWriter.write(BufferedWriter.java:197)"
" at OAExport.jspService(OAExport.jsp:107)"
" at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"
" at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"
" at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"
" at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"
" at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"
" at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"
" at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)"
" at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)"
" at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)"
" at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)"
" at java.lang.Thread.run(Thread.java:534)"
">
</head>
<body>
<table width=100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">"
<tr> <td><img src="/OA_MEDIA/FNDSSCORP.gif" alt=""> </td></tr>
<tr> <td> </td>
<td> <a href= /OA_HTML/OALogout.jsp>Logout </a></td>
</tr>
<tr> <td width="100%" nowrap class="OraBGColorDark" > </td> </tr>
</table>
<p>
<center>
<table width="95%" border="0" cellspacing="0" class="OraBGAccentDark" cellpadding="0">
<tr> <td> </td> </tr>
<!-- <tr> <td class="OraErrorHeader"> <img src=/OA_HTML/cabo/images/errorl.gif> Error Page </td> </tr> -->
<tr> <td class="OraErrorHeader"> <center> Error Page </center> </td> </tr>
<tr> <td colspan=2 class="OraBGColorDark"> </td> </tr>
<tr> <td> </td> </tr>
<tr> <td colspan=2 class="OraErrorText" >You have encountered an unexpected error. Please
contact the System Administrator for assistance. </td> </tr>
<tr> <td colspan=2 class="OraErrorText"> Click <a href=javascript:ignoreWarnAboutChanges("/OA_HTML/OAErrorDetailPage.jsp")> here </a> for exception details.
</td> </tr>
</table>
</center>
</div>
</body>
</html>
Please help me to solve this issue.
Thanks,
Srinivas -
How to fetch data in Excel throuth oracle forms 10g on client machine
I am using developer suite 10g forms and i want to fetch data in excel through forms 10g on client machine
presently i m using OLE for fetching the data in excel , it is working fine but it generates the excel file on server machine and i want get the output excel on the client machine. Is there any parameter to set the destination {Server or Client} which decides the location of output file. If such is the case please let me know or please suggest what should i do. Please help me with proper solution.
thanks
ManojIf you have an "urgent" issue, I highly encourage you to contact Oracle Support. The forum probably isn't going to be your best source for "urgent" issues.
http://www.oracle.com/us/support/oracle-support-services-359636.html
https://support.oracle.com
This will be especially important if you are new to any of the products as you will likely need documentation and/or product updates in order to ensure the most stable environment possible.
There are a few publicly available documents which may help to get you started. In any case, these are just examples. They may or may not work to your liking. Further, in some cases they may not work at all. Many of the examples online are often outdated and do not function exactly as documented against other versions. Here is one:
http://www.oracle.com/technetwork/developer-tools/forms/howto-ole-090332.html
Additional documentation for using WebUtil is included in the Forms Builder online help. An update to the Builder Help files can be downloaded from here. Be sure to carefully review the included ReadMe before attempting to use them.
http://docs.oracle.com/cd/B25016_08/doc/dl/web/forms_help/frmhelp_update.zip -
Download internal table data to Excel in background
Hi all ,
Can anyone tell that how i can download internal table data
into Excel sheet in Backgroud Mode .
I used both fun mod ws and gui download but these are not working in background mod .
Please help issue is urgent .
Answer is rewarded by point .
With Regards ,
Nilesh Jainhi,
you have to use function module 'SAP_CONVERT_TO_XLS_FORMAT'.
DATA:
ITAB1 TYPE TRUXS_T_TEXT_DATA.
CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
EXPORTING
I_FIELD_SEPERATOR = ';'
I_LINE_HEADER =
i_filename = filename
I_APPL_KEEP = ' '
tables
i_tab_sap_data = itab
CHANGING
I_TAB_CONVERTED_DATA = itab1
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.
try this one.
reward points if useful,
thanks & regards,
rajee. -
Hi iam getting the alv grid data in excel format but iam facing one problem
hi iam getting the alv grid data in excel format but iam facing one problem ,
i.e., i want it read only but iam getting it in edit mode i use layout default in excel iam getting in xl directly but in edit mode but i need it in read only mode
what i have to do for that and bdy knows reply me i need it urgently.there's always edit-mode if you choose excel-inplace - but noone can modify/rewrite the data
A. -
Hi, I am using Jdeveloper 11g 11.1.1.5.0 and I want to import data from excel in my table through the jsf page and commit it to database. How can I implement it. Its urgent please help me!!!!!!!!!!!!!!!!!!!!!
Unless you are importing Excel data to save a dying patient in the operating theatre, it's not, by definition, urgent!!!!!!!!!!!!!!!!!!!!!! (and I must be right, because I used 22 exclamation points, where you only used 21).
Have you looked at ADF Desktop Integration to see if that would work for you? If not, you could:
1). Use an af:inputFile to upload the Excel file
2). Using something like Apache POI to read the file
3). Create rows, set the attributes, insert them, and commit them (if you're using ADF BC, you'd use a View Object to do this)
John -
Hi 2 all,
Can anyone please send me the complete steps for uploading of data from excel to BI??
Also tell me that when we use DSO or when we use infocube? and if we design query in query designer then we use info cube fields or DSO fields??
Please respond.
Regards,
Aisha Ishrat
ICI Pakistan Ltd.Hi,
there is no separate Tcode for 3.5 environment... but in RSA1 itself they give 3.X functionality also.. So, if you want to follow the 3.5 procedure you can go thru that... in the Infosource tab--> select your info area -->and right clcik it.. ->in that create INFOSOURCE 3.X.. for that just right clcik ur CUBE or DSO and --> Additional functions --> Update Rules.. and like that you can follow the same procedure which you done in 3.5..
and for data loading in BI 7.0 from fla file means
fisrt create one Cube or DSO with the same structure which you have in flatfile..
and activate it..
->now comes to Datasource tab> create one Datasource here you need to select type of data for example.. select Transactional data --> and menntion your flatfile name in extraction tab- and file type and eneter your info object names in FIELDS tab --> and load preview data Activate it..
now select your datasource and create info package and schedule it.. now your data will loded in to PSA level...
> and now comes to info provider select your cube.. and right clcik it.. and create transformations.,. and activate it..
> and create DTP -- Activate it.. and Execute it..
1)Create datasource. Here u can set/check the Soucre System fields.
2)Create Transformation for that datasource. (no more update rules/transfer rules)
2.1) While creating transformation for DS it will ask you for data target name, so just assign where u want to update ur data.
DataSource -> Transformation -> (DTP)-->Data Target
Now if you want to load data into data target from Source System Datasource:
1) Create infopackage for that data source. If you are creating infopackage for new datasources, it will only allow you update upto PSA, all other options u can see as disabled.
2)Now Create DTP (Data Transfer Process) for that data source.
3) NOw schdule the Infopackage, once the data is loaded to PSA, you can execute your DTP which will load data to data target.
Data Transfer Process (DTP) is now used to load data using the dataflow created by the Transformation. Here's how the DTP data load works:
1) Load InfoPackage
2) Data gets loaded into PSA (hence why PSA only is selected)
3) DTP gets "executed"
4) Data gets loaded from PSA into the data target once the DTP has executed
1) Create a data source
RSA1->Source Systems->FILE(File)->PC_FILE(Filesourcesystem)->Create Application Component(optional)-Create Data source
2) Create the data provider
3) Create Transformation
Right click on the data provider, choose 'create transformation' and choose your data source (give relevant data source and its type)
Just connect the relavant fields between your data source and data provider.
4) Create DTP
Then Double click on the DTP node created under yous transformations. choose the extraction mode
5) Load the data: there are 2 ways:
you can run the infopackage and DTP separately or create a process chain consisting of these infopackage and DTP and run.
Also check /people/sankar.kumar/blog/2006/10/11/loading-text-filestxt-into-bw-with-hex-option for hex option
Thanks,
Sankar M -
Unable to read data in Excel 2010/2013 from encrypted Access 2010/2013 database
A customer has an Access database (.accdb), which was encrypted/given a database password in Access 2013. It should be possible to read that data from Excel 2010/2013, but when clicking on Data-->From Access
and the correct path is put in and the correct database password has been entered, Excel just keeps prompting for the database password. This happens with both Excel 2010 and 2013.
The database password supplied is correct as evidenced by opening the database in Access 2013 using the same database password.
A colleague in a separate company has found that a separate .accdb file he has recently encrypted also has the same problem as above, yet a .accdb file encrypted ages ago
is readable from Excel.
How do I get Excel 2010/2013 to read the data from the encrypted .accdb file, please?Since Access 2010 the encryption algorithm has changed:
Source
Follow the next steps to apply an encryption method that will allow you to (programmatically) connect to the database:
1. Decrypt the database
2. Change the encryption method:
- In Access Options select 'Client Settings'
- Scroll down to section 'Advanced'
- 'Encryption Method': select option 'Use legacy encryption (..'
- Click 'OK'
3. Encrypt the database
Hope this helps.
Emiel Nijhuis -
Hi all,
I am downloading data to excel by using OLE2 type pool in an ABAP program.
My requirement is to make some of the columns of the excel sheet bold.
is it possible? if so please guide me.
LOOP AT IT_FINAL1 INTO WA_FINAL1.
R_IND = 1 + R_IND.
INDEX = 1 + SY-TABIX .
CLEAR IND.
DO.
ASSIGN COMPONENT SY-INDEX OF STRUCTURE WA_FINAL1 TO <I_OUTPUT>.
IF SY-SUBRC NE 0.
EXIT.
ENDIF.
IND = SY-INDEX.
CALL METHOD OF SHEET 'Cells' = CELLS EXPORTING #1 = INDEX
#2 = IND. "1
SET PROPERTY OF CELLS 'Value' = <I_OUTPUT>.
ENDDO.
CALL METHOD OF APPLICATION 'Cells' = CELL1
EXPORTING #1 = 1
#2 = 7.
CALL METHOD OF APPLICATION 'Cells' = CELL2
EXPORTING
#1 = INDEX "down
#2 = 7. "across
ENDLOOP.
I have used the above code.
here 7th column, 10th column, 13th column has to be made bold and so on.
regards,
samarendra.
Edited by: samarendra penugonda on May 26, 2009 12:57 PMHello,
Check this standard program it is printing some values in bold.
RSDEMO01
Example
SET PROPERTY OF H_F 'Bold' = BOLD . -
Error in CLOB datatype for transfering data from Excel to Oracle database
Am using excel sheet as source and Oracle as target Database.
For all tables the operations works smoothly except for tables containing CLOB datatype.
Initially i have used SQL Developer to transfer some data into excell sheets, now i want to transfer those file's data into another Oracle Database.
What other options do i have?
Is excel not the right tool to transfer CLOB datatypes?well,
I couldn't suggest an excel to do it...
You can go from Oracle to Oracle with the PL/SQL IKM. It works fine.
Does it help you? -
Upload data from Excel to Itab
Dear All,
Suppose I have data in the form of a matrix and I need to upload the data into the database after validation. The excel sheet is of the format:
Emp Empdept E1 E2 E3 E4 E5 E6 E7 E8 E9
E1 MEC 0 2 3 4 5 6 6 5 7
E2 ELE 4 0 5 5 6 2 2 1 3
E3 ELE 4 4 0 6 1 4 7 8 9
E4 ECE 2 2 4 0 6 7 5 9 4
E5 CHE 7 8 9 5 0 5 6 1 3
E6 ELE 8 9 10 12 11 0 5 6 4
E7 MEC 4 5 4 6 7 6 0 5 7
E8 MEC 9 4 7 5 2 2 8 0 1
E9 ELE 1 5 2 4 2 6 4 6 0
The first column is the employee number
The second column is the employee department and
The matrix indicates the time taken by emplyee1 to be trained to handle position of employee E2 is 2 months (map using row of E1 and column of E2).
Similarly E9 to E8 is 6 months.
I have to get the above data into an internal table of the format
Emp_from Emp_to Duration
E1 E1 0
E1 E2 2
E1 E3 3
E1 E4 4
E1 E5 5
E1 E6 6
E1 E7 6
E1 E8 5
E1 E9 7
E2 E1 4
E2 E2 0
E2 E3 5
Points wil be rewarded.
Regards,
Shiva.declare an internal table it_excel with field
EMPno
EMPOdept
E1
E2
E3
E4
E5
E6
E7
E6
upload the data from excel to this internal table.
loop it_excel into wa_excel.
wa_output-emp_from = wa_excel-empno.
wa_output-emp_to = 'E1'.
wa_output-Duration = wa_excel-E1.
append wa_output to it_output.
wa_output-emp_from = wa_excel-empno.
wa_output-emp_to = 'E2'.
wa_output-Duration = wa_excel-E2.
append wa_output to it_output.
wa_output-emp_from = wa_excel-empno.
wa_output-emp_to = 'E3'.
wa_output-Duration = wa_excel-E3.
append wa_output to it_output.
so on
endloop.
try something like this -
Upload data from Excel to Internal table
Hi,
I am facing a peculiar problem in uploading the data in excel sheet to internal table.
The excel file contains material number and product hierarchy number. The product hierarchy number for some material is downloaded as 5.73101E17 for the value 573100910115782000. Though I expand the sheet the display is the same 5.73101E17. When i upload the sheet using the f'n module "ALSM_EXCEL_TO_INTERNAL_TABLE" the value is taken as it is (5.73101E+17) into the internal table which is wrong. I tried to change the data type to type n. Then the value is uploaded as 5731011700000000.
Please propose a solution to this without having to change the format of the column from general to "number without decimals"
Regards,
SamHI
see this example code which EXCEL TO INTERNAL TABLE AND THEN TO APPLICATION
*& Report ZSD_EXCEL_INT_APP
REPORT ZSD_EXCEL_INT_APP.
parameter: file_nm type localfile.
types : begin of it_tab1,
f1(20),
f2(40),
f3(20),
end of it_tab1.
data : it_tab type table of ALSMEX_TABLINE with header line,
file type rlgrap-filename.
data : it_tab2 type it_tab1 occurs 1,
wa_tab2 type it_tab1,
w_message(100) TYPE c.
at selection-screen on value-request for file_nm.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
PROGRAM_NAME = SYST-REPID
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
STATIC = 'X'
MASK = ' '
CHANGING
file_name = file_nm
EXCEPTIONS
MASK_TOO_LONG = 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.
start-of-selection.
refresh it_tab2[].clear wa_tab2.
file = file_nm.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = file
i_begin_col = '1'
i_begin_row = '1'
i_end_col = '10'
i_end_row = '35'
tables
intern = it_tab
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.
loop at it_tab.
case it_tab-col.
when '002'.
wa_tab2-f1 = it_tab-value.
when '004'.
wa_tab2-f2 = it_tab-value.
when '008'.
wa_tab2-f3 = it_tab-value.
endcase.
at end of row.
append wa_tab2 to it_tab2.
clear wa_tab2.
endat.
endloop.
data : p_file TYPE rlgrap-filename value 'TEST3.txt'.
OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
*--- Display error messages if any.
IF sy-subrc NE 0.
MESSAGE e001(zsd_mes).
EXIT.
ELSE.
*---Data is downloaded to the application server file path
LOOP AT it_tab2 INTO wa_tab2.
TRANSFER wa_tab2 TO p_file.
ENDLOOP.
ENDIF.
*--Close the Application server file (Mandatory).
CLOSE DATASET p_file.
loop at it_tab2 into wa_tab2.
write : / wa_tab2-f1,wa_tab2-f2,wa_tab2-f3.
endloop.
Maybe you are looking for
-
LO Error 26005 Failed to parse XML
Good Afternoon, I currently have an Xcelsius document that is attached to a Crystal Report that is in Infoview. I have it connected by using Live Office. The Crystal report basically contains a cross tab of data and is run nightly in our system. I
-
View Objects , whereclauseparam and PERFORMANCE in JSP
We experience that using the method setWhereClauseParam gives VERY BAD performance in our JSP applications. According to JDev team and others, "best practice" is to use setWhereClauseParam(s), so we wonder why the performance degrade significantly co
-
Error when try to activate my Pocketbook 650 E-book reader
I followed the instructions for activating by opening the acsm file on my reader. It starts with the activation window for entering the log in data. After a while I get the Error message: Aktivierung Fehlgeschlagen (E_STREAM_ERROR:CURLreturned 6(6))
-
Importing video frames to layers show a white screen?
I've been trying to make some GIFs but when I try to import the video frames to layers it shows a white screen instead of playing the movie. All of them work on windows media player but I've heard that a lot of it has to work on QuickTime. I've alrea
-
i broke my iphone 5s. it has the IOS 7.1.2. and my last backup is with this version. i will buy a new iphone. i mean i phone6. i would love to know if i can restore my last backup without any problem. (from IOS 7.1.2 to IOS8). thanks