Skip to Content
author's profile photo Former Member
Former Member

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 03, 2009 at 07:49 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 03, 2009 at 10:53 AM

    Hi All is there any other way to achieve the same process in browser also

    Best Regards

    Chaitanya.A

    Add a comment
    10|10000 characters needed characters exceeded

    • By TCODE I assume you mean a transaction code for a classic dynpro application. You can't just start the SAPGUI for Windows from Web Dynpro I'm afraid - which is what you would normally use to display a transaction code. If you are using the portal or the netweaver business client, you can use the Portal APIs to trigger portal navigation and go to a classic dynpro based iView. If you aren't using these tools, then you can use the SAPGUI for HTML via the integrated ITS. The SAPGUI for HTML transforms classic dynpro applications into HTML allowing them to run from the browser. Each classic dynpro transaction can be accessed via URL. This allows you to navigate to SAPGUI for HTML URLs via normal linkToURL UI element in Web Dynpro ABAP or via an Exit Plug fired from a LinkToAction.

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2009 at 03:27 AM

    closed

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.