ALV_GRID Sort/Grouping - Important!

Question:
Hi ALL!
I have an internal table with structure (for expamle):
Header data 1 | Item data 1
Header data 1 | Item data 2
Header data 1 | Item data 3
Header data 2 | Item data 1
Header data 3 | Item data 1
Header data 3 | Item data 2
Header data 4 | Item data 1
Header data: Doc_No, Doc_Text, Doc_CreatedBy...
Item data: Pos_No, Pos_Text...
When I sort data in ALV GRID by Header data (all) and Item data (Pos_No) with grouping, I get something like this:
0001 | Document X | USER1 | 0001 | Text...
| | | 0002 | Text...
| | | 0003 | Text...
0002 | Document Y | | 0001 | Text...
0003 | | USER2 | | Text...
| | | 0002 | Text...
...
So, grouping in each column works independent.
It's not comfortable to work with this reports...
What I need to do to set grouping depended from first column
(or something else) to get following report:
0001 | Document X | USER1 | 0001 | Text...
| | | 0002 | Text...
| | | 0003 | Text...
0002 | Document Y | USER1 | 0001 | Text...
0003 | Document Y | USER2 | 0001 | Text...
| | | 0002 | Text...
...
Thanks for any ideas!
Answer:
Alex,
You're example is a tad difficult to comprehend. Could you give a slightly better example of what you are trying to achieve.
From what I do comprehend I think you migt need to insert a hidden sort key to force the order that you want.
Coyote.

More Articles:

Debugging of transaction?
Activating screens as include screens?
Need example of simple program to update an Infotype for all?
Duplicate numbers?
New index for MSEG?
How to convert Calendar month/year to Fiscal year/period?