Application Development and Automation 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: 
Read only

PASSING INTERNAL TABLE

Former Member
0 Likes
641

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...?

5 REPLIES 5
Read only

Sathish
Product and Topic Expert
Product and Topic Expert
0 Likes
624

Did you mention Type Spec as TYPE??

can you send the declaration part and passing parameters with type and source code

Read only

Former Member
0 Likes
624

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

Read only

Sathish
Product and Topic Expert
Product and Topic Expert
0 Likes
624

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.

Read only

Former Member
0 Likes
624

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

Read only

Former Member
0 Likes
624

Duplicated thread... [;

Locking this thread...

Greetings,

Blag.