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

Data disappear in table control when hiting Enter

Former Member
0 Likes
818

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.

3 REPLIES 3
Read only

Former Member
0 Likes
768

Please search

Read only

RahulKeshav
Active Contributor
0 Likes
768

Hi SM,

try to use loop....

Thnx

RK

Edited by: Rahul Keshav on Oct 22, 2009 3:05 PM

Read only

Former Member
0 Likes
768

Resolved by myself,

As i have used three Table Control in my Module, But they were not in sequence.