Call ABAP-progam (or Transaction Code) out of WEB-Template

Hi freaks,
I want to call an ABAP-Program out of a web-template, preferably e.g. by clicking on a Push-Button. For my scenario here no parameters need to be passed (the ABAP-program simply fills a table).
Cheers
Georg

Georg,
Have your ABAp program as a web serice instead and then call the Web service through a link to the SAP WAS and achieve the same....
A function module can be made as a web service - am sure an ABAP program can also be done in the same way...
Or have the ABAp program exposed to WEB ITS and then call the URL through your push biutton in the template..
Arun
Hope it helps...

Similar Messages

  • ABAP Report -- to Transaction code

    Hello,
    don't know if this is the correct subforum (sorry in advance).
    I have created a ABAP Report in SE38 having a SELECTION-SCREEN.
    Now I would like to have a Transaction code to refer to the report. So that I can call the Transaction and then get the selection screen to use the abap report.
    How can I do this the simplest way?

    Use transaction SE93 to create a transaction.   Create a Z* transaction.  Choose program and seleciton screen report.  Enter your program name and save the transaction.

  • Calling a Standard SAP transaction VA03 from another web dynpro application

    Hi All,
    I have a requirement wherein I need to call the standard SAP transaction VA03 whenever a sales order is selected in some other we dynpro application so that the sales order gets displayed.
    No regarding usage of OBN for the above functionality I have certain queries:
    1. In order to call VA03 do I need to create a transactional iview for it or is there any direct method.Also how to pass this sales order number as parameter to the T.Code.
    2. Can we use standard business object BUS2032 for OBN or a new Business object is created.What exactly is the purpose of these standard business objects in portal and when should they be used.
    Thanks in advance
    Aman Gupta

    Hi Aman - Do you have a portal team in your project or you have to create the IVIEWS yourself?
    I do have a portal team and I dont know how they create the IVIEWs but for example, I will go to my portal team and I will ask them to create an IVIEW for TCODE VA03, they will created and they will tell me the input parameters they entered for the IVIEW so I can call OBN and display in webdynpro.
    SAP in SRM has webdynpro e.g. for BUS2121 and they have an IVIEW already implemented in the portal context pointing to the webdynpro of BUS2121 so we can used the IVIEW by calling OBN and passing the parameters; in my case the object_type will be 'shc' and the operation will be 'display' and the paremeters itab will be the GUID of my shopping cart, that way the OBN can understand which Shopping cart open and in which operation mode.
    I also did something like your requirement, I need it to display a specific case in Records Management but SAP has a standard IVIEW for records management 'RMREGEDIT' that didn't work for my requirement so I went to SE38 created a program that displayed the case based on GUID and I created a TCODE of my custom program. Portal team created a custom IVIEW of my custom TCODE and they told me the input parameters to call the TCODE in OBN and I pass in the itab parameter the GUID of the case using the FM that I post before.
    The action to call the OBN is in the event handler ON_CLICK of my ALV and the action is getting trigger when the user actually clicks a HYPERLINK in the ALV.
    Hope this helps you!
    Please feel free to ask me more details if you need.
    Jason PV

  • Calling  second step of transaction of r3 through web dynpro

    Hi all
    We are calling a particular transaction and passing paramter to it through web dynpro.We have successfully implemented it.but we are facing problem in  calling second step of transaction and passing parameter required at second step.
    pls tell me if any one has any ideas how to do it ???
    regards
    zaid

    Does the second step involve a new function module or does it make use of the same one?  Regardless the second call shouldn't be any different than the subsequent calls.  Maybe you could provide more details.
    /Greg

  • Crystal Report on SAP R/3 ABAP Program or Transaction Code

    Hi Experts,
    I am working on SAP BI, my current requirement is to develop a dashboard. Client given the list of reports and they want to see these reports as a dashboard in BO. All these reports are SAP R/3 ABAP Programs. My doubt here is, is it possible to connect directly or bring directly a ABAP program in crystal reports. I know that form crystal reports we can connect to SAP R/3 through SAP Table, Cluster , Function Modules and so on.
    Anyone please clarify this doubt.
    Thanks & Regards
    Ramakrishna Kamurthy

    Moving to Integration kits forum: Questions re: Crystal Reports/Enterprise to SAP Integration Kit - SAP

  • Problem in calling abap editor with the program name in Web Dynpro ABAP

    Hi,
    I have to caal ABAP Editor screen with the display of program after clicking a button from web dynpro abap application.
    I am able to call the ABAP Editor initial screen, but i want the editor display screen with a program.
    How to do that?
    Please find my code below:
      DATA : FINAL_URL TYPE STRING,
             URL TYPE STRING.
      DATA: LV_HOST TYPE STRING,
            LV_PORT TYPE STRING.
    DATA V_TCODE TYPE TCODE.
      DATA:  LO_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.
      DATA:  LO_API_COMPONENT  TYPE REF TO IF_WD_COMPONENT.
      DATA:  LO_WINDOW         TYPE REF TO IF_WD_WINDOW.
      DATA:  LD_URL TYPE STRING.
    V_TCODE = 'SE38'.
    *Call below method to get host and port
      CL_HTTP_SERVER=>IF_HTTP_SERVER~GET_LOCATION(
         IMPORTING
           HOST = LV_HOST
           PORT = LV_PORT ).
      CONCATENATE 'http'
      '://' LV_HOST ':' LV_PORT '/sap/bc/gui/sap/its/webgui/?sap-client=&transaction=' V_TCODE '&OKCODE=SHOW'
      INTO URL.
      LO_API_COMPONENT  = WD_COMP_CONTROLLER->WD_GET_API( ).
      LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
      LD_URL = URL.
      CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW
        EXPORTING
          URL    = LD_URL
        RECEIVING
          WINDOW = LO_WINDOW.
      LO_WINDOW->OPEN( ).
    Now, how to pass my Zprogram name into the URL.
    I need to get the editor screen with the display of the program.
    Thanks,
    Radhika

    Hi Kiran,
    Please find my code below:
    DATA :   URL TYPE STRING.
      DATA: LV_HOST TYPE STRING,
            LV_PORT TYPE STRING.
      DATA:  LO_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.
      DATA:  LO_API_COMPONENT  TYPE REF TO IF_WD_COMPONENT.
      DATA:  LO_WINDOW         TYPE REF TO IF_WD_WINDOW.
      DATA:  LD_URL TYPE STRING.
    *Call below method to get host and port
      CL_HTTP_SERVER=>IF_HTTP_SERVER~GET_LOCATION(
         IMPORTING
           HOST = LV_HOST
           PORT = LV_PORT ).
      CONCATENATE 'http'
    '://' LV_HOST ':' LV_PORT '/sap/bc/gui/sap/its/webgui/?&transaction=se38&RS38M-PROGRAMM=Y2PSOLTREE&~okcode=shop'
      INTO URL.
      LO_API_COMPONENT  = WD_COMP_CONTROLLER->WD_GET_API( ).
      LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
      LD_URL = URL.
      CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW
        EXPORTING
          URL    = LD_URL
        RECEIVING
          WINDOW = LO_WINDOW.
      LO_WINDOW->OPEN( ).
    Here,, Y2PSOLTREE is the program, that should show in SE38 screen.
    I used the above code, but still it is showing the SE38 initial screen.
    Thanks,
    Radhika

  • Wt is transaction code for SAP WEB REPOSITORY?

    to see the web repository objects, how to see wt r in db

    Hi,
    Its SMW0.
    Just a hint: Goto SE 93, click on F4 there enter
    repository under short Description.
    Regards,
    Sesh

  • Transaction codes of abap

    Hi All.
    In ABAP how many transaction codes are there and whar are they?
    Thanks & Regards.
    Satish.K

    Hi
    Reg the ABAP,The tcodes are,
    SE38-Report Program
    SE37-Function Module
    SE36-Logical Database
    SE11-Data Dictionary
    SE16-Table contents
    SE12-DDIC
    SE24-Class Buider
    SWO1-BOR
    ST05-SQL trace
    SM12-Lock
    SE80-Repository
    SE30-Run time analysis
    SE71-SAP script
    SMARTFORMS-SAP forms
    SMOD-enhancements
    CMOD-customer enhancements
    ST01                 System Trace                        
    ST02                 Setups/Tune Buffers                 
    ST03                 Workload and Performance Statistics 
    ST03G                Global Workload Statistics          
    ST03N                Workload and Performance Statistics 
    ST04                 DB Performance Monitor              
    ST04M                Multi DB connection                 
    ST04N                Database Performance Monitor        
    ST04RFC              SAP Remote DB Monitor for SQL Server
    ST04_MSS             Monitoring SQL Server (remote/local)
    ST05                 Performance Trace                   
    ST05ACC              Barrier-Free Performance Trace      
    ST05SAVE             Old ST05                            
    ST06                 Operating System Monitor            
    ST07                 Application monitor                 
    ST10                 Table Call Statistics               
    ST11                 Display Developer Traces            
    ST14                 Application Analysis                
    ST20                 Screen Trace                        
    ST20LC               Layout Check                        
    ST22                 ABAP dump analysis                  
    ST22OLD              Old Dump Analysis                   
    ST30                 Global  Perf. Analysis: Execute     
    ST33                 Glob. Perf. Analysis: Display Data  
    ST34                 Glob. Perf. Analysis: Log IDs       
    ST35                 Glob. Perf. Analysis: Assign CATTs  
    ST36                 Glob. Perf. Analysis: Delete Data   
    ST37                 Global Perf. Analysis: Eval. Schema 
    ST62                 Create Industry Short Texts         
    STAD                 Statistics display for all systems  
    STARTING_URLS        SMTR_NAVIGATION_SEND_MESSAGE        
    SE01                 Transport Organizer (Extended)      
    SE03                 Transport Organizer Tools           
    SE06                 Set Up Transport Organizer          
    SE07                 CTS Status Display                  
    SE09                 Transport Organizer                 
    SE10                 Transport Organizer                 
    SE11                 ABAP Dictionary Maintenance         
    SE11_OLD             ABAP Dictionary Maintenance         
    SE12                 ABAP Dictionary Display             
    SE12_OLD             ABAP Dictionary Display             
    SE13                 Maintain Technical Settings (Tables)
    SE14                 Utilities for Dictionary Tables     
    SE15                 ABAP/4 Repository Information System
    SE16                 Data Browser                        
    SE16N                General Table Display               
    Regs
    Manas

  • Calling a function module out of a web template

    Hi experts,
    I need to call an ABAP function module out of a web template including a query with the variable values of the query as input parameters. There shall be button, which starts the funtion module, if the user clicks it. I don't need to transfer any other data just the variables. I have no idea how to accomplish that.
    I experimented with implementing interface IF_BICS_CONS_WEBITEM_CUST_EXIT but this does not seem to help me, as the initialize method is called when starting the web template and I did not manage to bind it or the execute method to that button. Besides I was getting shortdumps when starting the web template with the customer extension web item. I declared it as ABAP_CLASS_NAME exit and set the right class name. Variable Container Access and Navigational State Access is on, Result Set Access is off.
    Is there any other possibility to do this? Perhaps with BSP?
    Can I call an ABAP function module with Javascript out of the template? If yes, which command can I use to do it?
    Thank you very much in advance
    Edited by: Markus Maier on Aug 17, 2009 4:15 PM
    Edited by: Markus Maier on Aug 17, 2009 4:32 PM

    Hi Markus,
    if you are on BI 7.0 or higher I recommend using Integrated Planning for this requirement. If you implement a fox formula you can easily get the current variable value and execute the function module. You can execute the fox formula upon button click.
    If you need more information just let us know.
    Brgds,
    Marcel

  • If a transaction code is assigned to a method of a global CL,how it works?

    Hi gurus,
    here is my question with options below.
    In a OO transaction, a transaction code is assigned to a method of a global class
    CL_A. Afterwards,
    this method can be called directly using the transaction code. What limitation
    exists with regard to the (instance) constructor of this class CL_A?
    - The constructor must not have any importing parameters.T
    - There is no limitation. F
    - The constructor must be defined in the protected section.F
    Kindly give me the explanation...

    Hi Babu,
    This transaction type is called "OO transaction model".
    This is what the system do when you execute a OO transaction model:
    "  Start the OO application
       CREATE OBJECT OO_APPLICATION TYPE (CLASS).
       CALL METHOD OO_APPLICATION->(METHOD).
    "  Leave the transaction, because the application is finished
    "  after calling its 'main' method.
       LEAVE PROGRAM.
    There is same limitations:
    - If you calling up a transaction that is linked to an instance method, the system automatically generates an instance( the constructor method is automatically called ) of the class in its own internal session.
    <b>- The method called and the constructor methods must not have import parameters defined as mandatory. Otherwise a Short dump will prensented for you "<i>A mandatory parameter was not populated when dyn. calling a method</i>".</b>
    - You can't define a CONSTRUCTOR Method in Private or Protected Section, Constructor Must be Public.
    - COMMIT WORK is expressly forbidden when you use the OO transaction model to avoid consistency problems.
    Kind Regards,
    Marcelo Ramos

  • Transaction Code to open WAD

    Hi,
    Is there a transaction code to open web application designer, just like RRMX for Bex Analyzer, instead of logging through business explorer?
    thanks
    raj

    This functionality is not supported for WAD like bex, you can edit the BW web template from SAP GUI using the program RS_TEMPLATE_MAINTAIN from SE38.
    Thanks.

  • How to write HTML code in Web Template for selection screen

    Hello All,
    Is it possible to write a html code in the web template html tag so that the output of the html is displayed in the selection screen, i.e before the execution of query.
    I know that we can write html, which will be displayed once the query has been executed, but can it be done for selection screen.
    if so, how.
    My exact requirement is : to display a 2-3 lines of text in the selection criteria screen - sort of, various options available to user for entering values in the selection screen.  I was thinking of putting this text using HTML code in the selection screen.
    Regards,
    Nagendra.

    Hi Erick,
    No, unfortunately nobody replied to this thread. So i assumed it is not possible to modify the selection screen thru html code.
    Btw, as my requirement was to provide user with multiple answers on the selection screen. I did the validations on customer exit and popped an errror dialog when applicable.
    Regards,
    Nagendra.

  • How to fill variables when calling a web template as a modal dialog

    Hi Experts,
    My scenario is as follow:
    I have a web template (application) A with an analysis item which has enabled the option for selecting single rows, in the rows I have the characteristic 0EMPLOYEE and a button for executing the commands OPEN_TEMPLATE_DIALOG and SET_TEMPLATE for calling web template B. In web template B I have a report with the variable zp_employee.
    The behavior I need is, if the user is selecting a row in the analysis item of template A, variable zp_employee in web application B should be filled from the selection. If there is no selection of a row, the variable screen should shows up.
    The general issue here, is how to feed one or more variables that "live" in wad B from a web item (analysis, input item, combo box, etc) in wad A.
    I guess it has to do with setting parameters in the URL with which wad B is called, may be coding a java script in web template B in the standard action "Action Before first display", but not sure
    thanks for any help

    Hi:
    Try that one in SPRO.
    here are steps if u need them.
    SPRO
    SAP Reference IMG
    From here, open tree:
    SAP Netweaver
    SAP Buss Info Warehouse
    Reporting Relevant Settings
    BEx Web
    Set Standard Web Templates.
    Here add for Adhoc analysis and others if needed.
    Ram Chamarty
    Message was edited by: Ram Chamarthy

  • Call VC iView from a Web Template.

    Hi Experts,
    I want to Call one of our VC iViews from a Web Template, i.e. When we Click a button or link in a Web Template a window should popup which displays the contents of VC iView.
    Is this Possible? if yes, how can we achieve this? Kindly help.
    Regards,
    Rk.

    Repost

  • Reg calling Transaction code in Webdynpro ABAP

    Hi All,
    Can I call Transaction code in Webdynpro ABAP Portal Application. If so, how can this be possible? Can anybody give me a lead?
    Thanks.
    Kumar Saurav.

    Hi,
    The most easy Way is here:
    1) Test any Webdynpro Application from SE80 when the webdynpro Browser opens to display output
    Copy its HTTP link, Suppose we get the below link
    http://r3d01web1.Siemens.dk:8001/sap/bc/webdynpro/sap/z_dynamic_view?sap-client=002&sap-language=EN
    2) Now replace some part of the above link ( webdynpro/sap/z_dynamic_view?sap-client=002&sap-language=EN )  with the new link part ( gui/sap/its/webgui?~transaction=PA30 )
    So that the newly generated link is such that the below one:
    http://r3d01web1.Siemens.dk:8001/sap/bc/gui/sap/its/webgui?~transaction=PA30
    Note in place of PA30 you can put any of your desired tcode.
    3) Now Just Make a webdynpro component and in its View layout put a LINK TO URL ui element
    and in its property REFERENCE just past the http link ( http://r3d01web1.Siemens.dk:8001/sap/bc/gui/sap/its/webgui?~transaction=PA30 )
    4) Activate and test your webdynpro Application.

Maybe you are looking for