Application Development 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: 

FM problem

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

no