Create a link to standard transaction from button in a view

I have a requirement to create a link to a standard sap transaction when clicking a button in the view.
The button should say "Change Salesorder" and when clicking the button the user should see a new window opening where the VA02 transaction is opened in SAP GUI html.
How can i achieve this?

Hi Snowroller,
Please go through this...
http://sapignite.com/call-sap-tcode-using-webdynpro-for-abap/
Call a custom SAP transaction in WD application ?
Web Dynpro ABAP call transaction in the foreground
Cheers,
Kris.

Similar Messages

  • How to create F4 for the standard transaction

    Hi all ,
    How to create F4 for the standard transaction for a particular field .
    Bye

    Santosh,
        You can create F4 values for a field in a standard Transaction .
    1. First search for a standard search help meeting your requirement .
    2. If you don't find one, create your own custom (z) serach help .
    ( 1 is preferable )
    After that, include that serch help to the standard field in the transaction .
    For this u need to go to the screen
    ( F1->F9-> screen-> Field )
    Click on the property of the field and include the search help .
    You ll require the access key from the basisi guys as u r changing standard .
    Hope it helps,
    ~ laxmi
    Reward for helpful answers

  • Oracle apps 11i - customization in Create Timecard link in Standard OTL page

    Hi everyone,
    I have got a requirement to add some functionalities in oracle 11i - Create Timecard link in standard OTL page .Mentioned below is the Requirement.
    When the engineer clicks the 'Save' button in the create timecard link in OTL page, it should save the time card and check the status of the timecard.If the specific timecard being saved is either "approved" or
    "submitted", a pop-up notification should warn the Engineer.
    Warning:
    "Warning – By clicking yes, all previously submitted versions of this timecard will be retracted. The Timecard will need to be resubmitted and reapproved. Are you sure you wish to continue? Yes, No"
    If engineer clicks YES, then an email notification should send to engineer and Manager ,notifying them that the timecard has been retracted and will need to be resubmitted.
    If the timecard has never been saved before or is currently pending or rejected let the engineer save the timecard without showing the warning and normal process should follow.
    Can anyone help me out here.I wanted to know the complexity of the issue.
    Which method should be adopted to do this.? Can anyone tell me which logic needs to be implemented here.
    Thanks,
    Sukanya

    Hi Kristofer,
    When the Employee pressed the Save button and if the status of timecard is Approved/Submitted , a popup should display.
    I have created a page with two buttons (Yes and No) with  warning  "By clicking yes, all previously submitted versions of this timecard will be retracted. The Timecard will need to be resubmitted and reapproved. Are you sure you wish to continue?"..
    If Employee pressed Yes...I need to save the timecard and normal process should follow..
    Here even if I called the PFR of the TimecardListCO(Standard) controller, It's not working.
    Is there a way to create the page dynamically with two buttons ?So that I can write the code in the extended controller itself rather than creating a new page.
    Which method should I follow to implement this?
    Kindly provide your suggestion...
    Thanks,
    Sukanya

  • 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.

  • Create a link to a page from a report query

    version Application Express 3.2.0.00.27
    I have done this 10s of times but for some reason its not working this time.
    I am creating a link in a report sql query region. When the user clicks on one of the rows in the sql rpt region, it will take them to the page where they can edit the record selected. I select edit the report attribute in the report region, then select the column that will display as the link. It is the column that is the pk(app_id).
    I go to the column link section. I enter the target page(8), select what icon to display, enter the item name that is the target for a value in page 8(P8_APP_ID).
    And finally I enter the value that will be copied to P8_APP_ID. That is I enter #APP_ID#(row item from source page). I then run the page and click a row in the rept region(page 6). HOwever I get an error of ORA-01403: no data found. I look at what value was copied into the targe page item and its not what I expected.
    I go back and verify I set up the link correctly but this is what I see for the page item and value to link to and copy its value.
    Instead of P8_APP_ID and #APP_ID# as I entered, the #APP_ID# is getting changed to &APP_ID. I can't figure out why this is happening!!! Every time I enter
    #APP_ID#, APEX is changing it to &APP_ID.
    Any ideas folks?

    It doesn't sound like a good idea to me to use your own APP_ID. APP_ID is already the application ID of the current application.
    Give app_id in your query an alias and see if that works.

  • How to create a link to come back from OBIEE to EBS

    Hi,
    I have successfully integrated OBIEE with EBS.
    While clicking on the obiee responsibility, it is taking to Dashboard.
    I want to create a link to get back to EBS.
    How can I achieve this?
    I want to add a home link for this in the main bar.
    Thanks,
    Kavitha

    Hi,
    No error message displayed.
    Just showing no results found.
    When I checked the query from sqlplus, it is also showing no rows selected.
    I tried like this.
    exec APP_SESSION.validate_icx_session('got the cookie value from EBS')
    SELECT
    HEADER_ID,
    fnd_run_function.get_run_function_url(
    CAST(fnd_function.get_function_id('ISC_ORDINF_DETAILS_PMV') AS NUMBER),
    CAST( VALUEOF(NQ_SESSION.OLTP_EBS_RESP_APPL_ID) AS NUMBER),
    CAST( VALUEOF(NQ_SESSION.OLTP_EBS_RESP_ID) AS NUMBER),
    CAST( VALUEOF(NQ_SESSION.OLTP_EBS_SEC_GROUP_ID) AS NUMBER),
    'HeaderId='||HEADER_ID||'&pFunctionName=ISC_ORDINF_DETAILS_PMV&pMode=NO&pageFunctionName=ISC_ORDINF_DETAILS_PMV',
    NULL) as ORDER_HEADER_ACTION_LINK_URL
    FROM OE_ORDER_HEADERS_ALL
    //showing no rows selected.
    Thanks,
    Kavitha

  • IC WebClient: Launch transaction from button

    Hello,
    I'm able to launch a BOR method with GUI of a backend ERP-system from the navigation bar of the IC WebClient using the transaction launcher functionality.
    Does anyone know how to launch GUI-BOR methods from a "normal" button in a view instead of the navigation bar?
    Regards,
    Christian

    Actually all events on Navigation bar would be taken care by its controller class 'CL_CRM_IC_NAVBARVIEW' .
    You are trying to launch a transaction inside a BSP view by clicking on a button,look at this controller class and its methods especially method NAVIGATE_VIA_LTX_ID to get some understanding.
    Thanks,
    Thirumala.

  • How to create custom routine in standard transaction

    Hi all,
           Can anybody suggest me how to write a custom routine in a standard transaction?
    My Requirement : In standard transaction ' VTFL ',  For each target and source there will be a standard routine assigned, for COPYING REQUIREMENTS. Each routine serves a particular functionality.  I need to develop a new functionality. For that, I need to develop my own routine. 
    Please give me an idea of how to develop a custom routine and include that routine in this standard transaction ( VTFL ).
    Any Suggestions are appreciated.
    Thanking you in advance,
    Regards,
    Murali Krishna T

    Piyush,
    The best way is to create a region in Jdeveloper and import it to server.
    Finally create a flexible region using personalization and specify the path the Custom region.
    This will help you to have a better control as well as alignment issue to be resolved.
    Regard,
    Gyan

  • Launch SAP Transaction from UWL and decision views

    Hi,
    Q1:
    we wan't to launch a SAP Transaction from the Universal Worklist. Does anyone know how to do this explicitly?
    Q2:
    I have tried to add decisions directly to a List View, i.e. with the reject and approve columns. The columns do appear, but the checkboxes are not visible. From the log I can see a warning "No Custom Attribute exists for item ...".
    The three options do appear correctly when you go to the details view for the item, and I did apply the same values for the actions (1,2,3).
    Does anyone know how to do this?
    PS! I have read the How To document, but could not find the answer there, nor in this forum.
    Thanks,
    Mikkel

    I did fix question 2 above.
    Still don't have a solution on how to launch a SAP Transaction. XML transcript below:
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'>
    <UWLConfiguration version="1.0">
         <ItemTypes>
              <ItemType name="uwl.task.webflow.decision.SAP_R3_HumanResources_TS20000131" connector="WebFlowConnector" defaultView="TripApprovalView" defaultAction="viewDetail" executionMode="pessimistic">
                   <ItemTypeCriteria systemId="SAP_R3_HumanResources" externalType="TS20000131" connector="WebFlowConnector"/>
                   <Actions>
                        <Action name="1" userDecision="yes" handler="UserDecisionHandler"/>
                        <Action name="2" userDecision="yes" handler="UserDecisionHandler"/>
                        <Action name="3" userDecision="yes" handler="UserDecisionHandler"/>
                   </Actions>
              </ItemType>
              <ItemType name="uwl.task.webflow.decision.SAP_R3_HumanResources_TS20000135" connector="WebFlowConnector" defaultView="TripCheckView" defaultAction="viewDetail" executionMode="pessimistic">
                   <ItemTypeCriteria systemId="SAP_R3_HumanResources" externalType="TS20000135" connector="WebFlowConnector"/>
                   <Actions>
                        <Action name="1" userDecision="yes" handler="UserDecisionHandler"/>
                        <Action name="2" userDecision="yes" handler="UserDecisionHandler"/>
                   </Actions>
              </ItemType>
              <ItemType name="uwl.task.webflow.SAP_R3_HumanResources_TS40007901" connector="WebFlowConnector" defaultView="TimeApprovalView" defaultAction="launchSAPAction" executionMode="pessimistic">
                   <ItemTypeCriteria systemId="SAP_R3_HumanResources" externalType="TS40007901" connector="WebFlowConnector"/>
                   <Actions>
                        <!--
                        <Action name="launchSAPAction" userDecision="no" handler="SAPTransactionLauncher" referenceBundle="launch_sap">
                             <Properties>
                                  <Property name="GuiType" value="WinGui"/>
                             </Properties>
                        </Action>
    -->
                        <!--
                        <Action name="launchSAPAction" userDecision="no" handler="SAPTransactionLauncher" referenceBundle="launch_sap">
                             <Properties>
                                  <Property name="myfunc" value="CATS_APPR"/>
                             </Properties>
                        </Action>
    -->
                   </Actions>
              </ItemType>
         </ItemTypes>
         <Views>
              <View name="TripApprovalView" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.decision.SAP_R3_HumanResources_TS20000131" columnOrder="attachmentCount, detailIcon, subject, priority, creatorId, createdDate, dueDate, approveCol, reviseCol, rejectCol" sortby="priority:descend, dueDate:ascend" tableDesign="ALTERNATING" visibleRowCount="10" headerVisible="yes" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" actionRef="" refresh="300" dueDateSevere="86400000" dueDateWarning="259200000" emphasizedItems="new" displayOnlyDefinedAttributes="yes" actionPosition="both" referenceBundle="tasks">
                   <Descriptions default="Approve Trip">
                        <ShortDescriptions>
                             <Description Language="no" Description="Godkjenning Reise"/>
                        </ShortDescriptions>
                   </Descriptions>
                   <DisplayAttributes>
                        <DisplayAttribute name="approveCol" type="radiobutton" actionRef="1" hAlign="CENTER">
                             <Descriptions default="Approve">
                                  <ShortDescriptions>
                                       <Description Language="no" Description="Godkjenn"/>
                                  </ShortDescriptions>
                             </Descriptions>
                        </DisplayAttribute>
                        <DisplayAttribute name="reviseCol" type="radiobutton" actionRef="2" hAlign="CENTER">
                             <Descriptions default="Revise">
                                  <ShortDescriptions>
                                       <Description Language="no" Description="Returner"/>
                                  </ShortDescriptions>
                             </Descriptions>
                        </DisplayAttribute>
                        <DisplayAttribute name="rejectCol" type="radiobutton" actionRef="3" hAlign="CENTER">
                             <Descriptions default="Reject">
                                  <ShortDescriptions>
                                       <Description Language="no" Description="Avvis"/>
                                  </ShortDescriptions>
                             </Descriptions>
                        </DisplayAttribute>
                   </DisplayAttributes>
                   <Actions>
                        <!--
                        <Action name="1" userDecision="yes" handler="UserDecisionHandler"/>
                        <Action name="2" userDecision="yes" handler="UserDecisionHandler"/>
                        <Action name="3" userDecision="yes" handler="UserDecisionHandler"/>
    -->
                        <Action name="submitUserDecisions" userDecision="yes" handler="UIActionHandler" referenceBundle="submit"/>
                        <Action name="refresh" userDecision="no" handler="UIActionHandler" referenceBundle="refresh">
                             <Properties>
                                  <Property name="type" value="button"/>
                                  <Property name="onClick" value="onForceRefresh"/>
                             </Properties>
                        </Action>
                   </Actions>
              </View>
              <View name="TripCheckView" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.decision.SAP_R3_HumanResources_TS20000135" columnOrder="attachmentCount, detailIcon, subject, priority, creatorId, createdDate, dueDate,approveCol,reviseCol" sortby="priority:descend, dueDate:ascend" tableDesign="STANDARD" visibleRowCount="10" headerVisible="yes" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" actionRef="" refresh="300" dueDateSevere="86400000" dueDateWarning="259200000" emphasizedItems="new" displayOnlyDefinedAttributes="yes" actionPosition="top" referenceBundle="tasks">
                   <Descriptions default="Check Trip">
                        <ShortDescriptions>
                             <Description Language="no" Description="Kontroller Reise"/>
                        </ShortDescriptions>
                   </Descriptions>
                   <DisplayAttributes>
                        <DisplayAttribute name="approveCol" type="checkbox" actionRef="1" hAlign="CENTER">
                             <Descriptions default="Approve">
                                  <ShortDescriptions>
                                       <Description Language="no" Description="Godkjenn"/>
                                  </ShortDescriptions>
                             </Descriptions>
                        </DisplayAttribute>
                        <DisplayAttribute name="reviseCol" type="checkbox" actionRef="2" hAlign="CENTER">
                             <Descriptions default="Revise">
                                  <ShortDescriptions>
                                       <Description Language="no" Description="Returner"/>
                                  </ShortDescriptions>
                             </Descriptions>
                        </DisplayAttribute>
                   </DisplayAttributes>
                   <Actions>
                        <Action name="submitUserDecisions" userDecision="no" handler="UIActionHandler" referenceBundle="submit"/>
                        <Action name="refresh" userDecision="no" handler="UIActionHandler" referenceBundle="refresh">
                             <Properties>
                                  <Property name="type" value="button"/>
                                  <Property name="onClick" value="onForceRefresh"/>
                             </Properties>
                        </Action>
                   </Actions>
              </View>
              <View name="TimeApprovalView" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.SAP_R3_HumanResources_TS40007901" columnOrder="attachmentCount, detailIcon, subject, priority, creatorId, createdDate, dueDate" sortby="priority:descend, dueDate:ascend" tableDesign="STANDARD" visibleRowCount="10" headerVisible="yes" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" actionRef="" refresh="300" dueDateSevere="86400000" dueDateWarning="259200000" emphasizedItems="new" displayOnlyDefinedAttributes="yes" actionPosition="top" referenceBundle="tasks">
                   <Descriptions default="Time Approval">
                        <ShortDescriptions>
                             <Description Language="no" Description="Godkjenning Tid"/>
                        </ShortDescriptions>
                   </Descriptions>
                   <Actions>
                        <Action name="submitUserDecisions" userDecision="no" handler="UIActionHandler" referenceBundle="submit"/>
                        <Action name="refresh" userDecision="no" handler="UIActionHandler" referenceBundle="refresh">
                             <Properties>
                                  <Property name="type" value="button"/>
                                  <Property name="onClick" value="onForceRefresh"/>
                             </Properties>
                        </Action>
                   </Actions>
              </View>
         </Views>
    </UWLConfiguration>

  • How to create a link to another transaction on a record in ALV report.

    Hi All,
    I have an ALV report output ,if i click on any record in the report i want it to show me the details of the record which is another transaction code in my case.So basically i want to execute that T-code on clicking on the record of the ALV report.
    How can i achieve this ,please provide me the insight with same helpful examples.
    Thanks in advance,
    Swati

    Hi,
    This solution is for the ALV by Function Module Appraoch.
    You need to use the Importing Parameter I_CALLBACK_USER_COMMAND, of the FM Reuse_ALV_GRID_DISPLAY(or LIST Display) for this.
    Slis_ev_user_command TYPE slis_formname VALUE 'USER_COMMAND'.
    As this is a frequently-used Callback event, the form routine can also be passed directly in the interface by passing the user command in the IMPORTING parameter I_CALLBACK_USER_COMMAND.
    This is an exit subroutine and takes care of the Interactive aspect of the ALV. When User performs any action in the displayed ALV, Control automatically goes to this Subroutine.
    The interface of the form routine specified must be defined as follows:
                 FORM user_command  USING r_ucomm LIKE sy-ucomm
                                          rs_selfield TYPE slis_selfield.
         Parameter R_UCOMM contains the function code triggered.
         Structure RS_SELFIELD contains the following information:
    o     tabname  :      Name of the internal output table
    o     tabindex :       Index of the internal output table
    o     fieldname:      Field name
    o     endsum   :     Cursor is located on the totals line
    o     sumindex :     If >0, the cursor is located on a subtotals line
    o     value    :        Value of the field on the list
    o     refresh  :       (Exporting) List should be set up again
    o     col_stable:   (Exporting) Keep column position when list is set up    again
    o     row_stable:   (Exporting) Keep row position when list is set up again
    o     exit      :        (Exporting) Exit list (and ALV)
    o              before_action: Call before standard action execution
    o              after_action : Call after standard action execution, before list    setup
    o              ignore_multi : Internal use
    o              sel_tab_field: Internal use
    The EXIT routine is called whenever a function unknown to the ALV is   triggered or if the routine call before/after the execution of a  standard function code has been defined by interface parameter.
    Ok code for double click is &IC1 for ALV report.
    Eg:
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
    Name of the program
        I_CALLBACK_PROGRAM                    = V_REPID
    title
        I_GRID_TITLE                          = 'Details of Storing'
    calls subroutine : PF_STATUS_SET
           i_callback_pf_status_set           = 'PF_STATUS_SET'
    Calls subroutine : user_command
            i_callback_user_command           = 'USER_COMMAND'
    Overall structure of the report
           IS_LAYOUT                          = STRUCT_LAYOUT
    Passes the field catg internal table
           IT_FIELDCAT                        = I_FIELDCAT
    Passws the sort sequence internal table
           IT_SORT                            = IT_SORT
           I_DEFAULT                          = 'X'
           I_SAVE                             = 'A'
    Passes the internal table for variants
           IS_VARIANT                         = i_variant1
    fetches different events into internal table i_events
           it_events                          = i_events[]
          TABLES
    Passes data table for ALV display
            T_OUTTAB                          = I_TAB
         EXCEPTIONS
           PROGRAM_ERROR                      = 1
           OTHERS                             = 2
    *&      Form  user_command
    Form used to handle USER_COMMAND events
    rf_ucomm: Function Code
    rs      : Internal Table containing the selection information.
    FORM user_command USING rf_ucomm LIKE sy-ucomm
                              rs TYPE slis_selfield.
    data : v_mblnr like mseg-mblnr.
    case rf_ucomm.
    A custom pushbutton for record deletion is set in the GUI status.
    When a record is selected , the field BOC for that record becomes 'X'.
    The records are traced and deleted and the fields are refreshed( rs
    of type slis_selfield is refreshed)
    when '&DEL'.                 "Print button clicked.
        delete i_tab where box = 'X'.
         rs-refresh = 'X'.
    When the user selects a row and presses the Select pushbutton ( user
    defined ) from the application toolbar, the details of the document
    will be shown in another ALV list
    when '&SEL'.
      PERFORM SUB_SELECT_DOCUMENT.
      set parameter id 'MBN'  field  i_tab-mblnr.
      call transaction 'MB03'.
    Ok code for double click is &IC1 for ALV report
    when '&IC1'.
      perform sub_hotspot.
    endcase.
    ENDFORM.
    *&      Form  SUB_HOTSPOT
          text
    -->  p1        text
    <--  p2        text
    form SUB_HOTSPOT.
    message i398(00) with 'Hello'.
    endform.                    " SUB_HOTSPOT

  • How to create a link to a transaction to be started in NWBC directly

    Hello all,
    we are using the Netweaver Business Client as a central GUI for our users (CRM and ERP in use). For documentation and test purposes I would like to link the transactions/Web Dynpro applications directly from the SolMan so that the NWBC automatically starts.
    Does anyone know whether that is possible?
    It is possible to link transactions and WebDynpro to start directly in SAPGui/the Webbrowser. Is that possible with the NWBC, too?
    Thanks and regards,
    Sebastian

    Hello all,
    we are using the Netweaver Business Client as a central GUI for our users (CRM and ERP in use). For documentation and test purposes I would like to link the transactions/Web Dynpro applications directly from the SolMan so that the NWBC automatically starts.
    Does anyone know whether that is possible?
    It is possible to link transactions and WebDynpro to start directly in SAPGui/the Webbrowser. Is that possible with the NWBC, too?
    Thanks and regards,
    Sebastian

  • Problem in accessing the standard transaction from Portal through RFC

    Below is the error we are getting when we run RFC (which has P60) from the portal(JAVA webdynpro)  which inturn uses BDC to get the spool id from the standard p60(RPCEOYG0)..
    Msgid "00"
    Msgno "359"
    Msgtx "The transaction was terminated by the user".
    But if i keep the debugger inside the RFC after the call_transaction and if I press F8 then I am getting the correct output. Could some one tell me the reason behind this ?
    thanks,
    Prashanth J R

    Hi,
    It sounds to me like the BDC or some other component being called from your Z function module requires some sort of dialog interface (maybe an "Are you sure?" type message).
    When calling RFC from Web Dynpro, you should ensure that at no point in the call stack does it try to perform any dialog functions (messages, pop-up box, display screens).
    You mention that you BDC does a CALL TRANSACTION at some point, you should ensure that this isn't executed when you are calling by RFC from a Web Dynpro.
    Your Z function module should be able to execute from start to finish, returning the results without any dialog interaction.
    I might be wrong, but it sounds similar to a problem we  had a few years ago where someone had coded an "Are you sure?" message into a function module that was called from a stadard R/3 dialog screen as well as Web Dynpro in the Portal, and it broke the portal based stuff.
    Cheers,
    Chris

  • How to find the code in standard transaction from where event is trigered

    I have a configuration in SWEC, to trigger an event, when a PR is change
    For the Transaction ME52 (Change Purchase requisition), I want to go to the portion of the code, from where the function module for triggering the event is executed.
    I have learnt that F.Ms for trigerring events programatically are
    1.  SWE_EVENT_CREATE.
    2.  SWE_EVENT_CREATE_IN_UPD_TASK.
    3.  SWE_EVENT_CREATE_FOR_UPD_TASK
    So, I tried debugging the transaction ME52 by setting breakpoints at the following function modules.
    1.  SWE_EVENT_CREATE.
    2.  SWE_EVENT_CREATE_IN_UPD_TASK.
    3.  SWE_EVENT_CREATE_FOR_UPD_TASK.
    But none of these were encountered.

    Hi Sameer,
    Why not follow the reverse approach! First check the event getting triggered and then move backwards to the source of triggering the event.
    Activate event trace from SWELS and then check the event getting triggered in SWEL.
    I doubt if putting break-points in the FM would help...
    Check if the event is being triggered by the BO method.
    You can check the where-used list of the method and find out the source of the event triggering.
    Hope this helps!
    Regards,
    Saumya

  • How to create a savepoint in "BC4J transaction" from a struts Action

    Hello,
    I need to create a kind of savepoint in a transaction object in BC4J
    [    BC4JContext context = BC4JContext.getContext(request);
    context.getApplicationModule().getTransaction()."savepoint()" ]
    but it seems to me that it doesn't exist!!
    How can I do this.
    Thanks for help
    Mehdi

    Mehdi:
    BC4J does not support creation of savepoints in its transaction object. Savepoint support is quite tricky in that if we were to support it... If the transaction is rolled back to the SP, we would have to sync the cache back to the state when the SP was taken. And, this can be quite an expensive operation.
    Thanks.
    Sung

  • Include SAP standard transaction screen in ABAP webdynpro view?

    Hi all,
    Any body have idea on how to create SAP transaction screen in WebDynpro view?
    ex : i have requirement like i need IB52 transaction in webdynpro view, so that it will be called this view from EP iview to do some process.
    Regards,
    Rajesh Yadla

    Hi,
    you can use a IFRAME and run a Portal transaction Iview for IB52 inside the WD-IFRAME.
    For that you first have to create an iview for the Transaktion IB52 inside your Portal.Then call the preview of the Iview. This Preview-URL(or the PCD) you can call as source inside the WD-IFRAME. For me this works fine.
    Regards
    Frank

Maybe you are looking for

  • How one can get rid of error 1009?It is being experience newly .

    I have dowoload free and purchased apps lately with no problem ,but now i get this 1009 erroe code and the action is terminated.

  • What is the latest Patch level?

    Dear All, Software component    Release         Level SAP_HR                             604              0069 EA-HR                                606               0021 EA-HRGXX                        606              0021 EA-HRRXX                 

  • Kinit: Client not found in Kerberos database while getting initial credentials

    Hi all, I am trying to configure application which uses Kerberos authentication. Error message:  kinit: Client not found in Kerberos database while getting initial credentials I use Windows Server 2003 domain controller as LDAP server, Tomcat applica

  • Users (ro) recieve subscription mails even before the resource is published

    Hi, I have a folder with the time-dependant publishing, approval process & subscription services. I have two groups: the Authors Group (Full control on services & permissions) and Readers Group ('read only' on permissions & 'subscribe my self only' o

  • Generic icons in Spotlight search menu

    I have noticed that recently I am getting what looks like a generic document icon in the Spotlight search results menu in place of the correct application icon. The icons for the applications display correctly in the applications folder. How do I fix