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

variable has SELECT query how to execute it

Former Member
0 Likes
358

hi all

question may be odd one but guide me on that.

requirement is as , i have a BAPI which have a STRING type INPUT parameter let P1, P1 contain a SELECT query as its value.

now i want to execute the select query which P1 contain in my BAPI , how i can do it.

e.g.

P1 = 'Select single * from MARA .'

now either i have extract the P1 OR have to do something to get this query executed .

please guide me.

2 REPLIES 2
Read only

Former Member
0 Likes
329

Hi

We can use the FM

Earlier WS_QUERY was there but it is obsolete. we need to check for the new one.

Or try to use the FM

GUI_EXEC to run it.

Thanks & Regards,

Chandralekha.

Read only

Former Member
0 Likes
329

hi,

GUI_EXEC --- Executes a command on the presentation Server.

But if you Are using ECC 6.0 then

you can use

CL_GUI_FRONTEND_SERVICES -


> EXECUTE

Regards

Sumit Agarwal