05-17-2012 4:55 PM
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
05-17-2012 5:19 PM
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
05-18-2012 10:43 AM
Thanks Bala.
It doesn't give me exactly what I'm looking for but a useful starting point - thank-you.
William
05-18-2012 11:01 AM
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
05-18-2012 11:04 AM
05-18-2012 11:17 AM
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