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

error while using box_fieldname in ALV layout

Former Member
0 Likes
3,847

hi,

i use alv block display for my report.In that i have checkbox in my first block inorder to select few lines from my output and perform a user command(i want to post those documents).

but when i click on my user command i get the dump 'Field symbol not assigned' from some standard program.Kindly guide me on what it is.

Regards,

Subasree

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,982

What r u giving is_layout-BOX_FIELDNAME = ?.

8 REPLIES 8
Read only

Former Member
0 Likes
1,982

it is known error, the error causing from the fieldcatalog or layout.

show the code related to fieldcatalog and function call.

Read only

Former Member
0 Likes
1,982

hi..

check whether u hav declared a variable for the box in final internal table as A(1) TYPE C.

regards,

padma

Read only

Former Member
0 Likes
1,983

What r u giving is_layout-BOX_FIELDNAME = ?.

Read only

Former Member
0 Likes
1,982

if you provide the wrong fieldname or if you mention it in small letters then chances of getting the dump.just check it once.

Read only

Former Member
0 Likes
1,982

layout : p_t_layout-box_fieldname = 'CHK'.

fieldcatalog : wa_fieldcat-fieldname = 'CHK'.

wa_fieldcat-reptext_ddic = 'IDOC SELECTED'.

wa_fieldcat-tabname = 'T_MISC_OUTPUT1'.

wa_fieldcat-outputlen = 2.

APPEND wa_fieldcat TO t_fieldcat.

CLEAR wa_fieldcat.

The field chk is present in my output internal table.

Not sure why the error is occuring.

Read only

0 Likes
1,982

you want check box or box_field ? which one you want.

if you want box field ,then use only one.

p_t_layout-box_fieldname = 'CHK'.

if you want check box then use this.

wa_fieldcat-fieldname = 'CHK'.
wa_fieldcat-reptext_ddic = 'IDOC SELECTED'.
wa_fieldcat-tabname = 'T_MISC_OUTPUT1'.
wa_fieldcat-outputlen = 2.
wa_fieldcat-checkbox = 'X'.
wa_fieldcat-input = 'X'.
wa_fielcat-edit = 'X'.
APPEND wa_fieldcat TO t_fieldcat.
CLEAR wa_fieldcat.

Don't use both together.

Read only

Former Member
0 Likes
1,982

the line selected by using the checkbox does not have value 'X' in the chk field.

Read only

0 Likes
1,982

Hi Subhashree,

I am also having a similar requirement to edit the IDOC from AVL.

Could you please share the code of it?.I will use it as base template.

Regards

Elini.P