2007 Mar 29 9:03 AM
Hi ,
I'm getting runtime error while creating checkboxes in alv.Like this
ABAP runtime error CONVT_NO_NUMBER.
Unable to interpret 'X' as a number.
Report lines are,
w_fcat-fieldname = 'F'.
w_fcat-tabname = 'IG_EK'.
w_fcat-checkbox = 'X'.
w_fcat-outputlen = '5'.
append w_fcat to g_fcat.
The field F is of type c,which is declared in the internal table ig_ek.
Cud u pls help me to come out of this error?
Thanks
2007 Apr 02 12:21 PM
Hi,
do like this.
CLEAR wa_fldcat.
wa_fldcat-Col_pos = 1.
wa_fldcat-fieldname = 'FLAG'.
wa_fldcat-outputlen = 3.
wa_fldcat-checkbox = 'X'.
APPEND wa_fldcat TO FLDCAT.
regards,
bharat.
Hi ,
I'm getting runtime error while creating checkboxes in alv.Like this
ABAP runtime error CONVT_NO_NUMBER.
Unable to interpret 'X' as a number.
Report lines are,
w_fcat-fieldname = 'F'.
w_fcat-tabname = 'IG_EK'.
w_fcat-checkbox = 'X'.
w_fcat-outputlen = '5'.
append w_fcat to g_fcat.
The field F is of type c,which is declared in the internal table ig_ek.
Cud u pls help me to come out of this error?
Thanks
2007 Mar 29 10:11 AM
Hi use the FM LVC_FIELDCATALOG_MERGE to create the FM, and after the FCAT is created change the field F to Checkbox.
Hope that Helps
Anirban M.
2007 Mar 29 10:30 AM
hi ,
change outputlength of checkbox field to 1 IN fieldcatalog .
regards,
2007 Mar 29 10:57 AM
Hi,
Check this :
DATA : BEGIN OF i_filenames OCCURS 0,
name LIKE epsfili-name,
sel TYPE char1,
END OF i_filenames.
CLEAR ls_fcat.
ls_fcat-fieldname = 'SEL'.
ls_fcat-outputlen = '000003'.
ls_fcat-coltext = 'Selection'.
ls_fcat-seltext = 'Selection'.
ls_fcat-fix_column = 'X'.
ls_fcat-just = 'X'.
ls_fcat-checkbox = 'X'.
ls_fcat-edit = 'X'.
ls_fcat-tabname = 'I_FILENAMES'.
APPEND ls_fcat TO p_fieldcat.Regards
L Appana
2007 Apr 02 12:21 PM
Hi,
do like this.
CLEAR wa_fldcat.
wa_fldcat-Col_pos = 1.
wa_fldcat-fieldname = 'FLAG'.
wa_fldcat-outputlen = 3.
wa_fldcat-checkbox = 'X'.
APPEND wa_fldcat TO FLDCAT.
regards,
bharat.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |