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

Function Module??

Former Member
0 Likes
897

Hello!

I need for customizing - create new function module and connect it with sap function module. How can I call sap function module from my functin modul??

thanks!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
868

Hi,

There are two possibilities. One where you will call the SAP standard FM in your custom FM whereever you want by pressing PATTERN on the toolbar.

But if you feel that your FM cannot call the standard FM then you can also copy the standard FM and then put your code or FM you created as per your requirement.

8 REPLIES 8
Read only

Former Member
0 Likes
868

Hi,

You want to call a standard function module from a custom function module.

Are nt you?

In the source code of ur funtion module itself u can call

a standard funtion module by pressing ctrl+f6 or click on pattern push button.

Regards,

Jagadish

Read only

Former Member
0 Likes
868

This is same as calling the function module normally

i.e. in you function module,

wherever you want to insert SAP function module place the cursor there,

then pres ctrl + F6 or click on pattern tab on the top,(Function builder)

wite the name of the desird function module you wanna insert...and then that function module will be inserted in ur custom function module.then fill in the required parameters and Your job is done

Hope it helps

thanks

reward if useful

Richa

Read only

Former Member
0 Likes
868

Hi,

In your code where you want to call the fm.

Just go there. Then up the screen you will see an option "pattern"

Click that and add name of the fm you want to call..

Fill in the parameters. And it is done..

thanks

Reward if useful

Read only

christine_evans
Active Contributor
0 Likes
868

The same way that you would call any function module - have a look at the Pattern button in the Function Builder.

Read only

Former Member
0 Likes
868

HI ,

There is no difference in calling a standard function module in your custom function module and calling normally . Just call the function module as u call in reports and programs .

No difference .

Read only

Former Member
0 Likes
869

Hi,

There are two possibilities. One where you will call the SAP standard FM in your custom FM whereever you want by pressing PATTERN on the toolbar.

But if you feel that your FM cannot call the standard FM then you can also copy the standard FM and then put your code or FM you created as per your requirement.

Read only

0 Likes
868

ok, Thanks!!

I have new code:

CALL FUNCTION 'BAPI_ISUPROFILE_IMPORT'

  • EXPORTING

  • UPLOADINFO =

TABLES

PROFILEVALUES =

  • RETURN =

  • EXTENSIONIN =

  • PROFHEADINTF =

How can I call table profilevalues??(has a lot of rows...) It is in sap fm and I need it in my fm. I want to write some parameters into it. Can everybody help me?

Thanks!!

Read only

0 Likes
868

define an internal table with exactly the same type (structure) as defined in the function module and place this internal table after the equals (=) sign.

When calling the FM, it will return the values in the internal table.

Correction, this BAPI needs the profile values information for upload. So you will have to fill this internal table yourself from within your own function module.

Edited by: Micky Oestreich on Jun 3, 2008 12:22 PM