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

ALV Error

Former Member
0 Likes
478

Hi ,

I have generated a ALV Report and am getting the desired output.

But, the problem arises when I click anything in the Output screen. Even if when I try to exit, or double click anything in the report output, I get the following error -- MOVE_TO_LIT_NOTALLOWED_NODATA.

Iam not able to understand the cause of the error.

Where should we make changes for rectifying the error i.e., Layout, Events etc.

Iam trying to get the solution for the problem for the past 3 days.

Help me.,

Shivaa......

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
447

Hello Shiva

LIT means 'Literal'. Thus, somewhere in your ALV report you are using a constant variable (read-only) which is "fed" to the ALV (grid / fm ???) yet the ALV expects this variable to be read & write.

Without the coding I can only guess. I would suggest to inactivate as many parameters from the ALV call (class / fm ???) and see if you can get rid of the problem. Next you can add one parameter after the other and nail down the error cause.

And remind that all CHANGING parameters must be globally accessible for the ALV.

Regards

Uwe

Read only

former_member156446
Active Contributor
0 Likes
447

Hi there..

1.check the events you are using in the report..

2. at selection output and initialization...

3. After output screen hit /h in the command prompt and click and debug the code why its happening.

Read only

Former Member
0 Likes
447

check this code and compare with your code and Comment the line *GS_LAYOUT-box_fieldname = 'SELECTED'.

FORM init_layout.

gs_layout-colwidth_optimize = 'X'.

gs_layout-zebra = 'X'.

gs_layout-no_input = ' '.

gs_LAYOUT-BOX_FIELDNAME = 'BUDAT'.

gs_layout-box_tabname = 'IT_SALIDA'.

GS_LAYOUT-INFO_FIELDNAME = 'LINE_COLOR'.

*GS_LAYOUT-box_fieldname = 'SELECTED'.

ENDFORM. " init_layout

*Comment the line GS_LAYOUT-box_fieldname = 'SELECTED'.

and add the lines

gs_LAYOUT-BOX_FIELDNAME = 'BUDAT'.

gs_layout-box_tabname = 'IT_SALIDA'.