Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Dump using Dynamic WHERE condition (EXISTS + subquery)

$
0
0

Hi experts,

 

 

I want to use dynamic WHERE here, but I got a problem when using EXISTS + subuery.

 

 

Here is my code snippet:

 

sap1.jpg

sap2.jpg

 

And the actual SQL sentence should be like this:

 

 

 

 

When I execute this program, an exception CX_SY_DYNAMIC_OSQL_SEMANTICS is raised and the program dumps.

 

Dump Information:

Short text

   A dynamically specified column name is unknown.

Error analysis

    An exception occurred that is explained in detail below.

    The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SEMANTICS', was

     not caught in

    procedure "FRM_GET_ALL_PROD_ORDERS" "(FORM)", nor was it propagated by a

     RAISING clause.

    Since the caller of the procedure could not have anticipated that the

    exception would occur, the current program is terminated.

    The reason for the exception is:

    An Open SQL clause was specified dynamically. The contained field name

    "EXISTS" does not exist in any of the database tables from the FROM clause.

 

I'm confused because the plain text of my WHERE condition looks good. Could you tell me why I encountered this problem?

 

Many thanks,

Shelwin


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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