[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


hyperlinks in reuse_alv_list_dispaly

Posted on 2006-04-19
Medium Priority
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

iam_tejask earned 1000 total points
ID: 16655927
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 = 'http://www.sap.com'.
      append ls_hype to gt_hypetab.

      ls_hype-handle = '2'.
      ls_hype-href = 'http://www.mysap.com'.
      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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Salesforce.com is a cloud-based customer relationship management (CRM) system. In this article, you will learn how to add and map custom lead and contact fields to your Salesforce instance.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

873 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