How to implement Adaptive RFC?
Hi Gurus,
I have a requirement to interact with R/3 through ADAPTIVE RFC.
Can anyone please send me the step by tsep approach of the same.
Higher points will be rewarded for the best solution.
Thanks in Advance,
Dharani
Creating RFC Model object
1>Open NWDS, open a web dynpro project
2>Right click on model node and select create model
3>Will get a new window, select IMPORT Adaptive RFC Model,
click next
4>Will get new window, enter
a.Model Name
b.Model Package Name
c.Enter Logical System name model instance  model name_MODELDATA_DEST
d.Enter Logical System name RFC Metadata model name_ RFCMETADATA_DEST
e.Click Next
5>SAP Logon Information
a.Single Server
If SAP GUI Client is not installed specify system details manually.
b.Load Balancing
If SAP GUI Client is installed on same system where NWDS is installed, all system will be available in System drop down list
c.Click Next
6>Select RFC Model (when this screen initially appears will be empty)
a.In Function Name
Type the function name you need, can also use wildcard(*) to search
b.Also you can see list of modules after search button has been entered [NOT RECOMENDED]
c.Click Next
7>Once Import has completed you will see import log
8>Result What RFC Model has created:
You will be able to see two sets of object
a.Dedicated Model Directory
It has simple type and set of structure
b.Model Class
Entire interface of each RFM in the model object
Similar Messages
-
How to implement a RFC to XI to Mail scenario?
Hello All,
I need to implement a RFC to XI to Mail Scenario.
RFC should contain the content of the mail.
I need a Integration process which will read the RFC and transform it into a Mail
I have a Mail reciever adapter but how will the content that i have in RFC be send as the content in Mail? what is the Interface mapping required? Do i need to write a XSL to do the transformation and how?
I have already started implementing the scenario. but the mail i get has the content as a attachment and not as a text. i have written a xsl transformation in Interface Mapping that simply has
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<html>
<body>
<li>Hello from XI to meghana</li>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
I get this message as a html in the attachment of the mail not as a content.
Could some 1 help me out??
Thanks
MeghanaYes, I am doing a Sender RFC to XI (Integration process) to Reciever Mail Scenario. The program that i have already given is used as a test program to add the values to the table.It calls the function module ZSOSMS2 which has the foll source code:
FUNCTION ZSOSMS2.
""Local Interface:
*" IMPORTING
*" VALUE(I_TEST) TYPE CHAR20 OPTIONAL
*" TABLES
*" ZSOSMS2 STRUCTURE ZSOSMS2
*" EXCEPTIONS
*" ERROR
ENDFUNCTION.
I have been able to read this RFC, have done a Message mapping which maps the CONTENT(present in ZSOSMS" table to some body attribute of the target Message Type attribute.
With this i have been able to read the content from the RFC and put it in as the content of my mail. But i am not sure if this is the best way.
If you are aware of any optimal way of doing it please let me know..
Thanks,
Meghana -
hi folks,
How to debug an adaptive RFC connection and plz leave some idea about the Bapi_Input and Bapi_output structures
thanks in advance
nikhilHi
If you want to debug the backend then put and external breakpoint in the abap code.
make your jco connect to a single instance
login using the user which is configured for jco.
For the front end
put a break point in your code before you call the execute method on the RFC and after it and use the debug perspective to evaluate the values.
Regards
Ayyapparaj -
Hi Everybody,
Could yo pls guide me on how to implement asynchronous RFC. When i run my RFC using Report :
CALL FUNCTION 'Z_HR_NO_ALTINN_TX' DESTINATION 'Q3A2X7A'starting new task 'test'
exporting
PASSWORD = 's'.
I get the error saying :
<b>What happened?</b>
When executing the asynchronous RFC, the RFC destination "Q3A2X7A" had
neither an internal (connection type 'I') nor an R/3 communication
type (connection type '3'.
Error in ABAP application program.
The current ABAP program "Z_ALTINN_TEST" had to be terminated because one of
the
statements could not be executed.
This is probably due to an error in the ABAP program.
<b>Error analysis</b>
A typical cause of error is the
execution of external programs (RFC destinations of the type
TCP/IP) via asynchronous Remote Function Call (RFCs with the
addition 'STARTING NEW TASK taskname').
RFC destination... "Q3A2X7A"
I would like to know if async RFC call is possible to XI.
Regards,
RajHi,
you need to call the RFC from ERP, R3
with
call function XXXXX
<b>in background</b>
and Commit work.
Regards,
michal -
How to find out the destination of an "Adaptive RFC Model - DEPRECATED"
Hi All,
How to find out the destination of an "Adaptive RFC Model - DEPRECATED" of an running application
and Where is the destination created in the server .
I have got the code of the running project from NWDI .
Thanks in Advance
Regards
Piyas KumarHi,
I am not sure I fully understand the question, but as per the guide
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50f7192d-2808-2d10-189b-df3fa5f71abf
Excerpt from Page 7
Caveat Confector!1
ARFC1 destinations were created using the Web Dynpro Content Administrator tool. This tool is
still available for compatibility reasons, but the destinations it creates are not used by ARFC2
models!
Instead, you should use the u201CDestinationsu201D tool found on the Configuration Management screen of
the NetWeaver Administrator.
Therefore I think if you look up the application in the WD content Admin, there you can find out what kind of JCO/RFC connections are belonging to it. You can find it on http://<host>:<port>/webdynpro/dispatcher/sap.com/tcwdtools/Explorer
Browse your application here, and then select the JCO Connections tab on the right hand side.
I hope this helps.
Best Regards,
Ervin -
How to implement the schema validation with XSD in adapter module
Dear All,
I am trying to develop a EJB as the file adapter mudule.
Please guide me how to implement the schema validation of the source message with XSD.
Or provide me the relative resources about this task.
Thanks & Regards,
Red
Edited by: Grace Chien on Nov 19, 2008 8:23 AMHi Grace,
You can do the xml scema validation in PI7.1 version directly.
To develop the adapter module for xml schema validation
Validating messages in XI using XML Schema
Schema Validation of Incoming Message
Regards
Goli Sridhar -
How to set the tables parameter to a BAPI using adaptive RFC model
Hi,
I have a BAPI ZBAPI that has a tables parameter ZPernr of type ZTable with two elements pernr and name.
I used adaptive RFC model and created model classes for the BAPI.
My question how do i set list of pernr and name to the tables parameter in the webdynpro for java.
I have the following methods available
ZBAPI input = new ZBAPI();
1.ZTable table = new ZTable();
table.setPernr(pernr);
table.setname(name);
input.addZPernr(table);
how do i set the table parameter for multiple pernr and name
2.
add all the pernr and name to list and set that list to input in the following way
input.setZPernr(list) and list of typecom.sap.aii.proxy.framework.core. AbstractList
out of two methods mentioned which one is correct.
Please let me know the solution
Thanks
Bala DuvvuriHi Bala,
In your code:
List pernrList = new ArrayList();
pernrList should be declared as the type of class HROBJECT ( The structure name in the model e.g. the node PERFWARN type is Zhrecmfm_002_Perfrat_Warning_Input )
Try this:
HROBJECT pernrList = new HROBJECT();
pernrList.setPernr(pernr);
input.setPernr_List(pernrList);
// call BAPI execute method
If you want to pass list of pernrs, you can pass in alternate way
IPrivate<viewname>.I<nodeame>Node prNode = wdContext.node<node>();
IPrivate<viewname>.I<nodeame>Element prEle;
for (int i = 0; i < table.size(); i++) {
HROBJECT pernrList = new HROBJECT();
pernrList.setPernr(pernr); // Set the pernr from current record
prEle = prNode.create<nodeame>Element(pernrList);
prNode.addElement(prEle);
// call BAPI execute method
Once I execute the BAPI how do i iterate thru second table parameter PERNR_PERFRAT to get pernr and performance rating text
Say your node name is PERNR_PERFRAT
for (int i = 0; i < wdContext.nodePERNR_PERFRAT().size(); i++) {
wdContext.nodePERNR_PERFRAT().getPERNR_PERFRATElementAt(i).getPernr();
wdContext.nodePERNR_PERFRAT().getPERNR_PERFRATElementAt(i).getPerfrat();
Regards,
Siva -
What is adaptive RFC and How to Use it
hi friends
what is the adaptive RFC
what is the use of it
how we can use it
explain me anyone
and send pdf also
thanks
ramu.Hi,
To give u a brief idea.
rfcs are used to call data from the backend that is R/3.We use the Bapis from the R/3 system which have some pre defined functionality and data is populated in the correspoding ui elements in webdynpro interface.earlier Rfcs were used but now we have adaptive rfcs in which
if there are changes in the backend(R/3 system) such as changes in the datatype,structures,fields would be automatically be refllected in the rfcs and there would be no errors in web dyn pro even if there is a change in the back end
to be more specific folow this link
http://help.sap.com/saphelp_nw70/helpdata/EN/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm
and try out this application
to use the rfcs firstly check out this document for configurations
Important Configurations for Calling ABAP Function from Java Web Dynpro Application
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07753b9-fa0c-2a10-64a8-c6754c45396e
heres the application.
Creating a Web Dynpro Application Accessing ABAP Functions
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/355b9c90-0201-0010-d2a8-89fece426526
regards
Nikhil Tapkir -
How can I call RFC FM from webdynpro application for ABAP? Please help!
Hi Experts,
I have a requirement where I have to make a call to RFC enabled function module passing some data from webdynpro for ABAP application. How can I achieve this? Any tutorial or links or docs will be very helpfull.
I have seen some tutorial on Adaptive RFC but it talks about webdynpro for Java.
Can I use "Call function XYZ destination A10" statement in webdynpro for ABAP application?
Thanks
Gopalam doing same thing for my current SRM implementation.I am taking data to SRM server from another R/3 server .
This is solution I have used
1) First of all I have made ABAP connection in SM59 .
Go to SM59 .In ABAP Connection creat ABAP connection with system with which u want communicate .
Eg I am connection with Systems PB1.
So i developed Connection call PB1CLNT800.
2) In my requirement I have taken data in my context from another r/3,
I have give called RFC in my supply function of node.
Call to RFC is as usual.
In my case,
CALL FUNCTION 'RFC_MATNR'
DESTINATION 'PB1CLNT800'
TABLES
IT_MATNR = IT_MATNR.
Onwards I have read my itab IT_MATNR and populated data to context.
Hope solution will serve your purpose.
Give point if it works .If any problem i have other ways.
Cheers
Parag Bhise -
Adaptive RFC req to trigger 2 BAPI?
Posted: Mar 4, 2008 11:34 AM E-mail this message Reply
Hi Gurus,
I got a requirement where in which I need to trigger one custom BAPI (ZHR_GET_WORK_SCHEDULES) which will return me half of the work schedule allocated to the particular employee.
Input parameters of the BAPI is Pernr number(Personal Number) where I don't have any Input field in my webdynpro view to enable this input parameter.
When I spoke to business people they said I shouldn'd not put any input field in the webdynpro view......
I have found one more custom bapi(Z_HR_DISPLAY_IT0105) which will return me Pernr number If I pass my portal user id as input?
My question is how to dynamically trigger this BAPI (which will return Pernr Number ) so that I can pass this Pernr as the input for the other custom Bapi whic will return half of the work structure allocated to particular employee........
I have created the webdynpro application to invoke this bapi (which will return half the work structure) ....Now I want to know is there any other way that i can pass the input parameter to this bapi (Pernr) during runtime
Kindly tell me how to implement the above requirement.
Portal user credentials are maintained in ABAP resource.
Please Advice how to go about it?
Thanks in Advance,
DharaniThere will be a paramter in the input or its related structure to take the "number" as input.
ModelClass inp = new InputClass(model);
inp.setPNumber(mynumber); -> This "mynumber" you will get as output from eecution another BAPI
inp.execute();
inp.getOutput(); This will have waht u want.
Alternately the input classes maynot be exactly on InputClass but some related class like "Structure1" for example.Then do this
Structure1 str = new Structure1 (model);
str.setRelatedModelClass(str);
str.setPnumber(mynumber);
Points, dont forget them !
Regards,
Arun -
How to call two RFC in a single JAVA method.
Dear all,
I just want to know that how to call two RFC in a single java method which is defined in CRM implementation file. I'm using NWDS as the customization IDE & working on ISA 7.0.Hi Sunil,
In the Backend Implementation class, in any method you can call multiple RFCs.
It will be the same way as you do for the single RFC call.
Following syntax is for your reference.
Get the JCO connection
JCoConnection connection = getDefaultJCoConnection();
JCO.Function func = connection.getJCoFunction("ZXXXXXXX");
set the import parameters
Execute it.
connection.execute(func);
get the data from export / table parameters
Now call the second RFC
func = connection.getJCoFunction("ZYYYYYYYYYY");
set the import parameters
Execute it.
get the data from export / table parameters
close the connection
Hope this will help you.
-Chandra.
Edited by: Chandra Sekhar Seeli on Jan 13, 2011 2:04 PM -
How to implement Sync-Sync scenario in BPM? Please help!
Hi Experts,
I have a Sync-Sync scenario (SOAP - RFC) where both sender as well as receiver are synchronous.
I have created outbound sender sync interface, abstract sender sync interface, Receiver abstract sync interface and Receiver inbound sync interface.
In BPM I have started with Receive step.
But in receive step I can give either Async Abstract interface or Open Sync-Async bridge. I am confused!
How to implement my scenario in BPM?
It will be really great if somebody can send me the step by step info or doc.
Thanks & Regards,
GopalHi,
Refer this link
use synchronous send step in your BPM - http://help.sap.com/saphelp_nw04/helpdata/en/43/6211331c895f6ce10000000a1553f6/content.htm
RFC Scenario using BPM --Starter Kit
http://help.sap.com/saphelp_nw04/helpdata/en/83/d2a84028c9e469e10000000a1550b0/content.htm
RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
regards
Aashish Sinha
PS : reward points if helpful -
Mapping with multiple Adaptive rfc's
Hi Experts,
i have 4 radio buttons, i need to create a single adaptive rfc model, to which i need to create a one ECC system rfc and APO system rfc(multiple backend systems). how to add the two rfc systems of logical system name to a single logical system name or Meta data, so that i can assign to a single radio button.
In the same way for model data also if so how?
1. radio button(Ecc rfc and Apo rfc)
2.radio button (Ecc rfc and Apo rfc)
3.radio button(Ecc rfc and Apo rfc)
4.radio button (Ecc rfc and Apo rfc)
help me in doing step by step.
thanks in advance
Thanks&Regards
jayHi Bhargava,
thank you for your effort.
The node structure of web service looks like this:
NewAWS2Model
-Context
Number
NameFirst
NameLast
Street
HouseNo
PostCode
City
-NewOperartion
In
-Request_NewOperation
---NewOperation
---Response
-Response_NewOperation
This web service give no response back. He just starts the BPM Process. Everything works well, except for passing ALL values of the parameters in Context: Number, Name, Street...
When I have two streets, I want that two streets will be saved in parameter street and so on...
Additionally, here is the method created by application for this web service:
public void initRequest_NewOperation( ) {
//@@begin initRequest_NewOperation()
//$$begin Service Controller1(-482113598)
com.sap.demo.changedataportaldc.wd.models.newaws2model.NewAWS2Model newAWS2ModelModel = createAndMapModelInstance_0("com.sap.demo.changedataportaldc.wd.models.newaws2model.NewAWS2Model");
com.sap.demo.changedataportaldc.wd.models.newaws2model.Request_NewOperation request_NewOperation = wdContext.nodeRequest_NewOperation().createAndAddRequest_NewOperationElement().modelObject();
com.sap.demo.changedataportaldc.wd.models.newaws2model.NewOperation newOperation = new com.sap.demo.changedataportaldc.wd.models.newaws2model.NewOperation(newAWS2ModelModel);
request_NewOperation.setNewOperation(newOperation);
com.sap.demo.changedataportaldc.wd.models.newaws2model.Context in = new com.sap.demo.changedataportaldc.wd.models.newaws2model.Context(newAWS2ModelModel);
newOperation.setIn(in);
com.sap.demo.changedataportaldc.wd.models.newaws2model.Response_NewOperation response_1 = new com.sap.demo.changedataportaldc.wd.models.newaws2model.Response_NewOperation(newAWS2ModelModel);
request_NewOperation.setResponse(response_1);
I hope this are the inforamtion you need? Or is there something else?
Thank you very much
best regards
Anna -
Problem in displaying a field in webdynpro using Adaptive RFC model
HI,
I created a webdynpro application using adaptive RFC model and i have a problem in displaying one of the output fields.
When i execute the function module it is giving the exact value for my output field in this case telephone number (of type STEXT which is char with length 40).But when i am trying to display that telephone number in webdynpro application it is taking only first 4 digits.
i deleted the model and recreated it still it doesnot work.
please let me know how to resolve it.
points will be awarded for sure
BalaHi Bala,
Whenever you reimport the model server restart is necessary otherwise the changes will not get reflected. You will get an error when you deploy the application.There is no go around except restarting the server as the meta data gets cached in the server as long as the server is runnig.So, Once you restart the server the cache will be cleared.
Check once again whether you are fetching data from correct BAPI field. Still problem persist try debugging.
Regards, Suresh KB -
Hi,
we are doing a RFC to file scenario. it works fine in DEV and QA. but in production sporadically it shows commit fault: com.sap.aii.adapter.rfc.afcommunication.RFCAFWExpection: lo error in SM58.
I have refreshed the cache and all the necessary componets like Sender C.C, receiver C.C, Receiver determination, interface determination, sender agreement and receiver agreement is present.
how to solve this issue. its production issue. pls help ASAPHi,
The ECC's business system has Technical System,Client number and Logical System Name.
Also the same is reflected in BS of Integration Builder. it has the logical system, R/3 system and client number in Adapter specific identifiers.
Can you also let me know how to check the complete error message in Tcode SM58. when i double-click on the error it just shows "Commit fault: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException:lo". how can i view the full message
Maybe you are looking for
-
Interactive PDF in an email body?
How can I insert an interactive PDF that I've designed in InDesign into gmail as the email body? Do I need to export it as another file type?
-
Hi everyone I have a problem setting JFrame background color and the Foreground color. Here is part of my code where I have the problem. import java.io.*; import java.awt.*; import java.awt.event.*; import java.text.*; public class userInfo extends F
-
Since upgrading to Lion I'm having problems making purchases from Amazon UK. Once the order is completed it asks me again for the delivery address. Once I've done so it restarts the ordering process from the beginning. Once completed, it again asks f
-
How to Insert into a temporary table
Hi Experts, I have created a temp table in sql from vfp using the #prefix. But when I issue an insert command sqlexec returns negative. The code which I have used : =sqlexec(oConn, "Create table #smenu (code_ varchar(1), name_ varchar(50))") Table cr
-
WEB SERVICE + REQUEST RESPONSE TRACK
Hello Friends, I have a issue, I have to consume the webservice made in .NET environment. The web service uses oasis security. so I have to set the SOAP HEADER with user name and passwrod. Unfortunately its not working. My question is , is there any