‎2009 Oct 22 9:43 AM
Dear Expert, Please help Me.
I have Made one Table Control, For this First of all i Defined data in top page like this:
data: begin of iloc occurs 10,
lnsl,
lgort like mseg-lgort,
end of iloc.
data:wloc like iloc.
controls: stoloc type TABLEVIEW USING SCREEN 1001.and I have Also made table control in screen 1001,
But now my Problem is Whenever i entered data and hitting Enter it disappears data which i entered at screen during Execution.
While Debugging I have seen it is not modifying internal table from Work area, Please have a look.
PROCESS BEFORE OUTPUT.
loop AT iloc WITH CONTROL stoloc CURSOR stoloc-top_line.
MODULE display_loc.
endloop.
PROCESS AFTER INPUT.
loop at iloc.
chain.
field wloc-lnsl.
field wloc-lgort.
module disp_loc on CHAIN-REQUEST.
endchain.
endloop.
MODULE DISP_LOC INPUT.
select single * from T001L where LGORT = wloc-lgort.
if sy-subrc = 0 .
modify iloc from wloc index stoloc-current_line. "this modify is not working, Please Tell me the Reason.
stoloc-top_line = 1.
else.
MESSAGE w000(zexi) with wloc-lgort 'not maintained in Master data'.
endif.
ENDMODULE.
‎2009 Oct 22 9:50 AM
‎2009 Oct 22 10:32 AM
Hi SM,
try to use loop....
Thnx
RK
Edited by: Rahul Keshav on Oct 22, 2009 3:05 PM
‎2009 Oct 29 7:10 AM
Resolved by myself,
As i have used three Table Control in my Module, But they were not in sequence.