cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hierarchy using an infoobject attribute

lucas_costa3
Active Contributor
0 Likes
1,692

Hi,

Is possible to create an hierarchy using an infoobject attribute?

I need to create a hierarchy for 0MATERIAL where the levels will be separated by division (0DIVISION attribute).

If somebody know a way, an ABAP code, an method, anything, please share with me.

Greetings!

View Entire Topic
Former Member
0 Likes

Hi,

You can only insert Characteristics value from Attributes. Node should be Text ..

Please give us more details which will help us understand the requirement ...

Eg. 0Material should be shown as hierarchy and division as Node

Material

-


Division ABC' (Text Node )

x (Attribute Value)

y

z

-


Division DEF'

j (Attribute Value)

k

l'

-


Thanks

BVR

Edited by: binu v. rajan on Sep 22, 2011 12:00 PM

lucas_costa3
Active Contributor
0 Likes

Binu, thanks.

What I have is the folowing:

MATERIAL DIVISION

E1 ___________50

B2 ___________50

G4 ___________40

T4 ___________60

What I need is the folowing:

1 - HMATERIAL - Material Hierarchy

-


1.1- 40 - Packaging

-


1.1.1 - G4 - Bags

-


1.2- 50- Raw material

-


1.2.1 - E1 - Korn

-


1.2.2 - B2 - Water

-


1.3 - 60 - Finished Product

-


1.3.1 - T4 - Cookies

Thank you.

Edited by: lucascosta on Sep 22, 2011 1:48 PM

Former Member
0 Likes

Hi,

In order to meet that you have to create the structure of the same manually.. You can load data using flat file even after that ... Please find the below links which help you to achieve your target.

To create structure

Add External char which all are required

Create Hierarchy on 0Material

Give name

in change/ modification screen Create Characteristic Node button and select 0DIVISION and select the values from them then execute

If Loading maintaining manually , follow the step 1 else Step 2.

Step 1.

Context menu of the node which loaded and insert Insert Characteristics and then select Info Object 0Material and select values from list displayed accordingly..

save

Step 2.

hierarchy flat file create.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90859ec4-9c90-2c10-5cbd-933ce3251...

Structure of Hierarchy

http://help.sap.com/saphelp_nw04/helpdata/en/de/113037530b7774e10000009b38f839/content.htm

Hierarchy Load using flat file

Hope I clearly understand your requirement ...

-


Thanks

BVR

former_member199691
Active Contributor
0 Likes

You can also try this;

  • maintain Division as navigation attribute of Material

  • in the query bring Division and then Material in the rows

now right click and say display as hierarchy.

Using this feature, you can display data as hierarchy without creating a actual hierarchy.

Regards,

Gaurav

lucas_costa3
Active Contributor
0 Likes

Thank you Binu.

But, it's not what I'm looking for yet.

This example (Step 2) is for Account hierarchyes.

And I need to create an hiararchy for a number of materials.

I'm still searching.

Regards.

lucas_costa3
Active Contributor
0 Likes

Hi,

Problem solved! I got to load the hierarchy dinamically and automatically without using files!

I done this using an process with ABAP code, that created a custom datasource and then an ABAP code was used to load the necessary data.

In soon I'll write a document with the steps, and if somebody, someday need, just let me know.

Regards and very thank you!