Calling TCODE on click of LinkToAction UI

HI All
I have a LinkToActionUI Element and i have a custom TCODE which i need to call on the click event of LinktoActionUI element,
is there any other way to call a TCODE from WDA
Best Regards
Chaitanya.A

Hi All
Created a TCODE for my ABAP Dynpro Application and from there[within SAP session] the following code works, but NOT from the browser
In your action use the following code.
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 = 'SE11' ).
  ENDIF.
Best Regards
Chaitanya.A

Similar Messages

  • Calling tcode using link to url

    hi friends,
    i want to call tcode SE38 in webdynpro application by using linktourl.
    here i am going to
    shuffler
    system
    webgui in internet service
    and then right click on it then 
    publish->complete service.
    and later i am going to tcode sicf
    here i am giving the path  /sap/bc/gui/sap/its/webgui and activate it
    what is the need of giving the path here
    and who is going to give the path as default....?
    can anyone explain clearlly..
    Thanks in advance
    karunakar
    Edited by: bkarunakar on Jul 19, 2011 3:56 PM

    Hi Karunakar,
    Goto SICF.
    Select the path as : /sap/bc/gui/sap/its/webgui
    right click on webgui and click on "test" to execute the servies.it will open the sap screen in web browser.
    **NOTE : if it gives an error you need to do some setting Reply if you want the steps for setting.**
    create LINK to URL or LINK TO ACTION according to requirement.
    use URL as   URL = 'http://<url>:portno/sap/bc/gui/sap/its/webgui?~TRANSACTION=SE38'. //
    "Note : you can find this url in ur WEBDYNPRO Application Properies
    lo_api_component = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    ld_url = FINAL_URL.
    CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
    EXPORTING URL = url
    RECEIVING WINDOW = lo_window.
    lo_window->open( ).
    Also check this...
    Re: Reg calling Transaction code in Webdynpro ABAP
    Cheers,
    Kris.

  • Call tcode from alv report and passing  group of values

    hi all .
    i want to call tcode from alv report and passing an internal table or group of values to a selection option of that t code ? how
    ex. passing group of GL to fbl3n and display the detials of all .
    thank you

    Dear,
    You have done a small mistake
    --> rspar_line-option = 'EQ'.
         rspar_line-HIGH = PDATE-HIGH.
    u r passing "high" value and in "option u r passing "EQ" so how it will work!!!
    So if u r passing only 1 date or more dates like 01.01.2010 , 15.02.2010 , 10.03.2010 then pass
    rspar_line-selname = 'SO_BUDAT'.
    rspar_line-kind = 'S'.
    rspar_line-sign = 'I'.
    rspar_line-option = 'EQ'.
    rspar_line-LOW = PDATE-HIGH.
    APPEND rspar_line TO rspar_tab.
    or if u r passing low & high date means in range like 01.01.2010 to 30.01.2010, then pass
    rspar_line-selname = 'SO_BUDAT'.
    rspar_line-kind = 'S'.
    rspar_line-sign = 'I'.
    rspar_line-option = 'BT''.
    rspar_line-LOW = PDATE-LOW.
    rspar_line-HIGH = PDATE-HIGH.
    APPEND rspar_line TO rspar_tab.
    try above code , hope it helps...
    i think u cannot use "call transaction using bdcdata" in ur case bcoz as u said in ur 1st post u want to display the details of all but still if u want to use then u should pass all parameters in  loop.
    PROGRAM
    DYNPRO
    DYNBEGIN
    FNAM
    FVAL
    ex:-
    LOOP AT GT_TEMP INTO GS_TEMP.
    CLEAR bdcdata_wa.
    bdcdata_PROGRAM = 'SAPXXXX'.
    bdcdata_DYNPRO = '1000'.
    bdcdata_DYNBEGIN = 'X'.
    bdcdata_wa-fnam = '''.
    bdcdata_wa-fval = ''.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_PROGRAM = ''.
    bdcdata_DYNPRO = ''.
    bdcdata_DYNBEGIN = ''.
    bdcdata_wa-fnam = 'SD_SAKNR'.
    bdcdata_wa-fval = GS_TEMP-GLACCOUNT.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_PROGRAM = ''.
    bdcdata_DYNPRO = ''.
    bdcdata_DYNBEGIN = ''.
    bdcdata_wa-fnam = 'BDC_OKCODE'.
    bdcdata_wa-fval = 'XXX'.
    APPEND bdcdata_wa TO bdcdata_tab.
    ENDLOOP.
    try above code if u r using call transaction...
    Edited by: mihir6666 on Jul 9, 2011 3:10 PM
    Edited by: mihir6666 on Jul 9, 2011 3:11 PM
    Edited by: mihir6666 on Jul 9, 2011 3:13 PM

  • Call BADI  on click of a submit button in ESS

    Hi All,
    I am trying to call a function module ( i.e through BADI ) in a different browser by clicking on a submit button in Travel & Expenses Iview in ESS ( EP 6.0 ) but i didn't see any new window/ browser opened when i clicked on submit button.
    The BADI is activated and its working fine because the same functionality is working good when i tested this through trans. code  PR_WEB_1200. When i clicked on a submit button, a new browser was opened and the form was displayed the way we want in a different browser.
    But when i tested the same in ESS, i couldn't see any new browser or window opened. If the BADI was called when i clicked on the submit button atleast a new browser has to open with a blank page.
    Please guide me, If anybody knows, how to call a function module in a new browser by clicking on a button in ESS - Portal.
    Thanks.
    Anil

    Hi Jayesh,
      You can use the BADI BBP_CUF_BADI_2 to change the display from customer-defined fields to the SAP standard screen. This BAdI enables you to control whether the fields can be edited, and how they are displayed.
    MODIFY_SCREEN method will Show/hide field display and restrict edit options.
    For more information on BADI please go to SPRO -> BADI.
    OR  View the information on BADI's.
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    Hope above proves helpful to you.
    Regards,
    Rajeshree.

  • Can i delete the new feature that shows your recent calls when double clicking the home button?

    Can the feature in the new IOS8 that shows your recent calls when double clicking the home button be deleted?

    settings - mail,contacts,calendar - show in app switcher - OFF

  • Calling Tcode Solar02 in ITS - Nodes getting Locked

    Dear all,
    To call tcode solar02, from web i am using the ITS url ,
    http://host:port/sap/bc/gui/sap/its/webgui?~transaction=solar02
    But when i access  the nodes,  through this link the nodes are getting locked automatically.
    can i use ITS url for solar02 tcode?
    Regards,
    Shamila

    you can check via SE93 if a particular transaction is ment to be worked in ITS/SapGui..

  • ? how to use something called quicktime. i click on its icon and it does nothing! i just bought quicktime 7 pro and have a registration

    i just bought a macbook pro and never used apple before. i am trying to convert my movie clips and need to use something called quicktime. i click on its icon and it does nothing! i just bought quicktime 7 pro and have a registration # and it says open quicktime and enter the reg# - how do i do this?

    When you start QT 7 player, under the first menu there is a "Registration" menu item.
    Enter your name and Registration code, THEN hit the TAB KEY. Do not click the "Buy..." button.
    That should do it.
    Make sure you have the CORRECT version of QT 7:
    http://support.apple.com/kb/HT3678

  • Question of call tcode

    I call tcode KKF1 to create an order in my program.And then call tcode KKF4 to deal with the order created before in the same program.I have used the BAPI_TRANSACTION_COMMIT to commit after KKF1.But the program still send the message "The order ******* is not exist"....Why?

    Hi,
    After BAPI commit
    CALL FUNCTION 'ENQUE_SLEEP'
         EXPORTING
              seconds        = 60
         EXCEPTIONS
              system_failure = 1.
    " Or just try this way
    WAIT UP TO 60 SECONDS.
    aRs

  • How can we call Tcode from the Portal?

    Senario:
    2 BAPI’s are developed:
    1. The information say... ABC is stored into the table from the portal using the Create BAPI.
    2. The change in this ABC information is done using a particular <b>Tcode</b> …say xyz. This is a report that calls the change BAPI inside.
    The ABC information change will be done either through the Tcode in ECC or through the EP.
    3. The Tcode has been created in ECC.
    Please let me know who will be responsible to call this tcode from the Portal and how?
    I am very very new to EP field so please help...

    Hi Jignesh,
    If you have already performed these steps and are able to see the iview that you have created. Then I think your issue has been sorted out.
    To explain it to you in detail.
    Let us suppose, you have created a SAP Transactional iview to access the TCODE-SE38.
    Now, as soon as the user clicks on the iview, it will authenticate by asking for the username and password for the backend system...if your SSO is not in place.
    Now, if your asking me how to make the iview visible.
    You can add assign this SAP transactional iview to a page,a workset or a role and add the corresponding page, workset or role to the user in USER ADMINISTARTION by making it an entry point.
    Or to make the iview as an entry point, right click on the iview that you have created and open the properties, then for the option that says entry point choose yes.
    I guess that answers your question.
    Let me know if you have need any further clarifications on the same.
    Regards,
    Sandeep

  • How to call report by click application toolbar button?

    I need to know the way to call a report by click a button in application toolbar?
    BR,
    Ali
    Moderator message: next time, please (re)search yourself instead of asking basic questions.
    Edited by: Thomas Zloch on Aug 31, 2010 11:44 AM

    Hi Ali,
    Selection-screen function key is used to add push buttons on application tool bar.
    Syntax:
    selection-screen functuin key<num>
    Where num is ranging from 1 to 5.
    whenever application toolbat components are added using above statement,tables are defined in the structure "SSCRFIELDS" as "Functxt_01","Functxt_02","Functxt_03","Functxt_04","Functxt_05" for the related function key numbers.
    eg:
    Tables SSCRFIELDS.
    Selection-Screen pushbutton/10(10 lb1 user-command pb1.
    Selectiong-Screen Function key1.
    Selectiong-Screen Function key2.
    Selectiong-Screen Function key3.
    Selectiong-Screen Function key4.
    Selectiong-Screen Function key5.
    Initialization.
    sscrfields-Functxt_01 = 'first".
    sscrfields-Functxt_01 = 'fifth".
    At Selection-Screen.
    case sy-ucomm.
    When 'first'.
    Sumbit zreport.
    endcase.
    Hope it solves your problem.
    Regards,
    Amarnath S

  • Calling BAPI on click of Approve/Reject button

    Hello All,
    I have a GP Application in which the initiator fills out a form which goes for approval to the approver.....now once the Approver clicks on Approve/Reject button i want to call a BAPI to update certain fields in the R/3 ......since those 2 buttons are part of the standard SAP Visual Approval Callable Object ....please let me know if this is possible....
    Any help would be highly appreciated.
    Regards.,
    Anil

    Hello Anil!
    Basically, you have two options:
    1.) You can invoke the BAPI from your VC model when the button is clicked.
    2.) You can invoke the BAPI from the GP.
    First of all, you should consider wrapping the BAPI with a web service.
    For option 1: Import your web service into your VC model and invoke it when the button is clicked.
    For option 2: Create a callable object from you web service. In the VC you must now provide a result state, which indicates whether the approve or the reject button has been clicked. Depending on this result state you can now invoke the callable object in your GP.
    I recomment option 1.
    Best regards
    Alexander

  • Calling subscreen on click of radio button

    Hi,
    I am creating a module pool program , in which on click of a radio butto to 'YES' a subscreen should appear ( on the main screen) with few fields so that the user can input values of it.
    But I am having proble in calling the subscreen in PAI event.Actually I think it should be something like this
    Module user_command.
      case sy-ucomm.
       when rb_yes = 'X'
        { CALL SUBSCRREN CODE
    ENDIF.
    Can this be done? I f yes how? I only know how to call subscreen in PBO, but the syntax for calling subscrren is different in PAI i think.

    Hi,
    Try doing this.
    This is your flow logic in the main screen  to call the Subscreen's PBO
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0110.
    CALL SUBSCREEN TAB1_REF1 INCLUDING 'ZTRIAL' '0111'.
    In the PAI of the main screen,
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0110.
    CALL SUBSCREEN TAB1_REF1.
    Assign a function code to your radio button.
    Layout -> Attributes -> Function Code
    In the TOP include,
    DATA: v_dynnr type sy-dynnr.
    In module USER_COMMAND_0110.
    if p_rad = 'X'.
       v_dynnr = '0111'.
    else.
      v_dynnr =  ' '
    endif.
    You can check this for your reference
    [http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbabfe35c111d1829f0000e829fbfe/content.htm]

  • Call tcode and skip first screen

    hi all,
    before i think of posing a question i have searched SDN for 2days but dint get the desired results.
    so i am posting a question.
    in my prog am calling a TCODE and in that TCODE i have a mandatory field so when i say skip first screen it does not skip as their is a mandatory field.
    so i used my code like this and checked twice and i found i have value in L_PERNO and id is: EHS00PERSONID.
    i have a value in L_PERNO.
    parameter id of the tcode field is : EHS00PERSONID
    set parameter id 'EHS00PERSONID' field L_PERNO.
    CALL TRANSACTION 'ZEDIT' AND SKIP FIRST SCREEN .
    but it does not set the value... what am i missing still to get it done can i have some input pls.
    thanks a lot in advance,
    pasala.

    Hi Pasala,
    You have done everything right and your program will work with simple addition.
    Just add the statement below in your transaction 'ZEDIT' in PBO of screen on which mandatory field exist.
    get parameter id 'EHS00PERSONID' field 'XXX.'
    where XXX is the name of mandatory field on the screen.
    Amit Singla

  • Calling URL when click on buttons using web dynpro - ABAP

    Hi All,
    I am new to web dynpro application development and i am facing issue when i try to test my application.
    simple require when i click on button i should direct the to one of url say 'http://www.google.co.in/' my application is activate with no error but when i test the application i am getting below error , can someone please provide me the solution or way out.
    The URL http://ides47:8062/sap/bc/webdynpro/sap/zwa_calling_url/ was not called due to an error.
    Note
    The following error text was processed in the system N6Q : Access via 'NULL' object reference not possible.
    The error occurred on the application server IDES47_N6Q_62 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WDR_CONTEXT_MENU_HANDLER~CONTEXT_MENU_CALLED of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: IF_WDR_CONTEXT_MENU_HANDLER~CONTEXT_MENU_CALLED of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: IF_WDR_ADAPTER_EVENT_HANDLER~HANDLE_EVENT of program CL_WDR_CONTEXT_MENU_HANDLER===CP
    Method: IF_WDR_CLIENT~GET_CLIENT_UPDATES of program CL_WDR_CLIENT_SSR=============CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    HTTP 500 - Internal Server Error
    Thanks,
    Parab

    Hi ,
    It seesms something you are missing. It would be easy for us if you could paste your code which you have written in the Action of Button.
    Sample code for your reference :
    METHOD onactionget_url .
    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.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
      EXPORTING
        URL            = 'http://www.google.co.in/'
        MODAL          = ABAP_FALSE
        HAS_MENUBAR    = ABAP_TRUE
        IS_RESIZABLE   = ABAP_TRUE
        HAS_SCROLLBARS = ABAP_TRUE
        HAS_STATUSBAR  = ABAP_TRUE
        HAS_TOOLBAR    = ABAP_TRUE
        HAS_LOCATION   = ABAP_TRUE
      RECEIVING
        WINDOW         = lo_window.lo_window->open( ).
    ENDMETHOD.

  • Call tcode KSB1 in a custom program and modify its output

    I was searching the forum for finding a way to create a program that has all details from KSB1 and some details from CJ13 (WBS details) and found some related posts. But none of the posts had any details on how to actually achieve this.
    I have to do a similar thing of getting the KSB1 output and add WBS details for each line item and then give the final output.
    If you have already done this before, please elaborate on the steps how you achieved it.
    Please specify the SUBMIT that you had written to call KSB1. If I can have all details from KSB1 in my memory, then I can read that in my program and add WBS details and give the output.
    Below is what I am doing but it gives the same error as one of you had - transaction code not defined.
    DATA: FCODE TYPE SY-TCODE VALUE 'KSB1'.
    SUBMIT RKAEP000 WITH SY-TCODE = FCODE.
    Any help would be appreciated. Thanks.
    Regards,
    Shipra

    Hi,
    try this code it will work..
    the data is stored in txtlines format the data by the field wise.
    * Data Declaration
      DATA:lt_listobject TYPE TABLE OF abaplist,
        l_tab_lines TYPE i.
      DATA: txtlines(1024) TYPE c OCCURS 0 WITH HEADER LINE.
      SUBMIT rkaep000                      "the program name
         USING SELECTION-SET 'BPC TEST'          "Pass varint BPC Test
               EXPORTING LIST TO MEMORY AND RETURN.
    * Read list from memory into table
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = lt_listobject
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc  0.
    *   Error in function module &1
      ENDIF.
    *Spool content in Ascii format
      CALL FUNCTION 'LIST_TO_ASCI'
        TABLES
          listobject         = lt_listobject
          listasci           = txtlines
        EXCEPTIONS
          empty_list         = 1
          list_index_invalid = 2
          OTHERS             = 3.
      CALL FUNCTION 'WRITE_LIST'       "Display report same as in KSB1... else not required
      TABLES
        listobject = lt_listobject
      EXCEPTIONS
        empty_list = 1
        OTHERS     = 2.
    CALL FUNCTION 'LIST_FREE_MEMORY'
      TABLES
        listobject = lt_listobject.
      LOOP AT txtlines.   "data will be stored in this..
        " split the txtlines-tdline with | and move into another internal table and do the validation...
      endloop.
    Prabhudas
    Edited by: Prabhu Das on May 20, 2009 11:28 PM

Maybe you are looking for

  • HDMI vs Mini DP vs DVI vs Thunderbolt

    I have a mid-2009 MacBook Pro with 8GB of RAM and a 2.26 GHz processor. When I connect to an external monitor and try to watch videos on youtube or netflix, I get choppy quality. This does not happen on my laptops display even while the external moni

  • Opening Balance Missing from Trial Balance

    Hi Experts, I have a query with the calculation of the Trial Balance in SAP.  I have the following simple scenario: G/L Account 101010 is a Balance Sheet account and has 2 entries: £50 Debit on 01.08.08 £1000 Debit on 20.08.09 I think it is fair to s

  • Confused by the removal of aggregate/index tables in HANA

    Hiya, I've heard that HANA removes the need for aggregate and index tables like BSIS, BSAS, VRPMA etc. Is HANA smart enough to do this? Or does Simple finance (sFIN) do this? I mean if we were to replace our Oracle DB with HANA would the index tables

  • Best way to label PDFs?

    This is a workflow and productivity question for Acrobat - Our organization keeps many PDF maps on our intranet, generated from engineering software. The documents don't have visible titles when viewed in the browser or when printed. What would be th

  • Create new report in report painter

    Hi Can any body let me know the steps for creating new report in report painter. Thanks in advance Prasad