Skip to Content

Bypass input checks

Hi friends,i have a dialog program,one of subscreen has a table control、one delete row button、one copy row button,the screen flow logic is as below:

PBO

............

PAI

LOOP TABLE CONTROL TABLE.

CHAIN:

FIELD1 MODULE FIELD1_CHECK.

FIELD2 MODULE FIELD2_CHECK.

FIELDn MODULE FIELDn_CHECK.

MODULE MODIFY_INT_TABLE.

ENDCHAIN.

ENDLOOP.

MODULE USER_COMMAND. "DELETE ROW AND COPY ROW

Now i face a problem:if one of screen field validation fail,i can't delete the error row ,when i click delete button,the screen will show error message to prevent me to delete row,so pls. tell how can i bypass the input check if i click delete button?thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 25, 2012 at 04:24 PM

    Use AT EXIT-COMMAND.

    MODULE delete_rows AT EXIT-COMMAND.

    Handle your code to delete here.

    Also give function type of delete button as 'E'.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 25, 2012 at 06:54 PM

    It's probably working correctly (IE the same as standard SAP programs).

    I'd leave it as is.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

    • I'm not so familiar with it too ;-)

      I just did a few tests:

      • when we execute an exit command after there was an error, the logic restarts from the point of the error in the PAI, without reaching the PBO. So, in the PAI, I had to skip checks when the "delete" key was pressed, so that the PBO is executed to see the line deleted. Then, pressing the enter key (by the way, remember to clear the okcode field at the end of the PBO), the checks were executed again.
      • about the conditional processing for changed values, I think this may occur only if you use MODULE ... ON (CHAIN-)REQUEST; otherwise the modules are always called (except the case where there is a restart from the module where there was an error)

      Sandra

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.