Briefly, for the former, you write your field out as a hotspot, and, in conjunction with the HIDE command, and the AT LINE-SELECTION event, call the appropriate transaction with AND SKIP FIRST SCREEN. (You may have to SET some PARAMETER IDs before hand.)
For the latter, you define event handling to call the transaction, on a double click within the ALV control. There are many example programs in BCALV*.
Dig Deeper on SAP HCM
Related Q&A from Matthew Billingham
An SAP user is trying to run a report in an SAP ALV Grid online and wants to know how to get the data in the report to appear along with the header. Continue Reading
An SAP user needs to transfer customer purchase order spreadsheet data to SAP VA01 to create a new sales order. Continue Reading
An SAP user needs information on how to change the password on several SAP user accounts from a central location. Continue Reading