‎2006 Nov 07 4:02 AM
hi friends,
i have a prob in ALV. When I am using seltext, the output is still taken from DDIC reference/. for eg,
ls_fieldcat-fieldname = 'V_TOT_VAL'.
ls_fieldcat-tabname = IT_INV.
ls_fieldcat-seltext_s = 'TOT.VAL'.
ls_fieldcat-reptext_ddic = 'TOT.VAL'.
ls_fieldcat-ref_fieldname = 'KWERT'.
ls_fieldcat-ref_tabname = 'KONV'.
APPEND ls_fieldcat TO gt_fieldcat.
CLEAR ls_fieldcat.
in the output the col name is 'condition type' as in DDIC and not 'TOT.VAL' as i want. I tried givin seltext_s, seltext_m and seltext_l and also tried ls_fieldcat-reptext_ddic = 'TOT.VAL'. but nothin works...can anyone pls help...
‎2006 Nov 07 4:05 AM
ref field name and ref tab name are not necesary which is being considered even if u give seltext_s
ls_fieldcat-fieldname = 'V_TOT_VAL'.
ls_fieldcat-tabname = IT_INV.
ls_fieldcat-seltext_s = 'TOT.VAL'.
ls_fieldcat-reptext_ddic = 'TOT.VAL'.
<b>ls_fieldcat-ref_fieldname = 'KWERT'.
ls_fieldcat-ref_tabname = 'KONV'. are not necessary</b>
APPEND ls_fieldcat TO gt_fieldcat.
CLEAR ls_fieldcat.
Regards
- Gopi
‎2006 Nov 07 4:05 AM
ref field name and ref tab name are not necesary which is being considered even if u give seltext_s
ls_fieldcat-fieldname = 'V_TOT_VAL'.
ls_fieldcat-tabname = IT_INV.
ls_fieldcat-seltext_s = 'TOT.VAL'.
ls_fieldcat-reptext_ddic = 'TOT.VAL'.
<b>ls_fieldcat-ref_fieldname = 'KWERT'.
ls_fieldcat-ref_tabname = 'KONV'. are not necessary</b>
APPEND ls_fieldcat TO gt_fieldcat.
CLEAR ls_fieldcat.
Regards
- Gopi
‎2006 Nov 07 4:08 AM
ls_fieldcat-fieldname = 'V_TOT_VAL'.
ls_fieldcat-tabname = IT_INV.
* ls_fieldcat-seltext_s = 'TOT.VAL'.
<b>ls_fieldcat-reptext_ddic = 'TOT.VAL'</b>.
ls_fieldcat-outputlen = '25'.
ls_fieldcat-ref_fieldname = 'KWERT'.
ls_fieldcat-ref_tabname = 'KONV'.
APPEND ls_fieldcat TO gt_fieldcat.
CLEAR ls_fieldcat.
<b>ls_fieldcat-reptext_ddic = 'TOT.VAL'</b>.
if u use this than deffinatly it would be come..
may be problem is due to output length is less the given text.try to give the output length also.
‎2006 Nov 07 4:07 AM
HI,
try coltext property that must work.
<b> ls_fieldcat-coltext = 'TOT.VAL'</b>Regards,
‎2006 Nov 07 4:16 AM
hey, that worked, thanks Gopi, i removed ref field name and tabname and it gave the o/p...
Thanks all...
Helpful answers rewarded.
Cheers !!
‎2006 Nov 07 4:20 AM