Remote callable function modules in SAP R/3.
Hi All,
Can you please let me know approx number of remote callable function modules in available SAP R/3.
Thanks
TG
This has noting to do with SAP on Oracle.
Similar Messages
-
Remote Enabled function module of SAP working - debug mode but not run mode
Hi,
When a remote function module is called from Java a message should get thrown from the function module which the FM is throwing but Java is not able to fetch the error. This problem is coming in execution mode but if we are in debugging mode and go to the function module remotely the error is getting triggered.
Please suggest the solution to the problem.
Thanks,
AbhishekHello
try something like this
try {
JCO.Client.execute(myFunction)
} catch (JCO.AbapException ex) {
System.out.println ("ABAP Exception: " + ex.getKey() + " " + ex.getMessage());
the problem is, that JCo ABAP Exceptions are subclasses of java.lang.RuntimeException so the Java Compiler doesn't force you to catch them
regards franz
reward points if useful -
Problem with Remotely Invoked Function Module
Hi All,
I have a requirement to develop a Remote Enabled Function Module in SAP R/3 which will be invoked from an XI environment via an XML message.
The purpose of this FM is to validate the incoming data(which comes as a pair of values) by comparing it with values in a corresponding SAP Table.
If the incoming data is consistent with the values in the SAP Table, i need to return the data in the same format as it is passed. If any inconsistent record is encountered, then i just need to delete that particular record and return the rest of them.
I used a TABLE for the Input/Output in the FM and tried it. Though it works fine stand-alone, when invoked from the XI environment, the calling system is able to receive only the name of the Table Structure that is used in the FM for I/O.
I am unable to comprehend the format the input comes into SAP when the FM is invoked. So I'm not able to exactly pin-point the place where the problem arises.
Please suggest a solution.
Any pointers in this regard will be helpful.
Thanks in Advance.Hi,
You can view the incoming message in the local XI Message Monitor SXMB_MONI. There you will see if the input table parameter is correctly filled. In the same transaction, you can also see the reply that is sent to XI. If that is OK, you know that your function works correctly. When you are sure of that, and the calling system does not get the same parameters returned as you could see, that means the mapping in XI is wrong.
good luck,
Peter Glas -
Problem with Remote Invoked Function Module
Hi All,
I have a requirement to develop a Remote Enabled Function Module in SAP R/3 which will be invoked from an XI environment via an XML message.
The purpose of this FM is to validate the incoming data(which comes as a pair of values) by comparing it with values in a corresponding SAP Table.
If the incoming data is consistent with the values in the SAP Table, i need to return the data in the same format as it is passed. If any inconsistent record is encountered, then i just need to delete that particular record and return the rest of them.
I used a TABLE for the Input/Output in the FM and tried it. Though it works fine stand-alone, when invoked from the XI environment, the calling system is able to receive only the name of the Table Structure that is used in the FM for I/O.
I am unable to comprehend the format the input comes into SAP when the FM is invoked. So I'm not able to exactly pin-point the place where the problem arises.
Please suggest a solution.
Any pointers in this regard will be helpful.
Thanks in Advance.Hi Keerthivasan,
My requirement also same,
please send me the source code.Please help me urgent.
Thanks. -
How to develope custom function modules in SAP R/3 system to maintain c...
How to develope custom function modules in SAP R/3 system to maintain cross
referencing tables for sales order number.Hi Raja,
Steps to crate FM..
Follow these steps..
Go to the T: code SE37
First You Create Function Group
On That u specify
Function Group Name..............
Short Text..............................
save...
Go to SE 37
Specify the Function Module Name: Eg: Z_Bapi_Materialmaster
Short Text.......
Save...
Next Go to Attributes..
Select Radio button : Remote enabled model
Go to Parameters..
Click Import...
Give Parameter Type Associate type S.t
next Click Export...
Give Parameter Type Associate type S.t
Next Click Tables Button..
Specify tables..
Next click source code button..
Write Source code here..
Eg : Select statements Etc..
Finally we should be select the Radio button Enable remorely
https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=39728
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/bapi%2bstep%2bby%2bstep
Hope this information is useful to you..
Reward points if it is usefulll....
Thanks ,
Satya Kumar.. -
How to call a remote capable function module?
Hi all,
I want to call a bapi from a R/3 that is not available in the current system were i have my WebDynpro Abap application.
So, i called the wizard "Service Call".
In the Select Service step i have to input the destination and Function Module and
Before i specified an RFC destination .
The wizard cannot find the function.
I read the Note:
The function module must exist in the current system! The wizard does not support to call a remote capable function module that does not exist in the current system.
The question is :
How can i call remote capable function module?
Thanks,
AriHi,
this link might help you : <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/22/0424ba488911d189490000e829fbbd/frameset.htm">rfc in abap</a>
grtz
Koen -
How to Developed user defined functions to call function modules in SAP R/3
how to Develope user defined functions to call function modules in SAP R/3 system
Hello Raja,
Go through this V.imp Link...
http://download.oracle.com/docs/cd/B10464_05/integrate.904/b10408/rfc.htm
Steps to crate FM..
Follow these steps..
Go to the T: code SE37
First You Create Function Group
On That u specify
Function Group Name..............
Short Text..............................
save...
Go to SE 37
Specify the Function Module Name: Eg: Z_Bapi_Materialmaster
Short Text.......
Save...
Next Go to Attributes..
Select Radio button : Remote enabled model
Go to Parameters..
Click Import...
Give Parameter Type Associate type S.t
next Click Export...
Give Parameter Type Associate type S.t
Next Click Tables Button..
Specify tables..
Next click source code button..
Write Source code here..
Eg : Select statements Etc..
Finally we should be select the Radio button Enable remorely
https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=39728
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/bapi%2bstep%2bby%2bstep
Re: User Defined Functions Tutorials
Hope this information is useful to you..
Thanks ,
Satya Kumar.. -
How should tables be defined in remote-enabled function modules used in PI
Hi,
I know the outside-in development approach is best practice (although there is some conflicting viewpoints on the best approach for new developments, some favouring RFC).
If I was to create a new remote-enabled function module in a backend system then import this into the Integration Repository what is the recommended parameter group for defining tables against the RFC?
I've tested using import, export, changing and tables and they all work but SAP recommends not using the tables option anymore but when using import/export/changing option I receive a warning that using these parameters with deep/nested data types can lead to performance problems.
Can someone offer any advice?
Thanks,
Alan> I've tested using import, export, changing and tables and they all work but SAP recommends not using the tables option anymore but when using import/export/changing option I receive a warning that using these parameters with deep/nested data types can lead to performance problems.
You use import and export parameters, and avoid deep and nested structures. -
Remote enabled function modules IN R/3
hi,
i posted this question before but i didnt get a convincing answer to move forward
when data is sent to bw from r/3 there should be some remote enabled function modules which are getting fired.
so people told me to find fm for each data source in 'ROOSOURCE' table.
and to debug to get the function module IN RSA3.
i got those function module but these r 'NORMAL FUNCTION MODULE' but not
'REMOTE ENABLED FUNCTION MODULES'
IF REMOTE ENABLED FM'S ARE NOT GETTING TRIGGERED THEN HOW IS DATA GOING TO BW
PLEASE SUGGEST ME I AM WAITING FOR LONG TIME FOR A GOOD ANSWER.OK,
this is a big project.... You want to simulate a BW system.... I think don't think it is not possible but R/3 is a pair exchanging a lot of information and a lot of settings have to be done.... this seems to me very complex....
This will depend on what kind of datasource you want to extract....
- Master data: I would directly go the you SAP database and extract the info form the tables directly (we are actually doing that)
- LO datasources would be a bit more complex since you'll have to initialize your datasource from a BW system.... Or figure out how this is working, meaning reverse engineering of the whole stuff! You could even think about using the exits for the business events, e.g. when an article doc is created, write the data in a flat file and/or write it directly to the DB of your DW....
Also I would setup a BW system anyway; it is so easy then to manage all this data... You could then stick to load the data to the PSA and extract it very easily to your external DW. Even BW provide much more extraction capabilities once the data is stored there....
They're a lot of solutions like always... the challenge is to choose the best one.
hope this helps...
Olivier. -
Calling a normal function module in SAP system .
Hi Experts,
I have the requirment like -->
I want to call a normal function module in SAP system which will perform a data look up. The module will be called by SAP-XI and the response will come to SAP-XI . That means i want to make a synchronous call to a Normal function module (not Remote module) which can perform the data look up and send me the result.
Can anyone help me in this.
ThanksHi Ajay,
Lookups in XI made simpler -
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
How to check JDBC SQL Query Syntax and verify the query results inside a
User Defined Function of the Lookup API -
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
/people/prasad.illapani/blog/2006/10/25/how-to-check-jdbc-sql-query-syntax-and-verify-the-query-results-inside-a-user-defined-function-of-the-lookup-api
Lookups - /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
Lookups - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
/people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
Thanks,
Satya Kumar -
How to code a predifined function module in sap ,in se37.
can any one tell me how to code a predifined function module in sap ,in se37.it's an immediate requirement.if u give a brief description it'll do.
Hi Henry,
There are two possible ways in which I can interpret your question.
1. You want to create a new Function Module in SE37. you will have to refer to the <a href="http://help.sap.com/saphelp_47x200/helpdata/en/d1/801e9a454211d189710000e8322d00/frameset.htm">Function Builder</a> tutorial for that.
2. You want to use an existing function module in your program. In the code of your program in SE38, click the button <i>Pattern</i>. On the pop-up, give the name of the function module that you wish to use in your program.
Regards,
Anand Mandalika. -
Can i call a function module of SAP?
Hi, i have a question... Can i call a function module of SAP... I need print a document from a device, can i call the function module of SAP in order that me it prints it?
Thanks,Hi Victor,
you can use the GenericSync Example of the MDK. This calls the Module to verify the user directly. Generic Sync is exactly for that purpose: call a BADI directly and no usage of SyncBO. Be aware, that you - out of the box- sync your app data as well at that moment, because a sync runs both - generic and smartsync. Even worse: even when you have nothing to sync in Generic Sync - so nothing to print - it will call the function module for generic sync as long as it is registered.
Well, anyway, this is the way to call a function module separate.
If it works with you rparticular print module? I have no idea, but if this is a normal function module - well, it should be ok.
Hope this helps.
Regards,
Oliver -
Difference between BAPI and remote enabled function module
Hi!
what is the difference between remote enabled function module and
BAPI.
How do we use remote enabled function module .
thanks
AmitPlease search the forum before asking basic questions.
-
Message handling in remote enabled function module .
Hello experts ,
I am creating a remote enabled function module which must return a warning message based on certain condition . Inorder to meet the requirement I have added this line in the Fm's source code :
" Message Wxx(message class) with a ."
But when I am trying to use it , the above given message is dispalyed as an error message . Could you please let me know where am I going wrong . TIA.
Regards,
Prakrita Kapoor.Hi Prakrita,
Try building below code within the RFC after you have added return structure in your RFC parameters.
IF sy-subrc NE 0.
CLEAR message.
message-msgty = 'E'.
message-msgid = 'ZMI'.
message-msgno = '001'.
message-msgv1 = ID.
PERFORM return_message USING message
CHANGING return.
Endif.
form return_message USING VALUE(P_MESSAGE) LIKE MESSAGE
CHANGING P_RETURN LIKE BAPIRETURN.
CHECK NOT MESSAGE IS INITIAL.
CALL FUNCTION 'BALW_BAPIRETURN_GET'
EXPORTING
TYPE = P_MESSAGE-MSGTY
CL = P_MESSAGE-MSGID
NUMBER = P_MESSAGE-MSGNO
PAR1 = P_MESSAGE-MSGV1
PAR2 = P_MESSAGE-MSGV2
PAR3 = P_MESSAGE-MSGV3
PAR4 = P_MESSAGE-MSGV4
IMPORTING
BAPIRETURN = P_RETURN
EXCEPTIONS
OTHERS = 1.
endform. -
Wants to find out customise function module in SAP
Hi all There,
I want to find out Customize Function Module in SAP,
I am not able to find out though SE03.
Pl provide the detail solution
Regards
Sagarhi,
Custom function module start with Z or Y.So go to table TFDIR and enter z* and y* on input screen field function module name and then check number on entries by pressing tab number of entries on application toolbar.
So number of custom function module = z(number of entries) + y(Number of entries) .
Thanks
Mohit
Maybe you are looking for
-
I cannot delete nor download the book I had 3G of space available and the book only needs 648mb! If anyone knows how to get rid of the blasted book please let me know!
-
Trying to understand Distribution Model
When I view the metadata of a Distribution Model, I see DM overview which contains 2 tabs. One for Data Objects and Second for Rules. I am trying to understand the tables in each of these tabs. Association Table - RR00200100G_AT DRDS Table - DM002
-
FCP X 10.2 I have an 8 gig SD card I have mounted that has audio files on it. I imported the audio in FCP X with no problem. Now I want to unmount it so I can mount the SD card with the VIDEO files. I select Import to get the import dialog, I click o
-
Adt.bat Could not generate timestamp: Cannot parse the response
I am using the command line to build an air app as follows: adt.bat -package -storetype pkcs12 -keystore mycert.pfx -storepass xxx -tsa http://timestamp.verisign.com/scripts/timstamp.dll myApp.air myApp-app.xml myApp.swf However, I receive this error
-
While updating J1INBANK No records found.
Dear All, We have made TDS remittance through J1INCHLN and while doing J1iNBANK no records found in table J_1IEWTCHLN for a particular company code. But the TDS Payment document is appearing in FB03. We are in ECC 6.0. If anybody knows please let me