Use of statefull RFCs in WebDynpro

Hello,
i want to create a WebDynpro application which uses RFCs. Every RFC call will relay on the fact, that ABAP-Memory updated in previous call can be accessed. What do you think, will it work? is it a correct strategie?
Will it work if i use web service created from RFC and if not-sap application use our rfcs/web services?
thanks
Paul

Hi again.
I've never used RFC this way and I am not aware of how the context for the
connection is kept in backend after the call returns, especially when thinking about many
different user of you WD4A application which all use the same RFC Connection.
But as I said I do not know it.
Anyway it seems to be strange for me to handle the R/3 backend like a statefull
application server. 
Maybe someone else can help you here.
Cheers,
Sascha

Similar Messages

  • I changed RFC but Webdynpro java still using old RFC, why?

    Hi,
    I changed RFC but Webdynpro java still using old RFC, why?
    How can I solve this problem?(Wihtout resetting j2ee engine.)
    Thanks.

    Cemil,
    check whether cache invalidation tool is installed on your portal or not.
    go to system administration-system configuration-webdynpro console-invalidate ARFC cache
    or you can reimport model using another jco connection.
    check this link for more details
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df
    Thanks
    Bala Duvvuri

  • How to call the rfc in webdynpro abap..?

    Dear Experts,
    I need to add two numbers using RFC in webdynpro abap.
    First we have to give the input then click the submit button.. The result will be shown in next screen with addition of two numbers...  Please help me in this...
    Thanks.

    Calling an RFC Function module in Web Dynpro ABAP is nothing different from Classical ABAP
    use Pattern button to call function module and use DESTINATION syntax to specify the RFC destination
    http://www.octavia.de/fileadmin/octavia_files/content_bilder/Hauptnavigation/SAP_NetWeaver/WebDynpro/Web_Dynpro_Part_II.pdf?PHPSESSID=c528a60bf8857431c0fa6f6595639da7
    In Above document, page no 7, there is a wizard for Service call, in that 4th step is select service where
    you can specify the function module name and the rfc destination name
    Abhi

  • How to Call the RFC in Webdynpro abap application

    Dear Experts,
    Good Evening to all...
    I have to add two numbers using RFC in webdynpro abap application. If we give the numbers in the input screen then the RFC should add it and give it in the output screen. This is the application for that I have created the RFC.
    But the problem is i don't know how to call the RFC in that Webdynpro abap application and how to link the input view and output view with that RFC...? I am new to Webdynpro abap. Please kindly help me on this... I am struggled here... I need your help in this....
    Thank You.

    Hi Jaga,
    You asked the same question again.
    Without closing the [previous one|Re: Where SAP store the uploaded files?].
    I think Abhi has answered your question.
    If not please elaborate on the problem.
    The solution btw is to create a Service Call.
    Sumit

  • Accesing an RFC from webdynpro throws exception

    I am trying to call an RFC from Webdynpro which in turn calls another RFC in another system.....
    Example:
    I am calling an RFC function that’s exists in XYZ system from webdynpro. This RfC function is calling another RFC function that exists in ABC system.
    The webdynpro application throws an exception
    Exception thrownAccessing System ABC is not possible because RFC Metadata was retrieved using System XYZ. Please assure you have configured the RFC Connections properly. A Server restart may be necessary!
    Please Help

    as Jochen mentioned, it is not possible to run the same model against different backends within the same application.
    But you do have an option to get your problem solved:
    import only those RFCs into a single model, which will definitely run against the same system. In your case, you would import two models, each containing the RFCs targeted for only one system.
    Next, you would define individual logical system names. Iow, two distinct metadata destinations, and two distinct application data destinations. One model would use one metadata/appdata destination pair, the other model uses the other metadata/appdata destination pair.
    The only downside of this, is that you can not reference data from one model in the other model (because they ly in different java packages). But if you use the WDCopyService, you can still copy data from one model into the input structure of the RFC of the other model.
    This is also the suggested design pattern for your problem.
    Ciao, Markus

  • Calling RFC in Webdynpro...

    Hello,
    I am new to WebDynpro Java. How can I call a RFC in webdynpro. We have different SAP lanscapes viz: 4.7, ecc 5.0 and ecc 6.0. I want to call BAPI from 4.7 landscape in my webdynpro. How can I do this ?
    Regards,
    Jainam.

    Hi,
    The better way to call a RFC from Web Dynpro, is using Adaptive RFC Model.
    See it to help you :
    https://www.sdn.sap.com/irj/sdn/nw-wdjava?rid=/webcontent/uuid/403e6bf5-426e-2910-b0a8-a95548724af9#section10 [original link is broken]
    Read the all documents about Adaptive RFC Model to understand all details to use it with Web Dynpro.
    Its to a step by step sample:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a00f7103-6790-2a10-ac9c-fcac7c5b18a3
    Best regards

  • Using an Adaptive RFC Model from JSP

    I'm trying to use an Adaptive RFC Model I created for use in our Web Dynpros from a Portal Application project. I've created 2 DCs:
    1. A Web Dynpro DC, only containing the imported Adaptive RFC Model. The model has been added to the public parts.
    2. A Portal Application DC, with the model DC added as a DC usage (along with the other required DCs)
    Now, everything appears to work from inside NWDS. The dot operator works while editing my JSPDynPage class, and everything builds fine, but when I deploy and test in the portal, I get "package not found" errors on the actual JSP. I assume this is because the JSP is compiled at run-time. How do I expose these classes to the JSP compiler?
    It's seems like using the same method to call BAPIs in Web Dynpros and Java iViews would be a good practice following SAP's "reusable code" policy, so there must be a way to do it...

    Jonathan,
    Adaptive RFC Model works correctly only when running inside WebDynpro container. JSP runs outside container (in regular J2EE WebApplication container).
    The error you receive is due to missing run-time references to container classes.
    Actually, what you are trying to do is dead end, sorry.
    Use SAP Enterprise Connector instead of Adaptive RFC model. Generated connector classes works from any environment. Also they are sooo similar to Adaptive RFC that you'll even not mention a difference.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • How to call RFC in Async Mode using TCP/IP RFC Destination ?

    Hi experts,
         Can anybody tell me how to call an Async RFC using TCP/IP RFC Destination ?
    Regards,
    Umesh

    Check the link
    http://help.sap.com/saphelp_nw04/helpdata/en/80/09680289c751429ab3b07ad2a61c10/content.htm
    It says
    <b> For asynchronous calls, no connection to external systems is possible (TCP/IP connections in transaction SM59).</b>
    Regards,
    Abhishek

  • Can I use logical databases in a WebDynpro ABAP program?

    can I use logical databases in a WebDynpro ABAP program?
    I need to build a WDA screen that is similar to the SAPDBPNP selection screen (user can find the personnel number based on several criteria, such as last_name/first_name of the employee).  So it seems that the existing logical databases have already many nice features already built (like the selection screens, the logic behind the screens etc). So I was wondering if/how I can use them in my WDA application.

    Hello, Tiberiu.
    You cannot use LDB directly within your WDA programa. BUT, you can fetch results from this LDB by using FM LDB_PROCESS. This function module can be called anytime from any kind of ABAP program. But you will still have to create the screen, as it only processes data, not screens.
    Regards,
    Andre
    PS: Pls reward points if it helps.

  • Can I use logical databases in a WebDynpro for ABAP program?

    can I use logical databases in a WebDynpro ABAP program?
    I need to build a WDA screen that is similar to the SAPDBPNP selection screen (user can find the personnel number based on several criteria, such as last_name/first_name of the employee).  So it seems that the exisinting logical databases have already many nice features already built (like the selection screens, the logic behind the screens etc). So I was wondering if/how I can use them in my WDA application.

    Hi
    Please let me also know the solution to this. I am a beginner to WebDynpro  and want to know if I can make use of LDB's as we do in our normal HR programming do develop a WDA in HR.
    Thanks and regards,
    Uma.

  • Implemanting Rosettanet PIP 3A4 using BAPI's / RFC's

    Has anyone implemented RosettaNet 3A4 scenario in a productive environment with XI using BAPI's / RFC's?
    We are looking to build B2B using Rosettanet 3A4 but having a hard time finding success stories. Any help would be greatly appreciated!
    Alon

    Hi Alon
    where do u work in israel?

  • How to use IDOC and RFC adapter in 1 scenario?

    We have AAA field and BBB field and we want to send AAA field to receiver sap system using IDOC adapter and BBB field to receiver sap system using RFC adapter. But how to use IDOC and RFC adapter in 1 scenario and how to map and  what are the design and configuration objects we require to create?

    To achieve this you have to use
    Two Interface Determinations
    Two Communication Channels (IDOC & RFC)
    & Two Receiver Aggrements.
    Use the Enhanced Interface determination and give your conditions there. Based on you condition your interface mapping will be triggered and data will be sent to IDOC & RFC respectively.

  • 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

  • What is the use of t-rfc in ALE? compared to t-rfc, Qrfc is better and effi

    what is the use of t-rfc in ALE? compared to t-rfc, Qrfc is better and efficient?

    Hi Sunil,
    These are the types of RFC
    Asynchronous RFC (aRFC)
    Synchronous RFC (sRFC)
    Transactional RFC (tRFC)
    Queued RFC (qRFC)
    Parallel RFC (pRFC)
    Asynchronous RFC :
    This is used when you need to increase the performance of ABAP program by having system call more than one function module in parallel than forcing the program to wait for results .
    Transactional RFC
    This let you group one or more function module call together o tRFC LUW and ensure that fucnction module within LUW is called once . In contrast to aRFC and sRFC the tRFC belonging to tRFC LUW are executed in order .
    tRFC is always used if a function is executed as a Logical Unit of Work (LUW). Within a LUW, all calls are
    1.Executed in the order in which they are called
    2.Executed in the same program context in the target system
    3.Run as a single transaction: they are either committed or rolled back as a unit.
    Implementation of tRFC is recommended if you want to guarantee that the transactional order of the calls is preserved
    Asynchronous remote function calls (aRFCs) are similar to transactional RFCs, in that the user does not have to wait for their completion before continuing the calling dialog. There are three characteristics, however, that distinguish asynchronous RFCs from transactional RFCs:
    • When the caller starts an asynchronous RFC, the called server must be available to accept the request.
    The parameters of asynchronous RFCs are not logged to the database, but sent directly to the server.
    • Asynchronous RFCs allow the user to carry on an interactive dialog with the remote system.
    • The calling program can receive results from the asynchronous RFC.
    You can use asynchronous remote function calls whenever you need to establish communication with a remote system, but do not want to wait for the function’s result before continuing processing. Asynchronous RFCs can also be sent to the same system. In this case, the system opens a new session (or window). You can then switch back and for between the calling dialog and the called session
    RECEIVE RESULTS FROM FUNCTION Remotefunction is used within a FORM routine to receive the results of an asynchronous remote function call. The following receiving parameters are available:
    IMPORTING
    TABLES
    EXCEPTIONS
    The addition KEEPING TASK prevents an asynchronous connection from being closed after receiving the results of the processing. The relevant remote context (roll area) is kept for re-use until the caller terminates the connection.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Best Scenarios when to use IDOC Adapter, RFC Adapter and Proxy

    Please provide me links/weblogs which demonstrate the full scenario that when to use IDOC Adapter, RFC Adapter and Proxy when working with sender R/3 system.
    Regards
    Rachit

    Hi abhinash,
    Check these links for java proxy
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    for ABAP Proxy ...
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
    for RFC .....
    RFC-xi-SOAP Scenario
    How to send RFC response message back to XI File/FTP adapter?
    https://weblogs.sdn.sap.com/pub/wlg/3865//Troubleshooting [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    Hope you will find them useful ..
    Regards
    Abhi

Maybe you are looking for

  • Macbook Pro not connecting to Home Wi-Fi but connects to work Wi-Fi

    Hi there. I am using Macbook Pro with Mac OS X 10.8.5. My Macbook is suddenly not getting wireless internet connection from my Wireless Router (It is connected to my Wi-Fi though). All other devices (iPhone, iPad, Windows PC) are connected to the sam

  • I want the location of the file system in SharePoint.

    Hi All, In SharePoint some files are stored in file systems and some files are stored in content data base. Now i want the location of the file system in SharePoint. Thanks in advance.

  • Just changed from 10.5 to 10.9 on new iMac

    it launches, i see the time line, i can hear the project, but can't see anything. also if i try to make any change it locks up the program

  • June 2013 - New Laptop for PElements

    It is June 2013. Looking for suggestions for a new laptop to run Adobe Premiere Elements.Any suggestions? In the order of $1000 AUD is about as much as I'd want to spend (less of course is always welcome). Presuming need good NVIDIA card as priority.

  • How to make at startup script that fits spread on open

    Hi there, Does anyone know how to make a startup script for InD CS6 that fit spread too screen when document open? I've tried this and it works but I've get a dialog that says "Object is not valid": #targetengine "session" main(); function main(){ va