‎2008 Mar 19 4:37 PM
this is my question.
i have this print
CID POSITION
- 01 010
01 010
01 010
01 020
01 020
02 020
02 020
02 020
in this moment my print:
CID POSITION
01 010
020
02
gw_fieldcat-tabname = 'GT_DETTAGLIO'.
gw_fieldcat-fieldname = 'CID'.
gw_fieldcat-seltext_l = 'Cid'.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
lw_sort-fieldname = 'CEDOLA'.
APPEND lw_sort TO lt_sort.
CLEAR lw_sort.
gw_fieldcat-tabname = 'GT_DETTAGLIO'.
gw_fieldcat-fieldname = 'POSITION'.
gw_fieldcat-seltext_l = 'Position.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
lw_sort-fieldname = 'POS'.
APPEND lw_sort TO lt_sort.
CLEAR lw_sort.
I want that when I make the sort, it must sort to me therefore
CID POSITION
01 010
01 020
02 020
___________
this is possible ?
‎2008 May 05 7:25 AM
After loop write this line your problem will solved
DELETE ADJACENT DUPLICATES FROM GT_DETTAGLIO COMPARING all fields.
‎2008 May 05 7:25 AM
After loop write this line your problem will solved
DELETE ADJACENT DUPLICATES FROM GT_DETTAGLIO COMPARING all fields.
‎2008 May 07 11:09 AM
Hi,
apply this two line in your code just after the internal table is getting populated. you will get the appropriate result.
DELETE ADJACENT DUPLICATES FROM itab COMPARING cid position.
sort itab by cid position.
itab is your internal table name.
reward some point.
Bye,
Anomitro
‎2008 May 13 11:38 AM