05-12-2016 4:26 AM
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
05-12-2016 4:32 AM
Hi Anne,
As this belongs to Standard SAP code , Check if any OSS note is applicable here for your SAP version.
05-12-2016 5:15 AM
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.
05-12-2016 6:38 AM
05-16-2016 1:51 PM
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
05-12-2016 4:39 AM
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
05-12-2016 5:10 AM
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.
05-16-2016 1:03 PM
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
05-16-2016 1:21 PM
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.
05-25-2016 2:07 PM
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