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: 

Termination occurred in the ABAP program "SAPLKKBL" - in "FB_OUTTAB_SORT2".

Former Member
0 Kudos

Dear Experts,

    Any one find this error :

Termination occurred in the ABAP program "SAPLKKBL" - in "FB_OUTTAB_SORT2".

In the source code you have the termination point in line 374                                
    of the (Include) program "LKKBLF25".


Short Text                                                                                       
    At a LOOP over an internal table, it is not allowed to be changed.                           

What happened?                                                                                   
    Error in the ABAP Application Program                                                        
   
    The current ABAP program "SAPLKKBL" had to be terminated because it has                      
    come across a statement that unfortunately cannot be executed.                               

Looking forward to your reply

Best Regards,

Anne

9 REPLIES 9

former_member198275
Active Contributor
0 Kudos

Hi Anne,

As this belongs to Standard SAP code , Check if any OSS note is applicable here for your SAP version.

0 Kudos

Hi Experts,

   In fact, i customized ABAP, but i don't know why it call LKKBLF25

   if RFLG_STABLE eq 'X'.

     sort rt_outtab stable by (lt_sortbytab).

   else.

     sort rt_outtab by (lt_sortbytab).

   endif.


it is very strange. it work well in DEV, but it can not work in PRD.

0 Kudos

Hi , did you checked the program version is same in D and P ?

0 Kudos

Hi Anne,

the DUMP location is in standard ALV. Is it possible that you passed a read-only data object to IT_SORT? This may be the case if you declared the sort table as import parameter in the method where you "customized ABAP" (whatefer that means).

I don't know what kind of ALV technology you use, but method SET_TABLE_FOR_FIRST_DISPLAY defines IT_SORT as a changing parameter.

According to the dump, you pass a read-only data object here.

Extended syntax check, code inspector or abap test cockpit should show that.

Regards Clemens

sanjeev_mishra_15aug
Active Participant
0 Kudos

Hi Anne,


Check if possible any enhancement or Badi is working on it.


It would be easier to reply if you clarify you issue properly.


Thanks

Sanjeev

0 Kudos

Hi Expert,

   I customized posting FI DOC, it work well in DEV, but it can not work well in PRD. i am not sure if these coding affect error?

if lv_belnr = ''.

         out_status = 'S'. "successful, it will update status information in ALV

         LT_tab-status = 'Posted'.

         LS_EDIT-FIELDNAME = 'CHECK'.

         LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED

         LS_EDIT-STYLE2 = SPACE.

         LS_EDIT-STYLE3 = SPACE.

         LS_EDIT-STYLE4 = SPACE.

         LS_EDIT-MAXLEN = 10.

         clear lt_tab-style[].                             

         append LS_edit to lt_tab-style.

         modify LT_tab.

         call method LO_GUID->refresh_table_display.

       Endif.

raymond_giuseppi
Active Contributor
0 Kudos

This program (function group) is part of the ALV tool, so first look for any obsolete variant or buffered data that is no longer valid, seems you tried to modify an importing, and not changing, parameter? 

Put a break-point and check status of internal table?

Regards,

Raymond

pranay570708
Active Contributor
0 Kudos

check your field catalog internal table if it is correctly populated...

Also check if the subroutine to handle the user command is with the correct parameters..

Ex..

FORM user_command USING ucomm LIKE sy-ucomm

selfield TYPE slis_selfield.

ENDFORM.

0 Kudos

Hi Everynody,

As I got the same dump issue, that I solved, I share it in case you're still facing that.

If you're running one of FI-AA reports & getting this dump, please check the setting of sort variant in the selection (mostly 0001) in OAVI transaction & delete the empty row in the middle of the list. I did that & now it's working fine.

I hope my answer helps you, if it's the case please provide rewards

Kind rgrds

Imane