07-30-2005 10:45 AM
Hi all,
I am having a problem in list display.I want the following output in list display.
Material brandcode
10000 abcd
empty abcd1
empty abcd2
10002 xyz
empty xyz
for the same material no we had three brand code and the material number should not be displayed for the second and remaininig brand codes.
Please help me.
Thanks & regards,
vijay.
07-30-2005 11:10 AM
Hi Vijay,
I could not understand your problem here. The data which need to be displayed in the ALV should be placed in an internal table and that table can be used to display ALV.
Fill your internal table as you are showing the data.
Let the field value be initial where material no. is same.
07-31-2005 11:31 AM
this can only be done in GRID display and not in list display. (this will automatically happen , if you just sort on material column - provided "without cell merging during sort" is unchecked in display attributes.)
Regards
Raja
08-01-2005 5:15 AM
Hi,
As Raja,that will automatically happen if you click sort button in the Grid display.
Check this link for sample programs.
http://www.geocities.com/mpioud/Abap_programs.html
Kindly reward points by clicking on the star on the left button if it is useful.Otherwise,get back.
08-03-2005 8:08 PM
Hi,
You can use the parameter IT_SORT of the fm REUSE_ALV_LIST_DISPLAY. Here you pass the fields and their positions and the table name to this structure. So that once the output is displayed the records are sorted and you will get your display.
08-04-2005 4:48 AM
Yes, it will automatically happen if u sort it based on material.
If u dont want to do that do it by code.
Put this code before you call the ALV.
sort itab by matnr.
loop at itab.
at new matnr.
new_matl = 'X'
endat.
if new_matl <> 'X'.
clear itab-matnr.
modify itab.
clear new_matl.
endif.
endloop.
Remember to reward points to the replies that answered your question.