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

interactive report.

Former Member
0 Likes
418

hi all,

i have one problem i.e,i display po numbers in 1st screen after that when i click on the po number, it gives the correct output but second time click on po number it gives another po number information.

for example.

po numbers 1 2 3 4 5 6 7 8 9 .

when click on 1po number it gives 1po details first time ,second time click on 5 po it gives the 8 po number details.

i clear all statements and logic is also correct.

when i debugging internal table structure is changing.

for example.

first time output and internal table structure is same,second time internal table structure is changed automatically,it gives that row information.

give me suggitions.

thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
400

Hi,

Have you written the code this way

loop at <po_header>.

write : /10 <all the fileds>

HIDE : <work_area-ponumber>

endloop.

at line-selection.

data fname(50)

case sy-lsind.

when '1'.

get cursor filed fname.

if fname = 'workarea_filename' " Po number field

select statemnet on ekpo where ponumber = header po number " Hide statement field

write : /10 all the fileds in ekpo internal table

endif.

endcase.

Regards

Krishna

Read only

faisalatsap
Active Contributor
0 Likes
400

Hi,

Test the following Sample Code hope will solve out your problem,

TABLES: pa0000, pa0001.

TYPES: BEGIN OF ty_test,
  pernr LIKE pa0000-pernr,
  END OF ty_test.

DATA: it TYPE STANDARD TABLE OF ty_test WITH HEADER LINE.

SELECT pernr FROM pa0001 UP TO 10 ROWS
  INTO CORRESPONDING FIELDS OF TABLE it
  WHERE endda = '99991231'.

LOOP AT it.
  WRITE: / it-pernr HOTSPOT ON.
  HIDE: it.
ENDLOOP.

AT LINE-SELECTION.

  SELECT SINGLE * FROM pa0001
    WHERE pernr = it-pernr
      AND endda = '99991231'.
  IF sy-subrc EQ 0.
    WRITE: / pa0001-ename.
  ENDIF.

Best Regards,

Faisal

Read only

Former Member
0 Likes
400

answered