‎2009 Jul 24 5:11 AM
Hi Guys
I am getting short dump error when trying to sort and get the sum of the total by pressing (sigma ) in ALV grid report, it is displaying wiht Key work MESSAGE (type X). I try commenting on Message in ALV fuction but still the same
any help will be appriciable.
SHORT TEXT ERROR MESSAGE AS
techinical information about messe
Message class................." ok"
Number .............................000
.....
....
if sy-subrc ne 0.
message x000(ok).
endif.
Eg
DATA:BEGIN OF WA,
FKONT LIKE BSAS-FKONT,
DMBTR type BSAS-DMBTR,
WRBTR type BSAS-WRBTR,
END OF WA.
...
..
fieldcatalog-fieldname = 'DMBTR'.
fieldcatalog-ref_tabname = 'BSAS'.
fieldcatalog-ref_fieldname = 'DMBTR'.
fieldcatalog-row_pos = '1'.
fieldcatalog-col_pos = '19'.
fieldcatalog-outputlen = '18'.
fieldcatalog-seltext_l = 'Total'.
fieldcatalog-seltext_m = 'Total'.
fieldcatalog-seltext_s = 'Total'.
fieldcatalog-ddictxt = 'L'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
......
......
form display_alv_report.
gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_user_command = 'USER_COMMAND'
i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
it_special_groups = gd_tabgroup
it_events = gt_events
is_print = gd_prntparams
i_save = 'X'
is_variant = z_template
tables
t_outtab = iTAB
exceptions
program_error = 1
others = 2.
if sy-subrc NE 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
if sy-subrc = 0.
message a000(0k) with 'IN: LVC_TABLE_FOR_DISPLAY'
'ERROR: FIELDCAT_NOT_COMPLETE'
raising fieldcat_not_complete.
endif.
endform. " DISPLAY_ALV_REPORT
Regards
Chris
‎2009 Jul 24 5:45 AM
Hi,
Generally this error comes due to difference in field names field catalog fields name with internal table.
Compare your field catalog fields name with internal table field names.
comment all the field catalog fields and re-paste one by one and try executing report.
you have to check same for all the fields in field catalog.
if possible copy paste the names froom internal table.
it is not a major mistake but minor one.
Regds,
Anil
‎2009 Jul 24 5:32 AM
check the field catalog if every thing is fine...
or
use i_save = 'X' and i_default = 'X'. in the FM
‎2009 Jul 24 5:45 AM
Hi,
Generally this error comes due to difference in field names field catalog fields name with internal table.
Compare your field catalog fields name with internal table field names.
comment all the field catalog fields and re-paste one by one and try executing report.
you have to check same for all the fields in field catalog.
if possible copy paste the names froom internal table.
it is not a major mistake but minor one.
Regds,
Anil
‎2009 Jul 24 5:46 AM
Hi,
Generally this error comes due to difference in field names field catalog fields name with internal table.
Compare your field catalog fields name with internal table field names.
comment all the field catalog fields and re-paste one by one and try executing report.
you have to check same for all the fields in field catalog.
if possible copy paste the names froom internal table.
it is not a major mistake but minor one.
Regds,
Anil
‎2009 Jul 24 5:47 AM
Hi ,
Did you write the FORM of the dynamic subroutine like 'USER_COMMAND' ?
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_user_command = 'USER_COMMAND'If you have not written the form of the subroutine write like that - -
.
.
i_callback_user_command = 'UCOMM'
.
.
FORM ucomm USING command TYPE sy-ucomm
selfld TYPE slis_selfield.
CASE sy-ucomm.
WHEN 'PROCEED'.
WRITE 123.
ENDCASE.
ENDFORM. "UCOMMOr else Paste the entire code .
Regards
Pinaki
‎2009 Aug 03 7:53 AM
Hi Guys
Thanks for your contribution, actually there was a problem with my GUI patch, I fixed it now
Thread closed.
Thanks
Chris
‎2009 Aug 03 8:01 AM
Hi Piroz
Ta...I told you earlier that this might be problem of your patch now you got it
Thanks
Chris
‎2009 Aug 03 8:03 AM