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

Similar Messages

  • 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

  • How to create navigational links...and connect views of another component

    Hi...
    I am new to SAP CRM...
    I have a requirement where i need to navigate from the main window of a component to the view of a different component.
    Scenario:
    When i click on edit button after selecting a line item in the assignment block in the BT111H_OPPT/Details ,it should navigate to the details page of the line item which is the view of another component that has been created .say ZRP/PEL.
    How can i achieve this using the concept of inbound/outbound plugs and navigational links?
    I have got a vague idea on plugs from my search...that these are entry/exit points to views.
    But what is the procedure to follow to attain the functionality?
    How do we decide on which component needs which all plugs?
    Anyhelpful pointers would be rewarded.
    Also, an idea on what exactly does the inbound/outbound plugs do and how is the flow happening , how are navigational links working etc would be appreciated.
    Thanks..

    Steps to create navigational link:
    1.     Create an outbound plug in the component from where you want to navigate. Sometimes      
                    standard navigational links are already there.. you just need to identify it.
    2.     Create a Component usage in runtime repository for target component.
    3.     Add this component usage to the main window view in repository. 
    4.     Create navigation link between the transaction type and the target component view.
    5.     In the outbound plug, use the view manager to navigate to the target component. Ex: 
                    ME->FIRE_OUTBOUND_PLUG( IV_OUTBOUND_PLUG   = 'TO_OUTPLUG''
                              IV_DATA_COLLECTION = LR_COL ).
    6.     Pass the data through the data collection.

  • You have created a link to another part of your book but how do you get the reader back to the original page?

    Using iBooks Author to make a book you have created a link to another part of your book but how do you get the reader back to the original page?

    Asking me to be verbore is a dangerous thing  :-)
    When you eneter information into iTunes Producer for uploading, the info must match what is in the internal metadata. In this case, the book is called Mississippi, but in  iTunes Producer it is spelled Misssissippi. There is an extra "s". This will cause an error.
    - Fabe

  • How to create a link to Bar Graph......?

    Hi,
    Can any body tell me how to create a link to a bar graph such that on clicking, it should navigate to specified page in the same application or different application.
    I've written the following Region Source for creating link on Graph. Correct if it is wrong.
    function onDynamicaBarGraphClick(e)
    // Read point name
         name=e.data.Name;
    // Read point value
         value=e.data.YValue;
    // You can add onclick even here using the values name and value
    link='f?p=&APP_ID.:4:'||:app_session||'::::::';
    Thanks in Advance....
    Regards,
    Manoj
    Edited by: user12873839 on Apr 12, 2010 12:11 AM

    I have replied to you in another post. Help Needed : Changing the Color of Bar Graph Dynamically
    Please don't open multiple posts for the same question. Thanks.
    --Manish                                                                                                                                                                                                                                                                                                                                                                                                       

  • How To:  Create a link to gatewayed content (e.g. in email)

    I apologize if this is too basic of a question but I can't find any results after looking for several hours.
    I would like to generate a URL in an email that points to the portal and a specific portlet in the portal. The portlet has limited access rights so the URL should cause the portal to go through the login page and then redirect to the portlet. Can anyone point me to the documentation that describes this or give me an example?
    Thanks in advance!
    Mike

    Using the PTARGS might also solve another difficulty I've encountered passing (dynamic) querystring parms to portlets through the gateway. Your example seems to work great for portlets, but now trying to access a Community page containing a portlet to retain branding elements.
    For portal pages, should the ObjectID be the pageID (i.e PageID=0 for the default page) or is the ObjectID for a community page some other value (where in PlumDB is this stored) ? I changed the ClassIDView to 514 which should indicate a Community Page but it's still not loading my page. Adding to my confusion, the PTCOMMPAGES table stores the PageID as a negative value.
    Here's my example:
    http://portalserver/portal/server.pt/gateway/PTARGS_0_0_0_201_0_514/http%3B/portletserver/ApplicationName/default.aspx?querystring=value
    Any thoughts?
    re: How To: Create a link to gatewayed content (e.g. in email) Posted by Mike Beniston 5/5/05 9:45:40 AM It turned out that I was pretty close.
    If anyone else is interested, here is one way that works.
    The PTARGS are _0_userid(leave at 0)_objectid(of portlet)_communityID(if any)_0_ClassIDView(43 = view for portlet)
    "http://portalserver/portal/server.pt/gateway/PTARGS_0_0_348_208_0_43/http://portletserver/ApplicationName/pagename?querystring arguments.

  • How to create a link between 2 cells in different spreadsheets?

    when using numbers on MacBook Pro/IOS X - how to create a link between 2 cells in different spreadsheets?

    In the cell where you want the duplicate data to appear from another sheet/table do the following:
    type the equal sign ("=") then click the cell you in the sheet table while contents you want to appear in the cell where you just typed the equal sign"
    it reads "The cell I click equals the result of the formula or the contents of the next cell I click"

  • How to create a linked server to SQL in Oracle?

    I am able to create a linked server to Oracle in SQL.. But I do not know the steps to create a linked server too SQL in Oracle.
    How to create a linked server to SQL in Oracle? After creating the linked server to SQL, I would like to create triggers in Oracle DB to insert records into SQL DB.

    There are 2 products in Oracle you can use to link to a MS SQl Server. The first one is for free and it is called Database Gateway for ODBC. With a suitable 3rd party ODBC driver you can connect to any foreign database. The second gateway is our commercial gateway and it is called Oracle Database Gateway for MS SQL Server. It is designed for MS SQl Server connections and more powerful then Dg4ODBC. It know how to map a lot of Oracle functions to SQL Server equivalents and you can also use it to directly call SQL Server procedures or functions. This dedicated SQL server gateway is also able to participate in distributed transactions.
    But again, this is a commercial gateway and you have to purchase a license for that second gateway, the Database Gateway for MS SQl Server.
    - Klaus

  • HOW TO CREATE PROMPT BASED ON ANOTHER PROMPT IN OBIEE

    HOW TO CREATE PROMPT BASED ON ANOTHER PROMPT IN OBIEE.
    Requiremenst is as follows.
    Year ,Qtr columns in first prompt.Based on selection on these prompts second prompt should display corresponding prompts
    Second prompt will have Month ,Week and Day columns.Second prompt should be hidden and based on first prompt selection second prompt should display with constraint based on first prompt.
    Any help would be highly appriciated!!!

    hi,
    Using Guided navigation it is possible,
    Please refer the below links.
    http://gerardnico.com/wiki/dat/obiee/dashboard_prompt_1_eq_0
    http://businessdecisionsystems.com/blog/?p=448
    Hope this help's
    Thanks,
    Satya

  • How to create a batch job for transaction SM13 or SM37

    How to create a batch job for transaction SM13 or SM37?
    I want to create a batch job for t-code SM13/SM37, the jobs will send a email to my inbox when the errors occurred in SM13/SM37.
    How to do this? thanks in advance.

    Hi,
    Check the link:
    http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/30237989-0901-0010-70a4-944691eb5e52 [original link is broken]
    Make sure the CCMS agent installation is in place as per the Monitoring setup guide.
    Follow the link Central auto reactions for configuring alert mails.
    Regards,
    Srikishan

  • How to create a link which will redirect to a different iView?

    Hello,
    I have a certain iView, let's call it "myiView" which sits inside a certain Role, let's call it "myRole".
    At the Homepage of the users I have KM navigation iView which shows a certain folder. I would like to create inside this folder a link to "myiView", this way when users will click on this link at the Homepage they will be redirected automaticly to "myiView". I remember reading once something regarding internal links perhaps this is solution but I'm not sure. Can anyone please show me how to create such link which redirects to another iView at the portal.
    10X
    Roy

    Hey Prakash,
    I am creating a KM link to this target, where at this link I can write javascript? As far as I know it is only possible at the iView level no? And where do I take the PCD URL from?
    Hey Ashutosh,
    I think that your method will open a whole new browser since it is an external link, I woulk like to keep the current navgation at the same page, simply navigate the user to a different place at the portal...
    Roy

  • 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

  • How to Create a Link to a Discoverer Workbook in Apps11i?-[solved]

    I tried to create a link to a disco workbook in apps 11i using metalink document 278095.1. It seems to be working ok for discoverer which is installed on the same machine as the apps11i is on(because when I clicked on the link which I have created in apps11i, I see a default disco4i welcome page which got installed out of the box with apps11i). But we are using discoverer version 10g which is on a different server. Does anyone has ideas on how to create a link for a disco workbook which is on a different server other than apps11i.
    Discoverer version is 10g
    Apps version is 11.5.10.2
    Thanks in advance

    hi Rod,
    I did as you said and it seems to be connecting to the right server. But I have one more problem. In metalink document it says I have to enter the following in the Parameters text field of Function form in apps:
    workbook=<(workbook identifier from step2) &PARAMETERS=param_parameter name One~Parameter One Value*param_parameter name Two~Parameter Two Value*
    But I dont understand what should I have in place of param_parameter name One~Parameter One Value. Is it the name of the parameter given in discoverer, if so can you give me an example of how to write it. Because when I typed the name of the parameter like &PARAMETERS=Client Id, where client Id is the name of the parameter, it is giving me the following error
    ORA-06502: PL/SQL: numeric or value error
    Thanks for your help

  • How to create a link to multiple links in pdf file

    how to create a link to multiple links or a button to multiple links in pdf file. this links is goto diferent pages, no web. sorry for my english.

    You can print to PDF from the Print Module .
    Do you have Adobe Acrobat?
    Otherwise install (free) Bullzip Free PDF printer.
    http://www.bullzip.com/

  • How to create database link from oracle to sql server

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal
    Hi Vishal,
    I found a lof of information regarding how to create a database link from Oracle to SQL Server, please see:
    https://www.google.co.in/?gws_rd=cr&ei=vd3XUvGFO8TgkAXqlYCADg#q=how+to+create+database+link+from+oracle+to+sql+server
    We discuss SQL Server related issue in this forum. If you have any more question regarding Oracle, please post it in Oracle communities forum for better support.
    Regards,
    Elvis Long
    TechNet Community Support

