Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV GRID DISPLAY hyperlink

Former Member
0 Likes
5,064

Hi All,

             I'm creating a alv report program and inserting hyperlink in it.but it's not working.

      IT_ADDFIELDCAT type  slis_t_add_fieldcat,
      WA_ADDFIELDCAT TYPE LVC_S_FCAT,as my ADD  field catlog.

  IT_fieldcatalog type slis_t_fieldcat_alv  , 

pd_fieldcat TYPE slis_fieldcat_alv,

  WA_hyper type LVC_S_HYPE,

     IT_hyper TYPE lvc_t_hype,

WA_ADDFIELDCAT-WEB_FIELD = 'POSNR_HANDLE'.
WA_ADDFIELDCAT-fieldname = 'POSNR'.
WA_ADDFIELDCAT-HREF_HNDL = '2'.
APPEND WA_ADDFIELDCAT TO IT_ADDFIELDCAT.
CLEAR WA_ADDFIELDCAT.

for hyperlink

WA_hypeR-handle = '2' .
WA_hypeR-href = 'HTTP://WWW.YAHOO.CO.IN/'.
APPEND WA_hyper TO IT_hypeR .

"""ALSO MODIFIED MY INTERNAL TABLE WHICH IS OUTPUT IN FIELDCATALOG *********

   IF WA_FINAL-POSNR = '20'.
WA_FINAL-SPART_handle = '2' .
ENDIF .
MODIFY IT_FINAL FROM WA_FINAL.
ENDIF .

<<Removed by moderator>>

5 REPLIES 5
Read only

Former Member
0 Likes
1,916

HI

we have an example regarding to you requirement check the below link

http://wiki.sdn.sap.com/wiki/display/ABAP/Hyperlink+in+ALV

Regards

Mahesh

Read only

0 Likes
1,916

Hi Mahesh Piyush is asking about normal intractine ALV not OOP'S ALV or SALV.

So the link you are reffering thats for SALV.

Read only

Former Member
0 Likes
1,916

hi I hv gone through that example earlier also

but it';s not working since i'm not using any class method

Read only

rajesh_kumar2
Product and Topic Expert
Product and Topic Expert
0 Likes
1,916

Hello Piyush,

Have you declared a additional field for hyperlink handling in your output table.

Please check this link,

http://help.sap.com/saphelp_erp2004/helpdata/en/85/ce25c2d7ae11d3b56d006094192fe3/content.htm

BR !

Rajesh

Read only

matt
Active Contributor
0 Likes
1,916

Do NOT demand an answer ASAP. Please spell words out in full as a matter of courtesy.