How to import all column heading of excel to oracle 6i forms(no rows).
hello,
I am new to oracle forms.
There are so many links for importing and exporting data from forms to excel and excel to forms.
But i want to import all column heading of excel to form (no rows). I am using forms 6i.
please help me for the same.
Thank You.
Edited by: sam8682 on Apr 9, 2013 5:48 AM
Edited by: sam8682 on Apr 9, 2013 5:50 AM
Reading from any file is always done in a loop through the records. So, just loop only once. That will give you the first record only.
If you have some code already you can modify it to something like:
for i in 1..1 loop
end loop;
Similar Messages
-
How to print all columns in one page
Hi,
Can anybody explain me how to print all columns in one page.we have around 15 to 20 columns for 4 reports and all these reports are build on one multiprovider.we are using BW 3.5.
Can anyone explain me how to print ALL COLUMNS IN ONE PAGE .currently they are getting all columns in 2 to 3 pages. They are using PORTAL to run the reports here.
Is it possible to do by customizing Webtemplate or by macros in Workbook.Please help me
Edited by: kotha123 on Oct 11, 2010 5:58 PMHi,
Your best bet is to use a workbook template or else Excel to pdf option...Thanks -
Problem while exporting ALV column header to excel sheet.
Hi,
I am able to export an ALV grid details to an excel sheet. But the ALV column headers when exported to excel sheet are getting truncated.
For eg: if my column header in ALV grid is displayed as 'Material' then the column header in excel sheet is 'Mater' only. Remaining portion is getting truncated.
How can I view the entire column header text?
Kindly assist.
Thanks.I have the same problem with you, when user export to excel. I fixed it by using
w_layo-colwidth_optimize = 'X'. <<<<<<<<<<<<This
perform generate_fcat_reftab
using 'PRUEFLOS' 'T_INPUT' '' '' 'Inspection Lot' 0.
form generate_fcat_reftab using p_fieldname
p_tabname
p_ref_tabname
p_ref_fieldname
p_output_text
p_output_lenght.
clear w_fcat.
w_fcat-fieldname = p_fieldname.
w_fcat-tabname = p_tabname.
w_fcat-ref_fieldname = p_ref_fieldname.
w_fcat-ref_tabname = p_ref_tabname.
w_fcat-seltext_s = p_output_text.
w_fcat-seltext_m = p_output_text.
w_fcat-seltext_l = p_output_text.
w_fcat-outputlen = p_output_lenght.
w_fcat-ddictxt = 'L'. <<<<<<<<<<<<<<<<<<This
append w_fcat to t_fcat.
endform. -
How to bring all columns in a single/first page in report painter
Hi Experts,
There are 9 columns in a report painter which includes 1 lead column.
7 columns comes in a first page including lead column and rest 2 columns goes to second page. This report is copied from another report where all columns comes in a first page only. if the original report comes in one page then why not the new report.
Please suggest how to bring all columns in a single/first page in the new report.
Please revert if I'm confused anywhere.
Thanks in advance
ArabindaHi Rajneesh,
Thanx for the quick reply. When I change the column width to 10 it comes in one page. But the requirement is to keep the column width to at least 12 or 14 and moreever the original report from where this report is copied having the same no of columns and the column width for original report is 14 and it comes in one page only.
Do I need to do something more to achieve this. My question is how the original reports data comes in one page where as the current report having issue with same number of columns.
Pls suggest.
Thanx,
Arabinda -
How to remove all columns and cells in numbers
how to remove all columns and cells in numbers
Click on the Table's icon in the Sheets list. Press delete.
Done.
Regards,
Barry -
How to I hide column heading completely ?
There is a similar post on 10g - How to I hide column heading completely ?
The solution is - To achieve this, go to Edit Table View, open Table View Properties. Here you should see an option called 'Display table and column Headings'. Here set its value to 'No column or table headings'.
I'm on 11.1.1.5 and when I go to Edit Table view -> Table View properties -> Display Folder & Column Headings , I see four values as below but there is no value 'No column or table headings'. The values are -
-Only column headings
-As separate rows
-As Folder.column
-As Folder.column (where needed)
Is this 'No column or table headings' value no more available in 11.1.1.5 ? Is there any alternative method to achieve this?
I'm able to hide the column header using various ways e.g. setting Display Heading option, but when I download the results it has either the header present or an empty row. In 10g the option 'No column or table headings' removed the header completely from the download file.
Any suggestions please?Anybody has any thoughts on why 'No column or table headings' option is removed from 11g or is it just 11.1.1.5?
Is this a bug or any other feature has been provided to achieve the same? -
How to return all columns starting with E?
How to return all columns starting with E in emp table?
My attempts (below) were unsuccessful.
SQL> SELECT E* from emp;
SELECT E* from emp
ERROR at line 1:
ORA-00936: missing expression
SQL> SELECT E.* FROM EMP;
SELECT E.* FROM EMP
ERROR at line 1:
ORA-00904: "E": invalid identifier
SQL> SELECT EMP.E* FROM EMP;
SELECT EMP.E* FROM EMP
ERROR at line 1:
ORA-00936: missing expressionYou need to do it dynamically:
SQL> var cur refcursor
SQL> declare
co varchar2(40);
begin
for c in (select column_name from cols where table_name = 'EMP' and column_name like 'E%') loop
co := co || c.column_name || ',';
end loop;
open :cur for 'select '|| rtrim(co,',') || ' from emp';
end;
PL/SQL procedure successfully completed.
SQL> print cur
EMPNO ENAME
7369 SMITH
7499 ALLEN
7521 WARD
7566 JONES
7654 MARTIN
7698 BLAKE
7782 CLARK
7788 SCOTT
7839 KING
7844 TURNER
7876 ADAMS
7900 JAMES
7902 FORD
7934 MILLER
14 rows selected. -
How to fix the column header width in BEx or WAD
hi there!
how to fix the column header width in BEx or WAD. because, depends on the column data, the column size varies. i want to fix the size so that i can maintain the consistency through out the report.
thanks!
Vam.Dear Vam,
you can easily do that with css, search the source code of the executed web template for the td tag which is around your coloumn header, remember the style sheet class name it is ´displayed as class= in the td tag.
Now you can add this code the beginning of your web template:
</style>
This will only work in Web.
Regards
Marcus -
HT4489 how do import all contacts to icloud
how do import all contacts to icloud
Ok, well first you have to go on icloud.com and make sure that you delete all the contacts you don't want to have overritten on your iphone or merged. Now on your iPhone go to Settings -> iCloud and just flip the toggle next to contacts to "ON". Now it will syncs everything to iCloud and you are up to date. I hope that is what you ment to do?
-
How to import all Excel in Folder to database by SSIS?
I have SQL Server 2012 and I would like to import Excel files data to Database.
I have several files that end-users copy to folder.
I never know files names or number of files in folder, but I know that structucture of data is same in every single file.
How to create logic with SSIS that imports all files one by one?
Kenny_II replace to
Dts.Variables("FileName").Value.ToString(). I'm still getting error:
My code:
Dts.TaskResult = ScriptResults.Success
Dim CurrentDay As String
CurrentDay = Now().ToString("yyyyMMdd")
Dts.Variables("CurrentDayFile").Value = IIf(InStr(Dts.Variables("FileName").Value.ToString(), CurrentDay) > 0, True, False)
Error:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()
Kenny_I -
How to display a Column Header for the characteristic Text column
Hi All
Our users want me to provide for a column header for the characteristic text.
Here is what I mean
I am reporting 0plant in the rows as key and Text. In the column on Plant Key the column header says Plant but there is no column header for the plant text.
Eq:
Plant Amount
IE00 Initiator Plant 244
IE01 Initiator Plant NJ 890
Our users in the plant text column want a dummy column header to be displayed. SInce they download the data from the BW report to Excel and use pivot reporting. How can I introduce a column header for the texts.
Thanks
KarenHi Karen,
I am not sure if this is possible, although Users can ask anything :).
In Planning we used to predefine cell headings via Macros and creating dummy cells in between. I am not sure if a similar scenario can work here.
By default this is not possible in Reports. In BEx workbooks, you could probably try with Macros.
Another easy option is to bring the data in the Cube as another field or create a nav. attribute in the master for text and use it as a nav. attr. in the Cube and put it in your Query row alongside.
-Aby -
How to display the column header in two rows?
Hi Experts,
I am using ALV_LIST_DISPLAY i neeed to display the column header in two rows.. How can i do that?
Ex: purchase order i need to display "purchase" in one row and "order" in second row.
Thanks in advance,
Sarath.jREPORT zpwtest .
TYPE-POOLS slis .
DATA : layout TYPE slis_layout_alv .
CONSTANTS : c_len TYPE i VALUE 20 .
TYPES : BEGIN OF ty_t100 ,
sprsl TYPE t100-sprsl ,
arbgb TYPE t100-arbgb ,
msgnr TYPE t100-msgnr ,
text TYPE t100-text ,
fline TYPE t100-text ,
END OF ty_t100 .
TYPES : BEGIN OF ty_wrd ,
text TYPE char20 ,
END OF ty_wrd .
DATA : it_t100 TYPE TABLE OF ty_t100 ,
it_sentence TYPE TABLE OF ty_wrd ,
wa_t100 TYPE ty_t100 ,
wa_word TYPE ty_wrd ,
v_repid TYPE syst-repid ,
v_tabix TYPE syst-tabix .
DATA : it_fld TYPE slis_t_fieldcat_alv ,
it_evt TYPE slis_t_event ,
wa_fld TYPE slis_fieldcat_alv ,
wa_evt TYPE slis_alv_event .
INITIALIZATION .
v_repid = sy-repid .
START-OF-SELECTION .
* Get data
SELECT *
INTO TABLE it_t100
FROM t100
WHERE sprsl = 'EN'
AND arbgb = '00' .
LOOP AT it_t100 INTO wa_t100 .
v_tabix = sy-tabix .
CLEAR : it_sentence .
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
textline = wa_t100-text
outputlen = c_len
TABLES
out_lines = it_sentence.
IF NOT it_sentence IS INITIAL .
READ TABLE it_sentence INTO wa_word INDEX 1 .
wa_t100-fline = wa_word-text .
MODIFY it_t100 FROM wa_t100 INDEX v_tabix .
ENDIF.
ENDLOOP.
* Prepare fieldcatelog
CLEAR wa_fld .
wa_fld-fieldname = 'SPRSL' .
wa_fld-ref_tabname = 'T100' .
wa_fld-ref_fieldname = 'SPRSL' .
APPEND wa_fld TO it_fld .
CLEAR wa_fld .
wa_fld-fieldname = 'ARBGB' .
wa_fld-ref_tabname = 'T100' .
wa_fld-ref_fieldname = 'ARBGB' .
APPEND wa_fld TO it_fld .
CLEAR wa_fld .
wa_fld-fieldname = 'MSGNR' .
wa_fld-ref_tabname = 'T100' .
wa_fld-ref_fieldname = 'MSGNR' .
APPEND wa_fld TO it_fld .
CLEAR wa_fld .
wa_fld-fieldname = 'FLINE' .
wa_fld-inttype = 'CHAR' .
wa_fld-outputlen = 20 .
wa_fld-intlen = 20.
wa_fld-seltext_l = 'Text' .
wa_fld-ddictxt = 'L' .
APPEND wa_fld TO it_fld .
* Get event.. we will handle BOFORE and AFTER line output
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
IMPORTING
et_events = it_evt.
READ TABLE it_evt INTO wa_evt
WITH KEY name = slis_ev_after_line_output .
wa_evt-form = slis_ev_after_line_output .
MODIFY it_evt FROM wa_evt INDEX sy-tabix .
READ TABLE it_evt INTO wa_evt
WITH KEY name = slis_ev_top_of_page .
wa_evt-form = slis_ev_top_of_page .
MODIFY it_evt FROM wa_evt INDEX sy-tabix .
layout-no_colhead = 'X' .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = v_repid
it_fieldcat = it_fld
is_layout = layout
it_events = it_evt
TABLES
t_outtab = it_t100.
* FORM top_of_page *
FORM top_of_page .
uline .
WRITE: / sy-vline ,
10 sy-vline ,
11 'line1' ,
31 sy-vline ,
37 sy-vline ,
58 sy-vline .
WRITE: / sy-vline ,
10 sy-vline ,
11 'line2' ,
31 sy-vline ,
37 sy-vline ,
58 sy-vline .
WRITE: / sy-vline ,
10 sy-vline ,
11 'line3' ,
31 sy-vline ,
37 sy-vline ,
58 sy-vline .
ENDFORM.
* FORM AFTER_LINE_OUTPUT *
FORM after_line_output USING rs_lineinfo TYPE slis_lineinfo .
CLEAR : it_sentence ,
wa_t100 .
READ TABLE it_t100 INTO wa_t100 INDEX rs_lineinfo-tabindex .
CHECK sy-subrc = 0 .
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
textline = wa_t100-text
outputlen = c_len
TABLES
out_lines = it_sentence.
DESCRIBE TABLE it_sentence LINES v_tabix .
CHECK v_tabix > 1 .
LOOP AT it_sentence INTO wa_word FROM 2 .
WRITE: / sy-vline ,
10 sy-vline ,
31 sy-vline ,
37 sy-vline ,
38 wa_word-text ,
58 sy-vline .
ENDLOOP.
ENDFORM . -
How to have all columns display in one go in RSA3
i'm trying to extract the sales order item (2LIS_11_VAITM) thru RSA3 into flat file.
However, the maximum number of columns is limited to 90 columns ( with a hundreds of hidden fields by default). I don't see the system provide you the user parameter where you can change the output list to ALV grid rather. Please advise how can I have all the columns displayed in one go ( even if the column header too shorten is fines to me)?mask as unanswer
-
How to compare all columns in a SELECT with all columns in a Cursor ?
Hi All,
I would like to know if something like this is possible in PL/SQL
I have a cursor CUR1 which is a SELECT * FROM T1.
And in my loop for every record found in CUR1 I am trying to retrieve its consecutive record in the table T2. Unfortunately T1 and T2 do not have a primary key so there are duplicates. But if I can compare each column of CUR1 with its respective column in T2, I can find the record. But the question is how ?
So I tried something like this, but of course this is wrong, but hope this would give you an idea of what I trying
VAR_T2 T2%ROWTYPE;
CUR_T1 IS SELECT * FROM T1
LOOP CUR_TI
SELECT * INTO VAR_T2
FROM T2 WHERE
‘ALL COLUMNS OF T2’ = ALL COLUMNS OF CUR1;
So is there a easy way to accomplish this. Thank you, AJAs Walter says, this is simply an intersect if you are comparing all the columns.
However, if you really must do it in a slow by slow, PL/SQL loop (no real valid reason why you would though)...
DECLARE
VAR_T2 T2%ROWTYPE;
CUR_T1 IS
SELECT * FROM T1;
BEGIN
FOR i IN CUR_TI
LOOP
SELECT * INTO VAR_T2
FROM T2
WHERE T2.col1 = i.col1
AND T2.col2 = i.col2
AND T2.col3 = i.col3
AND T2.colN = i.colN;
END LOOP;
END;There is no simple mechanism for just saying "compare all the columns", you will have to specify each one individually in the WHERE clause. -
How to select all columns in a trigger?
I add a "before delete" trigger on a table, in order to insert the records to a backup table before they are deleted.
but I cannot write like this : insert into t_backup select * from :old;
The table has more than 30 columns so I don't want to select them one by one, how can I select all columns?Yes, it is possible by writing something like this :
where col1 = :old.col1; But it is not directly supported. First, we need a package to remember all the OLD records:.... and please see below link for complete code in action :
http://www.dbforums.com/oracle/925729-trigger-back-up-data.html
What I am doing here, just copying the code and replacing "emp" with "test" (The table name on which I am going to apply this using notepad find and replace):
SQL> select * from test_backup;
no rows selected
SQL> select * from test;
A
1
2
4
5
SQL> select * from test_backup;
no rows selected
SQL>
create or replace package test_trg_pkg as
type test_type is table of test%ROWTYPE index by binary_integer;
test_tab test_type;
end;
create or replace trigger test_bds before delete on test
begin
test_trg_pkg.test_tab.delete;
end;
create or replace trigger test_adr after delete on test
for each row
declare
-- To allow us to select the old values
pragma autonomous_transaction;
begin
select *
into test_trg_pkg.test_tab(test_trg_pkg.test_tab.COUNT+1)
from test
where a = :old.a; <----- Here you have to give your column name.
end;
create or replace trigger test_ads after delete on test
begin
for i in 1..test_trg_pkg.test_tab.COUNT loop
insert into test_backup values test_trg_pkg.test_tab(i);
end loop;
end;
SQL> delete from test where a=1;
1 row deleted.
SQL> select * from test_backup;
A
1
SQL> delete from test where a=2;
1 row deleted.
SQL> select * from test_backup;
A
1
2
SQL>Regards
Girish Sharma
Maybe you are looking for
-
How to change the path of the Transport
HI all! I had the system of portal dev,qas,prd,I want to made the export folder of the dev point to the import folder of the qas.But how to change the path of the transport ?I change the file of the D:\usr\sap\dev\SYS\global\pcd\pcdStartup.properties
-
What is my iPad accessing on the internet when it is charging?
Hi, I have a WiFi only iPad Air which is currently charging. I have noticed that my router is accessing the internet. When I put the iPad in airplane mode the router stops. I have confirmed that the following is, as usual, turned off: 1) iCloud back-
-
Report on screen for Accounts payable for EFTPOS (similar to FCHN)
Hi all, Is there a transaction code where accounts payable can generate a report which shows the listing of the all payments but only for the Bank Transfers (as known as EFT in Australia)? Thank you in advance!!! regards
-
Cross Dissolve fades to black...I want it to be white.
Can anyone help me on this? I'm using Final Cut Express 3.5.1. I have my cross dissolve where I want it, but it fades to black, and I want it to fade to white. I have made the background white, but it still fades to black. Any help? Thanks.
-
Cropping ability lost on upgrade to iPhoto 6
I upgraded to 6.0.2. Pictures came over fine and ability to do sepia, etc. works. But although I can go through the cropping motions, when I go to save the work, the action reverts to the original picture without the cropping being done. Any one ther