Adaptive RFC question

I have a general question: could you tell me the reason why the RFCs to be called in JAVA Web Dynpro should be designed transferring the table values in the "Tables" parameter tab and not the "Import" and "Export" parameter tabs?

Re: Adaptive RFC question
Posted: Apr 3, 2006 7:59 PM    Reply 
Hi Tania,
You need to know first what is import parameter, export parameter and table parameter.
Import enables you to pass single set of values. Export enables you export single set of values. When you have data that is collection of n number of sets of data, use Table (Stucture) for import or export.
E.G.
Suppose, you are trying to see result of a student by Importing roll number of the student. You can use Export parameter to display result (a single set).
But if you want to see reuslts for n number of students by inputing n number of roll numbers, you need to use table structure for inputing the roll numbers and outputing the results.
An ABAP developer needs to document these parameters so that the WebDynpro developer can understand what are input tables and what are output tables.
Need to know more ? let me know.
Ashutosh

Similar Messages

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

    Hi,
    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 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 Duvvuri

    Hi 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

  • Dynamic JCo Connection with Adaptive RFC Model 2

    Hi gurus,
    I'm trying to dinamically change a model data connector inside my web dynpro. I'm using an Adaptive RFC Model 2 to communicate with the R/3 backend. I've found that is possible to change the connector modifiyng the code inside the web dynpro. In detail I've found this example:
    IWDDynamicRFCModel model1 = (IWDDynamicRFCModel) WDModelFactory.getModelInstance(Model1.class);
    I put this code into wdDoInit method but I get the following error:
    "<comp_name>.wdDoInit failed to create or init instance of model 'model_name' in scope NO_SCOPE with instanceId 'null'"
    Furthermore I've used the deprecated Adaptive RFC Model and when I instantiate a model, ModelName m=new ModelName(), I see that the methods m.setJcoClient(client) and m.setSystemName(systemName) are visible, while when I try to do the same with Adaptive RFC Model 2, with my model m, the methods before there aren't.
    So this is my question: is it possible to change data connector dinamically with Adaptive RFC Model 2?
    Thanks a lot

    Dear Lukinho,
    You may try this ;
    try {
    IWDJCOClientConnection clientCon =  WDSystemLandscape.getJCOClientConnection("<name of the JCO connection>");
    String clientName      = clientCon.getClientName();
    String lang          = clientCon.getLanguage();
    String passowrd          = clientCon.getPassword();
    String sysID          = clientCon.getSystemIdentifier();
    String user          = clientCon.getUser();
    //etc...
    } catch (WDSystemLandscapeException e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
    I got this code from the thread   [Multiple Client Logon in JCO   |Re: Multiple Client Logon in JCO;
    Also have a look at this thread
    [JCo Destination   |Re: JCo Destination;
    Hope it helps!!
    Warm Regards
    Upendra Agrawal

  • 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

  • JUnit for Adaptive RFC

    Hi all,
    I want to provide junit tests for our adaptive rfc models. However the simple approach to it doesn't work, as the model needs some backend information to execute (namely JCo connections, which are maintained on J2EE, not within NWDS).
    Do you know how to execute aRFC model directly in NWDS within the JUnit test, without WD controllers, and without J2EE?
    Is that possible at all?
    Thanks, Tom

    Hi.
    Some insight to the WDTypeNotFound Exception
    The error only occured because I wasn't connected properly to the SAP system via JCO. I verified this by taking a different FM available in a live system (where loadbalancing is used). Because the metadata JCO was properly configured to the MSG server (not the workaround I mentioned above), the exception did not occur.
    So the only question that remains is how to connect to the msg.server of a development machine where load balancing isn't set up. the port should be 36XX, where XX = system number, but what about the GROUP? At least for me the default "PUBLIC" didn't work. SID??
    Cheers,
    faB

  • Getting Error when using Adaptive RFC in creating model...

    Hi All,
    When i am creating Model for Adaptive RFC at that time i am not able to login to my R/3 System...
    Previously we used to work in ECC5.0 at that time it was working.
    Now we are working in ECC 6.0 but error is coming. Name and password not found.
    So do i have to reconfigure the NWDS.
    If Yes. How to do reconfigure it for ECC 6.0
    Pls its very Urgent...........
    Regards,
    Dhruv Shah

    Hi,
    JDeveloper 11 related questions have their own forum
    JDeveloper and OC4J 11g Technology Preview
    The JDeveloper 11 RichTree does not use PathSet but RowKeySet to keep track of the selected state. A property on the tree component allows you to set the selected state by referencing a RoKeySet e.g. in a managed bean
    Frank

  • 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 use in test/dev systems

    The Adaptive RFC model requires a msg.server for metadata. Does that mean it can't be used in test/dev system where there is only an app server? I find that hard to believe.
    Secondly, during the creation of JCO Connections in the webdnypro content admin tool, the drop down boxes for message server and application server are empty. where is this data defined? saplogon.ini + ...drivers/etc/services files were copied to the WAS/SLD host machine.
    Furthermore, is the Adaptive RFC the best way to use SAP data (called from function modules) in a webdynpro?
    Thanks,
    faB.
    Message was edited by: faB

    Hi,
    1.Even in development system you have centrall services, and as part of this you have a message server. So you can use Adaptive RFC model in development sysetems without any problem.
    2.Regarding you second question: you should define you application system in SLD before using JCO destinations. Just search for SLD in this forum and you will fine the how to configure it.
    3. AFAIK, Adaptive RDC model <b>is</b> the best way (it's better to say the <b>proper</b> way) to use your SAP application system in the WAS context.
    Hope it helps.
    Victor.

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

  • Many Adaptive RFC

    hello all
    I have one question about Adaptive RFC.
    In my project, i have many RFC access. My question is, what best practices for import RFC. One Model and all RFC in this model?
    Each RFC is a Model?
    If each RFC is a model, can i set JCO name equal?
    tks
    Douglas

    Douglas-
    Here are some points to keep in mind when using Adaptive RFC Models:
    1. Use the Adaptive RFC Model for accessing RFCs in an SAP system.
    2. Each Adatptive RFC Model should be in it's own Java package.
    3. Group Adaptive RFC Models based on functionality.
    4. Never have one RFC module per Adaptive RFC Model.
    5. Model your RFC so that it can be reused.
    Cheers-
    Atul

  • Adaptative RFC

    Hi,
    Just a quick question.
    After creating the WebDynpro using Adaptative RFC, i need to define the JCO destinations in WebDynpro Console.
    The question is, in security step of JCO destinations, i need to identify the authentication method, and there is no UserMapping?
    I need to make the WebDynpro available in Portal, and from what i understand, the system created in the portal only identifies the server where the Webdynpro are available, and not the SAP System. if this is true, the information inserted in JCO destinations, are the information used to to connect to SAP System, but there is no usermapping.
    What should be done in this situations, where for each user portal are another userid and passowrd for backend system?
    Thanks and regards
    John

    Hi John
    There is no need of a user mapping to access information from the backend.Provided that you have assigned your WebDynpro iView to them, all portal users will be able to view the information derived from backend.
    This is because the authentication method specified in the security settings is only for defining the JCo destinations for metadata. If you select User/Password, you must define a user and the corresponding password. This user is a technical user who does not need dialog authorization.
    The name and the password assigned to this user should be known in the backend and the authorizations set so that he can access all the function modules in the SAP system.
    So each time a portal user tries to access some data from the SAP backend via WebDypro application, it is not he who is being authenticated against the backend whereas it is the technical user on the SAP system itself who is being authenticated to fetch the information needed. Hence there is nmo need of a user mapping in this case.
    If that is not clear then please go through this link.
    http://help.sap.com/saphelp_nw04s/helpdata/en/94/3c1b40fcdd8f5ce10000000a155106/frameset.htm
    Hope that helped.
    Best Regards
    Priya
    P.S: Rewarding points for helpful answers is SDN's way of saying "Thank You!"

  • Adaptive RFC query?

    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,
    Dharani

    There 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

  • Adaptive RFC 2 gives error: com/sap/ide/jco/service/internal/R3Service

    Hi,
    I've run into the following problem about NWDS. This happens as I create a Model. It appears there is a new version of the Adaptive RFC Model, which is called Adaptive RFC 2 Model.
    1. Right click on Models, and select Create.
    2. Double Click on Adaptive RFC 2 Model
    3. The error pops up. It says "An error has occurred. See error log for more details. java.lang.NoClassDefFoundError". Then if you click details you get "An error has occurred. See error log for more details. com/sap/ide/jco/service/internal/R3Service "
    If you know which log to have a look, or what this error is about please let me know urgently. Any help if much appreciated.
    Thanks,
    Ogeday Isiklar

    Hi,
    I am also getting same problem. Waiting for solution
    Regards,
    Pradeep Kumar

  • Error while creating a Adaptive RFC Model

    Hi all,
    I am trying to create a Model using a Adaptive RFC Model, I assign a Model name and the logical system names, enter the details in SAP Logon Information for the Single server,here it gives me a Gateway error. What could be the issue here?
    NB: In the Host Name , I tried with both the Host name of the r/3 server and also with the SAProuter string ( as we have the server at other place) ,still it doesnt work. and I am able to login to the R/3 system from the SAPLogon GUI from my desktop normally.
    Is there any issue of the firewall related to this, if so whats the port number that should be opened so that i can connect to the r/3 system get the list of BAPIs present there into my Webdynpro application .
    Need help on this
    Regards,
    Vijay

    Hi Lohi n Gopi ,
    I have checked out with the your given suggestion of trying with the host name as well as  IP address and also typing all the details,without copy pasting the details . In both the cases it gave the " Connect to gateway failed " error mesg.
    But one intersting thing here that i observered when trying with hostname, IP address, or SAProuter string is as follows .
    <b>with IP address</b>
    <i>Connect to SAP gateway failed
    Connect_PM GWHOST="ipaddress",GWSERV=sapgw10,ASHOST="ipaddress",SYSNR=10
    LOCATION CPIC(TCP/IP) on local host
    ERROR      patner not reached(host "ipaddress",service=3310)</i>
    <b>with SAProuterString</b>
    <i>Connect to SAP gateway failed
    Connect_PM GWHOST="SAProuterString",GWSERV=sapgw10,ASHOST="SAProuterString",SYSNR=10
    LOCATION SAPRouter on " some HostName"
    ERROR      hostname unknown</i>
    <b>with HostName</b>
    <i>Connect to SAP gateway failed
    Connect_PM GWHOST="hostname",GWSERV=sapgw10,ASHOST="hostname",SYSNR=10
    LOCATION CPIC(TCP/IP) on local host
    ERROR      hostname "hostname " unknown</i>
    Is there any firewall port blocking issue here ?if so , whats the port that needs to be opened ?
    Appreciate your help.
    Thnks,
    NR

Maybe you are looking for

  • Full Screen Not Working

    I am running Windows Vista and Flash player 10.0.12.36 and every time I use Flash player in full mode I receive the following message: Full Screen mode is available in Flashplayer 9.0.28 or later only. We have several clients encountering the same pr

  • IS kular color availible in CC 2014

    Does Adobe Kular color work in CC 2014. If it does, How do I install it into cc 2014

  • OB08 is not updating the record.

    Hi experts, We are using CRM 4.0 Internet sales application. We are using transaction OB08 for updating exchange rate. We have a customised program to update the OB08. This program uses BDC program ,picks the record which is kept is SAP application s

  • Queue ID not able to see in SXMB_MONI

    Hi Experts , We are not able to see the Queue ID in SXMB_MONI, pl suggest what could be the reason and how to rectify that rgds mojib Edited by: mohammad mojib ur rahman on Feb 10, 2010 2:39 PM

  • Firmware update 7.5.2 is breaking workaround for disabling DHCP server

    If you are using the trick described here (http://discussions.apple.com/thread.jspa?threadID=121990) to disable DHCP, you should know that after upgrading to 7.5.3, it will not work anymore. Downgrade to 7.4.2 makes it working again. If somebody from