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

Que about internal table passing to the function module...

Former Member
0 Likes
1,175

Hiii .... ABAPer Sirs and Madams.....

Once again I m here with my celli que to disturb u....

My que is :

" I want to pass an internal table from calling program to function module .... butttttt my internal table didnt derived from direct any table.... i meant to say this internal table contains 4 colums then these all columns are from 3 different tables ... so now how can i able to pass this internal table to function module ???"

I guess i can not use table strip of my function module .... so how to get ONE MORE PROBLEM from this problemmmmm so that i can get solution from it????

I M Waiting for ur reply......

Warm Regards,

Nirav Parekh.....

6 REPLIES 6
Read only

Former Member
0 Likes
702

HI,

u have to define these internal table in tables only.but,there u should not give any associate type.that is enough.

regards,

bharat.

Read only

0 Likes
702

Hi bharat ....

Thanks for ur reply...

ok let me check it....

and could u tell me how can i implement user define exceptions and how to use it???

thanks in advance....

warm regards,

Nirav Parekh....

Read only

0 Likes
702

Hi bharat ....

Thanks for ur reply...

ok let me check it....

and could u tell me how can i implement user define exceptions and how to use it???

thanks in advance....

warm regards,

Nirav Parekh....

Read only

Former Member
0 Likes
702

Hi Nirav,

You create a structure which contains the four fields you want to pass to the FM and use it in the tables area of the FM.

Else you can create a table type with the line type of structure mentioned above and use it in the import / export parameter itself.

Regards

Rusidar

Read only

0 Likes
702

Hi,

goto exceptions tab and give

exception <excep>& description "my exception".

if u want to handle it when a variable value is zero write like this in source code.

if var = 0.

raise excep.

endif.

here var may be an importing parameter,internal table,etc,....

the discription of this exception will be ur run time error text if u won't handle it while calling the function module.

regards,

bharat.

Read only

0 Likes
702

Hiii Bharat ...

Thanks for ur reply......

i have used internal table name without any further specification ( i.e like, type etc. ) .... its surprisingly working....

do u think in future will it make any problem ????

And for exception i m trying as u said but where to write that code...???

In calling program or in function module ???? and what is logic behind it????

Warm regards,

Nirav Parekh.....