Calling standard transaction

hello all,
I have to call a standard transaction from Z* program. I want to use the output of the standard transaction into my program how can do this?

hi,
FORM call_tcode USING r_ucomm ls_selfield LIKE ls_selfield.
    CASE r_ucomm.
      WHEN '&IC1'.
        IF ls_selfield-fieldname = 'VBELN'.
          SET PARAMETER ID 'VF' FIELD ls_selfield-value.
          CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.
        ENDIF.
        IF ls_selfield-fieldname = 'AUBEL'.
          SET PARAMETER ID 'BES' FIELD ls_selfield-value.
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
        ENDIF.
    ENDCASE.
  ENDFORM.
regards,
Paras

Similar Messages

  • Can we call standard transaction from bsp

    Hi,
    Can anyone tell me how to call a standard transaction(va01) from bsp.
    Points will be awarded,
    Ugandhar.

    Hello,
    check out this coding in a new bsp page and give it a try in your system landscape. It creates an sap short cut file with the .sap extension writes dynamically to the server cache and get the url back.
    Regards, Bernd
    Layout:
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="Start SAP GUI Transaction via BSP" >
        <htmlb:form>
          <htmlb:textView text   = "Start SAP GUI Transaction via BSP"
                          design = "header1" />
          <htmlb:textView layout = "paragraph"
                          text   = "Fill in fields and press the button to create the link." />
          <table width=200>
          <tr>
          <td>
          <htmlb:label for  = "client"
                       text = "Client" />
          </td>
          <td>
          <htmlb:inputField id    = "client"
                            value = "<%= client %>" />
          </td>
          </tr>
          <tr>
          <td>
          <htmlb:label for  = "sysid"
                       text = "SystemID" />
          </td>
          <td>
          <htmlb:inputField id    = "sysid"
                            value = "<%= sysid %>" />
          </td>
          </tr>
          <tr>
          <td>
          <htmlb:label for  = "userid"
                       text = "UserID" />
          </td>
          <td>
          <htmlb:inputField id    = "userid"
                            value = "<%= userid %>" />
          </td>
          </tr>
          <tr>
          <td>
          <htmlb:label for  = "transactioncode"
                       text = "Transaction Code" />
          </td>
          <td>
          <htmlb:inputField id    = "transactioncode"
                            value = "<%= transactioncode %>" />
          </td>
          </tr>
          <tr>
          <td colspan="2">
          <htmlb:button id      = "myButton"
                        text    = "Create Link to start SAP Transaction"
                        onClick = "create_mime" />
          </td>
          </tr>
          </table>
          <%
      if display_url is not initial.
          %>
          <htmlb:textView layout = "paragraph"
                          text   = "Click the link to start SAP GUI Transaction." />
          <htmlb:link id        = "mylink"
                      reference = "<%= display_url %>"
                      text      = "Link to Start SAP Transaction" />
          <%
      endif.
          %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Page Atributes:
    file_content     TYPE     STRING
    guid     TYPE     GUID_32
    host     TYPE     STRING
    isolangu     TYPE     T002-LAISO
    page_name     TYPE     STRING
    parameters     TYPE     TIHTTPNVP
    port     TYPE     STRING
    sapworkdir     TYPE     SDOK_CHTRD
    sysid     TYPE     SYSYSID
    transactioncode     TYPE     TCODE
    userid     TYPE     XUBNAME
    OnInputProcessing:
    * event handler for checking and processing user input and
    * for defining navigation
    * event handler for data retrieval
      event = cl_htmlb_manager=>get_event( runtime->server->request ).
      IF event->name = 'button' AND event->event_type = 'click'.
        button_event ?= event.
        IF button_event->server_event NE 'create_mime'.
          RETURN.
        ENDIF.
    * get users workdir
        CALL FUNCTION 'IW_C_GET_SAPWORKDIR'
          IMPORTING
            sapworkdir = sapworkdir.
    * get iso language
        CALL FUNCTION 'LANGUAGE_CODE_SAP_TO_ISO'
          EXPORTING
            sap_code = sy-langu
          IMPORTING
            iso_code = isolangu.
        CONCATENATE
        '[System]'
        cl_abap_char_utilities=>cr_lf
        'Name='
        sysid
        cl_abap_char_utilities=>cr_lf
        'Description='
        cl_abap_char_utilities=>cr_lf
        'Client='
        client
        cl_abap_char_utilities=>cr_lf
        '[User]'
        cl_abap_char_utilities=>cr_lf
        'Name='
        userid
        cl_abap_char_utilities=>cr_lf
        'Language='
        isolangu
        cl_abap_char_utilities=>cr_lf
        'Password='
        cl_abap_char_utilities=>cr_lf
        '[Function]'
        cl_abap_char_utilities=>cr_lf
        'Title='
        cl_abap_char_utilities=>cr_lf
        'Command='
        transactioncode
        cl_abap_char_utilities=>cr_lf
        '[Configuration]'
        cl_abap_char_utilities=>cr_lf
        'WorkDir='
        sapworkdir
        cl_abap_char_utilities=>cr_lf
        '[Options]'
        cl_abap_char_utilities=>cr_lf
        'Reuse=1'
        INTO file_content.
        CREATE OBJECT cached_response TYPE cl_http_response EXPORTING add_c_msg = 1.
        cached_response->set_cdata( file_content ).
        cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                           value = 'application/octet-stream ' ).
        cached_response->set_status( code = 200 reason = 'OK' ).
        cached_response->server_cache_expire_rel( expires_rel = 180 ).
        CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_32 = guid.
        CONCATENATE guid
                    '.sap'
               INTO page_name.
    * get server information
        CALL METHOD cl_http_ext_webapp=>create_url_for_bsp_application
          EXPORTING
            bsp_application      = runtime->application_url
            bsp_start_page       = page_name
            bsp_start_parameters = parameters
          IMPORTING
            abs_url              = display_url.
        cl_http_server=>server_cache_upload( url      = display_url
                                             response = cached_response ).
      ENDIF.

  • Splitter-container calling standard transaction

    We want to create a splitter-container with two elements:
    - Left side displays a control tree (this is OK)
    - Right side displays a standard transaction such as VA03 (not sure how to do this bit)
    Any help would be greatfully received
    PeteA

    Hi,
    Here is a sample program which implements a docking container with a splitter.
    data: docking_left     type ref to cl_gui_docking_container,
          dock_sub_cont1   type ref to cl_gui_container,
          dock_sub_cont2   type ref to cl_gui_container,
          alv_bottom       type ref to cl_gui_alv_grid,
          splitter         type ref to cl_gui_splitter_container,
          html_viewer type ref to cl_gui_html_viewer.
    parameters: p_check.
    at selection-screen output.
      data: it001w type table of t001w with header line.
      data: repid type sy-repid.
      data: url(255).
      repid = sy-repid.
      if docking_left is initial.
    Create the docking and splitter containers
        create object:
             docking_left
                    exporting repid     = repid
                              dynnr     = sy-dynnr
                              side      = docking_left->dock_at_left
                              extension = 525,
             splitter
                      exporting parent = docking_left
                                rows    = 2
                                 columns = 1.
    Set the splitters.
        call method:
                    splitter->set_border
                      exporting border = space,
                    splitter->get_container
                      exporting row            = 1
                                column         = 1
                                receiving container = dock_sub_cont1,
                    splitter->set_row_height
                      exporting id             = 1
                                height         = '25',
                    splitter->get_container
                      exporting row            = 2
                                column         = 1
                                receiving container = dock_sub_cont2.
    HTML control in the first container
        create object html_viewer
                exporting  parent              = dock_sub_cont1
                exceptions cntl_error         = 1
                           cntl_install_error = 2
                           dp_install_error   = 3
                           dp_error           = 4.
        call method:
        html_viewer->load_mime_object
                   exporting
                     object_id  = 'HTMLCNTL_TESTHTM2_SAPLOGO'
                     object_url = 'SAPLOGO.GIF'
                   importing
                     assigned_url = url
                   exceptions object_not_found     = 1
                              dp_error_general     = 2
                              dp_invalid_parameter = 3,
         html_viewer->show_data
             exporting url   = url
             exceptions cntl_error = 1.
    ALV grid in second splitter container.
        select * into corresponding fields of table it001w
                    from t001w.
        create object alv_bottom
                      exporting i_parent = dock_sub_cont2.
        call method alv_bottom->set_table_for_first_display
            exporting
                 i_structure_name       = 'T001W'
            changing
                 it_outtab       = it001w[].
      endif.
    *Reward points
    Regards

  • Call standard transaction

    Hi all,
    I have a requisite to call a standard transaction (SP01) within a Z program but i have to disable one field in the screen of SP01.
    Is this possible?
    Or there is another way to change the field of SP01 screen?
    Regards,
    Pedro Bessa

    After trying to create a transaction variant for SP01 i got to the conclusion that this method only works for SCREENS and not for selection screens, because what we see when we open the SHD0 put SP01 on it run and press enter the screen that should list all fields is empty.
    I've made a z transaction with a screen and it works but not with the selection screen.
    So i guess this will not solve my problem. Maybe there is another way to do it...
    When we do call transaction sp01 can't we access the selection screen of SP01 and put the field for output only?
    Regards,
    Pedro Bessa

  • How to deny users to call standard transaction variant

    Hello!
    We have created a variant transaction (ZME52N) for ME52N, and do not
    want give authorization to the transaction ME52N for end users.
    We unchecked the authorization check in the SE97 for ZME52N-ME52N pair so the authorization check for ME52N does not take place in the function module AUTHORITY_CHECK_TCODE.
    However, we noticed that both calling and called transaction is ME52N in the the function module AUTHORITY_CHECK_TCODE, when we executed the variant transaction ZME52N, and obviously the auth check failed.
    Is there a way to lock / disable the ME52N instead of uncheck the authorization ?
    Thanks in advance!
    Regars,
    Daniel

    >
    Daniel Kaoro Kobashigawa wrote:
    > But this is the point. He wants to disable ME52N for everybody and use the ZME52N instead of ME52N.
    Well, I read your question different, you state "We have created a variant transaction (ZME52N) for ME52N, and do not want give authorization to the transaction ME52N for end users. "  End users for me is non-technical support for SAP.  ME52N will not work for user IDs with SAP_ALL and these are not your typical users.  If this is your goal then SM01 is what you want.

  • Calling custom dialog screen from Standard Transaction(user Exit)

    Hi, I'm calling Standard Transaction from a Custom Screen. I'm calling a custom screen again with in standard transaction (implemented custom screen thru user exits using macros). But when I click 'continue/cancel' in the custom screen, control is going back to main cutom screen rather go back to standard transaction. Could anyone please help me out how to come back to standard transaction from custom screen rather going back to main cutom screen.
    ***INCLUDE LZ_R_FORWARD_FORWARD_LOADI01 .
    *&      Module  USER_COMMAND_9000  INPUT
    MODULE user_command_9000 INPUT.
      CASE sy-ucomm.
        WHEN 'EXEC'.
          PERFORM validate_popup_data.
          IF flag_error_screen NE 'X'.
            MOVE-CORRESPONDING ZFFL_POPUP to var_ZFFL_POPUP.
            clear flag_return.
            SET SCREEN 0.
            LEAVE SCREEN.
          ENDIF.
        WHEN 'CANC'.
          flag_return = 'X'.
          SET SCREEN 0.
          LEAVE SCREEN.
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    *&      Module  exit_9000  INPUT
    MODULE exit_9000 INPUT.
      CASE sy-ucomm.
        WHEN 'CANC'.
    *      MOVE perf_flag TO lbpla_exist_flag.
          flag_return = 'X'.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    ENDMODULE.                 " exit_9000  INPUT
    Thanks in advance.

    Hi
    So the command SET SCREEN 0. LEAVE SCREEN. should "place" the program just after the calling of the popup so here:
    FUNCTION z_call_screen.
    * Call the Pop up screen
        CALL SCREEN 9000 STARTING AT 35 05.
    "<------------------------- The program should be here after going back from popup 9000
    ENDFUNCTION.
    Is it true?
    Max

  • Call standard SAP transaction in BSP

    Hi guys,
    I am working in WAS 6.20.
    We have separate server for WAS and records fetched from R/3 server.
    Now the requirement is i have to call a standard SAP transaction and the output of the standard transaction should be displayed in the BSP output.
    Is it possible to call a SAP standard transaction in WAS 6.20.
    Is it possible to display the same output in the BSP screen.
    Above to all, displayed output should be refreshed automatically for every 20 minutes.
    I come with lot of doubts, expecting your reply.
    Hopefully waiting for yours reply.
    Saravanan. V

    Hi,
    Pls check threads like
    calling STD SAP transaction in BSP
    Calling R/3 Transaction from BSP
    Calling standard R/3 transaction from BSP
    Calling an SAP transaction from a BSP page
    Calling ITS transaction from BSP
    Can we call standard transaction from bsp
    Eddy
    Pimp up the S(D)N site and earn points. Check this <a href="/people/eddy.declercq/blog/2007/02/01/pimp-up-the-jam log</a> for details

  • Call a ABAP webdynpro application from a standard transaction.

    Hi Gurus,
    Can we trigger a webdynpro application on a click of button from a standard transaction as IW31 and pass some of the parameters?
    If so, how do we do that?
    Please let me know.
    Thanks,
    Das

    Hi,
    You can trigger the webdynpro application on click of a button.
    construct the URL dynamically or you can use the URL of the application present in WebDynpro application(if you are sure that if this application run only in this system).
    We can display the application either in standard screen using HTML control or we can also open the browser on click of a button on standard screen using the code:
    call method cl_gui_frontend_services=>execute
    exporting
    application = 'www.google.com'
    exceptions
    others = 1.
    For passing the parameters to the application:
    1. Create the parameters in the default interface plug of the application.
    2. Associate the parameters to the WebDynpro application
    3. Pass the parameters to the application by appending to the URL like (&para1=abc&para2=def).
    Best regards,
    Suresh
    P.S. we can define the parameters in the Webdynpro component by defining the importing parameters in the default interface view's inbound plug's method. If we define the importing parameters in the inbound plug (for example DEFAULT plug of the window) then they are visible in the parameters tab in the WD application.
    We can receive the parameters in the inbound plug method (HANDLE<plugname>) of the window (interface view associate in application).
    Message was edited by:
            Suresh Honnappanavar

  • How to call Custom screen in standard transaction on same session

    Hi ,
    I am getting this Problem.
      After one of the screen in standard Transaction (CV01N) I need to call one custom screen. for this I created one program type M with screen. in Stan. transaction I am calling like Call transaction 'XXXX'(for above M program).here I am geeting all my required functionality .but I am getting this custom screen in separate session. I want to call this custom screen on same session of std transaction ( means background custom screen is std.screen).
    Can any one guide me to achive this functionality;
    Regards,
    Saida.

    Hi Agasti,
      Thnx for your reply.
      I tried that method also. even that also calling the Custom screen in new session not in SAP standard session.
    Regards,
    Saida

  • Does BAPI call the validations defined for standard transactions ?

    Hi Experts,
    Can anyone tell me if BAPI handles the validations defined for standard transactions ? I have a standard transaction KB15N. Validation defined for a field works fine when run thorugh the transaction. But if same data is updated using BAPI , validations are not getting called and wrong data is updated in the system.
    Could you please confirm if BAPI handles validations ? If yes, how to take care of it ?
    Best  Regards,
    V joshi

    Hi Thomas,
    Thanks for your quick reply.
    I have following condition in the prerequsite of validation
    Prerequsite :      Transaction code = 'KB15N'
    check :               Sr cost element > '90000000' AND Sr cost element < '9ZZZZZZZ'
    I am using BAPI  'BAPI_ACC_MANUAL_ALLOC_POST'  for posting.
    Do i need to modify the pre-requisite  condition ? Kindly guide.
    Regards,
    V Joshi

  • Calling custom badi in standard transaction

    Hi,
    Badi is used for enhancements . To enhance the sap standard things there will be some badi definitions avilable .
    To activate that definitions we have to implement the badi.Some times we will define the badi in se18 and we will implement in se19. How can we call the custom badi which are created and implemented by us in standard transaction.
    Regards,
    karthick

    Hi
    The custom BAdI will be called when the BAdI definition is getting called.
    You can put a breakpoint in any method of your custom BAdI, if the BAdI definition is getting called then it will stop at your breakpoint.
    You can also check the BAdI definitions which are getting called by putting breakpoint at method get_instance of class cl_exithandler.
    Best Regards,
    Nikhil Patil

  • Find the call to workflow in standard transaction

    Hi,
    I have a standard transaction VD02 for SD module.
    How to know from where it launches a workflow?
    When I put the SAVE button int transaction, the isn´t send. The coupling of events is correct.
    Thanks

    I simulate a event in SWUE with workflow destination and I see in SWEL that the trace is OK, but when I press Save button in transaction, the workflow not send.
    I watch, when I press SAVE button in VD03 transaction, trigger CHANGED event FROM standard object BUS1006. The SWEL transaction say to me: "No report recept" because in the workflow I have TOAPROBE event from ZESRKNVV object.
    I watch a diferent REPORT CONTROL in TRACE for production environment and development environment. In production the process is correct,
    how I can change the program that does the workflow launches?

  • How to call 2 transactions in a single screen

    Hi All,
    I need to call 2 Standard transaction in a single screen.
    ie: 1 transaction should be displayed in first half of the sceen and another transaction should be in the next half. How we can do this.
    Thanks
    Partha.

    Attach two subscren in that screen and call the transactions from the seperate subscreens.

  • HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?

    HI,
    HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?
    thanks,
    samba.

    By selection screen, what do you mean?   There is no selection screen in WDA as there was in classic dynpro. Do you mean you are using the Select-Options reusable component?  Are you wanting to call a standard transaction via ITS - SAPGUI for HTML?  Please provide more details to your question.

  • Creation of Generic business Object for a standard transaction

    Hi,
    We have a requirement where we are depreciating the assets (standard transaction ABAA) using a custom BDC program. We need to maintain a history (called audit trail) for the particular asset that has been depreciated using this program. For this audit train we have been asked to use "Generic Business Object" in transaction code ABAA.
    Unfortunately, Generic object services are not available in this transaction code. Can you please suggest me how to create "Generic Business Object" for a particular standard transaction code. Also, we have show the details of custom workflow that follows the approval process in order to depreciate the asset. how to show this workflow details using Generic Business Object. This is a very critical issue, any help will be very help ful.
    Please let me know should you require more information on this topic.
    Thanks,
    Ashish

    this is already answered in the forum, and also explained in the sap library

Maybe you are looking for

  • Non-English text in Books?

    Hi there, Does anyone knonw if Apple accepts orders for books featuring text in other languages than English Or for the service provided in the States that's the only choice? Thanks! Alexey

  • How to enable root user in Yosemite

    I see in SEARCH how to enable root user in LION but not Yosemite. Does anyone know how? The sys prefs button choices is different so can't find out how to do.

  • Old computer died, need to import whole library/playlists to new

    My old computer died without warning last week, and thankfully I was able to recover all my music and such from my hard drive and put it on my new computer. How do I import my whole library with playlists and everything into my new iTunes? I spent to

  • Hide find bar a) add-on not working b) add to preferences please?

    The "hide find bar" add-on doesn't seem to be working with Firefox 25.0.1. It seems to be compatible, and is in the add-on tool bar, so perhaps the find bar has been implemented differently in this version of Firefox? Anybody know if there's a fix, o

  • Lumia 720 Touch screen error

    Hi everyone! So, my lumia 720's touch screen is not respondig. I tried to reboot my pohne. The result is, that it was hard to enter the SIM PIN, because the screen won't respond again. After I succeed to enter the pin code, I had to enter my lock scr