2007 Aug 13 10:10 AM
Dear All,
I displaying the output using alv.
In this i want to change the one of the column name(fieldname) and it has to display this in full name whatever be the output length.
For eg:
In the output there is fied LGNUM.
I changed this as
<b>LOOP AT t_fieldcat.
CASE t_fieldcat-fieldname.
Warehouse Number
WHEN 'LGNUM'.
t_fieldcat-seltext_l = text-t04.
t_fieldcat-seltext_m = text-t04.
t_fieldcat-seltext_s = text-t04.
t_fieldcat-reptext_ddic = text-t04.
t_fieldcat-ddictxt = c_l.
t_fieldcat-key = ' '.
MODIFY t_fieldcat TRANSPORTING seltext_l
seltext_m
seltext_s
reptext_ddic
ddictxt
key.</b>
Here text-t04 = 'warehouse number'.
But since the lgnum has only 4 characters the fieldname is displaying as Whno.
I want the full fieldname in the output.For this which field we need to cahnge in the fieldcatalog.
2007 Aug 13 10:13 AM
hi ,
Check the line in BOLD
LOOP AT t_fieldcat.
CASE t_fieldcat-fieldname.
Warehouse Number
WHEN 'LGNUM'.
t_fieldcat-seltext_l = text-t04.
t_fieldcat-seltext_m = text-t04.
t_fieldcat-seltext_s = text-t04.
t_fieldcat-reptext_ddic = text-t04.
t_fieldcat-ddictxt = c_l.
t_fieldcat-key = ' '
<b>t_fieldcat-OUTPUTLEN = 20.</b>
MODIFY t_fieldcat TRANSPORTING seltext_l
seltext_m
seltext_s
reptext_ddic
ddictxt
key.
<b>Reward if Helpful</b>
2007 Aug 13 10:13 AM
hi ,
Check the line in BOLD
LOOP AT t_fieldcat.
CASE t_fieldcat-fieldname.
Warehouse Number
WHEN 'LGNUM'.
t_fieldcat-seltext_l = text-t04.
t_fieldcat-seltext_m = text-t04.
t_fieldcat-seltext_s = text-t04.
t_fieldcat-reptext_ddic = text-t04.
t_fieldcat-ddictxt = c_l.
t_fieldcat-key = ' '
<b>t_fieldcat-OUTPUTLEN = 20.</b>
MODIFY t_fieldcat TRANSPORTING seltext_l
seltext_m
seltext_s
reptext_ddic
ddictxt
key.
<b>Reward if Helpful</b>
2007 Aug 13 10:13 AM
LOOP AT t_fieldcat.
CASE t_fieldcat-fieldname.
Warehouse Number
WHEN 'LGNUM'.
t_fieldcat-seltext_l = text-t04.
t_fieldcat-seltext_m = text-t04.
t_fieldcat-seltext_s = text-t04.
t_fieldcat-reptext_ddic = text-t04.
t_fieldcat-ddictxt = c_l.
t_fieldcat-key = ' '.
<b>t_fieldcat-outputlen = '30'.</b>
MODIFY t_fieldcat TRANSPORTING seltext_l
seltext_m
seltext_s
reptext_ddic
ddictxt
key.
2007 Aug 13 10:13 AM
Hi Shoban ,
You need to explecitly specify the lenght on the feild in the catalog , to get the desired output.
Regards
Arun
2007 Aug 13 10:13 AM
Hi
WA_FLDCAT-FIELDNAME = 'REFERENCE'.
WA_FLDCAT-REPTEXT = 'Ref Euip Num'.
use REOPTEXT property for getting
reward points to all helpful answers
kiran.M
2007 Aug 13 10:28 AM
Hi! babu
Specify the Output Lengh = value (or) don't specify the Fixed Length = 'X''.
so, while expand the column the full length of the text will be visible.
Regards,
Nagulan
2007 Aug 13 10:29 AM
Hi! babu
Specify the Output Lengh = value (or) don't specify the Fixed Length = 'X''.
so, while expand the column size the full length of the text will be visible.
Regards,
Nagulan