2008 Jun 19 7:07 AM
Hi Again,
Acutually i am using two hotspots in my programs.At the output screen i want that out of two , whichever hotspot i click , the related information associated with it should be displayed. I am using at line-selection event as below .
plz help.
Points Assured.
thanks in advance.
data : itab type standard table of ekko,
itab1 type standard table of mara,
wa type ekko,
wa1 type mara.
select * from ekko up to 5 rows into table itab.
select * from mara up to 5 rows into table itab1.
data: Errors type char15 value 'Failed entries',
Success type char20 value 'Successful entries'.
********Ist hotpspot********
write 😕 'ERRORS',errors color 6 inverse off hotspot on.
AT line-selection.
loop at itab into wa.
write: / wa-ebeln.
endloop.
********2nd hotpspot********
write 😕 'SUCESS',SUCCESS color 5 inverse off hotspot on.
AT line-selection.
loop at itab1 into wa1.
write: / wa1-matnr.
endloop.
Hi Again,
Acutually i am using two hotspots in my programs.At the output screen i want that out of two , whichever hotspot i click , the related information associated with it should be displayed. I am using at line-selection event as below .
plz help.
Points Assured.
thanks in advance.
data : itab type standard table of ekko,
itab1 type standard table of mara,
wa type ekko,
wa1 type mara.
select * from ekko up to 5 rows into table itab.
select * from mara up to 5 rows into table itab1.
data: Errors type char15 value 'Failed entries',
Success type char20 value 'Successful entries'.
********Ist hotpspot********
write 😕 'ERRORS',errors color 6 inverse off hotspot on.
AT line-selection.
loop at itab into wa.
write: / wa-ebeln.
endloop.
********2nd hotpspot********
write 😕 'SUCESS',SUCCESS color 5 inverse off hotspot on.
AT line-selection.
loop at itab1 into wa1.
write: / wa1-matnr.
endloop.
2008 Jun 19 7:26 AM
Hi Amardeep,
Try to change your code to this:
-
DATA : itab TYPE STANDARD TABLE OF ekko,
itab1 TYPE STANDARD TABLE OF mara,
wa TYPE ekko,
wa1 TYPE mara.
SELECT * FROM ekko UP TO 5 ROWS INTO TABLE itab.
SELECT * FROM mara UP TO 5 ROWS INTO TABLE itab1.
DATA: errors TYPE char15 VALUE 'Failed entries',
success TYPE char20 VALUE 'Successful entries'.
WRITE 😕 'ERRORS',errors COLOR 6 INVERSE OFF HOTSPOT ON.
WRITE 😕 'SUCESS',success COLOR 5 INVERSE OFF HOTSPOT ON.
AT LINE-SELECTION.
CASE sy-lilli.
WHEN 1.
LOOP AT itab INTO wa.
WRITE: / wa-ebeln.
ENDLOOP.
WHEN 2.
LOOP AT itab1 INTO wa1.
WRITE: / wa1-matnr.
ENDLOOP.
ENDCASE.
One of the method to differentiate which hotspot that user clicked is using sy-lilli. You can explore by yourself using sy-lisel.
Hope it helps,
Victor.
2008 Jun 19 8:30 AM
Hi,
Try this once.
use HIDE<field-name>.
hide->to specifie where the field will capture on screen
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |