Skip to Content
0
Former Member
Mar 02, 2009 at 09:33 AM

displaying slave data dependent on master w REUSE_ALV_HIERSEQ_LIST_DISPLAY

82 Views

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!