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: 

Passing by parameter for Update set (param)

Former Member
0 Kudos

Hi everybody,

how can i pass by the needed parameter for a Update statement?

The method contains the following importing parameter:

IMPORTING:

im_tabname type tabname

im_expre type string

im_where type string

In this method i use the statement:


update (im_tabname)
set (im_expre)
where (im_where).

I get the exception: CX_CY_DYNAMIC_OSQL_SEMANTICS.

Which kind of types should i use instead of string for: im_expr and im_where?

regards,

Sid

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sid,

Check the parameter type used in the method,, define your parameters of the same type.

3 REPLIES 3

Former Member
0 Kudos

Hi Sid,

Check the parameter type used in the method,, define your parameters of the same type.

0 Kudos

Hi Seema,

in my method i create the importing parameter:

IMPORTING:

im_tabname type tabname

im_expre type string <-- wrong type!?

im_where type string <-- wrong type!?

i have no local parameter!

The question is, which type should i use for im_expre and im_where. Until now it's not working with the type string.

regards,

sid

Edited by: Sid on Jul 11, 2009 5:32 PM

Former Member
0 Kudos

I forgot the '`' within my CONCATENATE.