Skip to Content
author's profile photo Former Member
Former Member

Module Pool Table Control Scroll Bar Event ?

Hi Experts, I have a Table control defined in a module pool program, table control was generated using the Wizard and has standard code for ADD row, DELETE row, SELECT ALL , PAGE UP, PAGE DOWN along with scrollbars active. Now when I click on ADD button row gets added, however if now I try scrolling, after successful scroll movement ADD button event gets invoked automatically causing new line to get added ? ADD BUTTON event handler is clearing of the SY-COMM to be blank after button click , so not sure how scroll bar movement is resulting in ADD event? Is this known issue? Thanks Regards Prashant

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 28, 2016 at 10:01 AM

    Hi,

    have a look at this thread:

    Table control Dialog program | SCN

    and pay attention to routine

    PERFORM COMPUTE_SCROLLING_IN_TC USING P_TC_NAME

    L_OK.

    Best regards,

    Pablo

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Pablo Casamayor

      Hi Pablo, Thanks for answers & Suggestion, problem is not completely solved even after setting (SAPLIQS0)SY-UCOMM to blank. Some how I was playing around with table control properties unchecked VERTICAL RESIZE check box and activated the CMOD project. something did the trick, now I don't get the operation repeating!! fingers crossed Prashant

  • Posted on Jul 28, 2016 at 09:07 AM

    I'm surprised that the wizard relies on SY-UCOMM, because it's not recommended by SAP. Instead, you should use a custom global variable (i.e. DATA G_OKCODE TYPE syucomm) which is to be assigned in the dynpro to the "OK Code" element.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.