‎2007 Apr 04 8:06 AM
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.....
‎2007 Apr 04 8:16 AM
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.
‎2007 Apr 04 8:20 AM
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....
‎2007 Apr 04 8:20 AM
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....
‎2007 Apr 04 8:24 AM
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
‎2007 Apr 04 8:42 AM
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.
‎2007 Apr 04 8:53 AM
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.....