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

WRITE statement and editable fields

h_senden2
Active Contributor
0 Likes
1,233

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
912

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.

6 REPLIES 6
Read only

Former Member
0 Likes
912

yes, it is possible.

Read only

Former Member
0 Likes
912

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

Read only

Former Member
0 Likes
912

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.

Read only

Former Member
0 Likes
912

yes it is possible....try this:

format input on.

write : / -


.

format input off.

Read only

Former Member
0 Likes
912

Hi,

It is possible use INPUT ON.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 23, 2008 12:40 PM

Read only

Former Member
0 Likes
913

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.