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

Besst way to find a function module

Former Member
0 Likes
2,230

Hi there

I am quiet new to ABAP and I am curiouse about how to best approach the search for a function module??

can u guys please tell me how you search for functions modules that preform a specific task.

For example if I search for a function module that would display a itab in an alv grid, how would I do that?

Thanks,

Nana

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
2,187

Go to SE37, type in something like ALVGRID and click F4, then look thru the function modules. This is usually how I find what I'm looking for. Sometimes, it does take a while.

If you are really looking for the function module to display an itab in ALV grid, then you funciton module is called REUSE_ALV_GRID_DISPLAY

Regards,

RIch HEilman

10 REPLIES 10
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
2,188

Go to SE37, type in something like ALVGRID and click F4, then look thru the function modules. This is usually how I find what I'm looking for. Sometimes, it does take a while.

If you are really looking for the function module to display an itab in ALV grid, then you funciton module is called REUSE_ALV_GRID_DISPLAY

Regards,

RIch HEilman

Read only

Former Member
0 Likes
2,187

Hi Nana,

The best approach comes with experience.But generally the name of the Function Module would tell you vaguely about what is the purpose.

for example you want to read the long text stored in the SAP,the FM name is READ_TEXT.Though this is a simple example,it might be helpful for you in your approach for finding & using the right FM.

Read only

0 Likes
2,187

also you can search with names & *'s like READTEXT* & it would tell you the FM's present.

Read only

Former Member
0 Likes
2,187

Use T/Code SE37.

For ALV most commonly used functions start as RE_USE*ALV

or use ALV and press F4 . you will find all ALV related functions.

Read only

Former Member
0 Likes
2,187

here is another way! if you have t-code se11 which is database viewing, type in TLIBG which give you the database view of all the function groups and then you can have search criteria on which one you want.

ervin

Read only

0 Likes
2,187

Oops that was function groups, for function modules it's table TFDIR. then search for the function module.

ervin

Read only

Former Member
0 Likes
2,187

Hi Nana Lohmanns

Generic way of Finding the function module is only to go to se37 type any combination like ALV na dpress F4.

You will get name of function modules along with short text,then you can try the one you think as useful.

Like when you are looking for a Function module which can perform Operation on DATE.go to SE37 Type _DATE then press F4.You will get list of Function modules like:

<b>DATE_CHECK_PLAUSIBILITY</b>: Check to see if a date is in a valid format for SAP. Works well when validating dates being passed in from other systems.

<b>DATE_COMPUTE_DAY</b>: Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.

<b>DATE_GET_WEEK</b> :will return the week that a date is in.

<b>DATE_IN_FUTURE</b>: Calculate a date N days in the future.

-


Visit this link also,That will also be helpful for you,to get feel of Some Common Function MOdules.

http://www.sapgenie.com/abap/functions.htm

-


Close the thread,If your Question is answered.

Regards,

Vijay Raheja

Read only

Former Member
0 Likes
2,187

To search for a FM Goto SE37, type some related characters u r searching eg: DAY , WEEK

U will get a list of FM then choose depending upon the description given.

Dont forget to put a * before and after.

http://www.sapdevelopment.co.uk/fmodules/fmssap.htm

Hope this helps u.

Reward points and close the thread if ur problem got solved.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
2,187

Hi,

1 way:

If you find date related function module or something specifically like that,you can give date in se37 and then search in F4.

2 way:

If you are searching a function module related to a specific module(suppose FI),then you can give FI against Application Component while searching using F4.

Similarly you can restrict the search if you know the details about the FM,that's the function group,Development class(package),...

Hope this helps.If so,kindly reward points by clicking the star on the left of reply.

Read only

Former Member
0 Likes
2,187

Hi Nana,

Here is a sample code for displaying all functions module regards to the selection criteria.

http://www.guidancetech.com/people/holland/sap/abap/zzbgs030.htm

Regards,

Anjali