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

Hierarchy using an infoobject attribute

lucas_costa3
Active Contributor
0 Likes
1,667

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!

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Likes

Hi,

You can insert a characteristic node for the hierarchy for crating a hierarchy of attributes of a particular info object. You can do this using RSH1 transaction.

Navesh

lucas_costa3
Active Contributor
0 Likes

Thank you all for reply.

I think that I was not clear in my question...sorry.

What I mean when I say, create an hierarchy, is create automatically. Manual is not viable, because the number of materials and constant changes and new materials.

An ABAP program was done by me, but does not work. I tried to put the values of text node first and then the material numbers reading the field 0DIVISION, updating this right in the table hierarchy. But I don't get succes because with this way the tables lose their references, I guess.

Thank you All.

former_member188080
Active Contributor
0 Likes

Hi,

Either you can load the data for attributes to flat file.

If data is not much you can load the data through manual mode. Just right click and insert charateristics node.

Pl note in the attribute you need to check the box so that it wiould be available for hierarchy reporting.

Once you will right click then you should see navigational object there,just select then you should see master data values under that .Just select that and rename the node.Post all above activities activate the hierarchy.

Let me know if you are having any questions.

Thanks and regards

Kiran

lucas_costa3
Active Contributor
0 Likes

Thanks Kiran.

I have been looking for a answer for this hierarchy problem, and this seems to be the better way so far. If no other way is found, I'll make this way.

Tks!

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!

former_member199691
Active Contributor
0 Likes

You can create a characteristic node for that.

While creating hierarchy, you have an option to create characteristic node.

I hope that should solve your purpose.

Regards,

Gaurav