‎2009 Jul 17 12:47 PM
Hi All,
I am running a classical report and in the output i am supposed to change a value of one particular field ..and when i do it, the control should go back to my report again capturing the changed value. Now how can i achieve this ?
Thansk in advance
‎2009 Jul 17 2:05 PM
This is very elementary program which might give you some idea.
Run the code and change the value of material and double click on that (material input).
REPORT zpwtest1 .
DATA : v_kunnr TYPE kna1-kunnr VALUE 'KUN9879' ,
v_matnr TYPE mara-matnr VALUE 'AD9845-009'.
WRITE : / 'Customer' , v_kunnr ,
/ 'Material' , v_matnr INPUT ON .
AT LINE-SELECTION .
READ LINE 4 OF CURRENT PAGE FIELD VALUE v_matnr .
WRITE v_matnr .
‎2009 Jul 17 12:55 PM
‎2009 Jul 17 12:56 PM
HI John,
How can you change any value in the output.
Nonetheless as far as I understand you can use the AT LINE SELECTION event
to click on the output screen and pass you woudl be navigated to the next screen.
If you need any further clarifications, revert or else you can press F1 help on the
Editor screen on statement AT LINE SELCTION
Hope I am clear
Sumit
‎2009 Jul 17 2:05 PM
This is very elementary program which might give you some idea.
Run the code and change the value of material and double click on that (material input).
REPORT zpwtest1 .
DATA : v_kunnr TYPE kna1-kunnr VALUE 'KUN9879' ,
v_matnr TYPE mara-matnr VALUE 'AD9845-009'.
WRITE : / 'Customer' , v_kunnr ,
/ 'Material' , v_matnr INPUT ON .
AT LINE-SELECTION .
READ LINE 4 OF CURRENT PAGE FIELD VALUE v_matnr .
WRITE v_matnr .
‎2009 Jul 17 2:28 PM
Hi Pawan,
Thanks for your valuable post. However the change would be dynamic to rows. So how can i retreive the row number where the change is made !!
‎2009 Jul 17 2:41 PM
Read all the lines on the current page... something like this..
DO .
READ LINE SY-INDEX...
IF SY-SUBRC = 0 .
ELSE.
EXIT.
ENDIF.
ENDDO.