Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

alv display

abdulazeez12
Active Contributor
0 Likes
766

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...

1 ACCEPTED SOLUTION
Read only

gopi_narendra
Active Contributor
0 Likes
736

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

5 REPLIES 5
Read only

gopi_narendra
Active Contributor
0 Likes
737

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

Read only

0 Likes
736
 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.

Read only

dani_mn
Active Contributor
0 Likes
736

HI,

try coltext property that must work.

<b> ls_fieldcat-coltext = 'TOT.VAL'</b>

Regards,

Read only

abdulazeez12
Active Contributor
0 Likes
736

hey, that worked, thanks Gopi, i removed ref field name and tabname and it gave the o/p...

Thanks all...

Helpful answers rewarded.

Cheers !!

Read only

0 Likes
736

Glad to help u shakir

Regards

- Gopi