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

can someone explain the tables tab under function parameter declaration ?

Former Member
0 Likes
503

Hello,

when declaring a function, part of its parameter interface is the tables tab. So if in FUNCTION1 i declare a table: tdraw like draw (optional)

what does that mean ? does this mean that tdraw will be a table of type draw and at the same time it will be filled up with the same contents as draw has ?

then how can other function (func2) use FUNCTION1 and its table ?

so if inside func2 i also have an internal table AA like draw :

so inside func2 i say:

call function1

tables:tdraw = AA

does this mean that it will assign the result tdraw table of function1 to AA ?

can someone explain details of internal tables and passing them as parameters ?

and which table is assigned to which ?

thank you

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
458

Hi hassan,

If you are talking about the tables parameter in SE37, when you declare a table tdraw like draw it only means you are declaring an internal table of type draw but the contents are not filled into it.

In the source code of the program you have to write the code to fetch the data to tdraw and do the manipulations accordingly.

Also, the tables you are declaring can be like the input table or can be used for output table.

suppose u have 2 tables tab1 and tab2, tab1 you are going to input the values to it and the calculated values have to be in another table, you can use tab2 as the result table.

hope it helps.

award points if it helps.

3 REPLIES 3
Read only

Former Member
0 Likes
459

Hi hassan,

If you are talking about the tables parameter in SE37, when you declare a table tdraw like draw it only means you are declaring an internal table of type draw but the contents are not filled into it.

In the source code of the program you have to write the code to fetch the data to tdraw and do the manipulations accordingly.

Also, the tables you are declaring can be like the input table or can be used for output table.

suppose u have 2 tables tab1 and tab2, tab1 you are going to input the values to it and the calculated values have to be in another table, you can use tab2 as the result table.

hope it helps.

award points if it helps.

Read only

Former Member
0 Likes
458

The tables parameters is an optional parameters while creating FM using SE37. it is used when u want to pass ur ITAB alongwith its contents to FM. But while declaring Tables parameters, one thing u need to be sure of ... the structure which tables parameters will refer to should be in DDIC. so first declare a structure and then go ahead.

hope this helps

bbye tac care

Ashwani

Read only

Former Member
0 Likes
458

Hi Hasan,

I can give explaination in detail... Only thing stops me doing that is people gets the answer and they donot rewards us for our efforts...

So pl. consider our efforts...

1. We are using Tables as an Interface... I.e we can pass value to FM and Receive from FM using TABLES... It can work both way... So If u are defining table like DRAW... It will give u access to PASS valuet To & From to this FM using Tables.

2. It can not get data of Draw into it automatically.

Hope this is enough... For more details on FM and RFC u can write to me... or send an email to me..

DARSHAN