‎2007 May 18 5:52 PM
*&---------------------------------------------------------------------*
*& 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
‎2007 May 18 5:58 PM
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
‎2007 May 18 5:55 PM
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
‎2007 May 18 6:02 PM
‎2007 May 18 5:56 PM
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.
‎2007 May 18 5:56 PM
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
‎2007 May 18 6:02 PM
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.
‎2007 May 18 6:07 PM
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
‎2007 May 18 5:58 PM
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
‎2007 May 18 6:04 PM
‎2007 May 18 6:10 PM
‎2007 May 18 6:04 PM
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