07-24-2007 5:59 AM
tell me step by step to build a FM to update data in another SAP system
thank you,
Regards,
Jagrut BharatKumar Shukla,
07-24-2007 6:01 AM
Step 1.
GO to transaction SE80.In the drop box list select function group enter your Z Function group name.Press enter it will ask for creating the function group.Create your function group.
OR
In SE37 transaction,in the menu bar Goto - > Function Group - > Create Group.Your Function Group will be created.
Step 2.
Go to transaction SE37.Enter your Z Function module name,your recently created function group name and the description.Press Enter.Now your FM is created.
Step 3.
Enter Export,Import parameters.In the source code tab write the code what you want to write.If any exception write in the exception tab.
Method 2)
First u have to create Function Group.
1.se37->Goto->Function Group--->Create.
2.Create FM.
3.maintain import /export parameters and tables , exceptions.
4.based on the ur requirement u have to bulid ur logic in Source Code by using there Import parameters and u can pass the results by using Export or table.
5.u can raise error by using exception.
<b>Reward if useful.</b>
Thanks
07-24-2007 6:01 AM
Step 1.
GO to transaction SE80.In the drop box list select function group enter your Z Function group name.Press enter it will ask for creating the function group.Create your function group.
OR
In SE37 transaction,in the menu bar Goto - > Function Group - > Create Group.Your Function Group will be created.
Step 2.
Go to transaction SE37.Enter your Z Function module name,your recently created function group name and the description.Press Enter.Now your FM is created.
Step 3.
Enter Export,Import parameters.In the source code tab write the code what you want to write.If any exception write in the exception tab.
Method 2)
First u have to create Function Group.
1.se37->Goto->Function Group--->Create.
2.Create FM.
3.maintain import /export parameters and tables , exceptions.
4.based on the ur requirement u have to bulid ur logic in Source Code by using there Import parameters and u can pass the results by using Export or table.
5.u can raise error by using exception.
<b>Reward if useful.</b>
Thanks
07-24-2007 6:01 AM
pls check this link
http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801f50454211d189710000e8322d00/frameset.htm
regards
07-24-2007 6:01 AM
HI,
1) Create the FM in the target system in which you want to update data.
2) Mark the FM as Remote-Enabled.
3) Come to the source system and Create an RFC destination in SM59.
4) Create a porgram and call the FM along with the DESTINATION addition.
Regards,
Sesh
07-24-2007 6:05 AM
Re: Creating FM
Posted: Jun 6, 2007 12:50 PM in response to: vind v Reply E-mail this post
hi,
We can create FM in Function-builder for that one we work with SE37.
for declaring fields choose option IMPORT of function builder, under that define
field vbeln type <refarence table-field > and provide value for it type , check the mandatory option.
posnr type < refarence table-field>and check the optional option.
file path type c . here u choose the proper dictionary datatype.
next Select the option EXPORTING.
file type ( specifies the same type as mentioned above)
First u need to create a function group
use SE37 goto--> function groups --> create group
Use this FG to create a FM
Import parameters
VBELN type VBELN Optional = " "
FILE TYPE LOCALFILE Optional = " "
POSNR TYPE POSNR Optional = "X"
There will be no export parameter .
within the FM use WS_DOWNLOAD , GUI_DOWNLOAD to crete the file on the path specified.
write the code
activate the top include & the FM together
go through this link,which ll give you detail about creating a function module
http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
<b>Reward points if useful</b>
Regards
Ashu