Creating a RFC application(SAP R/3) that connects to web portal.

Hello Everyone,
I need to create a rfc application that should connect to portal& fetch some data in some table according to some input parameters provided at runtime & display the data in TABLEVIEW control.
Anyone can guide me on this i:e- how to go about it. What things i should know or should be aware of before creating this application. Any PDF documents , any help material, any guidance about the same will be of great help.
Thanks,
Prasad
[email protected]

Hi Prasad
I guess you are trying to develop an application which will run in ABAP stack and will connect to JAVA stack and retrieve some data from there(i.e from java)-correct me if I am wrong. if this is exactly what you want to do then I must say sorry since establishing this route of communicaton is not known to me. But i can suggest you a workaround where you create your application in java so that in runs Java stack picks up data from portal(i.e. WAS database) make call to some RFC from ABAP to persist that data in some ABAP table.
Let me know if it makes sense to you.
Cheers
Sudip

Similar Messages

  • Hello there,  I created a DPS application and I want that when you click on an image, it opens a pdf. But this one is on the ipad.  This is in case there is no internet connection.   Thank you.

    Hello there,
    I created a DPS application and I want that when you click on an image, it opens a pdf. But this one is on the ipad.
    This is in case there is no internet connection.
    Thank you.

    How to make the zip: http://helpx.adobe.com/digital-publishing-suite/help/import-htmlresources.html
    How to link to the asset: Digital Publishing Suite Help | Hyperlink and button overlays
    Neil

  • How to create an Extensible Conectivity 2.0 MA that call a web service in FIM 2010 R2?

    I created my web service to create, update and delete users from one of our systems.
    Now I am to create MA to use my web service and export users into that system, there is no need to import!
    I tried to use web service configuration tool but had lots of errors and could not find an example of configuring run profiles.
    Now I am trying to write Extensible Conectivity 2.0 Management Agent. I need help as there is no examples available for how to call/use web service in MA.
    Thanks

    Hello Emadina
    You need a web service reference in your Management Agent Extension code to get access to the exposed functions.
    And you not only need functions to create/modify/delete objects, you also need a function to read the objects from the custom data source for two reasons:
    a) to be able to join your existing objects
    b) for confirming imports.
    I think the best point to start your own Extensible Management Agent extension is the following link:
    http://msdn.microsoft.com/en-us/library/windows/desktop/hh859566(v=vs.100).aspx
    Cheers, Henry

  • How to display RFC-Logon-Screen for non trusted connection in Web-Dynpro?

    Dear Web-Dynpro-Specialists,
    i got a issue while creation of an WebDynpro-Tool, which is using RFC connections for reading data.
    In some cases the RFC connection is not a trusted one connection, so a login is nessessary, but in
    this cases not a window is coming up for login....
    Any idea how i can get this window for login, in order to collect the nessessary Data for my tool?
    Additional Information concerning the RFC connection:
    While running my Web-Dynpro i run this Method:
    METHOD get_table_entries.
    CLEAR rt_entries[].
    CALL FUNCTION 'RFC_GET_TABLE_ENTRIES'
    DESTINATION iv_destination
    EXPORTING
    gen_key = iv_table_key
    table_name = iv_table_name
    TABLES
    entries = rt_entries
    EXCEPTIONS
    internal_error = 1
    table_empty = 2
    table_not_found = 3
    OTHERS = 4.
    CASE sy-subrc.
    WHEN 1.
    RAISE internal_error.
    WHEN 2.
    RAISE table_empty.
    WHEN 3.
    RAISE table_not_found.
    WHEN 4.
    RAISE unknown_error.
    ENDCASE.
    ENDMETHOD.
    Thanks a lot in advance
    Best regards
    Carsten Klatt

    Hi!
    You can use the function module RFC_MODIFY_R3_DESTINATION to create, modify and delete RFC connections. You will need the system ID (e.g. ABC), client (e.g. 123), system number (e.g. 00) and the host name of the server. In this example the following code would create or modify the RFC destination ZRFC_DESTINATION.
        CALL FUNCTION 'RFC_MODIFY_R3_DESTINATION'
          EXPORTING
            destination                = 'ZRFC_DESTINATION'
            action                     = 'M'
            systemid                   = 'ABC'
            systemnr                   = '00'
            server                     = 'serverhostname'
            language                   = sy-langu
            client                     = '123'
            user                       = 'USERNAME'
            password                   = 'PASSWORD'
            description                = 'Dummy RFC Connection'
          EXCEPTIONS
            authority_not_available    = 1
            destination_already_exist  = 2
            destination_not_exist      = 3
            destination_enqueue_reject = 4
            information_failure        = 5
            trfc_entry_invalid         = 6
            internal_failure           = 7
            snc_information_failure    = 8
            snc_internal_failure       = 9
            destination_is_locked      = 10
            OTHERS                     = 11.
    With the following code you can delete this connection:
        CALL FUNCTION 'RFC_MODIFY_R3_DESTINATION'
          EXPORTING
            destination                = 'ZRFC_DESTINATION'
            action                     = 'D'
          EXCEPTIONS
            authority_not_available    = 1
            destination_already_exist  = 2
            destination_not_exist      = 3
            destination_enqueue_reject = 4
            information_failure        = 5
            trfc_entry_invalid         = 6
            internal_failure           = 7
            snc_information_failure    = 8
            snc_internal_failure       = 9
            destination_is_locked      = 10
            OTHERS                     = 11.
    Please keep in mind that deleting an RFC connection is usually noted in the system log.
    If you want to reuse your connection for multiple servers, you could run into trouble since connection data is cached.
    Sincerely,
    Stefan

  • Can SAP BC do that?

    Hi All,
    there is a requirement in our project to create a client side SAP proxy, so that all BAPI RFC requests would first go through this proxy and get logged.
    The end goal is for the proxy is to generate replies when the target SAP server is unavailable.
    While trawling through the SAP documentation I came across SAP BC, which looked as if it might be used to accomplish this. I was wondering if this was possible. 
    thanks in advance

    Hi Michal,
    thank u for the quick reply...i agree with u, but I'm more interested in having the proxy generate a reply rather than having it in the client code. 
    When the SAP server is unavailable we want the system to be still usable to some degree. by setting up a proxy with limited functionality i assume we can accomplish this.more like having a client side repository, which would return preset responses when the remote SAP system can't be reached.
    Hence my question.
    Thank you

  • Enterprise Application and Web Portal Projects

    I know its possible to have one enterprise application that contains 2 web portal projects. The part Im unsure about is if it is possible to update one web project without having to bring down the other project. Supposedly through console you can do this however I have been unable to get this to successfully work. Is this a known error?

    Hi Anikumar!
    Yes it is true! The webDynpro make it automaticaly.
    I'm not clear with J2EE web application. I don't know how i should get the login parameter for my RFC calls.
    I have try:
    DestinationService dstserv =(DestinationService) ctx.lookup(DestinationService.JNDI_KEY);
    RFCDestination dest =(RFCDestination) dstserv.getDestination("RFC", "test");
    Properties destprop = dest.getDestinationProperties();
    String user1="MYSAPSSO2";
    String passwd1=pass;// pass is encrypted ticket;
    destprop.setProperty("jco.client.user",user1);
    destprop.setProperty("jco.client.passwd",passwd1);
    JCO.Client cl = JCO.createClient(destprop);
    cl.connect();
    cl.ping();
    cl.disconnect();
    I also try
    IWDJCOClientConnection ca =     WDSystemLandscape.getJCOClientConnection("ModelData");
    In the contentadministrator Modeldata Destination set to Ticket authentification and it works fine when i test it in webdynpro contentadministrator, but when i try to get the JCOConnection i get a SystemLandscapeException:Error while obtaining JCO connection.
    I debugged it and i get a WDRuntimeException--->Nullpointerexception. It seems that the jco destination is not initialized at this time.
    Maybe i understand something wrong.
    Regards!

  • How to create custom BSP application in SAP CRM?

    Hi Experts,
    I would like to seek help from you. I am new in developing CRM objects. My first requirement is to create a custom program that will generate a PDF report.
    First thing I would like to know is the transaction code where I need to create a BSP application that will be able to run in crm webclient. Please clarify if it is in BSP_WD_CMPWB or in SE80 because it is said that I should create BSP application using MVC.
    Second thing is how will I be able to call a smartforms in a BSP application. The scenario for my custom program would be, I should have a two input fields in the selection-screen which are Business Partner ID and Product Lines. together with a button that will trigger the form when ticked.
    Hope to hear from all of you. Your help will be very much appreciated.
    Thanks and Regards,
    Monica

    Hello MonicAnna,
    You can find some information on this page.
    (http://help.sap.com/saphelp_nw70/helpdata/en/59/cd7daa07d711d5b66f006094192fe3/content.htm)
    And also you dont have to use se80 to create new Bsp appliaction. You can create new application by this transaction BSP_WD_CMPWB.
    Zafer,
    Edited by: Zafer Kuru on Dec 5, 2011 10:12 AM

  • After installing an application that was created using the Application Builder

    After installing an application that I created using the Application Builder I get this error if I try to run " ANY " LabVIEW App's that I have built. "Executable Version 7.1.1 doesn't match Resource File 7.1. Check your configuration."
    The way that I tried to fix this is to reload LabVIEW 7.1 and DAQmx 8.0. I am using two NI-6528 switch cards.
    After I reload LabVIEW and DAQmx I can run my applications but as soon as I install one on this development machine the error begins again.
    The executable that I built works fine on the development machine and any other machine that I try it on but it appears that the Run-Time engine 7.1 becomes corrupt after I run setup.exe for the newly created application.
    I have built numerous Installers, setup.exe's in the past without this error. Just this latest one caused this problem to start.
    I can NOT upgrade to 7.1.1. I am doing work for many different sections of this factory and I can not force them to upgrade. I've asked. Others supply code for the same machines using LabVIEW 7.1.
    I am stuck creating executables and manualing moving the correct files to the target machines.
    What can be done?

    No. The KB article was talking about a machine with 7.1.1 installed. I have LabVIEW 7.1 installed.
    The machine that I am having trouble with is my development machine. LabVIEW 7.1, DAQmx 8.0.
    If I build the executable all is fine. I can still run old executables including the one I just built.
    If I create the installer all is fine. I can still run old executables including the one I just built.
    When I install the app on my development machine the corruption occurs. I can " NOT " run old executables including the one I just built. The subject error pops up.
    I have not moved any executables to the other machines yet. I don't want to corrupt others.

  • Best practise for creating an application that connects to a SQL Server database

    I have created an application that connects to a SQL Server database and views information using a datagrid and performs several updates when a button
    is selected.  
    I have created a SQLcontrol.vb using the following code:
    Imports System.Data.Sql
    Imports System.Data.SqlClient
    Public Class SQlControl
    'connection 1
        Public SQLCon As New SqlConnection With {.ConnectionString
    = "Data Source=;Initial Catalog=;Integrated Security=True"}
    'connection 2
        Public SQLCon1 As New SqlConnection With {.ConnectionString
    = "Data Source;Initial Catalog=;Integrated Security=True"}
        Public sqlcmd As SqlCommand
        Public sqlda As SqlDataAdapter
        Public sqldataset As DataSet
        Public Function hasconnection() As Boolean
            Try
                SQLCon.open()
                SQLCon.close()
                Return True
            Catch ex As Exception
                MsgBox(ex.Message)
                Return False
            End Try
        End Function
        Public Sub runquery(query As String)
            Try
                SQLCon.Open()
                sqlcmd = New SqlCommand(query,
    SQLCon)
                'LOAD
    SQL RECORDS FOR DATAGROD
                sqlda = New SqlDataAdapter(sqlcmd)
                sqldataset = New DataSet
                sqlda.Fill(sqldataset)
    BH READ DIRECTLY FROM THE DATABASE
                'Dim
    R As SqlDataReader = sqlcmd.ExecuteReader
                'While
    R.Read
                'MsgBox(R.GetName(0)
    & ": " & R(0))
                'End
    While
                SQLCon.Close()
            Catch ex As Exception
                MsgBox(ex.Message)
                'will
    close connection if still open
                If SQLCon.State
    = ConnectionState.Open Then
                    SQLCon.Close()
                End If
            End Try
        End Sub
        Public Sub runquery1(query As String)
            Try
                SQLCon1.Open()
                sqlcmd = New SqlCommand(query,
    SQLCon1)
                'LOAD
    SQL RECORDS FOR DATAGROD
                sqlda = New SqlDataAdapter(sqlcmd)
                sqldataset = New DataSet
                sqlda.Fill(sqldataset)
    BH READ DIRECTLY FROM THE DATABASE
                'Dim
    R As SqlDataReader = sqlcmd.ExecuteReader
                'While
    R.Read
                'MsgBox(R.GetName(0)
    & ": " & R(0))
                'End
    While
                SQLCon1.Close()
            Catch ex As Exception
                MsgBox(ex.Message)
                'will
    close connection if still open
                If SQLCon1.State
    = ConnectionState.Open Then
                    SQLCon1.Close()
                End If
            End Try
        End Sub
    End Class
    A code for one of my button which views displays data grid contains the following code:
    Private Sub Button1_Click_1(sender As Object,
    e As EventArgs) Handles Button1.Click
            If SQL.hasconnection
    = True Then
                SQL.runquery("select 
    * from tablea")
                If SQL.sqldataset.Tables.Count
    > 0 Then
                    DGVData.DataSource = SQL.sqldataset.Tables(0)
                End If
            End If
        End Sub
    I am fairly new to vb.net and have read a few books and followed a few tutorials on youtube, what I would like to know is, are there any disadvantages
    to the way I have connected to a SQL database using the SQLControl.vb.  A lot of the vb books include data adapter and dataset within the form, I'm not sure if I'm following best practice by have the connection details outside of the form.
    My other question is, I have created two connections in the SQLControl and call these connections within the same form using the same data adapter
    and dataset.  It all works fine but I just wanted to know of any potential issues?
    Public SQLCon As New SqlConnection With {.ConnectionString
    = "Data Source=;Initial Catalog=;Integrated Security=True"}
    'connection 2
        Public SQLCon1 As New SqlConnection With {.ConnectionString
    = "Data Source;Initial Catalog=;Integrated Security=True"}
    Thanks

    My other question is, I have created two connections in the SQLControl and call these connections within the same form using the same data adapter and dataset.  It all works fine but
    I just wanted to know of any potential issues
    1) You are not using Sepration of concerns for a solution that is doing data access, like using a DAL.
    http://en.wikipedia.org/wiki/Separation_of_concerns
    2) You are directly issuing SQL commands at the UI, leading to sql injection attacks.
    3) You are not using a UI design pattern, which leads you to tightly couple database activity to the UI.
    http://www.codeproject.com/Articles/228214/Understanding-Basics-of-UI-Design-Pattern-MVC-MVP
    @System243trd, parameters are important to prevent SQL injection attacks (people will insert SQL commands into the database if you do not perform basic checking of what you are passing to the database). If you write a stored procedure try to make
    the variables the correct SQL server data type to avoid problems later of people trying to call it directly.  Darnold924 is right, I see no code to prevent against SQL injection attacks. In addition, during development in some instances LocalSQLDB
    database system is used and during deployment you usually need to use the production SQL server database. Moreover,  Linq-to-SQL is used on Windows Phone 8.1 and it is required for phone development later and so I highly recommend learning
    it if you plan on developing windows phone applications.
    @System243trd, If you want the code for the windows phone app I think it uses the MVVM model or that might be for universal apps or regular windows phone apps. I have been using the windows phone Silverlight pivot or panorama template (it might
    be pieces of both). I've already submitted to the windows phone marketplace and it had to go through certification first. I plan on later making an article on it but I need to first fix one or two simple problems I have with it.  Here's a link to
    the source code if you later want to look at the source code (in vb.net): 
    https://jeffsblogcodesamples.codeplex.com/downloads/get/1445836
    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - Sherlock Holmes. speak softly and carry a big stick - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog
    - http://www.computerprofessions.us

  • How we create RFC in SAP R/3

    Hi all.
    I want to create a iview and when i click on preview or Deploy, it shoud display screen of Transcation SE11.
    I think we can do this by creating RFC of transcation(SE11). So Please tell me-
    How we create RFC in SAP R/3 for transcation SE11.
    I will rewards u points.
    Thanks in advance
    waiting---
    Naresh Kumar

    Hi Naresh,
    there is better way, you can display an transaction in the portal with an iView. Then use this URL of the transaction, then you can insert a html view with the URL of the transaction.
    You can add tabs with different transactions for example.
    Best Regards,
    Marcel

  • Create a RFC SEND IDOC FROM SAP TO NON SAP

    Hi Gurus,
    I tried to create a RFC to send my IDOCS to a Window Server.
    The administrator has created a share like eg.:  \\hsare\idoc_received
    How should I do to attempt this share?
    I created a TCP/IP RFC and in program ID, I put the path but the connection does not respond.
    Anybody could help me please or has a suggestions?
    What is the best solution to send the IDOC to this place ? 
    Thank you in advance for your help.
    M.

    Hello Rahhaoui,
    There are enormous information available on SCN about FTP file transfer
    For your reference you can check this wiki:
    File transfer from Application Server to FTP - Contributor Corner - SCN Wiki

  • I created an application on a machine with Labview 6.01, can I run this application on another machine that has labview 5?

    In the development center we use Labview 6.01, in the testcenter we use labview 5.
    Additionally, in the development center we use a unix version of Labview and in the testcenter a Windows version.

    You can Save with Option to save VIs as version 5.
    Unless your VIs deal with system files in UNIX or Windows (ie. Registry...)
    then you have to develop your VI specificly on that OS, since UNIX and
    Windows have different ways to deal with system files. Mostly, LabVIEW is OS
    independent. I used to have VIs developed from LabVIEW v.3 on UNIX, I can
    still open these files from LV v.4 on Windows. Now I can still work with
    these VIs on LV 6 on Windows.
    Good luck,
    Nam.
    roybra wrote in message
    news:[email protected]..
    > I created an application on a machine with Labview 6.01, can I run
    > this application on another machine that has labview 5?
    >
    > In the development center we use Labview 6.01, in the testcenter we
    > use l
    abview 5.
    >
    > Additionally, in the development center we use a unix version of
    > Labview and in the testcenter a Windows version.

  • Is there a way to create "temporary" tables in SAP database?

    Hello,
    Is there a way to create temporary tables in ABAP?
    Here is our scenario:
    1. Invoke a custom RFC that creates a temporary table and returns the name of the table.
    2. Invoke another custom RFC and pass this table name as parameter. This RFC internally does some INNER JOIN with the temporary table.
    3. Invoke the third RFC to delete the temporary table.
    Note that the name of the table cannot be static. We have many users using our application simultaneously and connecting to the SAP server.
    I would appreciate it if you could point me in the right direction.
    Thank you in advance for your help.
    Peter

    I just ran into a similar issue.  While only calling the select statement 2 times, each time had so many entries in the 'for all entries' list, that the compiler converted this into about 700 calls to the select.  Now since the select joined three real tables on the database, the trace shows this one select as being the slowest item in this application.
    I think that happened because 'for all entries' gets converted to an 'IN' clause, and then the total number of characters in any SQL statement has an upper limit.   So the compiler must make the select statement over and over until it covers all entries in the 'for all entries' list.  Is that correct?
    Since every database I ever saw has the concept of db temporary tables, I have used db temp tables many times for this sort of thing.
    The ABAP compiler could determine that more than one IN statement will be need, then use an alternate: write all the FOR ALL ENTRIES to a db temp table, then join on the db temp table, then drop db temp table.  Since the compiler does this sort of thing, no application code needs change to get the speed boost.

  • Create a mobile application for view BW reports.

    I want to create a mobile application with MDK for viewing BW reports. It is possible ?

    Hello,
    I have a similar kind of requirement here.
    I need to show BW data on wireless device...via Portal.
    This BW data is a query, which is created using WAD.
    In normal case, we just use the SAP BW Report iView, stick the Bex query in it and its all done. But in this case....how am to go about this...?
    Ive read about Mobile WebDynpro but want to know that....Mobile Web Dynpro is an oline approach, does it mean that user will be able to drill down from the Bex query??
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu

  • RFC  from Sap R/3 to IBM Mainframe...

    I should create an RFC from R/3 based on Unix sistem/Oracle to a Mainframe system.....
    Any advise on that ?
    I never created rfc like that....
    thanks and regards

    Hi Mauro,
    Below is the steps to connect to an external MS-SQL server from ABAP... similarly, you can explore connecting to a mainframe...
    Regards,
    Raj
    Connecting to an External database from SAP
    <b>Step 1</b>: Create an entry for the External database in DBCON table using Trxn: DBCA.
    Table: DBCON (Description of Database Connections)
    Field Name     Description           Value (For: E.g.:)
    CON_NAME     Logical name for a      RAJ
    database connection     
    DBMS     Database system     MSS
    USER_NAME     Database user     <username>
    PASSWORD     Password for setting up the connection to the database     <pwd>/<pwd>
    CON_ENV     Database-specific information for a database connection     MSSQL_SERVER=depotserver MSSQL_DBNAME=HOF_INDORE
    DB_RECO     Availability type for an open database connect     
    <b>Step 2</b>: Now you can write code to connect to the external database…
    <b>Your Sample code can be something like this……</b>
    FUNCTION-POOL z_houston.                    "MESSAGE-ID ..
    DATA: BEGIN OF wa,
    c_locid(3),
    c_locname(50),
    c_locstate(5),
    END OF wa.
    FUNCTION z_houston_connect.
    ""Local interface:
      EXEC SQL.
        CONNECT TO 'RAJ' AS 'V'
      ENDEXEC.
      EXEC SQL.
        SET CONNECTION 'V'
      ENDEXEC.
    *- Get the data from MS-SQL Server
      EXEC SQL.
        open C1 for
          select
              loc_id,
              loc_name,
              loc_state
          from ho_loc_mast
      ENDEXEC.
      DO.
        EXEC SQL.
          FETCH NEXT C1 into :wa-c_locid, :wa-c_locname, :wa-c_locstate
        ENDEXEC.
        IF sy-subrc = 0.
          PERFORM loop_output.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      EXEC SQL.
        CLOSE C1
      ENDEXEC.
    ENDFUNCTION.
    *&      Form  LOOP_OUTPUT
          Output
    FORM loop_output .
      WRITE: /5 wa-c_locid, 10 wa-c_locname, 65 wa-c_locstate.
      CLEAR wa.
    ENDFORM.                    " LOOP_OUTPUT

Maybe you are looking for

  • TimeMachine Confused: Can no longer access my external hard disk

    Suddenly this morning after 3 days of use time machine can no longer access my external USB 2.0 disk. It states failed to access disk. Although I can access the disk fine via the finder. In the preferences I try to reselect the disk but its not liste

  • Error 500--Internal Server Error in Oracle SPARQL Service Endpoint

    Hi, I followed the instructions of "Setting Up the SPARQL Service" in the developer's guide. However, after I finished all the steps and click "Submit Query" button in Oracle SPARQL Service Endpoint using Joseki page, I got this error message: Error

  • How to use JDBC driver (type 4) with struts?????

    Hi! have a nice day!!!!! i want to connect database use struts with JDBC driver type 4. i must add <data-source/> to <data-sources></data-sources> tag but i don't know how to use <data-source/> with it's properties. please tell me! thank very much

  • Import .swf in final cut

    hello, i have a .swf that i have to import in my FCP 6.0.6 and i cannot figured out how! any ideas? thanks alex

  • How to view uploaded notes in outlook on a PC

    I'm trying to upload notes from my iPhone 3G, I have sync to outlook checked and have sync'd my phone but when I go to view my notes in outlook they aren't there. How do I fix this?