Skip to Content
0
Former Member
Jan 10, 2008 at 08:58 PM

db Table as a parameter

18 Views

Hi SDN,

I have two tables with identical structure. How can I write a FORM/ENDFORM such that I pass the name of the table as a variable. Please note I am not talking about internal tables but actual db tables like MARA, etc.

Please give an example.

I want to accomplish the following:

TABLES A, B, C, D

FORM GETRECS

SELECT X, Y, Z

FROM ?

ENDFORM

How can use a variable to replace ? after FROM?

Thanks.

Saf.