09-26-2008 1:01 PM
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.
09-26-2008 1:12 PM
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'.
09-26-2008 1:03 PM
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
09-26-2008 1:14 PM
dear nanda,
my questn was when both are specified which text will be given priority...
plz answer relative to the questn...
09-26-2008 1:12 PM
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'.
09-26-2008 2:06 PM
dear vijay kumar dudla,
thnks , problem solved , awarded points ....