‎2006 Jan 16 1:46 PM
Hi All,
I've a report which is using
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'.
It displays the data correctly, but when i press back button it gives a short dump!
The error is :
Runtime Errors MOVE_TO_LIT_NOTALLOWED_NODATA
...........
I've checked that field catalogs are done correctly.
You help is greatly appreciated!
Thanks,
Rohit.
‎2006 Jan 16 1:49 PM
are you using Interactive ALV or what /??
pl paste your code,so that we can check & let u know..
rgs,
srikanth
‎2006 Jan 16 1:50 PM
‎2006 Jan 16 1:50 PM
look at the dump: There is a source code line where the dump occured.
regards,
C.
‎2006 Jan 16 1:51 PM
Hi,
I think you forgot to give current program name in 'call back program' parameter whill calling RESULE_ALV_GRID_DISPLAY'.
Reward the points if your problem solves...
Cheers,
Nama Ganesh
‎2006 Jan 16 1:55 PM
Hi All,
The dump occurs at some code which i've not created.
Also, i've checked that all the parameters are properly passed to the function.
Dump occurs in (Include-)Programms "LSLVC_FULLSCREENF02".
source code extract:
656 if not gt_grid-s_layout-box_fieldname is initial.
657 call method gt_grid-grid->get_selected_rows
658 importing
659 et_index_rows = lt_rows.
660 delete lt_rows where rowtype ne ' '.
661 sort lt_rows by index.
662 assign component gt_grid-s_layout-box_fieldname
663 of structure t_outtab
664 to <l_box>.
665 data: l_sel_lines type i.
666 data: l_tab_lines type i.
667 data: ls_rows type lvc_s_row.
668 * check
669 if r_ucomm = '&SAL' or r_ucomm = '&ALL'.
670 l_ucomm = r_ucomm.
671 else.
672 describe table lt_rows lines l_sel_lines.
673 describe table t_outtab lines l_tab_lines.
674 if l_sel_lines = 0.
675 l_ucomm = '&SAL'.
676 endif.
677 if l_sel_lines = l_tab_lines.
678 l_ucomm = '&ALL'.
679 endif.
680 endif.
681 * set/unset <box> of all items
682 if l_ucomm eq '&SAL' or l_ucomm eq '&ALL'.
683 if l_ucomm eq '&SAL'.
684 loop at t_outtab.
685 l_tabix = l_tabix + 1.
>>>>> <l_box> = ' '.
687 modify t_outtab index l_tabix.
688 endloop. -
‎2006 Jan 16 1:56 PM
‎2006 Jan 16 1:58 PM
‎2006 Jan 16 2:31 PM
Hmm.
Doesn't look like function 'BACK'. What is the table defined like; what about the field catalog and did you define a layout specifying a box fieldname?
Possibly the box field is not defined as a single CHAR field, so the assignment of ' ' to <l_box> fails.
If there is no box field properly defined and assigned, '&SAL' and '&ALL' can't work.
Clemens
‎2006 Jan 16 1:56 PM