‎2009 Mar 06 8:30 AM
Hello All,
I have searched in forum still need more info.
I developed a "z_test" ALV reprot & working properly. Copy the same program to another prog and execute in same server, I'm getting Dump with *MESSAGE_TYPE_X * in standard prog. And it contains with following details
_Error analysis_
Short text of error message:
Long text of error message:
Technical information about the message:
Message classe...... "0K"
Number.............. 000
Variable 1.......... " "
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... " "
"<getting dump here>
The termination occurred in the ABAP/4 program "SAPLSLVC " in
"LVC_SORT_COMPLETE".
The termination occurred in line 36
of the source code of program "LSLVCU10 " (when calling the editor 360).
000250 * Default settings for subtotals
000260 READ TABLE CT_SORT WITH KEY COMP = 'X' TRANSPORTING NO FIELDS.
000270 IF SY-SUBRC NE 0.
000280 LFLG_MODIFY = 'X'.
000290 ENDIF.
000300
000310 LOOP AT CT_SORT INTO LS_SORT.
000320
000330 READ TABLE IT_FIELDCAT ASSIGNING <LS_FIELDCAT>
000340 WITH KEY FIELDNAME = LS_SORT-FIELDNAME BINARY SEARCH.
000350 IF SY-SUBRC NE 0.
--------> MESSAGE X000(0K).
000370 ENDIF.
000380
000390 LS_SORT-SELTEXT = <LS_FIELDCAT>-SELTEXT.
000400
000410 * Zwischensummenstufen ermitteln
000420 IF NOT LS_SORT-SUBTOT IS INITIAL.
000430 L_COUNT = L_COUNT + 1.
000440 ENDIF.
000450
000460 IF L_COUNT = 1 AND LFLG_EXPA_DEFAULT_SET = 'X'.
000470 LS_SORT-EXPA = 'X'.
000480 ENDIF.
help me on this problem
Thnx in advance.
Regards,
‎2009 Mar 06 8:50 AM
From the shortdump..
it looks like you have given a field into SORT table of ALV, which is not exiting in the Field catalogue that you passed to ALV.
Check that , whatever field names you given in SORT internal table are exist in the field catalogue too.
wa_sort-fieldname = 'BNAME'."<---make sure that this field( BNAME) EXIST in the field catalogue
APPEND wa_sort TO it_sort.
wa_sort-fieldname = 'NAME'.".""<---make sure that this field( NAME) EXIST in the field catalogue
APPEND wa_sort TO it_sort.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_structure_name = 'IT_TRANS'
it_events = events
is_layout = layout
is_variant = variant
it_fieldcat = it_fldcat " Field catalogue
it_sort = it_sort" sort table
i_default = 'X'
i_save = 'A'
TABLES
t_outtab = it_trans.
‎2009 Mar 06 8:36 AM
Hi Sandya,
Send in your code. usually this happens because of something wrong with your fieldcat or any other data that you have passed.
‎2009 Mar 06 8:38 AM
Hi,
The error is with your field catalog please check if :
- All field names have been specified in capital letters
- the order of field in final internal table is in same order as in field catalog
- you have made any mistake in writing field name or reference field names
Regards.
‎2009 Mar 06 8:38 AM
Nothing ..thats because of ur copied problem...cause thats a standard one so...
try to do one more time..
‎2009 Mar 06 8:39 AM
HI Sandhya,
first check the type of the field catalog you are declaring...
then
Check with the any OSS available for that dump in that standard program,
might you need to apply that one..
Thanks!
‎2009 Mar 06 8:50 AM
From the shortdump..
it looks like you have given a field into SORT table of ALV, which is not exiting in the Field catalogue that you passed to ALV.
Check that , whatever field names you given in SORT internal table are exist in the field catalogue too.
wa_sort-fieldname = 'BNAME'."<---make sure that this field( BNAME) EXIST in the field catalogue
APPEND wa_sort TO it_sort.
wa_sort-fieldname = 'NAME'.".""<---make sure that this field( NAME) EXIST in the field catalogue
APPEND wa_sort TO it_sort.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_structure_name = 'IT_TRANS'
it_events = events
is_layout = layout
is_variant = variant
it_fieldcat = it_fldcat " Field catalogue
it_sort = it_sort" sort table
i_default = 'X'
i_save = 'A'
TABLES
t_outtab = it_trans.
‎2009 Mar 06 9:40 AM