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 Subroutine Paramters

Former Member
0 Likes
394

hI.

How to define a subroutine with a GENERIC hashed table and pass it as a parameter.

And then how to call via perform .

Please help.

2 REPLIES 2
Read only

JozsefSzikszai
Active Contributor
0 Likes
346

hi AMC,

I hope this is what you want:

DATA : gt_bkpf TYPE HASHED TABLE OF bkpf

WITH UNIQUE KEY bukrs belnr gjahr.

PERFORM routine USING gt_bkpf.

FORM routine USING lt_bkpf.

you can also use like:

FORM routine USING lt_bkpf TYPE ANY TABLE.

hope this helps

ec

Read only

0 Likes
346

I want this line to BE GENERIC. Generic Table Type.

Not type of bkpf.

DATA : gt_bkpf TYPE HASHED TABLE OF bkpf

WITH UNIQUE KEY bukrs belnr gjahr.