‎2008 Feb 07 3:28 PM
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.
‎2008 Feb 07 3:34 PM
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
‎2008 Feb 07 3:44 PM
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.