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

Use of custom structure defined in the program in Function Module

Former Member
0 Likes
1,891

Hi,

We have defined a structure in a program.

We want to define a Tables parameter in a Function module having the same structure as in the program.

Is there a way to do this without defining a standard structure?

Thanks,

Arun

4 REPLIES 4
Read only

Former Member
0 Likes
1,145

Hi,

Try by defining types in the Top include of function group

I mean in the INCLUDE L<function Group>TOP.

Hope It resolves your problem

Regards,

Raghava Channooru.

Read only

Former Member
0 Likes
1,145

Hi Arun,

No, there isn't. You have to define the structure in SE11 to make it available to both a program and a function module interface.

Regards,

Nick

Read only

Former Member
0 Likes
1,145

hi,

As Nick said u need to define the structure , also the table parameter is obselete , u can create a table type of the structure and use in the importing or exporting parameter.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,145

Copy the definition in a Type Group (SE11 - Uilities - Other Dictionary objects) in an Abap syntax, include the type group in function group and program top includes via a [TYPE-POOLS|http://help.sap.com/abapdocu_70/en/ABAPTYPE-POOLS.htm] statement (before Release 7.0, EhP2).

Regards,

Raymond