cancel
Showing results for 
Search instead for 
Did you mean: 

Product hierachy

Former Member
0 Kudos

i have a SD report where i have to restrict my op based on product hierachy entered in th selection screen,however my selection flow is as follows .I first select all t materials from mara and for the sales org and distribution channel . I also check for the billing date..if i give equal to the product hierachy then i get t right op however if i give a greater than equal to or less than equal to my op does nt come right.If u chk mara table u ll see that product hier is maintained in diff levels .The kind of logic used in mara is wat i want to implement in code...How do i do it? Pls suggest...

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

I would like to clarify that if i enter greater than some product hierachy say HM then i shud be getting the value of HM and HMTGT HMIPS as maintained for the material for the salesorg and distribution channel.How do i write this as code?If u click on the PRDHA field of mara and give an F4 you ll understand as to how the next levels are given.Pls analyze

Former Member
0 Kudos

I would put it this way for better understandig.If i enter greater than or equal to HM in product hierachy in the selection screen it should display me the next levels of HM ie HMHGT ,HMGTIPS and so on as maintained for the material.

Former Member
0 Kudos

I think you are using select-option for selection screen right.

if so why should you use equal or less or greater .

what i mean is use for eg:

select * from mara where <field> in <select-option>

thanks

Arun

Former Member
0 Kudos

Hi,

product hierarchy is from VBAP-PRODH,

get it based on vbeln

Regards

Shiva

Former Member
0 Kudos

Please post your code so we can evaluate it.