‎2008 Feb 14 6:04 AM
I CREATED INTERNAL TABLE ITAB WITH 2 FIELDS EBELN , BUKRS.
I WANT TO USE FUNCTION MODULE .
I CAN PASS EBELN , BUKRS AS EXPORT PARAMETERS .
HOW CAN I PASS ITAB TO FUNCTION MODULE . SHOULD I DECLARE OF TYPE ITAB IN EXPORT PARAMETER LIST IN FUNCTION MODULE .....
I DECLARED JTAB TYPE ITAB IN EXPORT PARAMETER . BUT WHEN I AM WRITING QUERY IN THE SOURCE CODE OF FUNCTION MODULE , IT IS NOT IDENTIFYING JTAB AS THE INTERNAL TABLE .
I WANT TO PROCESS SOME DATA AND EXPORT JTAB BACK TO ABAP PROGRAM .
AM I GOING RIGHT...?
‎2008 Feb 14 6:08 AM
Did you mention Type Spec as TYPE??
can you send the declaration part and passing parameters with type and source code
‎2008 Feb 14 6:09 AM
Hi,
You should use the tables parameter in a function module to pass the internal table.Here you can specify the associated structure type of the internal table.
<REMOVED BY MODERATOR>
Regards,
Sowmya.
Edited by: Alvaro Tejada Galindo on Feb 14, 2008 4:34 PM
‎2008 Feb 14 6:12 AM
Sowmya,
TABLES is obsolete.
You can pass the internal table s_bkpf under IMPORT with Type Spec as TYPE.
in the code
data: lt_bkpf type bkpf.
lt_bkpf = s_bkpf.
this should work.
‎2008 Feb 14 6:10 AM
Hi,
You can pass ebeln and bukrs as exporting parameters or better you can pass the table ITAB itself in the tables parameters of the function module if the required function module accepts tables as parameter.
The values of the ITAB will be used and after calculation returned to the program.
In this way you can keep ITAB adn JTAB as same structure.
<REMOVED BY MODERATOR>
Regards,
Mansi.
Edited by: Alvaro Tejada Galindo on Feb 14, 2008 4:35 PM
‎2008 Feb 14 9:39 PM