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: 

Derive the category/subcategory from the product hierarchy (PRDHA)

Former Member
0 Kudos

Hi,

Anyone know of a function module/table/transaction in R/3 where I can derive the category/subcategory from the product hierarchy (PRDHA)?


So the hierarchy could be 020018463538

And this could be broken down into, for example:

020 - Electronic

0184 - Cars

63538 - Sport

Thks,

William

5 REPLIES 5

former_member585060
Active Contributor
0 Kudos

Hi,

    Try the function module RV_PRODUKTHIERARCHIE_SHOW.

Pass the value of the product hierarchy value in STUFE, like 1, 2, 3, 4, etc.

Thanks & Regards

Bala Krishna

0 Kudos

Thanks Bala.

It doesn't give me exactly what I'm looking for but a useful starting point - thank-you.

William

0 Kudos

Hi,

    Actually we used this function module for F4 functionality for PRODHS fields.

You have use RV_PRODUKTHIERARCHIE_SHOW and DDIF_FIELDINFO_GET to get the correct level details.

Sample code attached which we used for F4 functionality. Check on the importing parameters passed, only STUFE and DISPLAY = space need to be passed.

Thanks & Regards

Bala Krishna

0 Kudos

sample code attached here.

kesavadas_thekkillath
Active Contributor
0 Kudos

Try it like this

pass 020 and stufe = 1 to table T179

pass 0200184 and stufe = 2 to table T179

pass 020018463538 and stufe = 3 to table T179

check fm RV_PRODUKTHIERARCHIE_PRED_GET