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

Message_type_x ERROR

Former Member
0 Likes
1,847

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,515

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

7 REPLIES 7
Read only

former_member156446
Active Contributor
0 Likes
1,515

check the field catalog if every thing is fine...

or

use i_save = 'X' and i_default = 'X'. in the FM

Read only

Former Member
0 Likes
1,516

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

Read only

Former Member
0 Likes
1,515

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

Read only

Former Member
0 Likes
1,515

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.                    "UCOMM

Or else Paste the entire code .

Regards

Pinaki

Read only

Former Member
0 Likes
1,515

Hi Guys

Thanks for your contribution, actually there was a problem with my GUI patch, I fixed it now

Thread closed.

Thanks

Chris

Read only

Former Member
0 Likes
1,515

Hi Piroz

Ta...I told you earlier that this might be problem of your patch now you got it

Thanks

Chris

Read only

0 Likes
1,515

Identity crisis?

pk