‎2009 May 11 2:36 PM
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.
‎2009 May 11 2:52 PM
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
‎2009 May 11 3:36 PM
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
‎2009 May 19 10:08 AM