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 WITH SY-UCOMM

Former Member
0 Likes
743

Hi all,

I have a table control in which i added a vertical scroll bar .

when i save the record it updates the database table and ok_code is save.

and i have a condition if i save twice it will througha mess a mess say data is already saved.

My problem is when i drag the vertical scroll after saving , it gives me a mess saying data is already saved because the sy-ucomm or ok_code is save.

I should get the data is already saved only if i save it again NOT WHEN I MOVE THE SCROLL BAR.

THANKS.

Hi all,

I have a table control in which i added a vertical scroll bar .

when i save the record it updates the database table and ok_code is save.

and i have a condition if i save twice it will througha mess a mess say data is already saved.

My problem is when i drag the vertical scroll after saving , it gives me a mess saying data is already saved because the sy-ucomm or ok_code is save.

I should get the data is already saved only if i save it again NOT WHEN I MOVE THE SCROLL BAR.

THANKS.

3 REPLIES 3
Read only

Former Member
0 Likes
631

After saving the data just clear the OK_CODE.

The code is still SAVE when you are scrolling hence you are getting the message.

Hope this solves your problem.

Regards

Kathirvel

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
631

You need to clear your OK_CODE after execution.

case ok_code.
   when 'SAVE'.
       clear ok_code.
       perform save.
endcase.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
631

Hi,

Once the PBO is executed clear the ok code variable..

PROCESS BEFORE OUTPUT.

LOOP AT .

ENDLOOP.

MODULE CLEAR_OKCODE.

MODULE CLEAR_OKCODE.

CLEAR: OK_CODE.

ENDMODULE.

Thanks,

Naren