To call SAP TCode

Hi,
    Is there any way to call SAP standard transaction (tcode) in webdynpro?
    Actually here goes my requirement. If I click a button, it should go to a specific transaction.
Regards,
Kalai.

Hi,
    Thanks for ur reply.
    Actually I dint want to display the standard transaction in my screen. But I would like to design my own screen which looks similarly as standard transaction but without some fields and functionalities.
   Also, if I give some input, it should do the same functionality as standard transaction.  Such as retrieving values, updating values, listing all possible values(using F4) and updating values in the table in R3 System.
   Is it possible to do this?? If so, Kindly suggest me some ways to do this.
Regards,
Kalai.
Message was edited by:
        Kalaivani Pachiappan

Similar Messages

  • Calling SAP Tcode on Button click

    Hello All,
    i want to call SAP Tcode on click of button.
    below is the code for the same,
    data l_componentcontroller type ref to ig_componentcontroller .
      data l_api_componentcontroller type ref to if_wd_component.
      data l_sapgui_manager type ref to cl_wdr_sapgui_integration.
      l_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
      l_api_componentcontroller = l_componentcontroller->wd_get_api( ).
      l_sapgui_manager = l_api_componentcontroller->get_sapgui_manager( ).
      if l_sapgui_manager is not initial.
        l_sapgui_manager->fire_start_transaction( transaction = 'SE38' ).
      endif.
    But the object l_sapgui_manager  is not getting instantiated. please let me know if i am calling the right method or  the code is wrong???
    Regrads,
    Chandra

    Hi Chandra,
    You need to Initialise the  l_sapgui_manager before you are accesing. see the folowing code i initialised my select options component.This code can be obtained from Wizard also. I hope this will help you.
    Please do this in the WDDOINIT of component controller. So that it will be inistatiated before you are accessing the component.
    ** initialize select options component for query creation
      lr_cmp_usage = wd_this->wd_cpuse_sel_options( ).
      wd_this->usage_name = lr_cmp_usage->name.
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      l_ref_interfacecontroller = wd_this->wd_cpifc_sel_options( ).
      wd_this->mr_selopt_helper   = l_ref_interfacecontroller->init_selection_screen( ).
    Warm Regards,
    Vijay.
    Message was edited by:
            Vijaya Bhaskarudu Gangisetty

  • Call SAP TCODE in a view

    Hi,
    I want to call a TCODE CS03  and skip first screen in a view based on a linkto action???
    I have done this..But a new  window/browser is opened for CS03....But I want to call in view itself.....
    Is it Possible?
    Thanks,
    Ganga

    Check these links
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0018077-f0c9-2b10-87af-eb9bb40776d4?QuickLink=index&overridelayout=true
    How to close parent window in Webdynpro applications?.
    http://help.sap.com/saphelp_nw04s/helpdata/en/45/19bf8c16f25d7ae10000000a11466f/content.htm
    CREATE_EXTERNAL_WINDOW to call another WDA but close current WDA
    Regards
    Srinvias

  • Calling sap tcode inback ground processing

    how to call sap tcdoe se38 in back ground processing.
    is - submit se38 - is enough.

    hi
    you cannot submit a t-code.
    you have to submit an executable program
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/content.htm
    or
    create a t-code for your report and then call the tcode.
    thx
    pavan

  • Rfc code to call  any sap tcode  in excel macro

    Hi all,
             We are trying call sap tcode in excel macro programm using RFC.
             Can any one  send me sample code for this?
             This is urgent.points will be rewarded.
    regards,
    Shyam

    Hi harish kollipara
    you should create the FM in the B system, that return some data that you can catch in system A after have called the FM.
    check this link for the function:
    http://help.sap.com/saphelp_nw04/helpdata/en/f9/3f69fd11a80b4e93a5c9230bafc767/frameset.htm
    CALL FUNCTION 'NAME OF FUNCTION' DESTINATION rfc_destination_name
    importing ...
    exporting ...
    EXCEPTIONS
    system_failure = 1
    OTHERS = 2.
    hope this help you
    Marco

  • How To call a Tcode From a Program and returning back ?

    Dear All,
    I have a requirement, i have to show all the open orders as in the the tcode va05  and return back to the my program. so how to display the tcode and getting back to my program. please help?

    Hi,
    Basic syntax to call the transaction is:
    SET PARAMETER ID <id name> FIELD <filedname>.
    CALL TRANSACTION <TCOde> AND SKIP FIRST SCREEN.
    If your are using ALV then snippet is :
    FORM user_command  USING okcode    LIKE sy-ucomm
                           lselfield TYPE slis_selfield.
      CASE okcode.
        WHEN '&IC1'. " SAP standard code for double-clicking
          CASE lselfield-sel_tab_field."check if double click is only on
            WHEN 'ITAB-AUFNR'."aufnr not on any other field
              SET PARAMETER ID 'ANR' FIELD lselfield-value.
              CALL TRANSACTION 'IW32' AND SKIP FIRST SCREEN.
          ENDCASE.
      ENDCASE.
    Endform.
    Pooja

  • Smartforms:Can i call a Tcod from Driver Prg 4 its o/p 2 be appended

    Hello Smartform Gurus
    I need 2 call 1 tcode from my Driver prog ,which has report o/p that is 2 be appended in my Smartform o/p as a
    appended page .
    Is it possible at all ?
    plz throw some light on this .
    thnx
    Moni

    Hi Moni,
    of course there are several ways to reach your goal.
    I have assumed:
    - your smartform is based on a SAP-document
    - document output is based on standard output determination with output messages
    This is defined in customizing (SPRO) at several places or combined in NACE.
    Anyway, create additional output just after smartform output, take care of same printer, spool name and so on ->  you will end with one (combined) spool request.
    Have a look for output messages, if you are unsure how to get a 'simple' smartform output.
    Regards,
    Christian

  • Calling SAP from javascript code

    hi
    I have come across a piece of  JS code where  an SAP tcode is called. the code is something like this
    [https://weblogs.sdn.sap.com/weblogs/images/251875500/code.JPG]
    I have read about the  JS function  activex object in the net. the parameters to this function are library.object and servername . In the above example we are not passing the servername. As for the library and object we are passing SAP.functions
    I want to know where the library SAP is stored and all the objects available in the library.
    thanks
    sankar
    Edited by: sankara rao bhatta on May 29, 2008 9:35 AM
    Edited by: sankara rao bhatta on May 29, 2008 9:36 AM
    Edited by: sankara rao bhatta on May 29, 2008 9:37 AM
    Edited by: sankara rao bhatta on May 29, 2008 10:03 AM
    Edited by: sankara rao bhatta on May 29, 2008 10:08 AM

    DDIC objects are store in table tadir and program name are stored in trdir.
    In your codes you are calling transaction va02 for change salesorder. All depends what rights your login id have.

  • How to call SAP Webservice in standalone java program

    Hi,
    In our Java application, we want to use the SAP Webservices. I dont know much about authentication mechanism used by SAP. Can any one please help me with any sample code how to Call SAP webservice in Standalone Jave Program. I searched alot on the web regarding this, but helpless. Please help me.
    Thanks,
    Mohan

    Hi Mohan,
    You need an account for the ES Workplace. I'm afraid this is not free, e.g. check [SAP NetWeaver, Composition Subscription|https://www.sdn.sap.com/irj/sdn/subscriptions/composition].
    But I thought you wanted to play with a WSDL [you already had at hand|Sample code to access BAPI Web services from JAVA required;?

  • How to call mmpv TCODE through BDC program.

    Hi
    In my  requriment i have to create custom program through which i have to call mmpv TCODE, because mmpv closes period for indivisual company code and for large number of company code it is time cunsuming exercise. for that i that i have to creat custom program. it is having selection screen like below.
    company code                                   (marv-bukrs)
    fiscal year of current period                 (marv-lfgja)
    current posting period                         (marv-lfmon)
    fiscal year of previous period                (marv-vmgja)   
    month of previous period                      (marv-vmmon)
    fiscal year of last periodof previous year (marv-vjgja)
    last month of previoud year                  (marv-vjmon)
    allow posting to previous year           (marv-xruem)
    disallow dack posting after a change of period (marv-xruev)
    and  output should show : company codes affected,the periods closed and the current period open for posting .and also show wheather back posting allowed / disallowed for the company code.

    CALL FUNCTION 'BDC_INSERT'  "BDC_OBJECT_UPDATE
             EXPORTING
                  TCODE     = 'mmpv'
             TABLES
                  DYNPROTAB = BDC_TAB.
    hope this helps
    Warren

  • Calling SAP Transaactions in Webdynpro ABAP

    Hi All
    I have a requirement, i have 4 link to actions in view, and created different views for all links. I creat viewuielement container in mainview and i embed all views in that. Now I want to call sap transaction when i click perticular link to action and i have to display perticular transaction in that view. is it possible in webdynpro or only in portal side.
    Thanks
    Madhan.

    Hi Madan,
    Yes It is possible in WDA as well as in Portal.
    we can use ITS for tat. In View Container UI element call view in which u have to create  IFrame then set this url to the IFrame :
    http://<domain>:<port>/sap/bc/gui/sap/its/webgui?sap-client=800&~TRANSACTION=<transaction name> 
    since IFrame is deprecated u can call this in external window using Window Manager.
    reply me if u need some more clarifications..
    Thanks,
    Regards,
    Kiran

  • Calling SAP script program in BAPI and want to display in html format

    Dear All,
    I am writing bapi and calling sap script program in it.
    I want output in html format pl suggest me
    same coding is working for report giving error in sapscript only.
    types: begin of tt_html,
                 html type w3html,
           end of tt_html.
    data: list_tab type standard table of abaplist.
    SELTAB-SELNAME = 'S_INVNO'.
    SELTAB-KIND = 'S'.
    SELTAB-SIGN = 'I'.
    SELTAB-OPTION = 'EQ'.
    SELTAB-LOW =  INVOICE_NUM1.
    SELTAB-HIGH = INVOICE_NUM2.
    APPEND SELTAB.
    submit ZSDRDINVPNBRPT with selection-table seltab
    exporting list to memory and return.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = MTAB_REPORT_LIST
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
        CALL FUNCTION 'WRITE_LIST'
         EXPORTING
           WRITE_ONLY       = 'X'
          TABLES
            listobject       = MTAB_REPORT_LIST
         EXCEPTIONS
           EMPTY_LIST       = 1
           OTHERS           = 2.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    CALL FUNCTION 'WWW_LIST_TO_HTML'
           TABLES
                HTML   = MTAB_REPORT_HTML
           EXCEPTIONS
                OTHERS = 1.
    LOOP AT MTAB_REPORT_HTML.
    ENDLOOP.

    For displaying output in html format,
    u can either use BSP ( Business Server Pages)
    or Webdynpro.
    Reward if helpful.

  • How to integrate EP & SAP TCodes with ccBPM in XI?

    Hi,
    <b>Scenario:</b>
    A non-SAP system is creating a BPEL file. I have to import that file into XI & create a BPM for it. Then I have to integrate the BPM to SAP MM transactions & EP also in such a way that if user interacts with EP then the processing should take place as per the process defined in BPM.
    <b>What I know:</b>
    I have a BPEL file created from some non-SAP system & using it I have to create ccBPM in XI. Up to this point I know what to do & how to do.
    <b>Problem:</b>
    Now the issue which I am facing is that how to connect my BPM to SAP transactions. As you told us in training that for every ccBPM a Business workflow is created in SAP. So, as per my understanding, it means the workflow should get triggered when any event is created by user’s action in EP. But the problem is that how to integrate EP & SAP transactions to my ccBPM?
    Please provide your valuable inputs ASAP. It is urgent.
    Thanks,
    Shaurya

    Hi,
    By useing SAP transaction iView in EP , you can directly interact SAP transaction then where is the portion of XI and ccBPM??
    Solution is already expalined in Above blog. correct suitable blog.
    from EP you can interact Xi through Webservice , this webservice can be created from NWDS , you can edit or EJB also..
    that Webservice ,through SOAP adapter integrate the XI , in XI use ccBPM, whatever you want through RFC /BAPI you can do suitable operation in R#, here you r problem is how to call SAP transaction,..
    here please expalin what is the requirement.. or select suitable BAPI /RFC to do such operation/functionality in R3.
    i hope you got it..
    Regards
    Chilla.

  • Calling SAP REPORT

    Hi,
    I want to call SAP report from external system. How can we do that, do we ave an RFC/BAPI which submits any report and gives back results?
    Regards
    Munish Garg

    >
    MunishGarg wrote:
    > Output will in a table which will have only one field of type string or char256.
    This will limit the FM to the reports that are capable of returning such output (e.g. ABAP lists). If, for example, a report has an ALV output then I seriously doubt this would work.
    You were asking previously for essentially a universal function, which could run any report. It's not difficult to find an FM that would start a report, but data return from the report - that's where I see a challenge.
    If you're willing to limit such FM to certain types of reports then it will probably be easier/faster to create your own FM anyway. Since there is a lot riding on an assumption, I'd want more control over the program and SAP might change their FMs at any time.

  • Calling a tcode in simple report

    hi,
    I am trying to call a tcode (ME23n) in a simple report(not ALV) but problem is i am unable to SET Parameter ID (i.e. P.O. no ).  I displaying a list from an internal table even thou i am using the HIDE statement i am unable to capture the ebeln(P.O. no). please provide some sample code.
    regards
    prabhu

    I have ALV Report which calls mm02 and see the report
    REPORT Z_GET_REFRESH no standard page heading.
    type-pools : slis.
    tables : makt,
             mara.
    data : i_fieldcat type slis_t_fieldcat_alv.
    data : begin of i_makt occurs 0,
           matnr like makt-matnr,
           maktx like makt-maktx,
           end of i_makt.
    data : v_repid like sy-repid,
           g_user_command type slis_formname value 'USER_COMMAND',
           g_status_set   type slis_formname value 'SET_PF_STATUS'.
    DATA:LC_GLAY TYPE LVC_S_GLAY.
    select-options s_matnr for mara-matnr .
    start-of-selection.
      select matnr maktx from makt into table i_makt
                                  where matnr in s_matnr.
    end-of-selection.
    Fill the fieldcatlog
      perform fill_field.
    Call the FM
      perform call_fm.
    *&      Form  fill_field
          text
    -->  p1        text
    <--  p2        text
    FORM fill_field.
      data wa_fieldcat type slis_fieldcat_alv.
      clear : wa_fieldcat.
      wa_fieldcat-tabname = 'I_MAKT'.
      wa_fieldcat-fieldname = 'MATNR'.
      wa_fieldcat-outputlen = '18'.
      wa_fieldcat-seltext_l = 'Material #'.
      wa_fieldcat-col_pos = '1'.
      append wa_fieldcat to i_fieldcat.
      clear : wa_fieldcat.
      wa_fieldcat-tabname = 'I_MAKT'.
      wa_fieldcat-fieldname = 'MAKTX'.
      wa_fieldcat-outputlen = '40'.
      wa_fieldcat-seltext_l = 'Material Desc'.
      wa_fieldcat-col_pos = '2'.
      append wa_fieldcat to i_fieldcat.
    ENDFORM.                    " fill_field
    *&      Form  call_fm
          text
    -->  p1        text
    <--  p2        text
    FORM call_fm.
      v_repid = sy-repid.
      LC_GLAY-EDT_CLL_CB = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                =
      I_BUFFER_ACTIVE                   = ' '
          I_CALLBACK_PROGRAM                = v_repid
          I_CALLBACK_PF_STATUS_SET          = g_status_set
          I_CALLBACK_USER_COMMAND           = g_user_command
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
        I_GRID_SETTINGS                   = LC_GLAY
      IS_LAYOUT                         =
          IT_FIELDCAT                       = i_fieldcat
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      IT_ALV_GRAPHICS                   =
      IT_ADD_FIELDCAT                   =
      IT_HYPERLINK                      =
      I_HTML_HEIGHT_TOP                 =
      I_HTML_HEIGHT_END                 =
      IT_EXCEPT_QINFO                   =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          T_OUTTAB                          = i_makt
       EXCEPTIONS
         PROGRAM_ERROR                     = 1
         OTHERS                            = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " call_fm
          FORM USER_COMMAND                                             *
    FORM user_command USING r_ucomm LIKE sy-ucomm
                rs_selfield TYPE slis_selfield.                 "#EC CALLED
      data i_RSPARAMS like RSPARAMS occurs 0.
      CASE R_UCOMM.
        WHEN '&IC1'.
          read table i_makt index rs_selfield-tabindex.
          SET PARAMETER ID 'MAT' FIELD i_makt-matnr.
          if not i_makt-matnr is initial.
            call transaction 'MM02' and skip first screen.
          endif.
        when 'REFRESH'.
          CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
            EXPORTING
              CURR_REPORT           = v_repid
    IMPORTING
      SP                    =
            TABLES
             SELECTION_TABLE       = i_RSPARAMS
           EXCEPTIONS
             NOT_FOUND             = 1
             NO_REPORT             = 2
             OTHERS                = 3
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          submit z_get_refresh with selection-table i_RSPARAMS.
          rs_selfield-refresh = 'X'.
      ENDCASE.
      MOVE 'REFRESH' TO r_ucomm.
    ENDFORM.
          FORM set_pf_status                                            *
    FORM SET_PF_STATUS USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'ZSTANDARD' EXCLUDING rt_extab.
      SET TITLEBAR  sy-tcode.
    ENDFORM.
    For PO
    use like
    set parameter id 'BES' field ur field.
    call transaction 'ME22N'.

Maybe you are looking for

  • Flash MX Preloader for external JPGs

    Hey all! Any help would be greatly appreciated. In all honesty, I have searched and studied and worked to get this myself, which I do alot with code, etc. BUT I am going to admit I'm a "make it pretty on the outside" kind of guy, and coding makes my

  • How to call form and pass parameter from OA Page

    Hi, I have one requirement to call a custom form from OA page by clicking the button and the same time i need to pass one parameter from this oa page to that form. how to do this by personalization? i surfed lot and i got some idea, some one said "pa

  • What is this? -- unchecked call to put(K,V)

    unchecked call to put(K,V) as a member of the raw type java.util.HashMap m.put( args[0], new Double( args[1])); I have code that stores a string and a double value in a map like this: String args[]; m.put( args[0], new Double( args[1])); but I get th

  • How do I sell my Keynote presentations?

    I have several interactive, exploratory Keynote creations that I have made for my high school history students to work through.  They are much mroe than lectures.  They are game-like.  I would like to try an sell them in an iTunes or iBooks environme

  • Can I update the non-CC version of After Effects to the latest version?

    Hello! I'm fairly new to After Effects and have the disc version (I'm not a Creative Cloud subscriber but have a legitimately purchased program that came in the box).  I was looking for Advanced Spill Suppressor under the Keying Effects, and it was n