Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SQL Statement

Hi all

Any way to make the below statement dynamic.

student table include fields like firstname, lastname, admino.

data: fname(20) type c,

lname(20) type c,

name(20) type c.

fname = 'firstname'.

lname = 'lastname'.

Select <b>fname lname</b> into (name) from student where

admino = '012345'.

endselect.

i want the sql statement for fname, lname take from the variable... anyway to do that?

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question