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

Format HotSpot

Former Member
0 Likes
1,503

Hi All,

What does 'format hotspot on/off' means?

Thankx In Advance,

Harsha

5 REPLIES 5
Read only

Former Member
0 Likes
849
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.
Read only

Former Member
0 Likes
849

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

Read only

Former Member
0 Likes
849

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

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
849

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

Read only

Former Member
0 Likes
849

Hi,

Refer to this link..http://help.sap.com/saphelp_scm50/helpdata/EN/9f/dba1e235c111d1829f0000e829fbfe/frameset.htm