Call Abap Function.

HI.
How to call Abap FM from Bex Web Application?

Or you create your own SICF service in Transaktion SICF e.g. http:s//server:port/zcompany/sample
in that case you can add a simple link and add parameters like sample?ID=xyz&subid=TEST
in ABAP you need to create a Abap Class that implements Interface IF_HTTP_EXTENSION
in the Methode HANDLE_REQUEST you can retrieve the Parameters from the Query String and execute your function.
In SICF you can add this class in the Handlerlist of the newly created service.
Hoipe this helps.
best regards,
Kai

Similar Messages

  • Call ABAP function by xsjs

    Hi experts,
    How can i call ABAP function or function module using SAP HANA xsjs.
    Thanks,
    Shambhu Nath

    Thanks Sreehari,
    Actully i want to call predefine ABAP function using XSJS.
    Example: CONVERSION_EXIT_MDLPD_OUTPUT etc.
    Thanks,
    Shambhu Nath

  • Call ABAP function module from script?

    Hi,
    I have an ABAP function module, which works fine when I call it in a transformation.
    Since I don't need to execute this function for each record but rather for each file I process, I would like to move the call from the DataFlow to a script in the WorkFlow. When I click on the 'functions' button the ABAP FM is available in my SAP Datastore, so I drag and drop it into my script. I also make sure to populate all required variables.
    There are no error messages or warning when I check my job definition.
    When I execute it, I get the following RFC error:
    Function call <xxx  ( abcd ) > failed, due to error <150413>: <RFC CallReceive exception <FUNCTION_NOT_FOUND>.>.
    Is it just not possible to call an RFC enabled function module in SAP from a script or am I doing something wrong here?
    Thanks,
    Jan.

    Could you please let me know how I can call an abap function module from a transformation? (from abap xslt program). I know how we can call methods of a class from the transformations, but no idea how we can call function modules. Any suggestions or a sample code snippet towards this will be very useful for me.
    Thanks,
    Shashi.

  • RFC_NO_AUTHORITY calling ABAP function from a Web Service

    Hi,
    We have a web service that publishes existing BAPIs, and some custom ABAP functions.
    When calling the custom ABAP functions we a "system exception" in the client side. Looking at SM21 the log has a dump:
    The user "1DDD8B960830" in the client 310 attempted to execute the function
      module
    "RFCPING" from the function group "SYST", but does not have the appropriate
    RFC authorization.
    Error in the ABAP application program.
    The current ABAP program "SAPLSYST" had to be interrupted because it contains
    a statement that cannot be executed.
    We're on  SAP-Release 710
    Please take into account that RFCPING is not a function we're calling...
    Any help would be appreciated
    Edited by: Enrique VETERE on Jun 25, 2008 5:35 PM

    Hi Enrique,
    a search for string "RFCPING authorization" in SAP notes shows up note 1108662 as the result, solution:
    > Add the function group SYST to the RFC authorization. Add the function group "SYST" to the default role SAP_BC_WEBSERVICE_SERVICE_USER in the authorizations for "Cross-application Authorization Objects" in the area "Authorization Check for RFC Access" and the object "Name of RFC object to be protected" and save and activate this role. You should then execute a user comparison for this role."
    Please check the complete note.
    HTH, regards, Boris

  • Calling ABAP Function Module in BODS, but not RFC_enabled

    Hello Experts
    We have an ECC ABAP Function Module takes 5 input parameters and returns Division Name for an Employee and Employee PERNR is one of the input parameters for the Function Module.
    I tried adding a function call in the target schema of Query Transform and the output parm passes out as an Output column. But getting an error that ABAP FM is not RFC_enabled. I checked attributes, and it is not RFC_enabled.
    So is there way to invoke this FM as part of BODS ABAP Dataflow?. Becuase the code executes on ECC, it does not need to be RFC enabled, I believe. But on the Query Transform, the option "New Function Call" isn't enabled or it is greyed out, I can't select it.
    What is the solution to invoke this ABAP FM with enabling RFC on it ?
    Please provide me your inputs.
    thank you

    Hi,
    Create a custom wrapper FM which is Remote enabled & call the FM DD_DOMA_GET inside your custom Remote FM. Changing the std. FM would be a core code mod. hence above approach would be safe.
    Thanks,
    Best regards,
    Prashant

  • How to call ABAP function module/ class method through web service?

    Hi Colleagues,
    I need to write an iphone version of current ABAP program. I want to call ABAP method and function module through my iphone so that I can re-use the ABAP APIs.So I choose web service. Can you give me any details information about how to do that?
    Thank you very much

    Hi,
    you need to create webservice out of FM. goto SE80 and follow the webservice creation wizard. Finally use webservice url for calling FM (remote enabled) from your iPhone.
    Regards,
    Gourav

  • Using ABAP function calls in HANA

    Hi everyone,
    I am very new to the ABAP workspace. Is it possible to call ABAP function modules from the HANA database? We have a long raw field in a table that we would like to convert to text. Any help would be greatly appreciated!
    Thanks,
    Anu

    Hi Anu,
    Please try the following.
    Take the transaction iuuc_repl_content for the advanced replication settings.
    Select the configuration and then select the table.
    You should be able to add ABAP code for a field using this transaction.
    Check the OSS note 1733714 for more information.
    Thanks
    Vinod

  • How to pass parameters to ABAP function in Crystal report

    Hi All,
    I am creating a Crystal report on top of SAP ECC 6.0. I am trying to call ABAP functions. But I am not able to see an option to pass any parameters to the function.
    Can you please help with how to pass a parameter to a ABAP function?
    Thanks
    Chetan

    Hi there,
    we thought we found the problem. But the ABAP function is now RFC compatible and i still do not see the export parameters of the ABAP function in Crystal.
    Question: The ABAP function does not deliver columns as the result but a table instead. Could this be the problem? Regarding to this we will have to change the output functinality of the ABAP-function to teliver colums instead of a table.
    Thanks for your help,
    regards
    Sebastian

  • How to Call abap functn/program from java layer

    Hi all,
        I have to develop a program which has to call abap function/program from java side or how to call a abap program through java ..
    pls send me related links or explanations.. dont send unrelated answers..
    Regards,
    Arivarasu S

    Hi,
    You mean accessing ABAP functions from J2EE perspective, then I think we can do this by using SAP Java Resource Adapter and also through webservices.
    SAP Java Resource Adapter (SAP JRA) can be used as an add-on for the SAP JCo SAP JRA enables the implementation of standard interfaces from diverse J2EE servers to the SAP JCo in the SAP Web AS. The SAP JRA thus simplifies
    communication with ABAP within heterogeneous J2EE landscapes.
    Go through the following links which has Good documentation on how to achieve this
    Accessing BAPIs Using the SAP Java Resource Adapter
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ad09cd07-0a01-0010-93a9-933e247d3ba4]
    Connectivity and Interoperability
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/326d82e5-0601-0010-fca4-9caf27b89c26]
    Finally with WebServices. Accessing SAP Business Functions (ABAP) via Web Services
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/06adbf03-0a01-0010-f386-d8e45561a3c4]
    Regards
    Raghu

  • Call abap commands from oracle enviorment

    Hello experts,
    i have quite no experience with SAP but i have this problem:
    in oracle db we have datas which are in variables to one ABAP function. And we need call this func with this parameters. From our SAP experts i get information that our SAP support Bussines Connector. I think that BC is some server component which allows comunicate me with sap via xml. And my questioin is how connect to sap using this BC from pl/sql if it is possible. Or what are other possibilities comunicate with sap and call abap function. I hope my scenario is clear, if not i will describe it in more details.
    thanx for help.
    Jakub.

    Hello,
    i think i will use BC because our SAP expert send it to me as possible way. I understand their msg as that BC server is ready. But i dont know if i  understand this architecture well: BC is server which allows comunicate with sap and use abap function. And i need any client application to connect to BC and send abap statements using any sap-bc's xml files. is this right? If it is how i can connect to BC from pl/sql if it is possible if not can i use java?
    Jakub.
    Edited by: An Organic on Mar 6, 2008 4:35 PM

  • Calling abap rfc FM from jsp programming

    hi friends,
        I am having a requirement to call abap function module from jsp page. can any one help me please?
    thanks
    Medoyi C

    Hi Medoyi,
    Please follow the below steps
    1. Are you using NWDS or any other IDE? Create your Web Project.
    2. In any of the case download JCO3.0 jar files and add to these librarries to you IDE.
    3. Create a connection class in write a code here and you should have host, port and userid/password of the ECC system from where you are calling your RFC.
    4. After making a connection then write a code to pass import parameters and execute.
    5. After execution of RFC you will get export parameter, table or structure.
    6. Display this data now as a respose.
    Please reply back if any more information is required.
    Thanks,
    Hamendra

  • Memory leak in JCO when calling an ABAP-function that returns larg tables

    Hello everybody,
    I think discovered a memory leak in JCO when the calling functionions that have exporting tables with large datasets. For example the ABAP-function RFC_READ_TABLE, which in this example I use to retrieve data from a table called "RSZELTTXT", which contains ~ 120000 datasets. RFC_READ_TABLE exports the data as table "DATA".
    Here a simple JUnit test:
    http://pastebin.ca/1420451
    When running it with Sun Java 1.6 with standard heap size of 64mb I get a heapsize OutOfMemory error:
    http://pastebin.ca/1420472
    Looking at the heap dump (which I unfortunately cannot post here, because of it' size), I can see that I've 65000 char[512] array objects in my heap, which don't get cleaned up. I think, each char[512] array stands for one dataset in the exporting table "DATA", since the table contains 120000 datasets, the heap is full after the first 65000 datasets are parsed. Apparently, JCO tries to read all datasets in memory instead of justing reading the dataset to which the pointer (JCoTable.setRow(i)) currently points to and releasing it from memory after the pointer moves forward ...
    Did anybody else experience this?
    Is SAP going to remove to issue in upcoming versions of JCO?
    regards Samir

    Hi,
       Check Below links
    1) How To Analyze Performance Problems JCO
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3fbea790-0201-0010-6481-8370ebc3c17d
    2) How to Avoid Memory Leaks 
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c3e598fe-0601-0010-e990-b8622840c8c2
    Salil...
    Edited by: salil chavan on Jun 2, 2009 5:21 AM

  • ABAP Calling JAVA Function or Method

    Hi Friend,
    I need help in how to proceed using  ABAP  and Call JAVA Function . I know that  we need to use RFC enabled Function modules. I was able to connect  using JAVA Connector which was provided by SAP For communicating with JAVA Apps. The approach for connecting the JAVA to SAP is working fine.  But I  have browsed through various website but failed to find any information.Now i am looking forward to help from you friends to solve my problems .
    The Requirement is mentioned below:-
      1. Prerequiste for SAP ABAP calling a third Party software which is working in JAVA Platform (like any middle ware which might be hardware or software).
      2. Sample Code  like calling a Text  ' Hello  to the world  calling JAVA from ABAP'.
      3. Steps and process so that it would be helpful.
    Timely help would be appreciated.
    Rajiv Christopher.

    1.Middleware is JCO RFC provider it comes with SAP so no need any third party Adapter.
    2.
    " The ECHOTXT parameter should contain the text of REQUTXT.Information on
    " calling the function module should be returned in RESPTXT, indicating, for
    " example, in which system and when the function module call was processed.
    data:ECHOTEXT type SY-LISEL,
         RESPTEXT type SY-LISEL.
    CALL FUNCTION 'STFC_CONNECTION' DESTINATION '<Your JCO destination name>' " which one you have developed in SM59 as TCP/IP
      EXPORTING
        requtext       = 'ABAP Calls JAVA'
    IMPORTING
       ECHOTEXT       = ECHOTEXT
       RESPTEXT       = RESPTEXT.
    if sy-subrc = 0.
      WRITE:/'---------------------------------------------------------------------'.
      WRITE: / 'establish a link to the ABAP application server with logon data'.
      WRITE:/'---------------------------------------------------------------------'.
      write:/ ECHOTEXT .
      else.
          WRITE:/'---------------------------------------------------------------------'.
      WRITE: / 'Not establish a link to the ABAP application server with logon data'.
      WRITE:/'---------------------------------------------------------------------'.
      endif.
    Check the sample code and Let me know will you get ECHOTEXT ?
    Kanagaraja L
    Edited by: Kanagaraja  Lokanathan on Jan 6, 2010 1:27 PM

  • Duration of an Abap Function call from Java using Jco3

    Hi guys!
    I would like to use this discussion to get some refernces of the duration Timespan of an RFC call from Java to SAP. At the moment, i need at last about 200ms to call the Abap function. I'm just using one simple import and export parameter (so no deep structures). I think that the reason for my poor performance is, that the Java Tool and the SAP instance are not in the same network. So, i hope some of you have some data, how fast an RFC call from Java using Jco can be executed.
    greetings, Hannes

    Hi Hannes,
    I think you have already got the answer to your question - the network set-up you have is probably the bottleneck.  Whenever I've worked with Java <-> ABAP and they are in the same network, I've had no performance problems at all.
    Does your RFC contain any complex logic or business processes?  Are you able to try and call something that does nothing, say it just accepts an input string and returns it straight away as an export.  Do you have any scope for testing with your Java tool on the same network as the SAP system?
    Cheers,
    G.

  • Calling an ABAP function module

    Hi friends,
    I am developing an application in EP6 SP2 using JSPDynPage from which, want to call an ABAP function module that returns table and show the values from this table in this application.
    I went thru various blogs and APIs. I am confused between SAP JCO, JCO client service and connector framework. Do u have any documentation on how to connect to R3 systems and call a function module, retrieve results etc.
    Regards,
    Nilz

    JCo is the point to start. This gives you low level access to all rfc functions. Everything else (accept BSP and Web dynpro) are just layers of encapsulation around the low level JCo function.
    The steps are always like this:
    call the sap system for rfc login
    prepare data areas and call in java
    call the rfc in the R/3 system
    handle exceptions
    logoff and free ressource
    continue with data obtained in R/3
    There is a lot of material around jco. One book that is fairly ok is :
    SAP Interface Programming
    A comprehensive reference for RFC, BAPI, and JCo programming
    J. Meiners, W. Nüßer
    SAP PRESS ISBN 1-59229-034-5
    This helps you navigate through the wealth of information also at SDN

Maybe you are looking for