‎2009 Mar 25 7:21 AM
Hi All,
What does 'format hotspot on/off' means?
Thankx In Advance,
Harsha
‎2009 Mar 25 7:23 AM
This addition influences the display of the mouse pointer and the function of the mouse in the list displayed on the screen. For flag, a data object of type i is expected. If ON is specified or if the content of flag is not equal to 0, then when the mouse pointer is positioned on the list area that is formatted correspondingly, it changes its appearance to a hand, and a single click has the same effect as a double-click, that is, selection of function key F2. If OFF is specified or if the content of flag is equal to 0, the function of the mouse does not change (default setting). If neither ON, OFF nor flag is specified after HOTSPOT, then the ON addition takes effect.
If the attribute INPUT ON is set, the HOTSPOT ON addition has no effect on line elements.
Example
Demonstration of a hotspot. Clicking once on the output creates a details list.
START-OF-SELECTION.
FORMAT HOTSPOT.
WRITE 'Click me!' COLOR 5.
FORMAT HOTSPOT OFF.
AT LINE-SELECTION.
WRITE 'Yeah!' COLOR 3.
‎2009 Mar 25 7:24 AM
Format hotspot ON on a field switches from its standard display format to hypelink.
When you then click once, the effect is like double-clicking or pressing the function key F2
‎2009 Mar 25 7:24 AM
HOTSPOT will make the selection in single click(when u take the cursor to that field a hand symbol will come to make selection) otherwise the selection is double click
‎2009 Mar 25 7:24 AM
Hi,
When using interactive reports, you need to double click on field to perform action, but if you use HOTSPOT, you need to single click on the field.
Refer demo:
REPORT Z90TG6_1 MESSAGE-ID ZMSG.
TABLES : LFA1, LFB1.
TYPES : BEGIN OF VENDOR,
LIFNR LIKE LFA1-LIFNR,
NAME1 LIKE LFA1-NAME1,
ORT01 LIKE LFA1-ORT01,
END OF VENDOR,
BEGIN OF VENDOR1,
LIFNR LIKE LFA1-LIFNR,
LAND1 LIKE LFA1-LAND1,
BUKRS LIKE LFB1-BUKRS,
END OF VENDOR1.
DATA : VENDOR_TAB TYPE STANDARD TABLE OF VENDOR INITIAL SIZE 20 WITH HEADER LINE,
VENDOR1_TAB TYPE STANDARD TABLE OF VENDOR1 INITIAL SIZE 20 WITH HEADER LINE,
FLDNAME(25),
FLDVALUE(25).
TOP-OF-PAGE DURING LINE-SELECTION.
WRITE :/ 'SECONDART LIST FOR VENDOR ID:', VENDOR_TAB-LIFNR COLOR 3.
ULINE.
START-OF-SELECTION.
SELECT LIFNR NAME1 ORT01
FROM LFA1
INTO CORRESPONDING FIELDS OF TABLE VENDOR_TAB.
AT LINE-SELECTION.
GET CURSOR FIELD FLDNAME VALUE FLDVALUE.
CASE FLDNAME.
WHEN 'VENDOR_TAB-LIFNR' OR 'VENDOR_TAB-NAME1' OR 'VENDOR_TAB-ORT01'.
IF SY-LSIND EQ 1.
SELECT A~LIFNR A~LAND1 B~BUKRS
FROM LFA1 AS A
INNER JOIN LFB1 AS B
ON A~LIFNR = B~LIFNR
INTO CORRESPONDING FIELDS OF TABLE VENDOR1_TAB
WHERE A~LIFNR = VENDOR_TAB-LIFNR.
WRITE : /1 TEXT-001, 13 TEXT-004, 46 TEXT-005.
ULINE.
LOOP AT VENDOR1_TAB.
WRITE : /1 VENDOR1_TAB-LIFNR, 13 VENDOR1_TAB-LAND1, 46 VENDOR1_TAB-BUKRS.
ENDLOOP.
ULINE.
IF SY-SUBRC <> 0.
MESSAGE E005.
ENDIF.
ENDIF.
WHEN OTHERS.
MESSAGE E006.
ENDCASE.
END-OF-SELECTION.
WRITE : /1 TEXT-001, 13 TEXT-002, 46 TEXT-003.
ULINE.
FORMAT HOTSPOT.
LOOP AT VENDOR_TAB.
WRITE : /1 VENDOR_TAB-LIFNR, 13 VENDOR_TAB-NAME1, 46 VENDOR_TAB-ORT01.
HIDE : VENDOR_TAB-LIFNR.
ENDLOOP.
ULINE.
Hope this helps you.
Regards,
Tarun
‎2009 Mar 25 7:25 AM
Hi,
Refer to this link..http://help.sap.com/saphelp_scm50/helpdata/EN/9f/dba1e235c111d1829f0000e829fbfe/frameset.htm