Application Development 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: 

ALV field display query

Former Member
0 Kudos

Dear Gurus,

i have declared a field as below:

data: bpvno as bseg-belnr,

I case in fieldcatalog when i declared as below:

fieldcatalog-fieldname = 'BPVNO'.

fieldcatalog-seltext_m = 'BPV No.'.

fieldcatalog-seltext_L = 'BPV No.'.

fieldcatalog-col_pos = I1.

fieldcatalog-emphasize = 'X'.

append fieldcatalog .

clear fieldcatalog.

I1 = I1 + 1.

in the o/p - The Heading of the field is 'BPVNO'

II case but when i declared as below:

fieldcatalog-fieldname = 'BPVNO'.

fieldcatalog-ref_tabname = 'BSEG'.

fieldcatalog-ref_fieldname = 'BELNR'.

fieldcatalog-seltext_m = 'BPV No.'.

fieldcatalog-seltext_L = 'BPV No.'.

fieldcatalog-col_pos = I1.

fieldcatalog-emphasize = 'X'.

append fieldcatalog .

clear fieldcatalog.

I1 = I1 + 1.

here I am expecting the field heading to be 'BPVNO' but it is giving as 'DOCUMENT NO'

when both 'ref_tabnameref_fieldname' and

'seltext_l , seltext_m'

are declared which text(either user specific text or table-field text which) is given priority to be displayed in the o/p heading.

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

you can use this along with other options

fieldcatalog-reptext_ddic = 'BPV No.'.  "Try with this..
fieldcatalog-fieldname = 'BPVNO'.
fieldcatalog-ref_tabname = 'BSEG'.
fieldcatalog-ref_fieldname = 'BELNR'.
fieldcatalog-seltext_m = 'BPV No.'.
fieldcatalog-seltext_L = 'BPV No.'.
fieldcatalog-col_pos = I1.
fieldcatalog-emphasize = 'X'.

4 REPLIES 4

Former Member
0 Kudos

Hi,

Remove the below code from u r prog

fieldcatalog-ref_tabname = 'BSEG'.
fieldcatalog-ref_fieldname = 'BELNR'.

Because of reference field , it is taking that field text.

Regards,

Nandha

0 Kudos

dear nanda,

my questn was when both are specified which text will be given priority...

plz answer relative to the questn...

former_member188685
Active Contributor
0 Kudos

you can use this along with other options

fieldcatalog-reptext_ddic = 'BPV No.'.  "Try with this..
fieldcatalog-fieldname = 'BPVNO'.
fieldcatalog-ref_tabname = 'BSEG'.
fieldcatalog-ref_fieldname = 'BELNR'.
fieldcatalog-seltext_m = 'BPV No.'.
fieldcatalog-seltext_L = 'BPV No.'.
fieldcatalog-col_pos = I1.
fieldcatalog-emphasize = 'X'.

Former Member
0 Kudos

dear vijay kumar dudla,

thnks , problem solved , awarded points ....