‎2008 Jun 03 10:04 AM
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!!
‎2008 Jun 03 10:17 AM
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.
‎2008 Jun 03 10:10 AM
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
‎2008 Jun 03 10:11 AM
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
‎2008 Jun 03 10:14 AM
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
‎2008 Jun 03 10:14 AM
The same way that you would call any function module - have a look at the Pattern button in the Function Builder.
‎2008 Jun 03 10:15 AM
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 .
‎2008 Jun 03 10:17 AM
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.
‎2008 Jun 03 10:52 AM
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!!
‎2008 Jun 03 11:22 AM
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