‎2008 Apr 23 2:08 PM
Hi,
i don't think it's possible but my customers wants the following in an existing program.
Data is written to the screen by WRITE statement (list processing), but one of the fields must be open for input and the data filled in must be handled by the program and stored into an internal table.
Is this possible ?
regards
Hans
‎2008 Apr 23 6:40 PM
For a rough example, try this program.
Enter some values, and double click on any line to force the transfer to the Itab, and see the results.
REPORT ztest .
START-OF-SELECTION.
DATA: BEGIN OF itab OCCURS 0,
id TYPE i,
text(10) TYPE c,
linno LIKE sy-linno,
pagno LIKE sy-pagno,
END OF itab.
DO 5 TIMES.
itab-id = itab-id + 1.
APPEND itab.
ENDDO.
LOOP AT itab.
WRITE: /1 itab-id,
itab-text INPUT HOTSPOT.
HIDE itab-text.
itab-linno = sy-linno.
itab-pagno = sy-pagno.
MODIFY itab INDEX sy-tabix.
ENDLOOP.
AT LINE-SELECTION.
LOOP AT itab.
READ LINE itab-linno OF PAGE itab-pagno FIELD VALUE itab-text INTO itab-text.
MODIFY itab INDEX sy-tabix.
ENDLOOP.
WRITE: 'you entred:'.
LOOP AT itab.
WRITE: /1 itab-id,
itab-text.
ENDLOOP.
‎2008 Apr 23 2:11 PM
‎2008 Apr 23 2:11 PM
you can use this statement:
write 😕 itab-matnr input on.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 23, 2008 12:40 PM
‎2008 Apr 23 2:11 PM
Hi hans,
1. We can write EDITABLE field using WRITE.
2. like this.
3.
report abc.
data : f(10) type c.
write :/ 'Hello ' .
write : f input.
regards,
amit m.
‎2008 Apr 23 2:11 PM
yes it is possible....try this:
format input on.
write : / -
.
format input off.
‎2008 Apr 23 2:11 PM
Hi,
It is possible use INPUT ON.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 23, 2008 12:40 PM
‎2008 Apr 23 6:40 PM
For a rough example, try this program.
Enter some values, and double click on any line to force the transfer to the Itab, and see the results.
REPORT ztest .
START-OF-SELECTION.
DATA: BEGIN OF itab OCCURS 0,
id TYPE i,
text(10) TYPE c,
linno LIKE sy-linno,
pagno LIKE sy-pagno,
END OF itab.
DO 5 TIMES.
itab-id = itab-id + 1.
APPEND itab.
ENDDO.
LOOP AT itab.
WRITE: /1 itab-id,
itab-text INPUT HOTSPOT.
HIDE itab-text.
itab-linno = sy-linno.
itab-pagno = sy-pagno.
MODIFY itab INDEX sy-tabix.
ENDLOOP.
AT LINE-SELECTION.
LOOP AT itab.
READ LINE itab-linno OF PAGE itab-pagno FIELD VALUE itab-text INTO itab-text.
MODIFY itab INDEX sy-tabix.
ENDLOOP.
WRITE: 'you entred:'.
LOOP AT itab.
WRITE: /1 itab-id,
itab-text.
ENDLOOP.