How to get Number of Column in Excel file
Hi All,
My requirment is to get Number of Column in Excel file which i want to upload,
so please suggest if there is any possible way to get this functionality.
Thanks
Anirudh
Use FM "ALSM_EXCEL_TO_INTERNAL_TABLE".
Adjust the values of i_begin_col & i_end_col parameters in this FM.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME =
I_BEGIN_COL =
I_BEGIN_ROW =
I_END_COL =
I_END_ROW =
TABLES
INTERN =
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.
Regards,
BBR.
Similar Messages
-
How to get data from an existing Excel file using report generation toolkit
I'm trying to use the Excel Get Data vi from the report generation toolkit, but i can't figure out how to turn a browsable path into the right type for the VI. I've tried using the New Report.vi, but that doesn't work unless you use a template. It won't open an existing excel file and make it an open report to pull data from.
Essentially, i have a bunch of excel files that have data in them and i want to use a VI to analyze the data. So, i'm trying to pull in all the data directly from the excel file so i don't have to reproscess them all into text so i can use the more standard spreadsheet VIs. But to even convert the excel file programtically in labview won't i still need to be able to open the excel file and get the data?
Solved!
Go to Solution.I C.
Got it,
the reason why I can view it using my Excel file because its in .CSV.
I open Microsoft Excel to open .CSV file.
But you can also open .csv file with notepad.
So, you cannot open .xls with Read Spreadsheet File
I learn something everyday
Best regards,
Krispiekream -
How to get Number of columns in a table?
Hi all, just starting with database connectivity.
I was wondering if there is any method where I can get the no. of cols in table at run time. I tried the ResultSet rs; but rs doesn't seem to have any method that will get the no. of columns.
Any pointers to this is greatly appreciated?
NJUYou can use the getColumnCount() supplied by
the ResultSetMetaData class, an instance of
which can be obtained using the getMetaData()
method of the ResultSet instance itself.
I hope this will help.
ByeThanks a lot for the quick input. It really helped me a lot to create tables based on the no of cols retrieved.
Thanks again!!
-NJU -
How to extract a complete column from excel?
Hi there,
I have a excel file with some testing parameters, organized in rows. That means, in the first column are the serial numbers (type ID) of my "devices under test", and the respective parameters are located in the adjacent columns of the row.
I'd like to extract the first column as a whole with my LabVIEW application, search this column (1D array) for a particular number and use the "found"-index to read the rest of the row to get the parameters associated with this index/serial number.
How can I do this? Until now I always had to read a specific range e.g. "A1:E8" to get values out of an excel file. But as I don't know how many serial numbers are stored in the excel file, I don't know how to limit the range...?!
Does anybody have an idea how to solve this problem?
Regards
AchimOne workaround would be to create a user-defined function which searches for the first empy cell, something like:
Function FindLastCell()
Dim LastCell As Range
With ActiveSheet
Set LastCell = .Cells(.Rows.Count, "A").End(xlUp)
If IsEmpty(LastCell) Then
'do nothing
Else
Set LastCell = LastCell.Offset(1, 0)
End If
End With
FindLastCell = LastCell.Row
End FunctionInsert this function in your spreadsheet at a known location, then read the value. The value will indicated the number of rows that are populated before you hit the empty cell. You can edit the function for the appropriate column.
Message Edited by vt92 on 01-31-2008 08:14 AM
"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal -
How to incrase number of columns in layout
hi all,
i am new to business intelligence my problem is
how to insert number of columns in report layout
i am not able to more than 5 or 6 columns then
a pop-up is appearing as "cannot insert column because there not enough space"
plz give solution
thanksTo get IColumnPrefs assuming you have an IDocument I use
InterfacePtr<IColumnPrefs> colPrefs(document->GetDocWorkSpace(), UseDefaultIID());
int32 columnCount = colPrefs->GetNumColumns();
Mike -
How i get number of record in repet frame?
Hi,
How i get number of record in repet frame?
Regards
JomarJomar,
you can use Summary Columns in the Data Modell. Create them on group higher that your wished group (so on the pane for an first group of a query), use as Source the primary column and as reset at the group, where the summary column is located.
If you hide some instances via format triggers, that you could use a counter inside the format triggers to count the rows.
Regards
Rainer -
How to get number of rows return in SELECT query
i'm very new in java, i have a question:
- How to get number of rows return in SELECT query?
(i use SQL Server 2000 Driver for JDBC and everything are done, i only want to know problems above)
Thanks.make the result set scroll insensitve, do rs.last(), get the row num, and call rs.beforeFirst(), then you can process the result set like you currently do.
String sql = "select * from testing";
PreparedStatement ps =
con.prepareStatement(sql,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
ResultSet rs = ps.executeQuery();
rs.last();
System.out.println("Row count = " + rs.getRow());
rs.beforeFirst();~Tim
NOTE: Ugly, but does the trick. -
How to get the primarykey columns of the table in SAP BI Java SDK
Hi, I'm new to sap BI Java SDK. I'm not getting how to get the primarykey columns, using BI JDBC Connector (for relational data sources). If anybody knows, please let me know. its very very urgent task to be done in my project. In the below following code.... I have written a code to connect to the database through resource bundle, reading table names, once user select table name, i need to show the primary key columns of that table to the user. here i'm not getting how to get the primary key columns . Please send me the code if there is any method to find out the primarykey columns or a logic to get them. I will be greatful to you.... if you can do this favour.
Please check out the following code ........
ManagedConnectionFactory mcf;
IConnectionFactory cf;
IConnectionSpec cs;
mcf = new JdbcManagedConnectionFactory();
cf = (IConnectionFactory) mcf.createConnectionFactory();
cs = cf.getConnectionSpec();
ResourceBundle rbLocal = ResourceBundle.getBundle( "xxxx");
Enumeration propnames = rbLocal.getKeys();
while (propnames.hasMoreElements())
String key = (String) propnames.nextElement(); //out.print(key); //out.println("="rbLocal.getString(key)"");
cs.setPropertyValue(key, rbLocal.getString(key));
// Establishing the connection. // The IBIRelational interface provides an entrypoint to access // metadata and execute queries.
IBIConnection connection = (IBIConnection) cf.getConnectionEx(cs); I
BIRelational rel = connection.getRelational();
IBIQuery query = rel.createQuery();
String sqlStatement = "SELECT * FROM " + "BICQPERSON where type='pk'"; ResultSet rs = IBIDataSet dataset = query.execute();
Thanks SreeKanthHi,
looks like you are on Infomation Builders, correct? If yes through which adapter and to what DB are you connecting?? in an R3/BW system you can do the folowing:
"(ABAP)
SELECT DISTINCT FIELDNAME
FROM DD03L
WHERE TABNAME = '/BIC/QPERSON'
AND AS4LOCAL = 'A'
AND KEYFLAG = 'X'
ORDER BY 1
Another option is goto directly to the RDBMS; in this case let me which one are you using
hope this helps...
Olivier.
Message was edited by:
Olivier Cora -
How do I open a password protected excel file created on a PC in numbers 09, on a MacBook Air? I get a message that the "file is encrypted and can't be opened"
This is actually not true; I support users who are doing this w/ Excel 2011 (v14.2.2+) for Mac and Windows users w/ Excel 2003 & 2007. Win users are from finance dept, and who have pasword-protected various budget files. The Mac users are (surprise) "creative" users, who enter pw to unlock and edit these budget files.
These files are shared from a Mac server (running 10.6.8 server), and I do have an erratic problem where all users have read-only access to these pw-protected Excel files. The manual work-around has been to copy the troublesome file(s) and confirm users have full access again. I also do a shuffling of filenames, so that the new, working file has original file name.
FYI: the Mac server POSIX and ACL permissions are correct, and don't appear to be source of the problem.
It's easy an SMB file-locking issue or concurrent users trying to edit these files. I keep reminding them that Excel is not a database! -
How to get number of digits in given amount
Hi Experts,
How to get number of digits in given amount.
Regards
MohitCheck this :
data: v_data1 type p decimals 3 value '12.860',
v_char1 type char20,
v_char2 type char20,
v_char3 type char20,
len type i.
write v_data1 to v_char1.
split v_char1 at '.' into v_char2 v_char3.
len = strlen( v_char3 ).
write:/ v_char2,
/ v_char3, " this holds the digit value
/ len. " number digits -
How to get the dynamic columns in UWL portal
Hi All,
I am working on UWL Portal. I am new to UWL. I have down loaded uwl.standard XML file and costomized for getting the values for "select a Subview" dropdown and I am able to see the values in the dropdown. Now my requirement is to get the dynamic columns based on the selection from dropdown value.
can any body suggest on how to get the dynamic columns in UWL portal.Hi Manorama,
1) If you have already created a portal system as mentioned in following blog
/people/marcel.salein/blog/2007/03/14/how-to-create-a-portal-system-for-using-it-in-visual-composer
2) If not, then try to create the same. Do not forgot to give the Alias name .
3) After creating a system, log on to the VC, Create one iView.
4) Now Click on "Find Data" button from the list which you can view in right side to Visual composer screen.
5) After clicking on "Find Data" button, it will ask for System. If you have created your system correctly and Alias name is given properly, then your mentioned Alias name is appeared in that list.
6) Select your system Alias name and perform search.
7) It will display all the BAPIs and RFCs in your systems.
8) Select required BAPI and develop the VC application.
Please let me know if you any further problems.
Thanks,
Prashant
Do reward points for useful answers. -
How to get the Query output to Excel
Hi ,
Can you tell me how to get the Query output to excel with out using any third party tool?
Can you tell me how to write the code in Webservice and call it..
Please explain it Elaboartly..
Thanks in Advance!!!
Miniwhats your source system?
you can use Live office, or query as a webservice if you are getting data from universe
if you're getting data from SAP BI query and you have a java stack on your netweaver then you can get the data directly using sap bi connector in xcelsius.
good luck -
How to get invoice status column in ap_invoice_all table
how to get the invoice_status column like "NEEDS RE VALIDATION" in account payables tables.
The invoice approval status does not come from any table / lookup.
Instead, Oracle builds it by calling the ap_invoices_pkg.get_approval_status function.
You can also call it by passing invoice_id, payment_status_flag and invoice_type_lookup_code.
All these 4 columns are present on the ap_invoices_all record.
Hope this helps
Sandeep Gandhi
Independent Consultant -
How to get two empty columns in reporting?
Hi Experts,
How to get Two empty columns in a report, i have taken a formula and i have given '=0' in the formula box after executing the query that two columns containing zero's, but i don't want zero's, i want to display empty columns.
pl help to do this,
thanks & regards
venaktHi
In the Query designer go to Properties and Select Active n Zero Supression
also select Supress Zeros from the drop down.
Regards
M.A -
Need how to get the data from the external file in eCatt
Hi ,
Could any body suggest how to get the values from the external file(Excel,CSV file,Text file) and pass it as varaiable in ecatt Test script.
Problem: Need to execute FK01-Vendor creation Transaction with multiple set of data .As per my understanding we could achive through Variants in Testdata set in eCatt .
But is there any way to store the data in excell file and get the data and pass it to FK01 Test scripts
Appreciate response on thisHi
See the links they may be useful
check these link,
eCATT- An Introduction
/people/sumeet.kaul/blog/2005/07/26/ecatt-an-introduction
Creating Test Scripts
/people/sumeet.kaul/blog/2005/08/10/ecatt-creating-test-scripts
eCATT Logs
/people/sapna.modi/blog/2006/04/18/ecatt-logs-part-vi
eCATT Scripts Creation TCD Mode
/people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation-150-tcd-mode-part-ii
Creation of Test Data Container
/people/sumeet.kaul/blog/2005/08/24/ecatt-creation-of-test-data-container
eCATT Scripts Creation - SAPGUI Mode
/people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation--sapgui-mode-part-iii
Integrating ECATT & MERCURY QTP Part -1
/people/community.user/blog/2007/01/02/integrating-ecatt-mercury-qtp-part-1
Using eCatt to Test Web Dynpro ABAP
/people/thomas.jung/blog/2006/03/21/using-ecatt-to-test-web-dynpro-abap
and
-command reference
http://help.sap.com/saphelp_nw04/helpdata/en/c6/3c333b40389c46e10000000a114084/content.htm
/people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i
http://prasadbabu.blogspot.com
https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=test_tool_integration_for_sap_e-catt.htm
http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm
http://www.erpgenie.com/ecatt/index.htm
hope this helps.
Reward points for useful Answers
Regards
Anji
Maybe you are looking for
-
Dear all As per requirements i have mostly completed the PM history report, which comprises Equipments specifications, BOM. Additionally i have to add the very important tasks, spares , Cost of operation also. Here we couldnt consider all the operati
-
How can I remove a Input device from my Mac?
Hello, I would like to know how I can remove a input device from the Sound area in System Preferences. I installed Wiretap Anywhere a sound input program for my Mac and did not realize It was not supported for Moutain Lion. I put the application in t
-
My Time Capsule expired and no longer works. My printer (a HP) will now not work as it still wishes to connect through the Time Capsule. It will not allow itself be recognised through a USB connection to my Mac. Anyone got any ideas?
-
Second record not inserting into ztable
Hi All, I have designed z table with following fields. 1) CONSULTANT 2) MODULE_NAME 3) CR_DATE 4) ISSUE 5) RPT_NAME 6) TCODE 7) REQ_NO 8) DEV_STA 9) QA_STA 10) PRD_STA. the ztable contains no primaty key as we are storing the duplicates values I have
-
I am sending the product id value to another jsp where it process the servlet operations and sends back the result... i am having the problem it shows undefined addpdt.jsp file <script language="JavaScript"> function getComboBoxValue(id){ var cbox=do