‎2009 Jul 28 12:20 PM
Hi,
In a function module, in table interface i have declared a table. In source code this table gets values. In source code one perform statement is there. In that form, this table is not present. How can i get this table values in that form?
Ezhil.
‎2009 Jul 28 12:22 PM
Hi Ezhilhrh ,
Use TABLES addition for ur perform statement.
Like, PERFORM sample1TABLES <ur Internal table>
Regards,
Lakshman
‎2009 Jul 28 12:28 PM
Hi,
Do like shown below:
PERFORM FILL_ITEM_TKOMVD TABLES XKOMV
Regds,
Anil
‎2009 Jul 28 12:29 PM
Hi,
You can try using tables with perform statement like:
Perform append_heading TABLES T_Head " internal table declared
USING COUNT "variables
COUNT1
INDEX
FIELDCAT
FIELDCAT1.
Its form would be like,
FORM APPEND_HEADING TABLES T_HEAD structure T_HEAD
USING COUNT TYPE I
COUNT1 TYPE I
INDEX TYPE I
FIELDCAT type slis_t_fieldcat_alv
Fieldcat1 type slis_fieldcat_alv.
Hope it helps
Regards
Mansi
‎2009 Jul 28 12:45 PM
Hi,
You declare a internal table in the TOP include of the function module and move the interface table data to that internal table, as using TABLES addtion is obsalute i guess.
In top INCLUDE
DATA : it_inttab TYPE TABLE OF <ZSTRUCTURE>.
In Function module
it_inttab = zinterface[].
as it_inttab is globally defined the table contents are available in other INCLUDES of the Function module.
Regards
Bala Krishna
‎2009 Jul 28 12:50 PM
You can do it in two ways
1 . You can pass the table to the perform by "USING" staement
2. You can declare the internal table globally
Hope any of this method will work
‎2009 Jul 29 8:36 AM