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

dump in abap program

Former Member
0 Likes
1,218

Hi ABAP gurus,

I am getting the dump when i am running the program in se38.

What happened?
    Error in the ABAP Application Program

    The current ABAP program "ZGLFINGLRX_MANUAL_JOURNALAUDIT" had to be terminated
     because it has
    come across a statement that unfortunately cannot be executed.

Error analysis
    A line is to be inserted or changed at position 4 in the sorted
    internal table (type SORTED_TABLE)
     "\PROGRAM=ZGLFINGLRX_MANUAL_JOURNALAUDIT\DATA=I_USER".
    In doing so, the sorting sequence - determined by the table key - was
    destroyed.

If the error occurred in your own ABAP program or in an SAP
program you modified, try to remove the error.

If you use the statement "INSERT ... INTO TABLE ..." to insert the new
line, then the line is automatically inserted at the right position.
For changes, you should use the statement "MODIFY TABLE ... FROM ...".
Then, the line with the specified table key is modified .


If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:

"ITAB_ILLEGAL_SORT_ORDER" " "
"ZGLFINGLRX_MANUAL_JOURNALAUDIT" or "ZGLFINGLRX_MANUAL_AUDIT_FORMS"
"F_100_GET_RECORDS"

Information on where terminated
    Termination occurred in the ABAP program "ZGLFINGLRX_MANUAL_JOURNALAUDIT" - in
     "F_100_GET_RECORDS".
    The main program was "ZGLFINGLRX_MANUAL_JOURNALAUDIT ".

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

  

this is the program code where i am getting the error

Get the user name.
      CLEAR r_user.
      READ TABLE i_user INTO r_user WITH KEY usnam = r_bkpf-usnam.

      IF sy-subrc NE 0.
*       Look up the user name that goes with ID
        CALL FUNCTION 'SUSR_USER_ADDRESS_READ'
          EXPORTING
            user_name              = r_final1-usnam
          IMPORTING
            user_usr03             = r_user_usr03
          EXCEPTIONS
            user_address_not_found = 1
            OTHERS                 = 2.

        IF sy-subrc = 0.
          r_user-usnam = r_bkpf-usnam.
          CONCATENATE r_user_usr03-name1 r_user_usr03-name2
            INTO r_user-name SEPARATED BY space.
          INSERT r_user INTO i_user INDEX sy-tabix.
        ENDIF.
      ENDIF.

*     Assign User Name into dummy final table
      r_final1-name1 = r_user-name.

      CLEAR : r_bseg.

PLEASE HELP ME

Regards,

vanamaala k.

4 REPLIES 4
Read only

Former Member
0 Likes
735

here r_uesr is sorted internal table,,,read the previuus threads

      dont use:    iNSERT r_user INTO i_user INDEX sy-tabix

      use:   iNSERT r_user INTO i_user ."because sort will happen automaticaly based on content in r_user

Thank and regards

Read only

Former Member
0 Likes
735

Hi,

trying using this statement:

INSERT r_user into TABLE i_user index sy-tabix.

Regards,

Gaurav.

Read only

AbhishekV
Explorer
0 Likes
735

do not use index operation on sorted table.

Read only

Former Member
0 Likes
735

thanks for all .

it is solved .