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

WHERE clause items dropped when Open SQL is translated

Former Member
0 Likes
618

Does anyone know why the following open SQL statement:

* Fetching data from faglflexa table

   SELECT docnr

          buzei

          HSL

          ryear

          rldnr

          rbukrs

          docln

          prctr

           FROM faglflexa

           INTO TABLE it_belnr_prctr

           FOR ALL ENTRIES IN it_pos

           WHERE rldnr = '0L'               AND

                 rbukrs = it_pos-bukrs      AND

                 ryear  = it_pos-gjahr      AND

                 poper  = it_pos-poper      AND

                 docnr  = it_pos-belnr      AND

                 buzei  = it_pos-buzei      AND

                 prctr IN s_prctr.

Would be translated to the following when looking at the statement from DBACOCKPIT?

SELECT "DOCNR" AS c,"BUZEI" AS c,"HSL" AS c,"RYEAR" AS c,"RLDNR" AS c,"RBUKRS"

AS c,"DOCLN" AS c,"PRCTR" AS c

FROM "FAGLFLEXA"

WHERE "RCLNT" = @P1

Where are the rest of the WHERE clause items?  The reason I ask is because it seems to be really slow. Thanks!

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
581

Looks like it is just truncated, as it is the case e.g. in the ST05 overview. Can you doubleclick on the statement to see it in full glory? If not, try an SQL trace.

Thomas

Does anyone know why the following open SQL statement:

* Fetching data from faglflexa table

   SELECT docnr

          buzei

          HSL

          ryear

          rldnr

          rbukrs

          docln

          prctr

           FROM faglflexa

           INTO TABLE it_belnr_prctr

           FOR ALL ENTRIES IN it_pos

           WHERE rldnr = '0L'               AND

                 rbukrs = it_pos-bukrs      AND

                 ryear  = it_pos-gjahr      AND

                 poper  = it_pos-poper      AND

                 docnr  = it_pos-belnr      AND

                 buzei  = it_pos-buzei      AND

                 prctr IN s_prctr.

Would be translated to the following when looking at the statement from DBACOCKPIT?

SELECT "DOCNR" AS c,"BUZEI" AS c,"HSL" AS c,"RYEAR" AS c,"RLDNR" AS c,"RBUKRS"

AS c,"DOCLN" AS c,"PRCTR" AS c

FROM "FAGLFLEXA"

WHERE "RCLNT" = @P1

Where are the rest of the WHERE clause items?  The reason I ask is because it seems to be really slow. Thanks!

2 REPLIES 2
Read only

ThomasZloch
Active Contributor
0 Likes
582

Looks like it is just truncated, as it is the case e.g. in the ST05 overview. Can you doubleclick on the statement to see it in full glory? If not, try an SQL trace.

Thomas

Read only

0 Likes
581

Yeah, you're right... just truncated.  DOH!