Maybe you are looking for

  • HP pavilion dv6 restoratio​n incomplete after recovery

    I recently try to facotry reset my Hp pavilion dv6 using the recovery usb I make with the HP program when I brought this laptop, but it said "restoration incomplete".  I have ran the hard drive check and mem test at the BIOS and there isnt any proble

  • SMARTFORM GUI_DOWNLOAD PDF error opening Adobe document

    When attempting to open Adobe document from Smartform converted to pdf using CONVERT_OTF and GUI_DOWNLOAD I get error.  The abap completed each step with no errors and oddly the final pdf file created to PC was either 10 or 15 Mb even.  The 15Mb vers

  • Where did my bookmarks in the html file go?

    I exported my bookmarks to html. The file opened fine with FireFox and notepad and showed the bookmarks. I copied the file to a thumb drive and it still opened fine with FireFox or notpad. But, as soon as I eject the flash drive, and put it back in,

  • ERROR IN IMPORTING LICENSE

    DEAR ALL, WHILE IMPORTING LICENSE FILE IN SAP B1 , I AM GETTING AN ERROR 'CANNOT VERIFY THE DIGITAL SIGNATURE OF LICENSE FILE' WHAT SHOULD I DO? THANKS AGRANSHU SHUKLA

  • Java.lang.OutOfMemoryError in iGrid

    Hi, In XMII 12, i tried to get the customer information from SAP thru BAPI and to show it in iGrid. I am successfully getting information from SAP. But when i tried to show the result in iGrid thru xacute query, in iGrid java console it is showing er