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: 

Problem on Profit Center Group Heirarchy

Former Member
0 Kudos

Hi,

I have a problem regarding profit center group heirarchy. The situation is like this: I have the highest parent node which is the Group Name then its first child in the tree is the persons responsible then next is the companies under him/her and then the projects under the companies.. Now i have a program that generates income stmt depending on how the user filters it's data from FAGLFLEXA table using profit center field.. the filtering shud be like this:

Select-options: Group Name,

Person Responsible,

Companies,

Projects.

my problem is i dont know where i cud get the all those fields. I wonder if anyone cud help. THnx.

And also i want to filter the data selected by the user in select-options like for example if the user chooses

Group name, the next select-options which is person responsible shud depend on the Group name selected and that follows with the next select-options. Thnx in advance

6 REPLIES 6

christine_evans
Active Contributor
0 Kudos

If what you want to do is to read the hierarchy for a profit centre group, there are BAPIs available - to find them, look in transaction BAPI under 'Enterprise Controllling'.

0 Kudos

Not just read it.. I want to put it as filters for my report.. i want to use it in select-options as what i've said in my problem.. is there anyway i could do it? Thnx in advance

0 Kudos

>

> Not just read it.. I want to put it as filters for my report.. i want to use it in select-options as what i've said in my problem.. is there anyway i could do it? Thnx in advance

Ok, I understand from this that you can read the hierarchies and get your data. Once you've got your data then you can validate the user input against it. I'd try bypassing the normal SAP search helps and use my own pop-up screens called from buttons on the selection screen to display the filtered data and allow the user to select what they wanted at each level.

For example.

Button 1 would allow them to search and select Level 1 (top node) values.

Button 2 would call a pop-up screen which would display and allow them to select Level 2 (next node down) values that relate to the Level 1 values already selected.

Button 3 would call a pop-up screen which would display and allow them to select Level 3 values that relate to the Level 2 values selected.

And so on...

0 Kudos

Yes that's exactly what i want to do. I know that the tables used in it are SETHEADER, SETNODE, and SETLEAF, but i want to use it in select-options so that I could filter my fetching of data. can u teach me how i cud do it? or can u lend me some sample codes for it.. Thnx in advance.

0 Kudos

>

> Yes that's exactly what i want to do. I know that the tables used in it are SETHEADER, SETNODE, and SETLEAF, but i want to use it in select-options so that I could filter my fetching of data. can u teach me how i cud do it? or can u lend me some sample codes for it.. Thnx in advance.

If you use the BAPI to get the data, as I suggested above, you won't need to deal with the tables.

This is all just a question of getting the data, organising it and displaying it on a pop-up screen on the selection screen in reaction to one of the button presses. As I've described above. All basic ABAP really.

0 Kudos

Ahh ok.. sorry im still a beginner in ABAP programming.. Thnx anyway for you replies.. ill try to research what u've said.. Thnx again..