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

Issue in Classical reporting !!

Former Member
0 Likes
553

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

1 ACCEPTED SOLUTION
Read only

Pawan_Kesari
Active Contributor
0 Likes
517

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 .

5 REPLIES 5
Read only

Former Member
0 Likes
517

Any suggestions please !!

Read only

Former Member
0 Likes
517

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

Read only

Pawan_Kesari
Active Contributor
0 Likes
518

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 .

Read only

0 Likes
517

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 !!

Read only

0 Likes
517

Read all the lines on the current page... something like this..

DO .
    READ LINE SY-INDEX...
    IF SY-SUBRC = 0 .
    ELSE.
      EXIT.
    ENDIF.
ENDDO.