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

Hotspot

Former Member
0 Likes
1,253

*&---------------------------------------------------------------------*
*&            selecting and display data for basic list                *
*&---------------------------------------------------------------------*

select kunnr
       name1
       land1
       from kna1 into table itab.

loop at itab.
  write:/10 itab-kunnr,
         35  itab-name1,
         70  itab-land1.
   itab-kunnr hotspot on.      
  hide itab-kunnr.
endloop.


*&---------------------------------------------------------------------*
*&          selecting and display data for detail list                 *
*&---------------------------------------------------------------------*

at line-selection.
  case sy-lsind.

    when '1'.
      data: v_field(60).
      get cursor field v_field.
      check v_field = 'ITAB-KUNNR'.
      select vbeln
             erdat
             netwr
             from vbak into table jtab where kunnr = itab-kunnr.
      if sy-subrc ne 0.
        message e000(zmessage).
      endif.

      loop at jtab.
        write:/10 jtab-vbeln,
               35 jtab-erdat,
               70 jtab-netwr.
        at last.
          sum.
          write:/ 'Sub total:', jtab-netwr color 3.
        endat.
        hide jtab-vbeln.
      endloop.
I would like to enable hotspot on itab-kunnr field
1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,113

Hi,

Check the changes..


loop at itab.
  FORMAT HOTSPOT ON.    " Inserted code
  write:/10 itab-kunnr. " Removed comma and Added a dot 
  FORMAT HOTSPOT OFF.  " Inserted code
  WRITE:               " Inserted code.
         35  itab-name1,
         70  itab-land1.
*   itab-kunnr hotspot on.     " Commented code
  hide itab-kunnr.
endloop.

Thanks

Naren

10 REPLIES 10
Read only

Former Member
0 Likes
1,113

hi Alex,

do this way

loop at itab.

<b>Format Hotspot on.</b>

write:/10 itab-kunnr,

35 itab-name1,

70 itab-land1.

itab-kunnr hotspot on.

hide itab-kunnr.

endloop.

Reward if it helps,

Regards,

Santosh

Message was edited by:

Santosh Kumar Patha

Read only

0 Likes
1,113

Returning error "Statement ITAB-KUNNR NOT DEFINED"

Read only

Former Member
0 Likes
1,113

Simple example -:) Not mine...Just downloaded the code some time ago -;)


REPORT SIMPLE.
INCLUDE <LIST>.

START-OF-SELECTION.
  WRITE 'Now comes a'.
  FORMAT HOTSPOT ON COLOR 5 INVERSE ON.
  WRITE 'HOTSPOT'.
  FORMAT HOTSPOT OFF COLOR OFF.

AT LINE-SELECTION.
  WRITE / 'New list AT-LINE-SELECTION'.
  SKIP.
  WRITE 'This is also a hotspot:'.
  WRITE ICON_LIST AS ICON HOTSPOT.

Greetings,

Blag.

Read only

Former Member
0 Likes
1,113

its Format HOtspot on.

select kunnr

name1

land1

from kna1 into table itab.

loop at itab.

<b> write:/10 itab-kunnr HOTSPOT ON,

35 itab-name1,

70 itab-land1.</b>

hide itab-kunnr.

endloop.

Regards

SAB

Read only

0 Likes
1,113

loop at itab.

FORMAT HOTSPOT ON.

write:/10 itab-kunnr,

35 itab-name1,

70 itab-land1.

hide itab-kunnr.

FORMAT HOTSPOT OFF.

endloop.

hey, will this make, kunnr, land1 and name wuth hotspot.

Alexander needs only kunnr with hotspot. here it is

loop at itab.

write:/10 itab-kunnr hotspot on,

35 itab-name1,

70 itab-land1.

hide itab-kunnr.

endloop.

Read only

0 Likes
1,113

Augustine...

yes u r right...

itab-kunnr hotspot on.

Alex:

remove the statement <b>itab-kunnr hotspot on</b>

<b>

Reward to all Helpful answers.........

</b>

Regards

SAB

Read only

Former Member
0 Likes
1,114

Hi,

Check the changes..


loop at itab.
  FORMAT HOTSPOT ON.    " Inserted code
  write:/10 itab-kunnr. " Removed comma and Added a dot 
  FORMAT HOTSPOT OFF.  " Inserted code
  WRITE:               " Inserted code.
         35  itab-name1,
         70  itab-land1.
*   itab-kunnr hotspot on.     " Commented code
  hide itab-kunnr.
endloop.

Thanks

Naren

Read only

Former Member
0 Likes
1,113

Hi,

Please check my reply

Thanks

Naren

Read only

0 Likes
1,113

Naren,

Thanx. solved my problem

Read only

Former Member
0 Likes
1,113

Hi..

Just do this..

loop at itab.

write:/10 itab-kunnr hotspot on,

35 itab-name1,

70 itab-land1.

itab-kunnr hotspot on.

hide itab-kunnr.

endloop.

regards,

kamal