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

Exporting Custom table through function module

Karan_Chopra_
Active Participant
0 Likes
1,791

<b>How can i Export Custom table through function module.</b> when we add some table in the function module table tab it asks for a ref. table which is some table in database .. but i want to add some custom table with some user defined column names..how can i do this

<b>n plz tell me how to loop thru select options</b>

i have to loop thru select option and assign all the values to a variable.

plz help me out

Message was edited by:

Karan Chopra

1 ACCEPTED SOLUTION
Read only

Karan_Chopra_
Active Participant
0 Likes
1,213

plz reply

11 REPLIES 11
Read only

Former Member
0 Likes
1,213

Hi karan,

In such cases just define TABLE as TYPE Any.

Reward points if useful.

Regards,

Atish

Read only

Karan_Chopra_
Active Participant
0 Likes
1,213

no i cant do that i have one user def table in my func module source code but it is not def. in the table tab (means cant be exported) and if i use that as ref. then it shows the message table does not exist

Read only

0 Likes
1,213

Hi Karan,

What I written can be done. Just in your FM define the table in the table tab as type ANY. Now you can use the same for passing any kind of table to the FM.

Regards,

Atish

Read only

Karan_Chopra_
Active Participant
0 Likes
1,213

i wrote "TYPE" in type spec. field and "ANY" in ref. type field in TABLES tab

and gettin error while activating

"for typing of TABLES parameters , only table types shud be used "

Read only

Karan_Chopra_
Active Participant
0 Likes
1,213

help

Read only

Karan_Chopra_
Active Participant
0 Likes
1,214

plz reply

Read only

0 Likes
1,213

Hi Karan,

Do one thing, Just in the tables tab give the name of the table and don't write anything else. no TYPE and no ANY.

Hope it will resolve issue.

reward points if useful.

Regards,

Atish

Read only

Karan_Chopra_
Active Participant
0 Likes
1,213

if i do that wen i run the prog is assigns this table some default type of one table in my prog i used MARA and this new table becomes of this type even if i dont do that

Read only

0 Likes
1,213

Hi Karan,

Now this FM will behave based on what value you are passing to it.

If you pass table of type MARA it will be like that.

Reward points if useful.

Regards,

Atish

Read only

Karan_Chopra_
Active Participant
0 Likes
1,213

no i am not doin that

i just want ki it shud hav values of my own def. table which i am assigning to it but it is takin type of table MARA and my entries gets mixed in that

Read only

Karan_Chopra_
Active Participant
0 Likes
1,213

hey atish thanx!!!!!

now prob is solved

will reward u full 4 dat

thanx again dude