Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ALV field display query

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.

Tags:
replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question