Application Development and Automation 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: 
Read only

checkboxes in alv

Former Member
0 Likes
964

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
825

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

4 REPLIES 4
Read only

former_member480923
Active Contributor
0 Likes
825

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.

Read only

shishupalreddy
Active Contributor
0 Likes
825

hi ,

change outputlength of checkbox field to 1 IN fieldcatalog .

regards,

Read only

Laxmana_Appana_
Active Contributor
0 Likes
825

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

Read only

Former Member
0 Likes
826

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.