F.01 Tree Control Financial Statement
Hi,
When i run my report F.01 with Tree Control selected then it drills down till business area. The client wants to see this till Account. Is there any standard way or modification to do. Help required.
Thanks
Check if you can bring the Account Number from the change layout list of hidden fields.
Similar Messages
-
Table for finding out all the G/L accounts of a financial statement version
Hi all,
is there any table to find out the G/L accounts which will come under the tree of financial statement version(OB58). Please help.With FM FI_IMPORT_BALANCE_SHEET_POS, you will get the account list in the internal table I011Z.
You will get a list of intervals I011Z-VONKT - I011Z-BILKT. -
F.01 - Financial Statements (Not assigned)
Hi,
Please give me any tip.
I created a financial statement version, all accounts were included. I executed the transaction F.01 (Financial Statements) with mark in ALV tree control (list output), the balance sheet is displayed, I expand subtree, after each number of account exist 2 lines more: Number/Name of Company Code and under Not assigned.
Does anybody know how to hidden these last 2 lines? Maybe layout, note......
*I assined all accounts.
Thank you so much!!!Thanks to try help me!!
The configuration is only to "Show Total", this is not my problem, my problem is to use the option list output "ALV tree control" if I use this layout I have problem, others no problem, but the customer wants to use exactly this one.
Tks
Soraia -
Scaling in F.01 with ALV Tree Control
Hi Experts,
Is there any possibility of generating the financial statements in F.01 in ALV tree control with amount scaled to 3 or 5 zero's. When i try to use ALV with scaling, the scaling is reset to 0
Thanks in AdvanceNelow message will appear and not possible technically
Output option ALV Tree Control: Parameter Scaling set to 0/0
Message no. FR098
Diagnosis
You selected output option ALV Tree Control. For technical reasons, only the value 0/0 is possible for the parameter Scaling.
System Response
Parameter Scaling set to the value 0/0.
Procedure
If you want to compare the program output for output options ALV Tree Control and Classical list, you have to also set the parameter Scaling to '0/0' when running the program with output option Classical list. -
S_ALR_87012284 - List Output - ALV Tree Control
Dear Friends,
In Standard Financial statement report when I use List output -> ALV Tree Control lay out. In the display area is it possible to save the expanded folders in lay out. So that next time when I run the report with the same ALV Tree Contorl lay out, I would like to see folders expanded.
Thanks,
VenkyHi Venky,
There is no way to have expanded tree list. You must hit Expand tree button to.
You can also use ttrasaction code F.01 for balance sheet.
Best regards -
Financial statement version-OB58 required in current settings
Hello Group,
I want to bring Financial statement version-OB58 in current settings like others such as OB08, OB52 and FTXP.
Can anybody suggests me about how to bring in current settings wherin I can directly modify my FSV thru OB58 in production client.
Pl.guide me.
Thanks in advance,
Regards,
Kedar.I applied FSE2 to the Role for my Control Team to update and change the FSV.
Not sure about that note.
We find a transaction in the IMG, add it to a role and test before moving it to Production. Not all IMG activites have transactions.... -
Financial Statement Version Extract
Hi,
I have to down load the Financial Statement Version.
We can see it using T-Code 'FSE3'.
Requirement is to download the structure in CSV file.
File layout is:
PARENT,CHILD,DESCRIPTION OF CHILD
Is there any BAPI or Function module available that gives the structure or any other way to get it.
Will appreciate response.
Thanks
RohitSee report bellow, execute and see content of internal table <b>node_tab</b> before "WRITE 'Hello'.":
REPORT ztemp_estructura_balance MESSAGE-ID fe.
TYPE-POOLS:
fibs.
TABLES: t011, rfgbst.
TYPES:
t_flag TYPE c,
t_bs_node_id TYPE fibs_bs_node_id,
t_bs_node_tab TYPE t_bs_node_id OCCURS 50,
t_bs_type TYPE i.
TYPES:
BEGIN OF t_bs_info,
* info about BS given out to clients
ktopl LIKE t011-ktopl,
xauto LIKE t011-xauto,
type TYPE t_bs_type,
END OF t_bs_info.
CONSTANTS:
true TYPE t_flag VALUE 'X',
false TYPE t_flag VALUE ' '.
DATA: versn LIKE t011-versn VALUE 'CTIY'.
DATA: node_tab LIKE snodetext OCCURS 0 WITH HEADER LINE.
DATA: bs_info TYPE t_bs_info.
SELECT SINGLE * FROM t011
WHERE versn = versn.
* Load the structure from DB
PERFORM load_versn
USING versn.
* Create the node table for the function module displaying the tree
PERFORM create_node_tab
TABLES node_tab.
WRITE 'Hello'.
* Load the version (again) *
FORM load_versn
USING versn.
* Load the version
CALL FUNCTION 'FI_BS_LOAD'
EXPORTING
version = versn
IMPORTING
bs_info = bs_info.
* Load the texts
PERFORM load_versn_text.
ENDFORM. " LOAD_VERSN
*& Form LOAD_VERSN_TEXT
* Load the texts of the version *
FORM load_versn_text.
DATA:
flg_langu_maint TYPE t_flag VALUE false,
flg_sylangu_not_found TYPE t_flag,
maint_langu LIKE sy-langu.
CALL FUNCTION 'FI_BS_LOAD_LANGU'
EXPORTING
flg_langu_maint = flg_langu_maint
IMPORTING
flg_sylangu_not_found = flg_sylangu_not_found
maint_langu = maint_langu
EXCEPTIONS
OTHERS = 1.
* if maintenance language was loaded, because sy-langu was not found
IF flg_sylangu_not_found = true.
MESSAGE s741 WITH sy-langu maint_langu.
ENDIF.
* if maintenance language is wanted, but is different from SY-LANGU
* tell him
IF flg_langu_maint = true AND
maint_langu <> sy-langu.
MESSAGE s742 WITH maint_langu versn.
ENDIF.
ENDFORM. " LOAD_VERSN_TEXT
*& Form CREATE_NODE_TAB
* text *
FORM create_node_tab
TABLES node_tab STRUCTURE node_tab.
REFRESH node_tab.
DATA:
root_id TYPE t_bs_node_id.
* Get the root
CALL FUNCTION 'FI_BS_GET_ROOT'
IMPORTING
root_id = root_id
EXCEPTIONS
not_found = 01.
* Recursively add nodes
PERFORM add_node_with_subtree
TABLES node_tab
USING 1
root_id.
ENDFORM. " CREATE_NODE_TAB
*& Form ADD_NODE_WITH_SUBTREE
* Recursively add a node with its subtree *
FORM add_node_with_subtree
TABLES node_tab STRUCTURE node_tab
USING value(level) TYPE i
value(node_id) TYPE t_bs_node_id.
DATA:
children_node_tab TYPE t_bs_node_tab WITH HEADER LINE.
* Get the display info
CALL FUNCTION 'FI_BS_NODE_GET_SNODETEXT'
EXPORTING
node_id = node_id
with_gl_accounts = rfgbst-glac_on
IMPORTING
attr = node_tab
EXCEPTIONS
node_not_found = 01.
node_tab-tlevel = level.
APPEND node_tab.
* And do the same for its children
level = level + 1.
CALL FUNCTION 'FI_BS_NODE_GET_CHILDREN'
EXPORTING
node = node_id
with_gl_accounts = rfgbst-glac_on
TABLES
children_node_tab = children_node_tab
EXCEPTIONS
node_not_found = 01.
LOOP AT children_node_tab.
PERFORM add_node_with_subtree
TABLES node_tab
USING level
children_node_tab.
ENDLOOP.
ENDFORM. " ADD_NODE_WITH_SUBTREE -
Items in Tree control move around when data is submitted using custom ItemRenderer
I'm working on a Tree control with an XMLListCollection as
its dataProvider.
The dataProvider has information looking like this :
quote:
<?xml version='1.0' encoding='utf-8'?>
<INFO>
<FIELD label="STR_USER_NAME"
type="text"
value=""
>
</FIELD>
<FIELD label="STR_USER_EMAIL"
type="text"
value=""
>
</FIELD>
<FIELD label="STR_OPTIONAL"
type="branch"
value="0"
>
<FIELD label="STR_USER_ADDRESS"
type="text"
value=""
>
</FIELD>
<FIELD label="STR_USER_POSTAL_CODE"
type="text"
value=""
>
</FIELD>
</FIELD>
</INFO>
So in the Tree control I'd like the information to show up
with a label and
an
editable textbox for each item :
[Label] [textbox]
To do this I made a tree like this :
quote:
<mx:Tree id="userTree"
editable="true"
rendererIsEditor="true"
editorDataField="curVal"
itemRenderer="{new ClassFactory(ItemRendererUser)}"
itemEditEnd="e_ProcessData(event);"
dataDescriptor="{new DataDescriptorUsers()}"
showRoot="false"
verticalScrollPolicy="{ScrollPolicy.AUTO}"
/>
where the e_ProcessData() function looks like this (I used
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/js/html/wwhelp.htm?href=c
elleditor_073_16.html#202105 as a guide) :
quote:
public function e_ProcessData(event:ListEvent):void
event.preventDefault();
userTree.editedItemRenderer.data.@value =
ItemRendererUsers(event.currentTarget.itemEditorInstance).curVal;
userTree.destroyItemEditor();
userTree.dataProvider.notifyItemUpdate(userTree.editedItemRenderer);
} // END OF e_ProcessData()
I attached the rest of the files because they're a little
bit longer.
When I run the program, the data shows up fine when it is
initialized the
very
first time, and I made a test button that just dumps the
contents of the
dataProvider in a trace statement to verify that the data has
been set
properly.
The problem I've run into is whenever the textfield is
edited, the item
that
I've selected jumps around the list.
For example, if I edit the item "STR_USER_NAME" after I
finish the edit, it
will move from the very first position in the Tree to the
bottom of the
Tree.
I traced the contents of the dataProvider and the
dataProvider structure
stays
the same, with the "STR_USER_NAME" at the top, but if I look
at the flex app
in
the web browser, its position is at the bottom of the Tree.
This happens for every other item I try to edit... I read in
the
documentation
that the ItemRenderers are recycled, so it means I should be
checking to
make
sure the initial states are covered, but I'm not sure how
this affects my
application.
Can anyone help me out with this ? Its very confusing - I've
tried making
an
ItemRenderer using pure actionscript, mxml and the
combination you see in
this
example and I always end up with the same behaviour - So I
must be missing
something critical...
// ItemRendererUsers.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
verticalScrollPolicy="{ScrollPolicy.OFF}"
horizontalScrollPolicy="{ScrollPolicy.OFF}"
creationComplete="initItemRendererUsers();"
>
From my FAQ:
Q: I've created a custom itemRenderer component to use in a
List
based component (Datagrid, TileList, HorizontalList, etc.).
When my List
first displays, everything looks fine, but when I scroll it
or change the
dataProvider, some of the itemRenderers show values or
formatting that
aren't right. How do I fix this?
A: List-based components don't draw a renderer for every item
in the
dataProvider. Instead, they create enough to display what is
on screen now,
plus one or two more waiting in the wings. This means they
recycle the
renderers rather than creating new ones when you change
dataProvider or
scroll up and down. When you use a creationComplete event to
set up the
itemRenderer, that event doesn't happen again when the
renderer is used for
a different set of data. The solution to this is to override
the set data
protected function that most components have.
For more information, check out the following resources:
http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html?devcon=f1
http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html
Please note, I post this FAQ weekly, and you can find a
permanent copy of it
here
http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf"peterh8234" <[email protected]> wrote in
message
news:gaqttd$kft$[email protected]..
> Yes - the set and get functions are listed down below.
But the quirky
> behaviour
> is the same regardless of whether I override the set and
get functions or
> not.
>
> I noticed there was another variable called listData -
should I be using
> that
> one or the data variable to read and write to the
dataProvider ?
>
> // _data
> [Bindable] public var _data:Object;
> [Bindable("dataChange")]
> //
> override public function get data():Object
> {
> trace('[ItemRendererDefault.GET data()] called for {' +
> _data.attribute("label") + '}.');
> return _data;
> } // END OF get data()
>
> //
> override public function set data(value:Object):void
> {
> _data.@value = inputText.text;
> trace('[ItemRendererDefault.SET data()] called for {' +
> _data.attribute("label") + '}.');
>
> invalidateProperties();
> } // END OF set data()
Your set data needs to set a flag that gets picked up in
commitProperties()
and does your thing that you were doing before in
creationComplete. You
should see examples of this in the links I posted. Instead of
this:
_data.@value = inputText.text;
you should look at implementing IDropInListItemRenderer,
which will allow
you to dynamically determine which field to look at, instead
of hardcoding
it. You also might wind up overwriting the stored value with
a null value
when the List passes the stored value in. I'd encourage you
to really go
through those links I posted and make sure you understand
what they're
saying. The itemRenderer life cycle is one of the hardest
things to
understand, but once you understand it, it makes many things
in Flex much
easier. It's worth investing the time. -
How to consolidate the financial statements for 3 company codes, assigned t
Hi Friends,
How to consolidate the financial statements for 3 company codes, assigned to 3 different companies, 3 different fiscal years, 3 different controlling areas and all the 3 Company Codes assigned to same chart of accounts in the same client?
Can we need any ABAP program for this (or) Is it possible using Report Painter?
Please help me.
ThanksHi friend,
Is it a real-time situation or something you are visualising ?
For consolidation, you can use a group chart of accounts and select that in the operative chart of accounts for consolidation purposes. This would work provided the company codes use the same operative chart of accounts and fiscal year.
I hope the above would be helpful to you.
Regards, -
Financial statement consolidation
Hi,
Is there a sap standard report for financial statement consolidation for the following format (that would show the head office and subsidiaries in the column)?
HO Subsidiary1 Subsidiary2 Total
Asset
xxx xx xx xx xxx
xxx xx xx xx xxx
Liabilities
xxx xx xx xx xxx
xxx xx xx xx xxx
Equity
xxx xx xx xx xxx
xxx xx xx xx xxx
And are there also sap standard report for notes to financial statements schedules like Cash, Inventories, COS, Gen and admin exp, etc.
Thanks and regards,
DavidHI Manohar
there is separate concept called ECCS. Enterprise Controlling and Consollidation System, u have to go through that configuration. U can not Consolidate just with Group Chart of Account as Fiscal Year is different.
Satish -
Financial Statement (F.01) in two currencies at once
Hi,
Transaction F.01 and S_ALR_87012284 provides Financial Statements. The limitation of standard reports, as per our research, is it provides either in Company Code Currency or Hard Currency, i.e. One currency at a time, and is controlled through Currency Type.
We are maintaining Company Code Currency as local currency and USD as hard currency and want to view our financial statements in both currencies at a time. What experts suggest? Either their is a standard report available or we have to design our own? If customized report is the option, whats the best tool to use for quick report generation?
Thanks!
BRHI
Try the following reports as well
S_ALR_87012249 Actual/Actual Comparison for Year
S_ALR_87012250 Half-Year Actual/Actual Comparison
S_ALR_87012251 Quarterly Actual/Actual Comparison
S_ALR_87012252 Periodic Actual/Actual Comparison
If they do not work, best alternative would be to use the report painter (GRR1/2/3) to create your own report
Regards
Sach!n -
Trail balance by ob58(financial statement version)
Hi Experts,
At present i have coded one report which produces debits and credits ie Trail Balance by property..... but the requirement now they are asking is that i want to display the output of the Trail balance by Financial Statement item the where the data is to be taken from the transaction ob58 and i want to use f00b (Financial Statement Version B of 2000) for this...
Please help me out if any one knows regarding this how this can be done....
Points will be rewarded...!
Its urgent please...!
Thanks,
Brahma...!I applied FSE2 to the Role for my Control Team to update and change the FSV.
Not sure about that note.
We find a transaction in the IMG, add it to a role and test before moving it to Production. Not all IMG activites have transactions.... -
How to open child node in Tree control?
Hi All,
I am using arrayCollection in my tree control.
I want to open one child node based on name of that node.
How to open that chid node?
I tried tree.OpenItems and ExpandItem methods. IT is not working. Any idea how to do it?write this statement
TreeObject.expandItem("the branch",true)
But make sure you dont call this statement right after you set the dataProvider for the tree object. Instead wait for a second or two and then call this statement. This delay is allow the tree object ot call it validate functions.
Let me know if it helps -
Tree control: How to disable the selection of a child item
Hello everyone,
Im having trouble with disabling the selection of a child item in a tree control. I dont know if its possible but havent found any answers on this forum regarding this issue.
Example:
Parent tag 1
child item 1
child item 2
Parent tag 2
child item a
child item b
What i would like to do is being able to select the parent tags but not the child items, because i use the name of the selected item in my program to determine which actions are allowed and those that are not. To avoid this problem i look at the first 4 letters of the name and this way i can determine if it is a parent tag or child item and take appropriate action. Im able to do this because the parent tags have fixed names. But even though nothing happens in software if i select a child item it still lights up, so for the user of the program it looks as if the child items is selected but the program doesnt do anything(because i made it that way). Thats why i want to be able to disable the selection of the child item or at least make the selection colour of the child item transparant so it doesnt look like it is selected.
Can anyone help me with this problem, if there are parts of my question you dont understand, just ask.
greetz
Ynse.Muks,
your last image disables the whole tree.
To programmatically disables an item use ActiveItem.Disabled? property.
Unfortunately this only has two states, Enabled and disabled (thus grayed).
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
Control Framework tree control event not trigerring
The event handle_node_double_click is not trigerring on the tree controls . I want to display the contents of the nodes on the text editor on trigerring of this event
*& Report ZCONTROLS_TREE_TEDIT_SPITTER
REPORT zcontrols_tree_tedit_spitter.
DATA : editor TYPE REF TO cl_gui_textedit,
tree TYPE REF TO cl_gui_simple_tree.
DATA : container TYPE REF TO cl_gui_custom_container,
splitter TYPE REF TO cl_gui_easy_splitter_container,
right TYPE REF TO cl_gui_container,
left TYPE REF TO cl_gui_container.
DATA : node_itab LIKE node_str OCCURS 0.
CLASS EVENT_HANDLER DEFINITION
CLASS event_handler DEFINITION.
PUBLIC SECTION.
METHODS : handle_node_double_click
FOR EVENT NODE_DOUBLE_CLICK OF cl_gui_simple_tree
IMPORTING node_key.
ENDCLASS. "EVENT_HANDLER DEFINITION
CLASS EVENT_HANDLER IMPLEMENTATION
CLASS event_handler IMPLEMENTATION.
METHOD handle_node_double_click.
perform node_double_click using node_key.
ENDMETHOD. "HANDLE_NODE_DOUBLE_CLICK
ENDCLASS. "EVENT_HANDLER IMPLEMENTATION
data : handler1 type ref to event_handler.
START-OF-SELECTION.
CALL SCREEN 9001.
*& Module start OUTPUT
text
MODULE start OUTPUT.
SET PF-STATUS 'ZSTAT1'.
IF container IS INITIAL.
CREATE OBJECT container
EXPORTING
container_name = 'CONTAINER_NAME'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CREATE OBJECT splitter
EXPORTING
parent = container
orientation = 1
name = 'Mohit'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 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.
left = splitter->top_left_container.
right = splitter->bottom_right_container.
CREATE OBJECT editor
EXPORTING
parent = right
name = 'MohitEditor'
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
OTHERS = 6
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CREATE OBJECT tree
EXPORTING
parent = left
node_selection_mode = tree->node_sel_mode_single
name = 'MohitTree'
EXCEPTIONS
lifetime_error = 1
cntl_system_error = 2
create_error = 3
failed = 4
illegal_node_selection_mode = 5
OTHERS = 6
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
PERFORM fill_tree.
CALL METHOD tree->add_nodes
EXPORTING
table_structure_name = 'NODE_STR'
node_table = node_itab
EXCEPTIONS
error_in_node_table = 1
failed = 2
dp_error = 3
table_structure_name_not_found = 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.
create object handler1.
set handler handler1->handle_node_double_click for tree.
ENDIF.
ENDMODULE. " start OUTPUT
*& Module USER_COMMAND_9001 INPUT
text
MODULE user_command_9001 INPUT.
CALL METHOD cl_gui_cfw=>dispatch.
ENDMODULE. " USER_COMMAND_9001 INPUT
*& Form fill_tree
text
--> p1 text
<-- p2 text
FORM fill_tree .
DATA : node LIKE node_str.
CLEAR node.
node-node_key = 'head_mohit'.
node-isfolder = 'X'.
node-text = 'Mohit'.
APPEND node TO node_itab.
CLEAR node.
node-node_key = 'Child1'.
node-relatkey = 'head_mohit'.
node-relatship = cl_gui_simple_tree=>relat_last_child.
node-text = 'Mohit is the best '.
APPEND node TO node_itab.
CLEAR node.
node-node_key = 'Child2'.
node-relatkey = 'head_mohit'.
node-relatship = cl_gui_simple_tree=>relat_last_child.
node-text = 'Mohit is the bestest '.
APPEND node TO node_itab.
CLEAR node.
node-node_key = 'head_JAIN'.
node-isfolder = 'X'.
node-text = 'jAIN'.
APPEND node TO node_itab.
CLEAR node.
node-node_key = 'Child3'.
node-relatkey = 'head_JAIN'.
node-relatship = cl_gui_simple_tree=>relat_next_sibling.
node-text = 'cnh INDIA '.
APPEND node TO node_itab.
CLEAR node.
node-node_key = 'Child4'.
node-relatkey = 'head_JAIN'.
node-relatship = cl_gui_simple_tree=>relat_last_child.
node-text = 'SAP '.
APPEND node TO node_itab.
ENDFORM. " fill_tree
*& Form node_double_click
text
-->P_NODE_KEY text
form node_double_click using p_node_key type TV_NODEKEY.
DATA : node LIKE node_str.
DATA textline(256).
DATA text_table LIKE STANDARD TABLE OF textline.
READ TABLE node_itab WITH KEY node_key = p_node_key
INTO node.
endform. " node_double_click
*& Module exit INPUT
text
module exit input.
CASE sy-ucomm.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
endmodule. " exit INPUTHello Mohit
Here is a sample routine (taken from BCALV_TREE_02) which you have to add and adapt for your report. It does two things:
1. Register events that should be handled (required but not sufficient for event handling)
2. Set event handler for registered events
The first step is different from ALV grid controls because here all events are already registered with the control (not the control framework).
Set the event handler (statement SET HANDLER) registers the event handling with the control framework.
FORM register_events.
*§4. Event registration: tell ALV Tree which events shall be passed
* from frontend to backend.
DATA: lt_events TYPE cntl_simple_events,
l_event TYPE cntl_simple_event,
l_event_receiver TYPE REF TO lcl_tree_event_receiver.
*§4a. Frontend registration(i): get already registered tree events.
* The following four tree events registers ALV Tree in the constructor
* method itself.
* - cl_gui_column_tree=>eventid_expand_no_children
* (needed to load data to frontend when a user expands a node)
* - cl_gui_column_tree=>eventid_header_context_men_req
* (needed for header context menu)
* - cl_gui_column_tree=>eventid_header_click
* (allows selection of columns (only when item selection activated))
* - cl_gui_column_tree=>eventid_item_keypress
* (needed for F1-Help (only when item selection activated))
* Nevertheless you have to provide their IDs again if you register
* additional events with SET_REGISTERED_EVENTS (see below).
* To do so, call first method GET_REGISTERED_EVENTS (this way,
* all already registered events remain registered, even your own):
call method g_alv_tree->get_registered_events
importing events = lt_events.
* (If you do not these events will be deregistered!!!).
* You do not have to register events of the toolbar again.
*§4b. Frontend registration(ii): add additional event ids
l_event-eventid = cl_gui_column_tree=>eventid_node_double_click.
APPEND l_event TO lt_events.
*§4c. Frontend registration(iii):provide new event table to alv tree
CALL METHOD g_alv_tree->set_registered_events
EXPORTING
events = lt_events
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3.
IF sy-subrc <> 0.
MESSAGE x208(00) WITH 'ERROR'. "#EC NOTEXT
ENDIF.
*§4d. Register events on backend (ABAP Objects event handling)
CREATE OBJECT l_event_receiver.
SET HANDLER l_event_receiver->handle_node_double_click FOR g_alv_tree.
ENDFORM. " register_events
Regards
Uwe
Maybe you are looking for
-
I am in process of selecting a model of the Air. I am more a PC guy than a MAC guy, but I 1, would like to become more facile with Mac and 2, I like the AIr "form factor". I will likely choose a 256 or 512 model. The main question is about the pro
-
MacBook Pro (9,2) Thunderbolt Port does not project mirror image correctly
Scenario: Using an Apple Mini Display Port to VGA adapter MacBook Pro (9,2) Thunderbolt port Various projectors Epson 450w Epson 460 Epson PowerLite 45+ Using Mirroring setting in Display preferences. Symptoms: Inserting the Apple Mini Display Port t
-
ICC profiles for Epson R1800 and Lightroom - Mac Osx
Without trying to inflame an already heated discussion on prints that are too dark under my lightroom - printer - Mac Osx configuration. (Although I too am a sufferer of the darkness...!) I have recently downloaded the latest ICC profiles for the R18
-
as above, I was re-charged for downloading an app (game) I had already paid for. This was done at the game designer's suggestion to reset the results. Why was a I charged a second time? What can I do to get a refund?
-
Popup slides under the PDF in Internet Explorer
Hi, created a popup for a button, it opens fine in chrome , the page has a PDF file. but in IE it is sliding under the PDF when i drag to the PDF. Please let me know if have any suggestions. shanthan