cancel
Showing results for 
Search instead for 
Did you mean: 

Inline functions

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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