12-13-2006 6:20 AM
hi all,
i have a small requirement.i developed one interactive alv.in vasic alv wheni click on sales order number it shows secondary alv.but here i would like to keep hotspot symbol so user can understand that he has to click on this sales order number only.
any body can send me the sam ecode please.
thanks,
maheedhar.t
12-13-2006 6:22 AM
in your field catalog
wfieldcat-hotspot = 'X'.
append that for the perticular field.
regards
shiba dutta
12-13-2006 6:22 AM
in your field catalog
wfieldcat-hotspot = 'X'.
append that for the perticular field.
regards
shiba dutta
12-13-2006 6:25 AM
Hi,
Please refer the below link which explains in detail about the alv hotspot.
12-13-2006 6:28 AM
12-13-2006 6:28 AM
Hi,
suppose your fieldcatalog internal table name is i_fcat.
this structure has one field called hotspot.
just write like this before calling the function module -
i_fcat-hotspot = 'X'.
append i_fcat.
regards,
pankaj singh.
12-13-2006 6:28 AM
Hi ,
In the field catalog there is a field called hotspot , for the filed you want the hot spot to be enabled assign the value as 'X'.
Regards
Arun
12-13-2006 6:33 AM
hi..
the statement in bold will help you..
WA_A2-COL_POS = 1.
WA_A2-FIELDNAME = 'S_NO'.
WA_A2-SELTEXT_L = 'S_NO'.
WA_A2-TABNAME = 'IT_A1'.
<b>WA_A2-HOTSPOT = 'X'.</b>APPEND WA_A2 TO IT_A2.
CLEAR WA_A2.
reward if helpful
12-13-2006 6:33 AM
hi...
here is an ALV report i did with hot spot!!
(only a part of my entire report)
tables: marc.
types : begin of DISP,
SLNO TYPE I,
werks type MARC-WERKS,
matnr type MARA-MATNR,
maktx type MAKT-MAKTx,
mtart type MARA-MTART,
volum type MARA-VOLUM,
ntgew type MARA-NTGEW,
ersda type MARA-ERSDA,
laeda type MARA-LAEDA,
end of DISP.
data : it_disp type table of disp,
wa_disp type disp.
Data: it_fcat type slis_t_fieldcat_alv,
wa_fcat type slis_fieldcat_alv.
parameters : p_werks type marc-werks.
IF p_werks IS INITIAL.
MESSAGE I000(Z_errors).
ELSE.
select MARC~WERKS
MARA~MATNR
MAKT~MAKTX
MARA~MTART
MARA~VOLUM
MARA~NTGEW
MARA~ERSDA
MARA~LAEDA
from
MARC inner join MARA
on marcmatnr = maramatnr
inner join makt
on marcmatnr = maktmatnr
into corresponding fields of table IT_DISP
where marc~werks = p_werks and spras = 'EN'.
IF SY-SUBRC = 0.
PERFORM display.
ELSE.
MESSAGE I001(Z_errors).
ENDIF.
ENDIF.
form display.
LOOP AT IT_DISP INTO WA_DISP.
MOVE SY-TABIX TO WA_DISP-SLNO.
MODIFY IT_DISP FROM WA_DISP TRANSPORTING SLNO.
ENDLOOP.
wa_fcat-col_pos = 1.
wa_fcat-fieldname = 'SLNO'.
WA_fcat-SELTEXT_L = 'SLNO'.
wa_fcat-tabname = 'IT_DISP'.
wa_fcat-ref_fieldname ='SLNO'.
*wa_fcat-ref_tabname = ''.
<b>wa_fcat-hotspot = 'X'.</b>
append wa_fcat to it_fcat.
clear wa_fcat.
the line in bold is wat which wil enable hpt spot for ur ALV display!
try out.
reward if my ans is useful.