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

SQL2STRING

Former Member
0 Likes
551

Hi there,

i would like to create a function, that would be able to translate any SQL to string:

SQL:

"SELECT * FROM MARA INTO TABLE lt_mara WHERE matnr EQ lv_matnr"

String:

"SELECT * FROM MARA INTO TABLE lt_mara WHERE matnr EQ R0020"

Any Ideas ? Of course the SQL statement could be much more complicated.

Many Thanks

4 REPLIES 4
Read only

basarozgur_kahraman
Contributor
0 Likes
514

Hi Carmine,

Check these links

Moderator Message:

<< Link farming not allowed, in case of providing link(s), please justify it with your explanations >>

Message was edited by: Kesavadas Thekkillath

Read only

0 Likes
514

Thanks 🙂

looks like the similiar DEMO Report: ADBC_DEMO_METADATA

-> would like to have a straight function -> SQL->STRING

Read only

amy_king
Active Contributor
0 Likes
514

Hi Carmine,

How would you pass the SQL statement into your function? It seems like passing a SQL statement into a function would already have required the caller to place the SQL into either a string or table in order to be passed to the function.

Cheers,

Amy

Read only

Former Member
0 Likes
514

Well I was thinking at some function like ST05 (SQL-Trace). Just to log the processed SQL-Statements as String.