2008 Jan 22 6:11 AM
Hi,
I am creating a simple classical report. In the output of a classical report i have allowed a field with INPUT ON,
and after making changes in editable field now I want to read all the lines of the report output and the values entered in the INPUT ON field.
Is there any way to do it?
Helpful answer will be rewarded.
Thanks,
Madhura
Edited by: Madhura Nadgauda on Jan 22, 2008 7:11 AM
2008 Jan 22 6:18 AM
Hi,
Use this function module to read the values of the field.
DYNP_VALUES_READ
regards,
Santosh Thorat
2008 Jan 22 6:23 AM
Try this example code and it should give you some idea.
DATA: date TYPE d,
flag TYPE c LENGTH 1,
wa TYPE c LENGTH 10.
START-OF-SELECTION.
date = sy-datum.
DO 10 TIMES.
date = date + sy-index.
WRITE: / flag AS CHECKBOX, (10) date.
ENDDO.
AT LINE-SELECTION.
DO.
READ LINE sy-index FIELD VALUE flag
date INTO wa.
IF sy-subrc <> 0.
EXIT.
ELSEIF flag = 'X'.
WRITE / wa.
ENDIF.
ENDDO.