Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3019

Re: Open Quantity Purchase Order of Good Recipt

$
0
0

Hi Muhammad Zafarullah,

 

you can try this code,  what VenkatRamesh V  has written , it is true, it give you the same result

 

but this code, is faster, I have tried both out, and this code is very fast rather than other,

 

the first one takes a long time in compare to this one statement 

 

Just another option

 



REPORT zibo_test1.

TABLES: ekpo.

DATA: lt_ekpo TYPE TABLE OF ekpo.

SELECT-OPTIONS s_ebeln FOR ekpo-ebeln.

START-OF-SELECTION.
 
" Select Purchasing Doc.
 
" we will get the positions, and we have to chek them if they don't exist
 
" in table EKBE History per Purchasing Document
 
" so it means, they do not  Posted in Good Recipt yet.

 
SELECT * FROM ekpo AS ekpo INTO TABLE lt_ekpo
 
WHERE ebeln IN s_ebeln
 
AND NOT EXISTS ( SELECT *   FROM ekbe AS ekbe
                 
WHERE  ekpo~ebeln = ekbe~ebeln
                   
AND  ekpo~ebelp = ekbe~ebelp ).


 
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   
EXPORTING
      i_structure_name  
= 'EKPO'
      i_callback_program
= sy-repid
   
TABLES
      t_outtab          
= lt_ekpo.


1 (1).JPG


Viewing all articles
Browse latest Browse all 3019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>