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

Generic table structure

Former Member
0 Likes
965

Hi all,

I am creating a FM which will have an input field as a table name and structures to the corresponding table. So is there any generic structure available in the DDIC that can be used as a base for the fields coming in.

If not available what should i consider while creating a structure for the same.

Regards,

Stock

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
673

You can leave the type reference blank so that system can accept any structure.

For reference check REUSE_ALV_GRID_DISPLAY. This FM accepts an internal table without generic references

4 REPLIES 4
Read only

Former Member
0 Likes
674

You can leave the type reference blank so that system can accept any structure.

For reference check REUSE_ALV_GRID_DISPLAY. This FM accepts an internal table without generic references

Read only

former_member404244
Active Contributor
0 Likes
673

Hi,

don't specify any type....in the tables paramter just give itab.

TABLES

ITAB

regards,

Nagaraj

Read only

0 Likes
673

I intend to have an IMPORT parameters as

TABLE --> any DB table (dynamic as per requirement)

WA_STRUCT---> a single record entry with all the columns for the above table

Can we specify the same in the importing section and have the same functionality as in tables section.

IMPORT

wa_struct

without the type and associated type.

Regds,

Stock

Read only

0 Likes
673

Hi,

generally import parameters don't handle multiple values,inorder to handle multiple values we have to create table type in SE11,so try to create table type in SE11 and then try to specify only itab without any structure and see..i have never done this..plz try and let me know, if it works..

Regards,

Nagaraj