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: 

displaying slave data dependent on master w REUSE_ALV_HIERSEQ_LIST_DISPLAY

Former Member
0 Kudos

Hi,

Can anyone help with the following problem.

I have modified transaction mb53 program in a way that instead of parameter: matnr I have a range for matnr.

This was rather complicated, but I managed to do so, I still have one problem left with displaying it.

In header table, there is 1 row for each material number, so thats ok.

In item table, there are all the rows for all the materials.

ie.

header table

matnr / maktx / werks / name1 / name2

1111 / text11 / 11111 / name1 / name2

1112 / text12 / 11222 / name3 / name4

in item table

matnr / lgort / werks ...

1111 / 112 / 11111

1111 / 113 / 11111

1111 / 114 / 11111

1112 / 115 / 11222

1112 / 116 / 11222

now, the output of this using REUSE_ALV_HIERSEQ_LIST_DISPLAY is so that I see all the information for each matnr defined in header table in data rows.

here:

1111 / text11 / 11111 / name1 / name2

1111 / 112 / 11111

1111 / 113 / 11111

1111 / 114 / 11111

1112 / 115 / 11222

1112 / 116 / 11222

1112 / text12 / 11222 / name3 / name4

1111 / 112 / 11111

1111 / 113 / 11111

1111 / 114 / 11111

1112 / 115 / 11222

1112 / 116 / 11222

Is it possible to make it work in a way that when there are more than 1 matnr-s in header table, it will display the data assigned to that matnr only... I would like it to be:

1111 / text11 / 11111 / name1 / name2

1111 / 112 / 11111

1111 / 113 / 11111

1111 / 114 / 11111

1112 / text12 / 11222 / name3 / name4

1112 / 115 / 11222

1112 / 116 / 11222

Thank you!

1 ACCEPTED SOLUTION

mvoros
Active Contributor
0 Kudos

Hi,

you just need to set additional key in structure IS_KEYINFO. You will just enter name of the field from header and corresponding field from item. FM will automatically group items with same key under corresponding header.

Cheers

3 REPLIES 3

mvoros
Active Contributor
0 Kudos

Hi,

you just need to set additional key in structure IS_KEYINFO. You will just enter name of the field from header and corresponding field from item. FM will automatically group items with same key under corresponding header.

Cheers

Former Member
0 Kudos

Hey,

right now, it is:

keyinfo-header01 = 'WERKS'.

keyinfo-item01 = 'WERKS'.

keyinfo-item02 = 'LGORT'.

keyinfo-item03 = 'CHARG'.

and i need to have?:

keyinfo-header01 = 'WERKS'.

keyinfo-item01 = 'WERKS'.

keyinfo-item04 = 'LGORT'.

keyinfo-item03 = 'CHARG'.

keyinfo-header02 = 'MATNR'.

keyinfo-item02 = 'MATNR'.

Thanks!

Former Member
0 Kudos

Thanks! it worked, I tried it before, but my matnr in display_table was wrongly defined!

You got 10 points from me;)