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: 

a short dump has occurred in a database operation

former_member713390
Participant
0 Kudos

untitled.pngHI EXPERT

this is my code

Now i am getting (a short dump has occurred in a database operation)error. Can Any one suggest how can i solve this issue.

  SELECT EBAN~BANFN,
         EBAN~BNFPO,
         EKPO~EBELN,
         EKPO~EBELP
  INTO TABLE @IT_FINAL
  FROM EBAN
    LEFT OUTER JOIN EKPO ON EBAN~BANFN = EKPO~BANFN
    AND EBAN~BNFPO = EKPO~BNFPO .
    SORT IT_FINAL BY EBELN .

   IF IT_FINAL IS NOT INITIAL .
     SELECT MSEG~MBLNR
           MSEG~MJAHR
           MSEG~ZEILE
           MSEG~EBELN
    INTO TABLE IT_MSEG
    FROM MSEG 
    FOR ALL ENTRIES IN IT_FINAL
    WHERE MSEG~EBELN = IT_FINAL-EBELN
      AND MSEG~EBELP = IT_FINAL-EBELP .
ENDIF.


1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

Well no, my crystal ball is in my pocket...

You use an LEFT OUTER JOIN between purchase requisition and purchase order, so you select also the purchase requisitions without purchase order.

Then you select material movement attached to those purchase order, so also movement without purchase order... for each record ... so the database will read many records many times (before removing duplicates)

It is not surprising that the database engine fails!

41 REPLIES 41

former_member713390
Participant
0 Kudos

sandra.rossi

My problem is solved.

But there is another problem.

I enter the amount of delivery at the input .

Instead of displaying the records that have this delivery, it displays all the records

Sandra_Rossi
Active Contributor
0 Kudos

I still don't have a crystal ball, maybe another volunteer has one...