Webservice for ABAP classes

Hi ,
    This is regarding creating about web service for ABAP classes. On searching SDN forum this is not possible.
    But we should not call methods from a class within the function module used in webservice?
    Please advice.
    Exposing WebService directly from ABAP Class not from BAPI
Thanks
Harsh

[Amazon Associates Webservice|http://ecs.amazonaws.com/AWSECommerceService/2008-08-19/DE/AWSECommerceService.wsdl] is literal.
More Details to be found [here|http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html]
Have fun!
anton

Similar Messages

  • How to create  webservice  for  abap  RFC

    how to create  webservice  for  abap  RFC.......................
    plz any could tel me

    I'll answer my own question...
    In SE80 you create the Function Group and something called a Virtual End Point.  These are the only items that transport forward to you QA and eventually your production system.  Everything else has to be created in SOAMANAGER on the target systems. 
    In Development in SE80, when you create the Virtual End Point, this creates a corresponding entry visible in transaction SICF.  When you are done in SOAMANAGER, it creates three more entries in SICF.  The process of transporting the Virtual End Point does NOT create any entries in SICF in QA.  Don't let this be confusing.  In QA, SOAMANAGER will create all four SICF entries.
    Also, if you try to secure the web services using the S_SERVICE object, you must actually test the web service before you can add it to any roles.  This is because the USOBHASH table is not populated for the web service until you actually run the web service for the first time.

  • Public webservice for ABAP consumer proxy?

    Hello All,
    for a soon coming customer project I want to get familar with the implementation of a ABAP webservice consumer. We're on Netweaver 7.0, no XI/PI.
    So I simply started at SE80, and tried to create a service consumer, and entered the URL http://soap.amazon.com/schemas2/AmazonWebServices.wsdl as the source for the WSDL.
    Unfortunately that gave me an exception CX_SWSDL11_WSIBP11 (A wsdl:binding in a DESCRIPTION MUST use the value of "literal" for the use attribute in all soapbind:body, soapbind:fault, soapbind:header and soapbind:headerfault elements.).
    As I'm not focussed on this special webservice - does anybody know a public webservice for which a ABAP webservice consumer could be created easily?
    Any help is appreciated.
    Thanks & best regards,
    Karsten

    [Amazon Associates Webservice|http://ecs.amazonaws.com/AWSECommerceService/2008-08-19/DE/AWSECommerceService.wsdl] is literal.
    More Details to be found [here|http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html]
    Have fun!
    anton

  • Problem while Calling Webservice from ABAP

    Hello All,
                 I am Calling the Webservice using ABAP-Class from abap,i getting the following HTML response error from the Webservice.Can any one help me.
    tional//EN">######
    ####td {font-family : Arial, Tahoma
    , Helvetica, sans-serif; font-size : 14px;}##A:lin
    k ##A:visited
    ##A:active ####
    Thanks and Regards,
    Kamal

    It is not finding the correct URL - hence the 404 - page not found error.
    Correct the URL and try again.

  • Call (consume) a webservice from ABAP for dummies

    Hi
    I find the documentation for this topic very confusing. It a badly structured mix of documentation of client scenarios, server scenarios and worst of all a lot of XI nonsense.
    I need purely client scenario documentation without any info about XI and without any info about creating web services.
    I just need to know how to consume a web based webservice in ABAP program. Where can I find this docu?
    I have tried to generate proxies from different WSDL sources, but it always fails with different error messages.
    Can anyone suggest a simple WSDL webservice usefull for testing my setup?
    Best regards
    Thomas Madsen Nielsen

    You are right, the help files do mix consuming and creating, but they do provide a list of steps for consuming and what you need to do.  To consume a web service, the general steps you need to follow are:
    - Create an extendable package with use accesses SAI_SXMS, SAI_TOOLS, SAPPINT
    - Create a proxy class using the wizard in SE80 (right click on the package -> Create -> Enterprise Service) - the creation of the class depends on the WSDL document - you can either generate based on the url  for the WSDL or download the WSDL document and import it as a file in the wizard.  You may need to tinker with the WSDL document to get the class generation to complete successfully. Your WSDL is here: [http://maptp12.map24.com/map24/webservices1.5?soap=Map24Routing]
    - Create a logical port in LPCONFIG or SOAMANAGER (assumes NW 7.0 SP14 or later) with information in the WSDL
    - Create a program to consume the service method - it will look something like this (abbreviated):
    DATA: gv_client_proxy  TYPE REF TO zcwsbb_co_global_weather_soap,
          gv_sys_exception TYPE REF TO cx_ai_system_fault.
    DATA: gs_request   TYPE zcwsbb_get_weather_soap_in,
          gs_response  TYPE zcwsbb_get_weather_soap_out,
          gs_weather   TYPE zst_currentweather.
    DATA: gv_message   TYPE string.
    TRY.
        CREATE OBJECT gv_client_proxy.
        CALL METHOD gv_client_proxy->get_weather
          EXPORTING
            input  = gs_request
          IMPORTING
            output = gs_response.
      CATCH cx_ai_system_fault INTO gv_sys_exception.
        CALL METHOD gv_sys_exception->if_message~get_text
          RECEIVING
            result = gv_message.
        WRITE: gv_message.
        FREE: gv_client_proxy, gv_sys_exception.
        EXIT.
    ENDTRY.
    - Transform the response as required using ST or XSLT

  • Abap Class for Enterprise Service

    Hi guys.
    I've published as webservice in SAP ECC as enterprise service get it in Enterprise Service Workplace.
    I have two questions:
    1- How can I know the abap class associated to this enterprise service.
    2- Could I extend the functionality of this enterprise service? For instance I'd like to response with one more field. Is that possible or I have to create a new one?
    Thaks a lot.
    Regards.
    Edited by: Christian  Abad Chico on Feb 20, 2012 4:03 PM

    Hi
    May be the below link helps you,
    [http://wiki.sdn.sap.com/wiki/display/EmTech/PublishWeberviceinABAP,ConsumeWebserviceinABAPandAdobeFlex.]
    Regards,
    Vijay V

  • Error handling in Abap Class for SAP Workflow

    Hi Experts,
    I would like to know if we have an option in abap classes used in workflows to send errors to the workflow log. We can achieve this in BOR Object methods by using the EXIT_RETURN <CODE> var 1 var 2 to send the errors back to the workflow, but how is this achieved through methods from classes  used in workflows.
    Appreciate your quick responses,
    Chaitanya

    Just raise exceptions in the normal OO way. Any exception that is a subclass of CX_BO_ERROR should be automatically available in workflow. Use subclasses of CX_BO_TEMPORARY for temporary errors.

  • Creat transaction (se93) for Globa class in ABAP Objects

    Hi experts,
           Can any one tell me how to
    creat transaction (se93) for Globa class(se24)  in ABAP Objects
    if ,please assest me how to do it or send me example docu on this
    best Answer will be rewarded
    regards
    fareedas

    hi
    se93->give your transaction ->enter create.
    check the radio button (Method of calss(OO class).press enter.
    in next screen.
    transaction text ;give your own description
    tick the check box OO transaction model.
    give the class name method name which u have created in se 24.which was activated successfully.it should be activated otherwise it will not work.
    under GUI SUPPORT.
    TICK the all 3 check boxes.
    SAP GUI  FOR HTML
                            JAVA
                           WINDOWS.
    then save.
    u should b saved in package(don't forget).
    it was working.
    i have already checked and did it succesfully.
    reward points
    if u have any queries let me know.
    kiran jagana

  • ABAP class or function for retrieving BEx query properties at runtime

    Hello Experts,
    I'm working on BADI RSR_OLAP_BADI and for a special calculation I need to know which characteristics are in the drill-down of the BEX query, sol later on I can aggregate some key figures using only these characteristics.
    Problem is that structure C_s_DATA in method COMPUTE contains all fields of the query (filters, free chars, chars in the rows, etc) and I need to now which characteristics are currently being showing in the Bex analyzer.
    So is there an ABAP class or function module I can use to find out this kind of information at run time?
    Any suggestion?
    Thank you

    Tank you for the feedback,
    I tried to use the class you provided, but I'm stuck now in how to get from within my class that implements RSR_OLAP_BADI interface, a handle, reference, o whatever represent my runtime query (not the query at design time) . As the class you provide must be instantiated before I can use
    In pseudo code could be something like this
    DATA my_query type query_ref.
    my_query = get_rt_query().
    my_query->get_state()
    regards

  • Include in ABAP class for Workflow

    Hi,
    In order to use BOR macros inside ABAP class, (From SAP help) came to know that we need to use include <cntn02> .
    How to add this include to ABAP class for workflow?
    Regds,
    Akshay

    Hi Akshay,
    Slight difference, I said "keeping the class clean of BOR <i>code</i>". By all means use BO's in the class: basically create a ZCL_MATERIAL, and use BUS1001 as an attribute (I use a naming convention BO_* for these). As long as it's the right type (SIBFLPORB I think - no system handy right now), and the key values are populated correctly the system will instantiate it as necessary. So in WF I can refer to ZCL_MATERIAL.BO_MATERIAL whenever I need any of the BO's functionality.
    You are correct though, creating a proper business class which you can instantiate such as material does involve a fair bit of effort and coding to set up. e.g. my last project I ended up creating one ZBOR subtype because all I needed was one new attribute - definitely not worthwhile creating a new class for. (USR01.zEmailAddress for what it's worth).
    I've said before somewhere, it's not without pain, so if you're under time pressure etc, then it may be better to do whatever's quickest. There's nothing wrong with using BOR macros, it will still work for quite a few versions. I just meant to say that pure class(y) code is a preferred way to go if it makes sense to do so. This is not always the case.
    Hope that helps,
    Mike

  • Detailed example for ABAP mapping in XI7.0 with code in  class builder

    hi experts,
                  will any one one send me the detailed example(including navigation steps) for ABAP mapping in XI7.0 with code in class builder.
                                                         Thankin u,

    Hi,
    Just go through the below link.It will guide you how to do abap mapping:
    The guide is on XI 3.0 but the same can be used in 7.0 also.
    The How-to-guide
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    This link will provide more information regarding program point of view.
    http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/content.htm
    Thanks,
    Kishore.
    Edited by: Kishore on Mar 14, 2008 4:35 AM

  • BOR or ABAP Class for MM41

    Hi all.
    I am wondering whether anyone ever use workflow in transaction MM41.
    Does SAP provide standard BOR or ABAP Class for transaction MM41.
    I  know there is BUS1001006 but this only get triggers from MM01.
    Does user exit or BADI is the only way to trigger workflow from MM41?
    Thanks

    Hello,
    It might help if you said what MM41 was.
    As usual, turn on the event trace (SWELS), create and save something in your chosen transaction and then check the event trace (SWEL) for any events.
    regards
    Rick Bakker
    hanabi technology

  • Webdynpro for ABAP call non-SAP webservice

    Hi,
    We have a WAS 7.0 ABAP only, Can we use webdynpro for ABAP to call a Notes's webservice or Weblogic's webservice.
    Where can I get the document link?
    Edited by: Jeff Lien on Jan 8, 2008 10:47 AM
    Edited by: Jeff Lien on Jan 8, 2008 10:49 AM

    Hi this will help u.
    Web Dynpro ABAP  
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/db22242d-0701-0010-28a2-aeaa1fefd706
    Hope that the following also helps you.
    Web Dynpro for ABAP (WD4A, WDA) is the SAP standard UI technology for developing Web
    applications in the ABAP environment. It consists of a runtime environment and a graphical
    development environment with special Web Dynpro tools that are integrated in the ABAP
    Workbench (SE80).
    Web Dynpro offers the following advantages for application developers:
    The use of declarative and graphical tools significantly reduces the implementation
    effort
    Web Dynpro supports a structured design process
    Strict separation between layout and business data
    Reuse and better maintainability by using components
    The layout and navigation is easily changed using the Web Dynpro tools
    Stateful applications are supported – that is, if the page is changed and the required
    data remains intact so that you can access it at any time throughout the entire
    application context.
    Note that stateless applications are not possible.
    Automatic data transport using data binding
    Automatic input check
    Automatic operation of the Web Dynpro application using the keyboard
    User interface accessibility is supported
    Full integration in the reliable ABAP development environment
    Web Dynpro Architecture
    Definition
    Web Dynpro is the SAP NetWeaver programming model for user interfaces (UIs).
    The Web Dynpro model is based on the Model View Controller paradigm, and has the
    following features that build on the classic dynpro model:
    Clear separation of business logic and display logic
    Uniform metamodel for all types of user interfaces
    Execution on a number of client platforms.
    Extensive platform independence of interfaces
    Structure
    Metamodel Concept
    Web Dynpro provides support for developing Web representation of a business application.
    You use specific tools to describe the properties of a Web Dynpro application in the form of
    Web Dynpro metadata. The necessary source code is then generated automatically and
    executed at runtime. In addition to the events offered by the framework, you can also define
    your own events for a Web Dynpro application. However, the event handling must always be
    programmed in separate source code areas which are executed automatically when the event
    is triggered at runtime.
    In Web Dynpro, each user interface is always made up of the same basic elements. These
    elements of the metamodel can be statically declared using Web Dynpro tools.
    It is also possible to implement elements of the metamodel at runtime and to change them or
    reintegrate them at runtime. Using these implementations, you can make any changes or
    enhancements to a user interface that has been created by declarative methods by
    generating new interface structures at runtime.
    This means that you can combine declarative processes and the implementation of source
    code.
    Graphical Development Tools
    To support this declarative concept, both the SAP NetWeaver Developer Studio and the
    ABAP Workbench contain a range of Web Dynpro tools. You can therefore generate a large
    proportion of a Web Dynpro application using the tools provided, without having to create your
    own source code. This applies to the following parts of the application:
    Data flow between the front end and back end
    Layout of the user interface
    Properties of user interface elements
    The Web Dynpro tools enable you to create source text areas manually within generated
    source texts. These areas are not changed if the source code is regenerated.
    Separation of Business and Application Logic
    Using Web Dynpro enables a clear separation of business logic and display logic. A Web
    Dynpro application runs on the front end and has local or remote access to the back end
    system via a service. This means that the display logic is contained in the Web Dynpro
    application, while the business logic and the persistence of the business objects run in the
    back end system. The following options are currently available for connecting Web Dynpro
    applications and the back-end system:
    An interface generated using adaptive RFC, through which BAPIs of an SAP system
    can be called
    An interface for calling Web services
    A self-generated interface
    The source code required for connecting the Web Dynpro application can be generated
    from a UML definition of the Web Dynpro interface. A UML definition can be imported
    into the Web Dynpro tools as an XML file.
    Conversion of the Model-View-Controller
    Conversion of the Model-View-Controller Programming Model
    Every Web Dynpro application is structured according to the Model View Controller
    programming model:
    The model forms the interface to the back end system and thus enables the
    Web Dynpro application access to data.
    The view is responsible for the representation of the data in the browser.
    The controller lies between the view and the model. The controller formats
    the model data to be displayed in the view, processes the user entries made by the
    user, and returns them to the model.
    /people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
    http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
    with regards,
    Hema.
    pls give points if helpful.

  • Whats ABAP class should I take for SAP BW

    Hi Gurus:
                I want to learn ABAP to code in  SAP BW and R/3. I am planning to take some class from SAP Education, what SAP class you experts recommend.
    I am working on SAP BW and my focus is to get better in ABAP coding for BW purpose.
    Please suggest me.

    You can go through SAM's Teach Yourself in 21 days for ABAP. This good one for Basics. There are lot of posts in SDN regarding routines. You can also go through them and i hope you get some idea ......... Regarding SAP Class from SAP Education i have no idea
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
    http://www.geocities.com/rmtiwari/
    Regards
    Naga

  • ABAP Classes and BADIs for HR

    Hi all,
    Can anyone give me a list of classes SAP has released for HR use by customers and all utility ABAP classes. Also any utility abap classes that would be useful for future. I am only interested in those relevant for ECC 5 and up.
    Could you supply the BADIs or Enhancement Spots for HR too.
    Thanks
    Wayne

    The BADI's I have found most useful are the BADI exits that duplicate the existing PA30 PAI / PBO User exits.  If you trace back to where the exits are called you will find the BADI call within a few lines of code - but the difference is that the BADI is called outside one layer of IF logic, so it gets called in some circumstances where the user exits do not - I think this was to do with certain change or copy data situations.
    Can't remember the name of the BADI, and do not have a system available to check at present, but it was not hard to find when I looked in the system.
    Others I have used are as exits in the HR to FI posting interface, and also some in the travel to vendor interface.  There is also an exit for customising the PERNR search help - cannot remember if this was a class or a FM.
    For moving data inside the user exits in a unicode compliant way there are classes for moving data from the flat PRELP character structure to individual infotype structures - CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN and CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP.
    For general unicode compliant constants such as a Tab character there is class CL_ABAP_CHAR_UTILITIES with attributes like CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
    Also if you go to SE38, select the Blue "Online Help" button, and then go to the ABAP Overview, you will find under the ABAP by Theme branch an entry "ABAP System Classes and Interfaces" which documents 20+ general ABAP classes
    Hope this helps
    Andrew

Maybe you are looking for

  • Search for text in main VI crashes labview

    I'm using Labview 8.6 under Windows Vista Business.  I'll update to Labview 2009 once I finish the current project.  While working on the current project, when I do a text search in the main vi, the Labview environment crashes without error and witho

  • How to display an SAP document on the web (ECC 6.0)

    Hello all,   currently upgrading from 46C to ECC60 and we are having trouble with one of our current processes.  We currently have a custom RFC that creates spool files and turns them into a PDF stream via CONVERT_OTFSPOOLJOB_2_PDF.  The RFC is calle

  • What happened to my Verizon banner

    So this morning it said Verizon next to the signal indicator and now it just reads 3G? Anybody else experience this? No signal issues whatsoever.

  • Calling portal JavaScript from dynamic pages

    Where is the Oracle folder where all the JavaScripts are located? I want to use some of these scripts in my dynamic page. Thanks, Marcelo

  • CONTROL_FORM

    HAI,           NOW I WANT SEND A NEW-PAGE COMMAND TO SMART FORM WITN FORM NAME 'LAST' HOW CAN I SEND THIS COMMAND THANK YOU ASHOK KUMAR