Call a RFC or BAPI in SAP R/3
Hi,
Please give your replies.
I written a RFC function module in SAPR/3 , my requirement is that RFC to be called from SAPXI.
This RFC will update some SAP transactions and return back the document number back
Whether it is possible?
aRs
Hai,
<i>my requirement is that RFC to be called from SAPXI.</i>
at design time you have to import RFC module into imported bjects
Select Message Interface as Synchronous Type
and do rest of the things like mapping...
At configuration
Under communication channel select adapter type as RFC adapter and receiver.
and pass the SAP R/3 details
thanks & regards
harsha
*********Reward points if found useful*********
Similar Messages
-
Calling a RFC function in non-SAP application
Hi,
I can call a RFC function in a .NET application. Here there is no problem.
But if an ABAP program submitted in this RFC then I can not call this RFC?
Can I call an RFC ( it submits another abap program) non-SAP application.
Thanks.Hi Astron,
Could you please close the thread as answered.
Regards,
Anand Mandalika. -
RFC or BAPI for fb03 transaction call
When you execute the fb03 transaction call in SAP GUI, you got a screen asking you to enter Document number, company code, Fiscal year.
I'm trying to create a web dynpro application that does the same as fb03.
Is there an RFC or BAPI that takes the same set of parameters and return same results.Hi Adel,
Welcome to SDN.
Please try this FM/BAPI.
<b>FI_DOCUMENT_DISPLAY_RFC</b>
<b>BAPI_ACC_DOCUMENT_DISPLAY</b>.
Hope this will help.
Regards,
Ferry Lianto -
Multiple BAPI calls in RFC Adapter
Hi, Dear Friends!
I have asynchronous scenario File to RFC(BAPI).
File contains raws. For each raw I need to execute BAPI.
With the help of each raw I need to construct one document in R/3 database with the help of BAPI.
But now my scenario provide only one document (only one BAPI is executed).
I read file to xml structure. This structure contains elements. The elements represent raws of file. But BAPI is executed only for the first element.
How to explain to XI that I want it impement BAPI <b>N times</b> - as number of raws in file (or elements in xml structure).
So how to implement multiple BAPI calls. Have you any idea?
Thank you in advance.
Natalia Maslova.Hi Natalia
have a look on these links
http://help.sap.com/saphelp_nw04/helpdata/en/43/b46c4253c111d395fa00a0c94260a5/frameset.htm
Best Design : for a SOAP -XI - BAPI ( Multiple )
Re: RFC adapter...How it handles multiple calls...
Re: Multiple BAPIs and COMMIT in BPM
Re: Is it possible to compose XML in BPM from responses of multiple BAPI calls?
Multiple BAPI calls in RFC Adapter
may be helpful
Thanks !!! -
Issue while calling the RFC in SAP quality system but not in SAP Dev sys
Hi,
Our scenario is FIle-RFC-File.
We are calling the RFC from XI system in Development environment. This is working fine in Development environment, but not in Quality environment.
This changes are moved/transported to Quality environment in both XI and SAP side. But we are getting the following error in Quality system:
<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText><b>com.sap.aii.af.ra.ms.api.DeliveryException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null></b></SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Please provide the inputs, what we can check at SAP side and XI side.
We have tried to test from XI Development to SAP quality environment, but we are getting the same error message.
Waiting for the precious inputs.
Thanks,
Ramesh.Hi Ramesh,
This might be because your RFC adapter would not have been configured properly. Just do a check on it,in RWB(adapter monitoring) and activate it once more in ID.
Also check RFC comm. parameters such as host name/user id/password etc..
Also check whether your XML document is having a mismatch with your RFC XML.
Check with your payload ( from SXMB_MONI) and test it in your message mapping.
All the best!
cheers,
prashanth
P.S Please mark helpful answers -
How to call the RFC's from the third party applications or Non SAP applicat
Hi,
For calling RFC's from the wedynpro , SAP has provided the modeling concept.
In the same way, if i want to access or call the RFC 's from the third applications or Non SAP applications what is the procedure and what is the methodoligy.
As per my knowledge, we need to expose those RFC's as webservices . Then we must be able to acces in hetrogeous environment from any third party applications..
Please revert back soon, It is very urgent.
Regards
VijayAyyappa Raj,
Thanks for the reply.
Please let me the detailed information for implementing.
AS you said . I need expose the RFC's as webservice. This point is clear to me.
2) Use tthe JCo to connect and create client proxy.
Can u please elabrate the above point?
If u have any steps created in the document or url to refer. Please forward it to me.
Please forwar the document to this id "vijay00" in yahoo.
AS the sdn is not allowing to give the maill id i have given only the id details in yahoo.
I am new to this procedure.
Regards
Vijay -
RFC or BAPI to get ECC CST LST from SAP to third party
Hi Friends,
I want to find out RFC or BAPI to get ECC,CST and LST No. number from SAP system to third party software accourding to Ship to party.Please healp me.Hi,
Thanks very much for your answer. In fact, table UVERS is empty both on SAP Wharehouse server and Netweaver, but you put me on the right way...
I finally found that table CVERS_REF was enough, but I don't have the version of the component like in the status window...
I doubt also I'm right using the RFC_READ_TABLE, but I don't know yet if a BAPI exists for what I'm looking for.
Regards
François MAESEELE -
Can we call bapi from SAP or ABAP How? Pls Step by step
Can we call bapi from SAP How? Pls Step by step
thank you,
Regards,
Jagrut BharatKumar ShuklaHi,
Do you mean you want to access BAPI in ABAP report?
If yes, then YES we can call,
1.Create a report -> In pattern write your BAPI name.
2. It is like your FM , Read correspoding BAPI documentation
3. Fill required parametes.
4. Test run and if successful , final run it.
And from Outside,
You have to establish a connection and create a wrapper and access using avaialble APIs.
Reward if useful! -
Dear all,
I have a problem about using WAD call RFC and BAPI get BW data,who can help me?HI Bill,
Please give details of what you are trying to do.
Brian -
I want to find out the RFC or bapi that log on the SAP? is anybody know?
i want to find out the RFC or bapi that log on the SAP?
Hi,
for BAPI's
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sappoint.com/abap/bapiprg.pdf
http://www.sappoint.com/abap/bapiactx.pdf
http://www.sappoint.com/abap/bapilst.pdf
http://www.sappoint.com/abap/bapiexer.pdf
http://service.sap.com/ale
http://service.sap.com/bapi
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
http://www.planetsap.com/Bapi_main_page.htm
http://www.topxml.com/sap/sap_idoc_xml.asp
http://www.sapdevelopment.co.uk/
http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
***do reward if usefull
vijay -
JCOProxy error while calling a RFC
Hi,
When i tr to call a RFC "CBIF_GLM1_BATCH_READ", i get a fatal error.The error message is:
"JCOProxy error: Problem retrieving JCO.Function object."
When i checked if i was able to connect to any of the functions other than BAPI's i got the same error.
Is there something that i need to turn on in SAP?
I am using SAP xMII 11.5.3 SR03 and SAP 4.7 Enterprise.
Any help appreciated.
Thanks,
RamRam,
I tried loading this RFC, CBIF_GLM1_BATCH_READ, using my version of xMII 11.5.3 and it worked without a problem. Are you sure that this RFC was not modified in your system that causes it to not work properly? Also, when you tested the RFC in se37 did you try to run it without setting any parameters? What about using the Web DynPro interface to see if it generates the XML properly? Just a couple of things to look into, but I know it's not xMII. If you did modify the RFC you will have to restart the ServletExec service to clear the xMII JCO API cache. Hope this helps.
-Sam -
Calling a RFC using connection pool
Can I use connection pool to call a RFC from my R3? I'm using SAP Enterprise Connector but I don't want to pass user/password hardcoded.
Thanks in advance.Hi Kiran,
Yes I used SAP JRA and it works.
You need JRA deployed and configured on WAS, your basis guy can do it for you. The next step is download this PDF <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ad09cd07-0a01-0010-93a9-933e247d3ba4">Accessing BAPIs Using the SAP Java Resource Adapter</a>.
Follow this document, it's very easy to do so. -
Hello XI guru,
I am configuring RFC to File scneario where i am using BAPI as Source. When i run this BAPI in se37 it gives me short dump stating "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException:
Please help.
Also I want to know is it necessary to write wrapper for BAPI before configuring. This bapi list all orders created in SCM system.
awaiting ur advises and help
Thanx
AnuHello guys,
I am sorry but kind of confuse, please be with me.
I have RFC with following structure:
'Z_BAPI_MOSRVAPS_GETLIST2'
importing parameters
LOGICAL_SYSTEM = T_LOGICAL_SYSTEM
START_TIME = T_START_TIME
TABLES
PRODUCT_SELECTION = T_PRODUCT_SELECTION
LOCATION_SELECTION = T_LOCATION_SELECTION
LOCTYPE_SELECTION = T_LOCTYPE_SELECTION
ORDER_HEADS = T_ORDER_HEADS
OUTPUT_NODES = T_OUTPUT_NODES.
I put values in logical system/start_time/
product_selection/location_selection/loctype_selection
based on these values order_heads and output_nodes is populated. I want value of these to tables to be sent as file.
Data structure for file is as follows
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:ORDER_MT xmlns:ns0="uri:scm:sql:transaction">
- <ORDER_HEADS>
- <ITEM>
<ORDER_NUMBER />
<ORDER_TYPE />
</ITEM>
</ORDER_HEADS>
- <OUTPUT_NODES>
- <ITEM>
<MASTER_PRODUCT />
<MASTER_PLANT />
</ITEM>
</OUTPUT_NODES>
</ns0:ORDER_MT>
But the payload has value
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:ORDER_MT xmlns:ns0="uri:scm:sql:transaction">
remaining is not seen in sxmb_moni and payload cannot be read error is given.
file structure is dummy structure, please tell me know if it is right or i need to change.
Thanx
Anu -
Error while calling an RFC from R/3
Hi all,
I am new to webdynpro. I am calling a RFC from R/3/.the code is like this.
Zhr_Fm_Loan_Input input = new Zhr_Fm_Loan_Input();
wdContext.nodeZhr_Fm_Loan_Input().bind(input);
input.setUsrid(wdContext.currentContextElement().getEmpnoa());
try
wdContext.nodeZhr_Fm_Loan_Input().currentZhr_Fm_Loan_InputElement().modelObject().execute();
catch(Exception e)
wdComponentAPI.getMessageManager().reportException("Exception "+e,true);
In the output i am getting an eror Exception com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException.
Can anybody explain the error.
Regards,
RajeshHi Rajesh
Kindly check ur BAPI once from Backend, i hope there is no other mandatory field required apart from Usrid.
I hope BAPI doesnot have any mandatory Structure in it. in case it has , u have to pass that also..
Try printing this context also ..wdContext.currentContextElement().getEmpnoa().. i hope it is not returning a null.
wdContext.nodeZfm_Input().nodeOutput().invalidate(); // Add this line after execute statement
Regards
Puneet -
How to call the RFC from R/3 to SRM, when we use webdynpro abap? (Urgent)
Hello
We use SRM Server 5.5 with classic scenario.
We want to call RFC in R/3 from webdynpro ABAP.
How can we do that?
We are developing the web report using webdynpro abap.
So we need some of R/3 data such like PR(EBAN)and PO(EKKO,EKPO).
When user choose the search parameter, report diplay the Shopping cart, PR and PO data on webdynpro. So we call the R/3 RFC to display the PR, PO data.
But I tired to call the RFC in R/3, We could not call it.
How to call the RFC from R/3 to SRM, when we use webdynpro abap?
Thank you,
Best Regards,
SH.Hi
<b>Please look at the following threads as well -></b>
WebDynpro in SRM
BAPI's /RFC's in SRM
BAPI to Change Shopping Cart by RFC
SRM60 and webdynpro
Webdynpro Services Exception
WebDynpro using BAPI has an error
SRM60 and webdynpro...
<b>SAP uses META Function modules in SRM to get data from R/3 back-end.</b>
<u>For getting Purchase requistion data, use the function modules -></u>
META_REQUISITION_CHANGE Change purchase requisition
META_REQUISITION_CREATE Create Requisition
META_REQUISITION_DELETE Delete/close purchase requisition
META_REQUISITION_GETDETAIL Display requisition details
META_REQUISITION_GETITEMS Display requisition items
META_REQUISITION_GETRELINFO Get Releasease Info for requisitions
<u>For getting Purchase order data, use the function modules -></u>
META_PO_CREATE Create purchase order
META_PO_DELETE Delete reservation
META_PO_GETDETAIL Display purchase order details
META_PO_GETITEMS Display purchase order items
META_PO_GETRELINFO Display purchase order release information
Hope this will definitely help. Do let me know.
Regards
- Atul
Maybe you are looking for
-
Bank Account details in Vendor Master
Hi Vendor Code is common for all co codes . The vendor has different Bank account numbers for each Co code. Hence while mainting the vendor master in the tab payment transactions all bank details appear for one co code & not able to identify the bank
-
What is to minimum requirements to run a forms app
We have some people that have pentium 2's and the installation for jiniatior is very slow. Is there a certain amount of memory needed
-
Changing permissions using a RepositoryService?
Hi All I have created a Repository Service using an example from posts in the forums and examples. Which I am trying to do is change the permissions of a text document when it is created in a folder in KM. However nothing is happening when the docume
-
Hi guy's, I required tipical logic pls any body help me, I have to fethch EBELN ,BEDAT from EKKO and MATNR from EKPO based on that i have to go KEKO table based on MATNR I have to fetch KALNR and KADKY , BEDAT should be between range of BIDAT and K
-
Publish Settings for iOS provisioning
Under http://helpx.adobe.com/director/using/publishing-ios-devices-using-director.html#id_27206 there is a bullet point titled, Provisioning File Path For Signing The App. There it says, 'Download the mobile Provisioning file path after creating it a