Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

To develop cost centr hierchy report

Former Member
0 Kudos

Hi all

II need to develop a report of cost centre hierarchy (KSh3) in ALv format

Example format

should be

Level 1 level1 desc Level2 level2 desc level3 level3 desc -


Cost centre cc desc

I need to get dyanmically

I found the higest level of hierarchy & created a dynamically an interna table using field symbol.

I read the data from from on eof the function module and moved into ione internal table

getting the level,child, parent, flag .cost centre.

now i am unable to format to the current structure

i am facing problem in moving data to fiels symbol in a specfic format.

Please help if somebody has devloped such report by sending me the code.,.

chitrasush

1 REPLY 1

former_member555112
Active Contributor
0 Kudos

Hi,

To make use of tree control go through the following.

In SE38 in menu options go to

Environment>Examples>Control Examples.

In that check Tree Controls and Drag and Drop. You can find the sample code.

For more information check the programs

BCALV_GRID_DND_TREE ALV Grid: Drag and Drop with ALV Tree

BCALV_GRID_DND_TREE_SIMPLE ALV GRID: Drag and drop with ALV tree (simple)

BCALV_TEST_COLUMN_TREE Program BCALV_TEST_COLUMN_TREE

BCALV_TEST_SIMPLE_TREE Program BCALV_TEST_SIMPLE_TREE

BCALV_TREE_01 ALV tree control: build up the hierarchy tree

BCALV_TREE_02 ALV tree control: event handling

BCALV_TREE_03 ALV tree control: use an own context menu

BCALV_TREE_04 ALV tree control: add a button to the toolbar

BCALV_TREE_05 ALV tree control: add a menu to the toolbar

BCALV_TREE_06 ALV tree control: Icon column and icon for nodes/items

BCALV_TREE_DEMO Demo for ALV tree control

BCALV_TREE_DND ALV tree control: Drag & Drop within a hierarchy tree

BCALV_TREE_DND_MULTIPLE ALV tree control: Drag & Drop within a hierarchy tree

BCALV_TREE_EVENT_RECEIVER Include BCALV_TREE_EVENT_RECEIVER

BCALV_TREE_EVENT_RECEIVER01

BCALV_TREE_ITEMLAYOUT ALV Tree: Change Item Layouts at Runtime

BCALV_TREE_MOVE_NODE_TEST Demo for ALV tree control

BCALV_TREE_SIMPLE_DEMO Program BCALV_TREE_SIMPLE_DEMO

Regards,

Ankur Parab