on 02-28-2006 10:32 AM
i write dynamic alv and i want to set the columns order ,
so i add code like this :
READ TABLE IT_PERIOD_ZFBDT WITH KEY MONTH_BEGIN = '10' .
LS_FCAT-COL_POS = IT_PERIOD_ZFBDT-COL_POS + 3.
CONCATENATE
IT_PERIOD_ZFBDT-YEAR
'_'
IT_PERIOD_ZFBDT-MONTH_BEGIN
'_'
IT_PERIOD_ZFBDT-MONTH_END
INTO FIELD .
LS_FCAT-COLTEXT = FIELD . "
LS_FCAT-COLTEXT = TEXT-007 .
CLEAR LS_FCAT-REF_TABLE.
LS_FCAT-INTTYPE = 'P' .
LS_FCAT-DATATYPE = 'QUAN'.
LS_FCAT-DO_SUM = 'X'.
LS_FCAT-TABNAME = 'IT_AGENT_BLNCE'.
LS_FCAT-FIELDNAME = 'PERIOD_10_12'.
LS_FCAT-REF_FIELD = 'PERIOD_10_12'.
MODIFY IT_COLUM_HEADER FROM LS_FCAT.
---
still , the order when the report display is not the
order that i build by COL_POS
thanks .
thanks ,
in the end it was layout that was hold the columne position .
thanks any one .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you might used the same col_pos more than once.
if that is the case it will not work. if you are changing one position means , you should change 2 more positions.
try to change the other two positions also,
regards
vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Be sure that each position no is only used once in resulting fieldcat.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is it inside loop and endloop?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.