on 11-05-2007 6:25 AM
Hi,
Is there any inline function concept in wd4abap. If any how to use it. My goal is to make my method size small. I want to break a long method into separate sub methods.
hi prosun....
you can create as many methods as you need and call them from any one of your methods. just like we use perform statements in ABAP.
break your huge line of codings into smaller methods and call them from your main method.
--regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for your reply.
But the problrm is from a method i am reading the context and calling a FM to save record. Again bind the values from FM while resume.
Now what is the way to break this method as i will not able to get the reference of node in other method which is being used in current method. And how will i pass a internal table as a method parameter as my FM returning me number of internal tables,
please help.
hi prosun........
have a node in the context which will hold the values of the internal table
passed by the function module.
in the methods tab, create the main method " method a" which will retrieve
values from your view.
create another methodb which will have your function module. bind the
returning internal table to a node.
call method b from method a.
so when you return to method a, you can access the node which will have the
internal table values.
---regards,
alex b justin
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.