Leaf node not coming in TreeByKeyTable Column
Hello,
I am trying to create a tree structure using TreeByKeyTable Column. I have referred to the example given in the API document.
However, the leaf node doesn't come with a dot. It has an expandible arrow.
I have taken care of setting the "isLeaf" property to true.
Is there anything else which I'm missing out on?
Thanks and Regards,
Abhijnan
Closing this..Class implementation manipulations done
Similar Messages
-
Node not coming up automatically
Hi
oel4 , 10gr2
I have a 2 node cluster setup (using vmware).
When i reboot a node i get following status.
ora....C1.inst application ONLINE ONLINE rac1
ora....C2.inst application ONLINE UNKNOWN rac2
ora.RAC.db application ONLINE ONLINE rac1
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application ONLINE UNKNOWN rac2
ora.rac2.gsd application ONLINE UNKNOWN rac2
ora.rac2.ons application ONLINE UNKNOWN rac2
ora.rac2.vip application ONLINE ONLINE rac2Why does it shows status unknown for all apps on node 2? how do i rectify this?? which process brings the apps on rebooted node up??
Please help
Thanks
Still learning RAC
Edited by: user12122713 on Aug 3, 2010 6:34 AMHi,
use clusterware 11.1. then. Clusterware 11.1 is just a minor upgrade to 10.2 and works like a charm. Also in combination with a 10.2. database (if it needs to be a 10.2 database).
If you are not version bound, I suggest to use a complete 11.2 stack though...
Regarding your question:
The init.d directories and the inittab iincludes the daemons to startup the stack - (CRS/CSS and evmd) - with 11.2 only OHASD.
When these are started the cluster processes look into the OCR (oracle cluster repository) what the state of the other ressources have been before, and will startup the stack corresponding to these entries.
With 10.2.0.3 you can disable the automatic startup with crsctl disable crs.
Regards
Sebastian -
Need to display only leaf and not the node using tree table
Hi,
Am using Jdeveloper 11.1.2.0.0 . As per requirement , am having Department - Employee View wherein Department is the parent considered as node and Employee as a child which is considered as a leaf. Having dragged and dropped the DepartmentView as a tree table -> shuttle department id and department name to be displayed -> added EmployeeView to the same and shuttled employee id along with the first and last name. so this works as it has to be in the below structure...
10 ADF
256 A
257 B
258 C
20 JAVA
259 D
260 E
Code for the same ..
<af:treeTable value="#{bindings.DepartmentsView.treeModel}" var="node"
selectionListener="#{bindings.DepartmentsView.treeModel.makeCurrent}" rowSelection="single" id="tt1">
<f:facet name="nodeStamp">
<af:column id="c1">
<af:outputText value="#{node}" id="ot1"/>
</af:column>
</f:facet>
<f:facet name="pathStamp">
<af:outputText value="#{node}" id="ot2"/>
</f:facet>
</af:treeTable>
*Here comes my requirement , need to display only the leaf nodes which has employee name [Employees] and need to hide the node [Department] in the below structure....*
256 A
257 B
258 C
259 D
260 E
Things tried to achieve the requirement....
1. Got only the EmployeeName in the nodeStamp facet as below. Hence am getting only Employee name but the issue is am getting the icon for the node [Parent - Department]. Now how do i hide the same.
<af:treeTable value="#{bindings.DepartmentsView.treeModel}" var="node"
selectionListener="#{bindings.DepartmentsView.treeModel.makeCurrent}" rowSelection="single" id="tt1">
<f:facet name="nodeStamp">
<af:column id="c1">
<af:outputText *value="#{node.FirstName}"* id="ot1"/>
</af:column>
</f:facet>
<f:facet name="pathStamp">
<af:outputText value="#{node}" id="ot2"/>
</f:facet>
</af:treeTable>
Please do suggest some solution....
Thanks and Regards,
Vinitha GHi,
Thanks for the reply. As the project has already implemented tree table they do not wanna change any logic written for the same. So they wanted to just display only the leaf node data using treetable component. Can you please suggest.
Thanks and Regards,
Vinitha G -
Hierarchy Leaf node does not display in F4 functionality
Hello,
Scenario:
- profit center based hierarchy
- user has access to only leaf nodes in that hierarchy.
- authorisation works perfectly and displays only the correct values
Problem:
When we run the query in the portal and use the F4 functionality to select the profit center value nothing is displayed.
This is ok for the particular case where one profit center needs to be accessed by the user since it is automatically filled out, but if that user has access to more than one profit centers this is a problem.
System:
BI7 BCS
Support Package Stack 10 ABAP+Java
SAP_BW is on SP11
Please note that the profit center field is also not greyed out. We raised an oss about this and SAP responded with "this is working as intended". Thus the use is able to type the values into the profit center hierarchy box.Check whether you are filtering any level of the hierarchy when running this query? or you are using a hierarchy variable and defaulting it to certain level which doesnot show what you are looking at.
Hope this helps you. -
Java Server node and dispatcher not coming up in ECC
Hi,
We are using ECC6.0,We have moved the node 2 to node 1, java is not coming after cluster has moved to node 1.
We are getting the folloeing error
#1.5 #005056B83E3D00000000001000005CCC0004AA6F7B4BAF13#1313295693490#com.sap.engine.core.configuration##com.sap.engine.core.configuration#######Thread[Thread-1,5,main]##0#0#Error#1#/System/Server#Plain###Error occurred: Secure Store lib Dir does not exist F:/usr/sap/ECQ/SYS/global/security/lib
engine
=======================================================
com.sap.engine.frame.core.configuration.ConfigurationException: Error occurred: Secure Store lib Dir does not exist F:/usr/sap/ECQ/SYS/global/security/lib
engine
at com.sap.engine.core.configuration.impl0.ConfigurationManagerImpl.initInternal(ConfigurationManagerImpl.java:139)
at com.sap.engine.core.configuration.AbstractConfigurationManagerImpl.init(AbstractConfigurationManagerImpl.java:164)
at com.sap.engine.core.Framework.loadSingleManager(Framework.java:582)
at com.sap.engine.core.Framework.loadManagers(Framework.java:258)
at com.sap.engine.core.Framework.start(Framework.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.boot.FrameThread.run(FrameThread.java:61)
at java.lang.Thread.run(Thread.java:534)
#1.5 #005056B83E3D00000000001200005CCC0004AA6F7B4BB178#1313295693490#com.sap.engine.core.Framework##com.sap.engine.core.Framework#######Thread[Thread-1,5,main]##0#0#Error#1#/System/Server#Plain###Loading: ConfigurationManager returned false! #
#1.5 #005056B83E3D00000000001400005CCC0004AA6F7B4BB2CD#1313295693490#com.sap.engine.core.Framework##com.sap.engine.core.Framework#######Thread[Thread-1,5,main]##0#0#Error#1#/System/Server#Plain###Kernel not loaded. System halted.#
#1.5 #005056B83E3D00000000002100005BBC0004AA6F7DB600BF#1313295734008#com.sap.engine.core.Framework##com.sap.engine.core.Framework#######Thread[Thread-1,5,main]##0#0#Fatal#1#/System/Server/Critical#Plain###Critical shutdown was invoked. Reason is: Error getting confirmation reply during attach to cluster.#
Thr 24504] Sun Aug 14 04:21:43 2011
[Thr 24504] JHVM_RegisterNatives: com.sap.bc.krn.perf.PerfTimes
[Thr 24504] JHVM_RegisterNatives: com.sap.bc.proj.jstartup.JStartupFramework
[Thr 24504] JLaunchISetClusterId: set cluster id 103414950
[Thr 23852] Sun Aug 14 04:22:14 2011
[Thr 23852] JLaunchIExitJava: exit hook is called (rc = -334)
[Thr 23852] **********************************************************************
[Thr 23852] *** ERROR => The Java VM terminated with a non-zero exit code.
[Thr 23852] *** Please see SAP Note 943602 , section 'J2EE Engine exit codes'
[Thr 23852] *** for additional information and trouble shooting.
[Thr 23852] **********************************************************************
[Thr 23852] JLaunchCloseProgram: good bye (exitcode = -334)
Please suggest me
Vijayashree.RHi,
Are Java directories move to node 1 (i.e. Java directories are part of clustered disk or not) ?
Thanks
Sunny -
Data Visible At Aggregated Level but not at Leaf Node Level in ASO
Hi,
I am facing an issue in Essbase Version 7. I have a BSO - ASO partition. I have 4 dimensions Customer, Accounts, Product and Time. When i try to view data across customer, time and accounts the data is visible at the leaf node level and the aggregated level. But when i include Customer in my analysis the data is visible at an aggregated level for the customer but not a the leaf node level. What could be the cause of this? I am not getting any errors during my data load in ASO as well as when i run the aggregation in ASO...
Any inputs on this issue are highly appreciated....Without having complete information, I'll guess you are trying to look at the data in the BSO cube. I would look at the partition definition. One of two things is most likely happening
1. You only have the partition defined to look at the top level of customers
2. THe member names of lower levels of customers is not consistent betweent he two cubes and you don't map member names.
You can prove that is it a partition definition problem by doing the same retrieves from your ASO cube. If you get back data you know it is a partition definition problem. If you don't get back the proper data you have different problems. One that would not seem logical unless you had odd formulas on your ASO cube. -
Setting bold font for nodes which are not leaf nodes
In JTree, is it possible to set the font for nodes which are not leaf nodes. Can I do this without using custom renderer, or at the most using a DefaultTreeCellRenderer ?
regards,
nirvanIn JTree, is it possible to set the font for nodes which are not leaf nodes. Can I do this without using custom renderer, or at the most using a DefaultTreeCellRenderer ?
regards,
nirvan -
How to make the leaf node of the APEX tree downloadable
Hi All,
I am trying to build a "library" page for my application, with the documents as the leaf nodes of the tree. The documents come from a database table, and each document is a BLOB.
My question is, how should I write the "link" part of the APEX tree query to make the lead node document downloadable for the end users?
Thanks,
ChristineHilary helped me out of this by creating a new form page with two new items there corresponding to the PK and BLOB column, then in the tree query use apex_util.get_blob_file_src function as the link. Below is the email from Hilary:
1. Created Form, page 13, based upon your table storing the documents as BLOBs. The form page has just two associated items: P13_DOC and P13_DOC_ID. The item P13_DOC is of type FILE and contains a source type of DB column, which is the first required parameters of the function get_blob_file_src. NOTE: I could have created a form region on the same page as your tree, but chose to generate a separate page. You may choose to change this yourself.
2. Updated the Tree query on pg 12 to use the following link for tree nodes of level 4:
apex_util.get_blob_file_src('P13_DOC',v.attr3)
...where P13_DOC is the application page item mentioned in step 1 above, and v.attr3 should hold the unique ID associated with the document. Your tree now allows users to download the listed documents. -
APEX Tree. Keep focus on expanded leaf node.
How do I prevent my tree from jumping back to the top when I expand a leav node that is below the screen scroll. I have a single parent of CORP with about 30 leaf nodes as its direct children. I have to scroll down to expand a node towards the bottom of the list. When I scroll down and expand, the page refreshes and jumps back to the top so now I have to scroll down again to expand the next node, etc. My current Tree Qurey is like
select CHILD_ID id,
PARENT_ID pid,
CASE WHEN CHILD_ID = :P23_TARGET THEN
CASE WHEN :P23_STATUS = 'Target Up' THEN
'<span styl="color:green;">' || ITEM_NAME || '</span>'
ELSE ITEM_NAME
END
ELSE
ITEM_NAME
END name,
'f?p=&APP_ID.:23:'||:SESSION||'::NO::P23_TARGET:'||CHILD_ID link,
null a1,
null a2
from CORP_SVR_HRCHY_VWHi,
You have to use the Anchor ID functionality of a browser - this allows you to add #id to the end of the url where id refers to the id attribute of the item that should receive the focus when the page is reloaded.
As an example: [http://apex.oracle.com/pls/otn/f?p=33642:200]
This, of course, requires a bit of setting up, but is easily doable.
For this example, my SQL statement for the tree is:
SELECT 1 ID, NULL PID, 'Top' NAME, NULL LINK, NULL A1, NULL A2 FROM DUAL
UNION ALL
select "EMPNO" id,
1 pid,
"ENAME" name,
'f?p=' || :APP_ID || ':200:' || :APP_SESSION || '::::P200_EMPNO:' || EMPNO || '#node' || EMPNO link,
'node' || EMPNO a1,
null a2
from "#OWNER#"."EMP"You will note that the URL contains *'#node' || EMPNO* at the end of the link - for an EMPNO of 1234, this would add *#node1234* to the end of the URL. You will also note that I've added *'node' || EMPNO* to the A1 column - whatever I add into this column becomes available for use in the output by referencing it as #A1# in the template. On the tree's template definition, wherever there is an A tag, I've included:
ID="#A1#"as an attribute of the tag. For example, on the "Name Link Anchor Tag" setting, I have:
<a href="#LINK#" ID="#A1#">#NAME#</a>and, wherever #A1# appeared outside of an A tag, I have removed it (otherwise, the "node1234" text would appear at that point in the page).
Andy -
Hi,
I have created a tree structure like below example, now I want to call a java function once i click leaf node only and want to get all node values i traveled to reach leaf node.
i.e when i click on leaf node A.1.1, i want to call bean function and want to get all values like A->A1->A1.1,So do i call this function,Please advice...
A
|-A1
|-A1.1
ThanksHi,
You can do it the other way as well. You can see if the node is a leaf node or not using node.getChildren()(returns null if it is a leaf node) method and display outputText if not a leaf node else display a command link.
To get the nodes you have travelled through, you can use node.getKeyPath() method which gives the list of the keys(oracle.jbo.Key) you have traversed through.
Sample Code:
<!-- Faces page -->
<af:treeTable var="node" ..>
<f:facet name="nodeStamp">
<af:column id="c1">
<af:switcher facetName="#{node.children eq null ? 'leaf' : 'non-leaf'}" defaultFacet="non-leaf">
<f:facet name="non-leaf">
<af:outputText value="#{node}"/>
</f:facet>
<f:facet name="leaf">
<af:commandLink text="#{node}" actionListener="#{MyBean.leafSelected}" partialSubmit="true">
<!-- getKeyPath() method on node gives the list of the keys(oracle.jbo.Key) you have traversed through -->
<af:setActionListener from="#{node.keyPath}" to="#{MyBean.keyPath}"/>
</af:commandLink>
</f:facet>
</af:switcher>
</af:column>
</f:facet>
</af:treeTable>
<!-- Inside Bean -->
private List keyPath;
//Add getter and setter methods for keyPath
//ActionListener method
public void leafSelected(ActionEvent ae){
//From the key you can get the primary key using getAttribute(0)
/*Eg.
for(int index = 0; index < keyPath.size(); index++){
Key key = (Key)keyPath.get(index);
System.out.println("Primary Key of the selected node in level "+index+" is: "+key.getAttribute(0));
}Sireesha -
BOOLEAN DEFAULT FALSE NOT NULL for key-column
Hello,
These statements show an unexpected behavior when a column is added to a table as 'BOOLEAN DEFAULT FALSE NOT NULL' and added afterward to the table's primary key column set:
create table test_1 (a char(1))
insert into test_1 values('A')
alter table test_1 add b boolean default false not null
alter table test_1 add primary key (a,b)
create table test_2 (a char(1), b boolean default false not null)
insert into test_2 (a) values('A')
alter table test_2 add foreign key f_test_1 (a,b) references test_1 (a,b)
-> [350]: Referential integrity violated
update test_1 set b=false
alter table test_2 add foreign key f_test_1 (a,b) references test_1 (a,b)
-> success
delete from test_2
delete from test_1
insert into test_1 (a,b) values('A',false)
insert into test_2 (a) values('A')
-> success
I think the error message '[350] Referential integrity violated' should not happen because the column 'b' really contains 'false'. But there obviously seem to be a difference before and after setting the column 'b' explicitly to 'false'. I can imagine that this depends on the way how the index for the primary key is updated. Probably the index is not properly updated in this context(?)
GabrielHi Gabriel,
you're right, this is a bug and indeed seems to caused by the way the DEFAULT boolean is stored in the page.
(There is no separate index for the primary key in MaxDB as all data is stored in B*trees - basically the table is the primary key).
This is how the record looks like when column b is 'false' only due to the change of the DEFAULT value:
ROOT/LEAF 460 perm entries : 1 [block 0]
bottom : 93 filevers: 14888 convvers: 83
writecnt: 1
1: (pos 00081)
00001 recLen : 12 recKeyLen : 4
00005 recVarcolOff: 0 recVarcolCnt: 0
record
1 2 3 4 5 6 7 8 9 10 11 12
81 82 83 84 85 86 87 88 89 90 91 92
dec: 12 0 4 0 0 0 0 0 32 65 0 0
hex: 0C 00 04 00 00 00 00 00 20 41 00 00
chr: A
And this is how it looks like after the explicit UPDATE:
ROOT/LEAF 460 perm entries : 1 [block 0]
bottom : 93 filevers: 14888 convvers: 84
writecnt: 2
1: (pos 00081)
00001 recLen : 11 recKeyLen : 3
00005 recVarcolOff: 0 recVarcolCnt: 0
record
1 2 3 4 5 6 7 8 9 10 11
81 82 83 84 85 86 87 88 89 90 91
dec: 11 0 3 0 0 0 0 0 32 65 0
hex: 0B 00 03 00 00 00 00 00 20 41 00
chr: A
Little difference but this leads to the problems during the foreign key validation.
I'll inform the developers next week about this.
As a workaround you'll have to explicitly update the columns for which you change the default setting.
regards,
Lars -
Data is not coming in pivot table
Hi,
i made a request using some measures,month (time) and some other columns but data is not coming when i m working on pivot table though its working in case of table and graph.
please help me out..
thanksHi,
well data is populating in tables and chart in Oracle BI and i also executed the same query in sql server 2005 and got the desired result.
the reason to show the results into pivot table is -- i want to show the result(measures) with time dimension and some other dimensions so i have to use this pivot table or if u have some other solution please let me know...
thanks
Edited by: user629711 on Nov 20, 2008 11:42 PM -
HT5429 direction is not coming in IOS 6 in india. can someone help me for the same?
direction is not coming in IOS 6 in india. can someone help me for the same? i'm using iphone 4
Hi Civilclerk1,
In order to achieve your requirement, we can try to use the following expression to instead the last_name column and first_name field:
last_name: =iif(Fields! staff_role.Value="Lead Atty" or Fields! staff_role.Value="BK Mgr" or Fields! staff_role.Value="Partner" ,Fields! last_name.Value,nothing)
first_name: =iif(Fields! staff_role.Value="Lead Atty" or Fields! staff_role.Value="BK Mgr" or Fields! staff_role.Value="Partner" ,Fields! first_name.Value,nothing)
Besides, if we don’t want see the blank row in the tablix, we can add a filter as below in the tablix:
Expression:=iif(Fields! staff_role.Value="Lead Atty" or Fields! staff_role.Value="BK Mgr" or Fields! staff_role.Value="Partner" ,1,0)
Operator:=
Value:=1
If there are any misunderstanding, please elaborate the issue for further investigation.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Translated description is not coming in BW reporting
Hello,
I have a BI report in which the description of each column is coming correctly when I have logged in english.
When I logged in German Language the description is not coming correctly. It is coming like selektion 1, Selektion 2. KIndly suggest me some solution.
Thanks and Regards,
Praveen kumar.Hello,
If you created your reports in logon language english , for the info objects (Custom info objects) for which you have not maintained German description will not be displayed if you logon in german.
Also for the formulas or new selection what ever you create in language in EN will not display the description in Language DE.
So Logon in Language DE and maintain the corresponding descriptions in your report.
Regards
M.A -
In excel sheet tab name is not coming-urgent
hi all,
one small rewquirement. if u run this test program it opens a excel sheet which contains signle tab. here tab name is not coming. i dont no hot to display tabname here.anybody can make the changes and send me the code.
i am sending my code below.
thanks,
maheedhar.t
REPORT ytestvij MESSAGE-ID zv.
TABLES sscrfields.
TYPE-POOLS: icon.
TYPES : BEGIN OF zfnames_ds,
reptext TYPE reptext,
END OF zfnames_ds.
TYPE-POOLS ole2 .
DATA: wa_fntxt TYPE smp_dyntxt.
DATA : wa_t75_booking TYPE zvt75_booking_h,
t_t75_booking TYPE STANDARD TABLE OF zvt75_booking_h.
DATA : wa_fields TYPE dfies,
t_fields TYPE STANDARD TABLE OF dfies.
DATA : wa_fnames TYPE zfnames_ds,
t_fnames TYPE STANDARD TABLE OF zfnames_ds.
handles for OLE objects
DATA: h_excel TYPE ole2_object, " Excel object
h_mapl TYPE ole2_object, " list of workbooks
h_map TYPE ole2_object, " workbook
h_zl TYPE ole2_object, " cell
h_f TYPE ole2_object. " font
DATA h TYPE i.
DATA : lin TYPE i.
data: excel type ole2_object,
application type ole2_object,
books type ole2_object,
book type ole2_object,
sheet type ole2_object,
cell type ole2_object,
column type ole2_object.
PARAMETERS : p_input TYPE localfile.
Add button to application toolbar
SELECTION-SCREEN FUNCTION KEY 1. "Will have a function code of 'FC01'
INITIALIZATION.
Add displayed text string to buttons
wa_fntxt-icon_id = icon_xls.
wa_fntxt-icon_text = 'Input File template'.
wa_fntxt-quickinfo = 'T75 Header Data'.
sscrfields-functxt_01 = wa_fntxt.
AT SELECTION-SCREEN.
IF sscrfields-ucomm = 'FC01'.
do nothing
PERFORM open_excel.
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_input.
PERFORM get_filename USING p_input.
START-OF-SELECTION.
*set pf-status 'ONE'.
END-OF-SELECTION.
WRITE : lin.
*& Form GET_FILENAME
text
--> p1 text
<-- p2 text
FORM get_filename USING p_file TYPE rlgrap-filename . "localfile.
DATA : w_rc TYPE i.
DATA : wa_file_table TYPE file_table ,
t_file_table TYPE STANDARD TABLE OF file_table.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
WINDOW_TITLE =
DEFAULT_EXTENSION =
DEFAULT_FILENAME =
FILE_FILTER =
INITIAL_DIRECTORY =
MULTISELECTION =
CHANGING
file_table = t_file_table[]
rc = w_rc
USER_ACTION =
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
OTHERS = 4
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 t_file_table INTO wa_file_table.
p_file = wa_file_table-filename.
ENDLOOP.
ENDFORM. " GET_FILENAME
*& Form open_excel
text
--> p1 text
<-- p2 text
FORM open_excel.
SELECT * FROM ZVT75_BOOKING_H
INTO TABLE t_t75_booking
UP TO 10 ROWS.
start Excel
CREATE OBJECT h_excel 'EXCEL.APPLICATION'.
PERFORM err_hdl.
SET PROPERTY OF h_excel 'Visible' = 1.
PERFORM err_hdl.
get list of workbooks, initially empty
CALL METHOD OF h_excel 'Workbooks' = h_mapl.
PERFORM err_hdl.
add a new workbook
CALL METHOD OF h_mapl 'Add' = h_map.
PERFORM err_hdl.
output column headings to active Excel sheet
PERFORM fill_cell USING 1 1 1 'Financial year'.
PERFORM fill_cell USING 1 2 1 'Financial quarter'.
PERFORM fill_cell USING 1 3 1 'Customer number'.
PERFORM fill_cell USING 1 4 1 'Booking Year'.
PERFORM fill_cell USING 1 5 1 'Financial quarter'.
PERFORM fill_cell USING 1 6 1 'Contract type'.
PERFORM fill_cell USING 1 7 1 'Sub Contract type'.
PERFORM fill_cell USING 1 8 1 'Customer purchase order number'.
PERFORM fill_cell USING 1 9 1 'Booking Amount'.
PERFORM fill_cell USING 1 10 1 'Currency Key'.
LOOP AT t_t75_booking into wa_t75_booking.
copy items to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 wa_t75_booking-BOOKYEAR.
PERFORM FILL_CELL USING H 2 0 wa_t75_booking-BOOKQTR.
PERFORM FILL_CELL USING H 3 0 wa_t75_booking-.
PERFORM FILL_CELL USING H 4 0 wa_t75_booking-BOOKYEAR.
PERFORM FILL_CELL USING H 5 0 wa_t75_booking-BOOKQTR.
ENDLOOP.
disconnect from Excel
FREE OBJECT h_excel.
PERFORM err_hdl.
ENDFORM. " open_excel
*& Form ERR_HDL
outputs OLE error if any *
--> p1 text
<-- p2 text
FORM err_hdl.
data test type sy-subrc.
test = sy-subrc.
IF test <> 0.
Message e000(ZV) with 'Error in OLE-Automation:'.
STOP.
ENDIF.
ENDFORM. " ERR_HDL
FORM FILL_CELL *
sets cell at coordinates i,j to value val boldtype bold *
FORM fill_cell USING i j bold val.
CALL METHOD OF h_excel 'Cells' = h_zl EXPORTING #1 = i #2 = j.
set property of sheet 'Name' = 'T75'.
PERFORM err_hdl.
SET PROPERTY OF h_zl 'Value' = val .
PERFORM err_hdl.
GET PROPERTY OF h_zl 'Font' = h_f.
PERFORM err_hdl.
SET PROPERTY OF h_f 'Bold' = bold .
PERFORM err_hdl.
ENDFORM.Hi,
Look at the below thread, i posted complete code in this one, just copy that Program and past in your SAP and run the Program, it will create 3 sheets with the names also, then look at the Sheet name in the code, you will understand where to add the code
Re: format an excel
Regards
Sudheer
Maybe you are looking for
-
Report for list of POs for with Invoice has not been posted
Hi All Can anybody tell me the report for list of PO' for which GR has already been done but Invoice is not posted Thnks Ranjith
-
hi, how I can delete add-in applications in add-in applications section , I try to delete one but I don't see any delete function, I see only enable and disable function in the manage add-in applications wizard. thanks johan h.david
-
Problem with importing a java export on SQLSERVER 2005
We are trying to import a java export for a system refresh. The SAPINSTgets too step 31 of 32, run java migration toolkit, and then fails with the following error. invalid object name "J2EE_CONFIG" This is showing up in the runJmt.log. com.sap.e
-
Serious scaling artifacts still present in CC
Hello, Of course I was tracing forums for the issue dating back to CS5.5. I mean scaling artifacts. Picture attached. To reproduce it, please create a solid, then apply a strong noise, and then upscale or downscale image for about 4 or 7%. You will s
-
Port forwarding to ip address only allows input of last digits
I have the Linksys BEFW11S4 router and am trying to port forward to a static ip address but the port forwarding screen is hard coded to 192.168.1.__ and only allows me to enter the last 3 digits of the quartet. Does anyone know how I can get past thi