10-17-2008 6:24 AM
hi all,
I have a requirement in which i need to create a Function module the input for the Fm is pernr and year which are my import parameters. And my output is month and some amount .
i have my amount and month in an internal table in my source code. but i want that 2 to be in a tables in the output .so shall i give the internal table of associated type of itself .
how to go ahead?
TIA
rukmani.
10-17-2008 6:36 AM
Hi
Mention the table names what you want to use
check this sample code For FM:
*"----
""Local Interface:
*" IMPORTING
*" VALUE(KUNNR) TYPE ZZBAPI_KNVP_IMPORT-KUNNR
*" EXPORTING
*" VALUE(RETURN) TYPE BAPIRET2
*" TABLES
*" ZKNVP_DATA STRUCTURE ZBAPI_KNVP_DATA
*"----
SELECT VKORG
VTWEG
SPART
PARVW
PERNR
KUNN2 FROM knvp into table ZKNVP_DATA WHERE kunnr = KUNNR .
Regards
Edited by: srinivasu bv on Oct 17, 2008 7:37 AM
10-17-2008 6:42 AM
hi
Thanks for ur info.
But what u said is of no use for me bcoz my table is not a predefined one its is an internal table.
is there any option to use an internal table in FM tables tab.
12-02-2008 7:30 AM