Application Development 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: 

The current applicaiton has triggered a termination with a shot dump.

1190_5939_439
Active Participant
0 Kudos

When I click total amount . The error is following.

qq图片20200807091041.png

1 ACCEPTED SOLUTION

1190_5939_439
Active Participant
0 Kudos

My colleague tells me that there is issue about function(The program is changed for standard program.Perhaps the function is old).And I choose the other way for it.

4 REPLIES 4

1190_5939_439
Active Participant
0 Kudos

Source code extract is following.

            is_subtottxt_info = ls_subtot_info
              ip_subtot_line    = lr_data
            changing
              c_subtottxt       = l_subtottxt.
          ls_lvc_data-value = l_subtottxt.


          append ls_lvc_data to ct_lvc_data.
        endif.


************************************
* Column per Fieldcat Entry
************************************
        ls_lvc_data-value = space.
        clear ls_lvc_data-style.
        loop at it_fcat_local assigning <ls_fcat>
                where tech ne 'X' and no_out ne 'X'.
          if l_invisible eq 'X'.
            clear l_invisible.
            if <ls_fcat>-do_sum is initial.
              continue.
            else.
              clear ls_lvc_data-col_pos.
            endif.
          endif.


          add 1 to ls_lvc_data-col_pos.


          assign component <ls_fcat>-fieldname
                           of structure <ls_data> to <l_field_value>.
          if sy-subrc ne 0.
            message x000(0k).
          endif.


*... work on average
          if <ls_fcat>-do_sum eq 'C'.
*           Initialize average result and entries
            <l_field_value> = 0.
            clear l_entries.


*           retrive unit from fieldcatalog
            assign space to <l_unit>.
            if not <ls_fcat>-cfieldname is initial.
              assign component <ls_fcat>-cfieldname
                     of structure <ls_data> to <l_unit>.
            endif.
            if not <ls_fcat>-qfieldname is initial.
              assign component <ls_fcat>-qfieldname
                     of structure <ls_data> to <l_unit>.
            endif.

Please use the COMMENT button for comments, questions, adding details, replying to OP comment, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.

Please attach the short dump as a file.

The code you show is standard code for ALV. It has no bug, but there's a bug with your own program, it has transferred wrong values to the ALV. As usual, probably you passed the field names in lower case instead of upper case.

michael_piesche
Active Contributor
0 Kudos

Can you show the dump analysis from ST22 (instead of the dump information right when the error occured)?

  • Error analysis
  • How to correct the error
  • Information on where terminated
  • Source Code Extract
  • 'Contents of system fields' and 'Chosen variables' (especially those that deal with the dump)
  • Internal notes

1190_5939_439
Active Participant
0 Kudos

My colleague tells me that there is issue about function(The program is changed for standard program.Perhaps the function is old).And I choose the other way for it.