Is it possible to Remote Enable Classes in ABAP

Hi,
I am exploring options on the possibility of remote calls for Classes, like we have RFC for FM's.
I found a category value - 30 Proxy class for remote interface in the class properties in se24, however i was not able to select this option while creating new class.
Any pointers on this would be of great help.
Regards,
Uday

No, afaik it is not possible to directly expose the methods of a class for remote calling.
Of course you can create an rfc FM and call methods from within the FM.
Regards,
Thomas

Similar Messages

  • Remote-Enabled Method (wrt ABAP Objects)

    Hi All,
    Adhering to ABAP Objects, in my project, i am creating instance methods or static methods instead of Function modules.
    now i have a requirement, where some functionality needs to be invoked on another server using an RFC destination.
    if i create a function module,
    1)i can tick the radio button "Remote-Enabled Module" under the Attributes of function module and
    2)i can invoke it as
    CALL FUNCTION 'ZMY_FM' DESTINATION 'RFCDESTNAME'
         EXPORTING
         IMPORTING
    in such cases is it mandatorily required to create an FM like above, or can i avoid it by writing an equivalent instance method or static method
    if we replace the FM with a method, then
    1)how can i make the method rfc enabled, and
    2)what is the syntax of providing the rfc destination name while invoking method.
    Is there any other concept provided in ABAP Objects, that is recommended instead of "Remote-Enabled Function Modules"
    thanks in advance,
    Madhu_1980

    Hello Madhu
    If you look at the properties of any global class you will find that the DropDown list for "Category" contains item:
    30 = Proxy Class for Remote Interface
    For me this sounds like that there might be something in the pipeline of SAP to provide RFC-enabled methods. However, if and when this becomes true is probably unknown.
    Regards
      Uwe

  • Message handling in remote enabled function module .

    Hello experts ,
    I am creating a remote enabled function module which must return a warning message based on certain condition . Inorder to meet the requirement  I have added this line in the Fm's source code :
    " Message Wxx(message class) with a ."
    But when I am trying to use it , the above given message is dispalyed as an error message . Could you please let me know where am I going wrong . TIA.
    Regards,
    Prakrita Kapoor.

    Hi Prakrita,
    Try building below code within the RFC after you have added return structure in your RFC parameters.
      IF sy-subrc NE 0.
        CLEAR message.
        message-msgty = 'E'.
        message-msgid = 'ZMI'.
        message-msgno = '001'.
        message-msgv1 =  ID.
      PERFORM return_message USING message
                                   CHANGING return.
      Endif.
      form return_message USING    VALUE(P_MESSAGE)   LIKE MESSAGE
                                   CHANGING P_RETURN  LIKE BAPIRETURN.
      CHECK NOT MESSAGE IS INITIAL.
      CALL FUNCTION 'BALW_BAPIRETURN_GET'
           EXPORTING
                TYPE       = P_MESSAGE-MSGTY
                CL         = P_MESSAGE-MSGID
                NUMBER     = P_MESSAGE-MSGNO
                PAR1       = P_MESSAGE-MSGV1
                PAR2       = P_MESSAGE-MSGV2
                PAR3       = P_MESSAGE-MSGV3
                PAR4       = P_MESSAGE-MSGV4
           IMPORTING
                BAPIRETURN = P_RETURN
           EXCEPTIONS
                OTHERS     = 1.
    endform.

  • Can we call Remote Endable Module  from another Remote Enabled Moduel

    Hii experts...
    I have a problem regarding Remote Enabled Module Function Module....
    Actually i want to call the standard BAPI 'BAPI_GL_GETGLACCBALANCE' into the BAPI which i hve created...
    is it possible???
    or can anyone tell me if it is not possible then what is the alternative for this..???

    'Remote enabled' means that you can also call the function remotely. The 'Remote enabled' characterstic implies some restrictions for the FMs interface, i.e. parameters can not be passed by reference because the remote system has no access to the memory of the called systems where the referenced data are located.
    Remote call means only a restriction for the remote call, not for any direct call.
    Regards,
    Clemens

  • Remote enabled function modules IN R/3

    hi,
    i posted this question before but i didnt get a convincing answer to move forward
    when data is sent to bw from r/3 there should be some remote enabled function modules which are  getting fired.
    so people told me to find fm for each data source in 'ROOSOURCE'  table.
    and to debug to get the function module IN RSA3.
    i got those function module but these r 'NORMAL FUNCTION MODULE'  but not
    'REMOTE ENABLED FUNCTION MODULES'
    IF REMOTE ENABLED FM'S ARE NOT GETTING TRIGGERED THEN HOW IS DATA GOING TO BW
    PLEASE SUGGEST ME I AM WAITING FOR LONG TIME FOR A GOOD ANSWER.

    OK,
    this is a big project.... You want to simulate a BW system.... I think don't think it is not possible but R/3 is a pair exchanging a lot of information and a lot of settings have to be done.... this seems to me very complex....
    This will depend on what kind of datasource you want to extract....
    - Master data: I would directly go the you SAP database and extract the info form the tables directly (we are actually doing that)
    - LO datasources would be a bit more complex since you'll have to initialize your datasource from a BW system.... Or figure out how this is working, meaning reverse engineering of the whole stuff! You could even think about using the exits for the business events, e.g. when an article doc is created, write the data in a flat file and/or write it directly to the DB of your DW....
    Also I would setup a BW system anyway; it is so easy then to manage all this data... You could then stick to load the data to the PSA and extract it very easily to your external DW. Even BW provide much more extraction capabilities once the data is stored there....
    They're a lot of solutions like always... the challenge is to choose the best one.
    hope this helps...
    Olivier.

  • Remote enable module - exceptions issue

    Hello all,
    I have a function module.
    I choosed to make it RFC :  Remote enable module.
    Then I got the message During RFC/update, no exception classes can be used, when I try to check it.
    So I commented all parts regarding exceptions, deleted the Exceptions part .
    And I still receive the same message
    I don't know what else to do... Does anybody has an advice ?
    Thank you !!!

    Hello Ariana
    Most likely there is an exception class defined in the signature of your function module.
    Remove the exception class and replace it with a standard exception and then the compilation error should disappear.
    However, RFC-enabled fm's should not raise any exception because otherwise the RFC connection will dump. Instead, return the errors as messages in a RETURN parameter (of table type BAPIRETTAB) like it is done in BAPIs.
    Regards
      Uwe

  • Difference between BAPI Function Module and Remote Enable Function Module

    Dear Experts,
        I want to know the main difference between BAPI Function Module and Remote Enable Function Module ?
    One main difference that I know is BAPI FM are declared in Methods of Business Object  ie BAPI are methods of BOR where as Remote Enabled FM are not. What are other differences? Is it possible to convert a Remote Enable FM to BAPI FM .
    regards
    Manish

    Hello,
    Did u create any ZBAPI?
    The Procdure for Creating the Customer BAPI is Create a Remote Enabled Function module and then goto the tcode BAPI.
    Once u go in to that just take the Project tab and enter the details.
    by this way u can create a Customer BAPI.
    With Regards,
    Sumodh.P

  • Remote Enabled Module option for FI_ITEMS_DISPLAY

    Hi,
    We need to Enable the Remote Enable option for function module
    FI_ITEMS_DISPLAY to access the third party system.
    Please suggest wheather we can enable the remote enable option but in
    this function module refernce parameters are used.
    please suggest.

    Hi,
    purpose of this FM is to display ALV with some data which are passed to this function module and therefore it is meaningless to make this FM remote enabled. It is not clear what exactly is your issue. Can You explain it in more detail?
    If you want to get items data from third party system and than to display them in SAP, you do not need to change this FM to remote enabled. You just need to get data from external system before calling this FM for displaying data and pass these data to FM FI_ITEMS_DISPLAY.
    If you want do display ALV in third party system, it is not possible.
    In general, it is possible to make a customer function module which will be remote enabled and will be used as a "wrapper" and call this FM instead of the original one.
    Regards,
    Adrian

  • Connector name inside Remote enabled module

    Hi
    I have a remote enabled function module which can be called from any system.
    But the problem is that I need to have to connector name inside the FM code through which the call has made.
    Is it possible?
    For eg. We may call the FM from a system like
    CALL 'MY_REMOTE_MODULE'
    DESTINATION 'connector_name'
    EXPORTING
    IMPORTING
    Can I have the name of the connector(connector_name in above code) inside the FM code without explicitly passing it in exporting parameter?
    Thanks
    Ankur

    Not sure if there is another way next to passing it as an additional parameter. Why is this simple solution not an option for you?
    Thomas

  • Is it possible to remotely access the desktop in OS9.1 from a newer G5 mac?

    I have an old 7600 Powermac running OS9.1 and several peripherals on the SCSI bus. I would like to be able to access this machine and the peripherals via my newer G5 machine. So I'm wondering if its possible to remotely access the desktop on the OS9.1 machine with the existing software or do I need some type of network administrator software? Thx in advance!
    7600   Mac OS 9.1.x  

    Yes, there are several remote access apps in the app store.  LogMeIn, TeamViewer, and others.
    Search the app store and find what works best for you.

  • Is it possible to call a class method using pattern in ABAP editor.

    Hi,
         Is it possible to call a class method using pattern in ABAP editor.
    Thank U for Ur time.
    Cheers,
    Sam

    Yes,
    Click patterns.
    Then choose Abap objects patterns.
    Click on the Tick
    It will give a new screen
    Here Give the name of the class first.
    Then the object (instance of the calss)
    And finally the method ..
    it will give you the pattern
    Hope this helps.

  • Is it possible to call a class in a jar file from JNI environment?

    Hi
    Is it possible to call a class in a jar file from JNI environment?
    Thanks in advance.

    Could you explain a bit more what you are trying to do? (In other words, your question is vague.)
    o If your main program is written in C, you can use JNI to start a JVM, load classes from the jar of your choice, and call constructors and methods of the objects defined in the jar.
    o If your main program is java, and has been laoded from a jar, a JNI routine can call back into java to use the constructors and methods of classes defined in the jar(s).

  • Difference between BAPI and remote enabled function module

    Hi!
    what is the difference between remote enabled function module and
    BAPI.
    How do we use remote enabled function module .
    thanks
    Amit

    Please search the forum before asking basic questions.

  • What would be the effect of %_RFC in a custom remote enabled FM.

    Hi,
    I have a requirement where there already exists a customized Remote enabled function module which contains the code for retreiving the production order number range based on the selection criteria(workcenter,plant)  as follows:
    CALL FUNCTION 'ZPRODORD_WORKCENTER' %_RFC
         EXPORTING
           COLLECTIVE_ORDER = COLLECTIVE_ORDER
           I_ARBPL = I_ARBPL
           I_WERKS = I_WERKS
         IMPORTING
           RETURN = RETURN
         TABLES
           ORDER_NUMBER_RANGE = ORDER_NUMBER_RANGE
           ORDER_HEADER = ORDER_HEADER
    This function is used in an INCLUDE program.Here I would like to know the significance of %_RFC.Im not able to locate the actual program where this include is used using the where used list to find  out the value which may be passed during debugging as this may be called from another server.
    Edited by: Vineela S on Oct 1, 2011 7:22 PM

    Hi Naimesh,
    Thanks for your reply.
    But here if I check the function group in which the RFC is defined im able to find the following Includes:
    *   System-defined Include-files.                                 *
      INCLUDE LZPRODORDRFCTOP.                   " Global Data
      INCLUDE LZPRODORDRFCUXX.                   " Function Modules
    *   User-defined Include-files (if necessary).                    *
    *  INCLUDE LZPRODORDRFCF...                   " Subprograms
    * INCLUDE LZPRODORDRFCO...                   " PBO-Modules
    * INCLUDE LZPRODORDRFCI...                   " PAI-Modules
    INCLUDE LZPRODORDRFCF01.
    But in not able locate the include  LZPRODORDRFCV07 which i have mentioned above.
    I would also like to know what would happen if the %_RFC is removed.Would the addition of %_RFC affect the performance of the program in any manner.
    Im not able to execute the program myself as it is linked with another server.
    Regards,
    Vineela.

  • How to make function module remote enabled?

    I am trying to make the RSCRMBW_GET_CELL_DATA_BAPI function remote-enabled by choosing remote-enabled in the attributes tab in the function builder. When I try to activate the function, I get an error telling me that Reference parameters are not allowed with RFC. In order to get around this, I set each of the import parameters to pass value. This time, I get an error for Generic types not allowed in RFC. I change the I_NO_TEXTS type from C to CHAR50. Finally, I get an error for Type RSCRM_BAPI6111CD_LARGE_T is unknown. I am able to see this type in both the RSCRM type pool (to which the 'unknown' type belongs) and CL_RSCRMBW_BAPI>GET_CELL_DATA_V2 method (which calls the function). However the function builder still tells me that the Type RSCRM_BAPI6111CD_LARGE_T is unknown.

    Hi,
    You need do this in a work around way. My suggestion is you need to create wrapper function module (RFC enabled) with same paramters of fm RSCRMBW_GET_CELL_DATA_BAPI and inside this function module pass these parameters and call  fm RSCRMBW_GET_CELL_DATA_BAPI, then there is no need to change fm RSCRMBW_GET_CELL_DATA_BAPI

Maybe you are looking for

  • Can't buy music with iTunes... and more

    Dear Apple-people: Don't you test your software before you release it? 1) With the new iTunes 6.0.0.18 I can no longer buy music from the iTunes Music Store! When I add a song to my shopping cart, I get an error message saying that "An error occured.

  • How do I make faster/cleanup/tuneup my MacBook (2009)

    I have had my macbook now for 2 years in Feb. and I am noticing a major slow down with it....I cannot save any more pictures, it takes a minute to load a page, I cannot update anything and it asks me all of the time to and it says I have no room, it

  • Working with data navigation controls

    Hi Experts, I am developing an add-on and chose to create and register it as user-defined object in Business One as document type.  I have managed to utilized its features.  However, I am unsuccessful in making the data navigation controls work (next

  • Windows authentication for SQL 2005 DB connect

    Hi all, I'm trying to create a DB connect in the connection parameters when I mention a user name and password who is created as a SQL authentication then it is working fine. but in my connection parameters if I mention a user name password who have

  • Angel Season 5 -- what does it mean when it says "repackage"?

    For some reason there are two versions of Angel Season 5 listed and only one of them is on sale.  The one that is on sale says "repackage" in the product title and I was wondering if that meant that it was used, or if maybe it just meant different pa