Adaptive RFC and multiple systems; Mapping JCO_DESTINATIONS by code?

Hi,
I have just learned <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/82/76a2406546ba15e10000000a1550b0/frameset.htm">here</a> that I can access several R/3 systems with the adaptive RFC model by using URL parameters like:
http://<hostname>:<port>/webdynpro/dispatcher/local/ESSProject/ESSApp?
<b>sap-wd-arfc-useSys=WD_MODELDATA_DEST:ABC&
sap-wd-arfc-useSys=WD_RFC_METADATA_DEST:ABC</b>
The parameters are a mapping of the original JCO_DESTINATION (WD_MODELDATA_DEST) called by the WebDynpro application to the target system which instead should be called (WD_MODELDATA_DESTABC).
Does someone know wheather this mapping can be done by java coding? For example before the execute method will be called.
Best regards,
Marcus

Hi,
This for If you send destination params are different u sent it thru URL param only.
For that u need generate URL by using the application .
For that purpose u need to create two applications u can call the first application in second application u can create URL and send Destination params with URL only.
Other wise u can create the par file that would be configured in portal and thru worksets u can pass the params like u mention the destinations.
Or at the time generationg URLS only u can add the destination names.
Thanks,
Lohi.

Similar Messages

  • Message flow between advanced adapter engine and messaging system for ICO scenarios

    Dear all,
    I'm working on a PI 7.31 AEX box and created an ICO object for one interface with HTTP_AAE2IDoc scenario. The interface works quite well. When I looked in to message log of messages for this interface in PI monitor, I noticed that the internal XI message are put totally 5 times into the send queue and retrieved from send queue. In some steps I only see after retrieving a message from send queue and immediately put it back into send queue. Can someone please kindly explain the message flow between advanced adapter engine and messaging system and what exactly happens after each retrieving a message from send queue?
    Below is an example of message log for one message:
    12/08/2014 09:26:06.472    Information    MP: processing local module localejbs/CallSapAdapter
    12/08/2014 09:26:06.472    Information    Application attempting to send an XI message asynchronously using connection HTTP_AAE_http://sap.com/xi/XI/System
    12/08/2014 09:26:06.478    Information    Trying to put the message into the send queue
    12/08/2014 09:26:06.499    Information    Message successfully put into the queue
    12/08/2014 09:26:06.499    Information    The message was successfully retrieved from the send queue
    12/08/2014 09:26:06.499    Information    The application sent the message asynchronously using connection HTTP_AAE_http://sap.com/xi/XI/System. Returning to application
    12/08/2014 09:26:06.500    Information    HTTP adapter successfully processed interface PlantResponse_Out
    12/08/2014 09:26:06.501    Information    Trying to put the message into the send queue
    12/08/2014 09:26:06.501    Information    Message status set to DLNG
    12/08/2014 09:26:06.513    Information    Message successfully put into the queue
    12/08/2014 09:26:06.513    Information    The message was successfully retrieved from the send queue
    12/08/2014 09:26:06.515    Information    Message status set to DLNG
    12/08/2014 09:26:06.533    Information    Trying to put the message into the send queue
    12/08/2014 09:26:06.548    Information    Message successfully put into the queue
    12/08/2014 09:26:06.548    Information    The message was successfully retrieved from the send queue
    12/08/2014 09:26:06.550    Information    Message status set to DLNG
    12/08/2014 09:26:06.551    Information    Executing Request Mapping "http://styrolution.com/pi/Integration/PlantMaintenance/PlantResponse/PlantResponse_to_Zcol_Basf_Inotif02_Inotif01_Zeupm_Inotif01_Ludwigshafen" (SWCV 085d2320fb3b11e2cc0bf4d50aea8c33)
    12/08/2014 09:26:06.563    Information    Trying to put the message into the send queue
    12/08/2014 09:26:06.571    Information    Message successfully put into the queue
    12/08/2014 09:26:06.571    Information    The message was successfully retrieved from the send queue
    12/08/2014 09:26:06.573    Information    Trying to put the message into the send queue
    12/08/2014 09:26:06.573    Information    Message status set to DLNG
    12/08/2014 09:26:06.580    Information    Message successfully put into the queue
    12/08/2014 09:26:06.580    Information    The message was successfully retrieved from the send queue
    12/08/2014 09:26:06.582    Information    Message status set to DLNG
    12/08/2014 09:26:06.583    Information    Delivering to channel: IDOC_R
    12/08/2014 09:26:06.583    Information    MP: processing local module localejbs/IDocOutboundModuleBean
    12/08/2014 09:26:06.583    Information    XI message received for processing
    12/08/2014 09:26:06.587    Information    Sender Party: Sender Service:SXX Receiver Party: Receiver Service:RXXCLNT200 Communication Channel:IDOC_R
    12/08/2014 09:26:06.588    Information    IDOC metadata repository is RXX
    12/08/2014 09:26:06.589    Information    Control record is not mandatory - control record will be added if not available
    12/08/2014 09:26:06.590    Information    XML Payload parsed to idoc document list with number of idocs: 1
    12/08/2014 09:26:06.595    Information    Sending idoc message to receiver R/3 system with TID XIh{lsRI824UITC0009OalmW
    12/08/2014 09:26:06.813    Information    IDOC message sent to receiver R/3 system
    12/08/2014 09:26:06.817    Information    TID XIh{lsRI824UITC0009OalmW confirmed
    12/08/2014 09:26:06.819    Information    Message was successfully transmitted to endpoint <local> using connection HTTP_AAE_http://sap.com/xi/XI/System
    12/08/2014 09:26:06.821    Information    Message status set to DLVD
    Thanks & regards
    Dingjun

    Hello All,
    Thanks for the prompt responses and with best information, But apart from this,I need how an adapter(File/JDBC) works along
    with AAE in PI 7.1. When does the job of File/JDBC adapter is completed and resumed in a synchronous case. That is,
    File Location --> file adapter -
    > XI(AAE) --> JDBC adapter --> database.
    In file sender, lets suppose we have synchronous settings(Best Effort). Now when File adapter's job is finished and when it
    gets back the response back from XI. Please explain step by step from starting(file adapter polling the location) to getting the response coming back to XI.
    Regards,
    Achari.

  • Difference between Adaptive RFC and Adaptive RFC2 model

    Hi,
    What is the difference between Adaptive RFC and Adaptive RFC2 model ?
    Regards,
    Sunaina Reddy T

    Hi
    Main difference are
    1.JCo 3.0 to connect to SAP Systems
    2.Improved connection management
    3.Faster performance
    4.Lower memory consumption
    5.SystemLandscape API is no longer needed
    6.Compatible to ARFC1 to allow easy migration
    Check the thread for further input
    1.[Whatu2019s New in Web Dynpro Java?|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8062c7d3-c86f-2b10-4894-a9a323da20b3]
    Best Regards
    Satish Kumar

  • RFC and Logical System names

    Hello......is it necessary to have RFC and Logical system name for the connected system to be identical?Is there any explanation behind this if thats true....

    Hi Gaurav,
    It is recommended, but not mandatory, right, Muthuraman?
    The system uses some transactions to determine which RFC will be used for the communication between one system and another, for example, in transaction 'Define backend systems' in SPRO, you can define that the current SRM client has an ECC backend system named X and the RFC destination for this X system is Y (not necessarily the same name).
    Regards,

  • 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

  • Use of Adaptive RFC and locking

    Hello,
    I am using an adaptive RFC model inside a Web Dynpro Application to maintain data residing on a SAP Enterprise system.
    This RFC also sets a lock in order to make sure nobody else tries to change the same data.
    I use pessimistic locking which means:
    1. Web Dynpro calls a RFC
    2. The RFC first locks the data then reads the data and returns the result back to Web Dynpro
    3. The user changes the data and presses a save button
    4. Web Dynpro calls the RFC to write and unlock the data
    The problem i have is the fact that after locking and reading of the data the RFC is ended and the data is received by the Web Dynpro App. But at the same moment the lock is automatically unlocked because the RFC has ended succesfully.
    How can i achieve that the lock is still there at the moment i want to change the data or is this procedure of pessimistic locking not possible?
    Bertil

    Hi,
    Whether possible or not : Don't know. Probably not with RFCs.
    More importantly, shall you do it? If it is transactional data you are updating , you may wish to consider concurrency issues (what if you locked and came to web dynpro, and user is thinking whether he shall take a coffee break first before pressing the 'Save'. Would you like to keep this record(s) locked and unavailable for the entire duration?)
    Normally, you would read the data in the first call, let the user update it on the second screen, and then, when the user presses save, execute in sequence :-
    - try locking the record,
    - if locking is successful, Verify whether the record you read has changed in the meanwhile or not (verify what you have in your workarea(before changes done by user) is the same as in DB, by reading again from the DB)
    - If above check is successful, go ahead with the update else throw an error message to the user to redo the txn
    - unlock, exit
    hope this helps,
    cheers,
    Ajay

  • Web Dynpro with Adaptive RFC and "complex" ABAP Structures

    Hi there,
    I'm calling an RFC that returns a table with a "complex" structure, i.e. a structure with nested structures and tables. The issue I am having is that I would like to loop over that table and extract the relevant attributes from each  row (i.e. attributes of the structure itself or of the nested structures or attributes of records of the nested tables), I however don't understand how.
    My first attempt looks as follows
    for(int i = 0; i < wdContext.node<<tab>>().size(); i++) {
      IPrivate<<view>>.I<<tab>>Element x =
        wdContext.node<<tab>>().get<<tab>>ElementAt(i);
    However "x" doesn't seem to have the getter methods for the nested tables in question?
    Help would be greatly appreciated.
    Regards, Chris.

    Hi,
    If you are using model node binding over adaptive RFC model all nested structures / tables becomes sub-nodes rather then attributes.
    VS

  • Adaptive RFC and Locking Objects from WD Java

    Hi,
    There are some pieces of information available on this subject but no coherent and easy to follow "manual". Also some questions remain.
    I'd rate this a very important, i.e. "business critical" problem. Therefore I would appreciate your help to get things sorted in this thread.
    So let's start with a summary of what I think I understood so far (corrections welcome!):
    - You can call RFCs from WebDynpro and locking will work (on the ABAP side).
    - Once you release your JCo connection the locks will be released, though.
    - Therefore, to keep a lock in between requests you have to keep the connection.
    - You can keep the connection by passing WDModelScopeType.APPLICATION_SCOPE or WDModelScopeType.COMPONENT_SCOPE to the constructor of the model class.
    - You can lookup the default scope for a model using
         WDModelScopeType defaultScope = WDModelFactory.lookupDefaultScopeForModel((Class) modelClazz);
    Now suppose you have many users, each holding some locks.
    Would you not easily run out of JCo connections? On the other hand by default WebDynpro RFC Models seem to keep a connection per application instance (= user session).
    Using WDModelScopeType: Do you really need to code this or can you just configure this during design time for the deployment?
    blog=/pub/wlg/1061 claims the default is APPLICATION_SCOPE.
    Will connections (and thus locks) be released automatically on an HttpSession timeout? I guess so because this means the end of the application and therefore end of scope WDModelScopeType.APPLICATION_SCOPE and WDModelScopeType.COMPONENT_SCOPE.
    I'm also not clear about this:
    /people/sap.user72/blog/2005/01/08/adaptive-rfc-models-in-web-dynprosome-pointers
    "But to ensure that the record remains locked it is necessary reserve the connection that was used for locking and be made unavailable for other models and also the connection should remain open as long as the lifetime of the screen. This becomes similar to locking records through SAP Gui . This can be easily achieved by having separate models for locking RFCs defined with APPLICATION_SCOPE and isolating its connection by not grouping with other model objects."
    What does "reserve the connection" mean?
    Suppose you lock some object and afterwards want to allow the user to request more information about this or other objects.
    Would you need to use a different connection for that?
    Suppose you want to lock two objects.
    Would you need to use two different connections for that?
    Suppose you want to edit both objects and save the changes inside one transaction (with atomicity). A transaction normally is associated with a single connection (unless XA protocol is used). So how would this work?
    What will cause the locks to be released?
    - Application expiration (timeout)
    - RFC that explicitely releases locks
    - Transaction commit/rollback (?)
    Reference:
    I found some of the information and further pointers in the blog mentioned above and here:
    Disconnect method
    Looking forward to your replies
    Markus
    Message was edited by: Markus Wissmann
    Another thread with the same topic and no final answers:
    Handling object locking in R/3 from WD through RFC
    Message was edited by: Markus Wissmann

    Hi,
    This for If you send destination params are different u sent it thru URL param only.
    For that u need generate URL by using the application .
    For that purpose u need to create two applications u can call the first application in second application u can create URL and send Destination params with URL only.
    Other wise u can create the par file that would be configured in portal and thru worksets u can pass the params like u mention the destinations.
    Or at the time generationg URLS only u can add the destination names.
    Thanks,
    Lohi.

  • JDBC Adapter: DELETE and INSERT in Mapping

    Hi,
    I have a JMS to JDBC interface. While this is straightforward enough, there is a requirement to clear the contents of the table before carrying out the insert
    What I've tried is:
    <MT_Message>
       <Statement>
            <TableClear>
                 <action> .....attribute mapped to SQL_DML
                 <access> ....element mapped to DELETE FROM table
            <TableInsert>
                  <action> .....attribute mapped INSERT constant
                  <table> ......element mapped to Table name
                  <access> ...allthe fields in the table
    The DELETE statement works and the Insert statement work but they won't work together. Is this possible at all? What other options are there in this case?

    I went for two different Statement tags so the structure of the Message Type is:
    <MT_Message>
      <StatementDelete>
             <TableClear>
                 <action> ....attribute mapped to SQL_DML
                 <access> ...element mapped to DELETE FROM Table
      <StatementInsert>
             <TableInsert>
                  <action> ....attribute mapped to INSERT constant
                  <table>  ....element mapped to table name
                  <access> ...all the columns in my table

  • 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
    jay

    Hi 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

  • Inconsistency of results using adaptive RFC

    I'm calling a function from a R/3 System using Adaptive RFC and i'm having different results from my webdynpro application that the ones that i'm having in the R/3.
    If someone could tell me why this happen I will appreciate.
    Thanks.

    Hi Frank,
    Iin another opportunity I had tried to do the same procedure you are trying and not getting hit. I ended up using the parameter "sap-wd-client = WmlClient" in the url of the application ... What makes this return in xml format and can be accessed like a Web Service. It really is not a proper use for a Web Dynpro application, but with some customization finally meet demand.
    Regards,
    Angelo

  • Wht mean by adaptive rfc class?

    hi
      i m new in ep development. some one ask me which class ur using in adaptive rfc?
    plz any one tell me ,class that we use during adaptive rfc or webservices in webdynpro java.

    Hi,
    Didn't get your question.
    When you use Adaptive RFC, and import bapi / web service then MODEL CLASS will be generated.
    you can say you used input class (for input paramenters) or output class (for ouput parameters) of model class.
    have a look at adaptive rfc http://help.sap.com/saphelp_nw04s/helpdata/en/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm
    regards,
    Pradeep

  • Program exits with the System.exit(3) exit code, help?

    When I ran my program(a simulation for a wind powered vehicle), it suddenly ends with no apparent reason, and returns System.exit(3) exit code.
    I have no Idea what this exit code means, and thus am stuck in the debugging...
    Help is greatly appreciated

    No error messages?
    If not, then you need to search for all instances of
    catch (WhateverException var) {}and replace them with
    catch (WhateverException var) {
      var.printStackTrace();
    }

  • XPower X58:the system stops at debug code CO or C0

    I just put together a new build with the following specs and the system stops at debug code CO or C0:
    I assume it is C Zero as the manual shows three C Debug codes C0 C1 C2
    Big Bang XPower LGA 1366 Intel X58
    Intel Core i7-950 Bloomfield 3.06GHz processor
    ASUS ENGTS450 DC OC/DI/1GD5 GeForce GTS 450 Vid card
    12GB G.SKILL 6GB DDR3 1600
    CORSAIR CMPSU-750TX 750 watt
    WWD1001FALS 1TB 7200 RPM 32MB
    Nothing fancy has been done to the machine. The phase power LED’s all show phase 2.
    The CPU phase lights are all on, full 16.  No green light on monitor but fan on video card is running, so it has proper power.
    The startup flashes FF then CF then C0 or CO.  FF is about .1 seconds, CF is about .2 seconds, and then it stops at C0 or CO.  The manual says “Early CPU initialization”.  I really don’t know where to go with this. I would really be grateful for some help and direction on this one.  Also if someone can point me toward a complete and possibly better information source on the complete list of Debug codes.

    Quote
    A7666IMS V1.3 082820          For me thats kind of a strange AM bios signature, but its all I see on screen.
    A = AMI BIOS Code
    7666 = your board's model number
    I = Intel Chipset board
    MS = MSI Standard BIOS Release
    v1.3 = your current BIOS Version
    082820 = BIOS Release Date [are you sure it says "20" at the end? --> anyway, not important]
    Quote
    I do not recommend updating to V1.4. Wait until a final release of V1.5.
    v1.5 is already out there: http://eu.msi.com/product/mb/Big-Bang-XPower.html#/?div=BIOS
    Bbryon, have you tested with one memory module only?
    Quote
    I am in my 50’s, and classically old
    Quote
    I guess being in my mid 60's makes me an antique!
    Guys, I need you focussed!  

  • One adaptive RFC Model and Multi Backend System.

    Hi All,
    I am trying to fetch data from multi backend system by using an adaptive RFC model.
    It is not tidy to create multi model for a RFC function to fetch data from multi SAP system, because we have dozens of SAP systems.(over 40)
    So, I would like to switch to multiple SAP systems with an adaptive RFC model at runtime.
      1 model(Same Function) -
    > System A
    > System B
    > System C
    Is there any sample or tutorial about this sort of senario?
    Thanks in advance.
    Message was edited by: JeongEog IM
    Message was edited by: JeongEog IM

    JeongEog,
    You may use SAP java Connector for doing that. Refer the following links for the step-by-step approach.
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/561106b8b3bc449f890cddfdc8d3e2/content.htm">Example program 1</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/f0/eedf3d0eb8af5ee10000000a114084/content.htm">Open Connection</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/24/efdf3d0eb8af5ee10000000a114084/content.htm">Calling a Function and Closing a Connection</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/14e13d8ee4535ee10000000a114084/content.htm">Example program 2</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/eedf3d0eb8af5ee10000000a114084/content.htm">Connection Pool</a>
    Bala

Maybe you are looking for

  • Better display values from shuttle LOV in a report

    Hi, I have created a shuttle LOV in a form and then a report that shows (among other things) the values chosen from this shuttle LOV. If the user choose more than one value I don't like how they get displayed in the report (they have to go into a sin

  • After upgrading to mountain lion,my HP device manager can't find scanner

    I have an HP Photosmart C5550 All-in-One printer scanner. The HP device manager can't find the scanner. Printer works fine. I upgraded from Lion to Mountain Lion and this is my problem now.

  • Cisco Aironet 1131G cannot access BVI

    I have configure our Cisco Aironet 1131G with Multiple SSID with VLAN's The Guest VLAN is working well and no problem, The issue i have is that I cannot connect to the BVI on the Wireless AP, i have setup to VLAN's 2 = LAN & NATIVE VLAN 999 = GUEST V

  • Dead or stuck pixel. well I got one

    It ***** it is right in the middle it looks grey more than black or anything . I read some stuff but cant really figure out if there is anything to do about it. Does anyone know of anything to fix this? thanks

  • IBook G3, thinking about upgrading from panther to tiger?

    Hello all This is my first apple computer that I've owned, it's my mom's hand me down after she got herself a spanking new macbook pro but it actually runs decently fine, iBook G3 500Mhz, 40gb HD, 640mb memory It currently runs a clean copy of panthe