2008 Jul 07 8:15 AM
Dear All,
I have done some modifications in the existing ALV report, added field in the internal table , and added it into field catalog
pos = pos + 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'tot_Bslot'.
ls_fieldcat-outputlen = 12.
ls_fieldcat-inttype = 'P'.
ls_fieldcat-NO_OUT = ' '.
ls_fieldcat-seltext_l = 'Net Bill Amount1'.
append ls_fieldcat to rt_fieldcat.
it's giving me dump , if i commented or used the old value in fieldcat-fieldname in the code then it's working fine.
tot_Bslot i have added in the internal table.
Could plz any1 suggest for the same.
Looking forward to your response.
Regards,
Gulrez Alam
Pl. pass the field name in uppercase.Also mention the internal table name in uppercase in field tabname.
os = pos + 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'TOT_BSLOT'.
ls_fieldcat-tabname = '<Internal table name in uppercase>'.
ls_fieldcat-outputlen = 12.
ls_fieldcat-inttype = 'P'.
ls_fieldcat-NO_OUT = ' '.
ls_fieldcat-seltext_l = 'Net Bill Amount1'.
append ls_fieldcat to rt_fieldcat.
Regards,
Joy.
2008 Jul 07 8:24 AM
Pl. pass the field name in uppercase.Also mention the internal table name in uppercase in field tabname.
os = pos + 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'TOT_BSLOT'.
ls_fieldcat-tabname = '<Internal table name in uppercase>'.
ls_fieldcat-outputlen = 12.
ls_fieldcat-inttype = 'P'.
ls_fieldcat-NO_OUT = ' '.
ls_fieldcat-seltext_l = 'Net Bill Amount1'.
append ls_fieldcat to rt_fieldcat.
Regards,
Joy.
2008 Jul 07 8:26 AM
Hi,
try: ls_fieldcat-fieldname = 'TOT_BSLOT'
not: ls_fieldcat-fieldname = 'tot_Bslot'
Regards, Dieter
2008 Jul 07 8:27 AM
Hi,
Always use Capital letters for the text using between 2 single quotation's(').
Rgds,
Bujji
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |