hyperlinks in reuse_alv_list_dispaly

Posted on 2006-04-19
Last Modified: 2013-12-08
   i am useing alvgrid useing reuse_alv_list_display,

   i need to place an hyperlink for each row(i.e cell),
   if i press the cell it has to go to xk03.
thanks in advance
Question by:cyrilvictor
    1 Comment

    Accepted Solution

    You use the field HREF_HNDL of the field catalog to assign a handle for a hyperlink address to all cells of a column.

    1. Define an internal table for the field catalog with reference to type
          LVC_T_FCAT and a hyperlink table with reference to type LVC_T_HYPE :

          data: gt_fieldcat type lvc_t_fcat,
                gt_hypetab type lvc_t_hype.
       2. If you want to display a hyperlink in only one cell of a column, you need an additional field in your output table. Add a field of type
          INT4 to your output table, as shown in the following example:

                  INCLUDE STRUCTURE <DDIC structure> .

          DATA:   HL_FNAME TYPE INT4. "hyperlink handle for field FNAME



          For each column of the output table that should have hyperlinks at cell level, you need to define an additional field for the handle. In this example, hyperlinks should appear in one column only.
       3. Generate the field catalog for your output table either
       4. manually or semi-automatically. In the field catalog, assign the name of the field for the hyperlink handle to the field WEB_FIELD (in our example: HL_FNAME , see above). The ALV Grid Control is then able to correctly interpret the additional field. Create your hyperlink table with all desired navigation targets, as shown below:

          data: ls_hype type lvc_s_hype.

          ls_hype-handle = '1'.
          ls_hype-href = ''.
          append ls_hype to gt_hypetab.

          ls_hype-handle = '2'.
          ls_hype-href = ''.
          append ls_hype to gt_hypetab.
       5. Select your data and copy it into the output table.
       6. Read one output table row at a time in a loop. Assign the desired handle to the field for the hyperlink handle (in our example:
          HL_FNAME ). If the handle remains initial for a row, no hyperlink is displayed.
       7. Pass the field catalog, the hyperlink table, and the output table using method

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Restore Imformix Database to different server 5 241
    Enterprise Anti-virus solution 3 166
    CRM & Email Software 6 112
    MIS vs ERP 11 183
    Supply Chain Event Management Supply chain visibility is the ability of a company to track its products and business processes in supply chain towards building operational excellence. The goal of supply chain visibility is to improve and strength…
    Oracle Apps Profiles option: A user profile is a set of shifting options that alter the way one runs an application. A value is set for each option under the user's profile when the Oracle application user logs on to any responsibility or changes…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now