Application Development 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: 

error while using box_fieldname in ALV layout

Former Member
0 Kudos

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

Former Member
0 Kudos

What r u giving is_layout-BOX_FIELDNAME = ?.

8 REPLIES 8

former_member188685
Active Contributor
0 Kudos

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

show the code related to fieldcatalog and function call.

Former Member
0 Kudos

hi..

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

regards,

padma

Former Member
0 Kudos

What r u giving is_layout-BOX_FIELDNAME = ?.

former_member188685
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

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