2007 Apr 10 3:06 PM
In ALV output list having f1 f2 f3 f4 columns...now i want this output in a manner like f2 f4 f3 f1..how to do this?
2007 Apr 10 3:23 PM
Hi..
Just Change the Column positions..
<b>fieldcat-col_pos = 1. " for field 1
append fieldcat to t_fieldcat.
fieldcat-col_pos = 3. " for field 3
append fieldcat to t_fieldcat.
fieldcat-col_pos = 2. " for field 2
append fieldcat to t_fieldcat.
</b>
In ALV output list having f1 f2 f3 f4 columns...now i want this output in a manner like f2 f4 f3 f1..how to do this?
2007 Apr 10 3:08 PM
2007 Apr 10 3:18 PM
hi
u just <b>change the column position</b> in the manner u want in the field catalog
col-pos = '1'..
regards
ravish
<b>plz reward if helpful</b>
2007 Apr 10 3:21 PM
2007 Apr 10 3:23 PM
Hi..
Just Change the Column positions..
<b>fieldcat-col_pos = 1. " for field 1
append fieldcat to t_fieldcat.
fieldcat-col_pos = 3. " for field 3
append fieldcat to t_fieldcat.
fieldcat-col_pos = 2. " for field 2
append fieldcat to t_fieldcat.
</b>
2007 Apr 10 3:26 PM
In the fieldcatalog preperation use the following code
loop at lt_fcat assigning <lwa_fcat>.
if <lwa_fcat>-fieldname = 'f1'.
<lwa_fcat>-col_pos = 4 .
elseif <lwa_fcat>-fieldname = 'f2'.
<lwa_fcat>-col_pos = 1 .
elseif <lwa_fcat>-fieldname = 'f3'.
<lwa_fcat>-col_pos = 2 .
elseif <lwa_fcat>-fieldname = 'f4'.
<lwa_fcat>-col_pos = 3 .
endif.
endloop.
reward points if helpful..
regards,
santosh.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |