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

Where to place common data types between BADI and Function module.

Former Member
0 Likes
392

Hello,

  I am trying to call a Z subroutine which are available in a function module from the BADI method.

In the perform statement i am  passing  table type through changing parameter.    The structure is defined  in the types statement . The same structure is used in the function module .  Would like to which is the common place i should use to specify the structure between BADI and function module .

Regards,

kevin

2 REPLIES 2
Read only

Clemenss
Active Contributor
0 Likes
358

Hi kevin,

specify a table type in data dictionary and use it for the parameters.

Regards,

Clemens

Read only

lnlng
Product and Topic Expert
Product and Topic Expert
0 Likes
358

Hi Kevin,

Put your type definition into a separate include.
In the implementation class, choose:
Goto -> Local Definitions/Implementations
Include your type definition there.

Note: there are some restrictions for the type in OO context, e.g. explicit length of type must be specified

BR, Leonard