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

Re: Full table scan when parsing Open SQL in oracle native SQL

$
0
0

Hello Kiran, thanks you for your answer.

 

I already checked that note, but i read carefully and my sql is according to the SAP note you mentioned, coincidentally is the same case that the note puts as an example (delivery for order).

 

  1. 4. Other accesses in SD:
      1. a) Document flow:

 

    1. Incorrect:   SELECT vbelv FROM vbfa WHERE vbeln ...

                       In table VBFA only the preceeding document is used to search for the subsequent document (for example, delivery for order). Searching the other way makes no sense with this table since the preceding documents (for example, order for delivery) are stored directly in the document tables. Thus reading in table VBFA is a one-way street.
Correct:  SELECT vgbel FROM lips WHERE vbeln = ...; or  SELECT vgbel FROM vbrp WHERE vbeln = ...; or
  SELECT aubel FROM vbrp WHERE vbeln = ...

 

Best regards.

 

Jhon Jairo Teran.


Viewing all articles
Browse latest Browse all 8581

Latest Images

Trending Articles



Latest Images

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