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

Table control row selection

HI all,

I have the problem writing code for the following logic.

I populated the internal table data into the table control in the second screen but

i dont want to populate the 3rd screen without selecting the row of table control.

but the same logic is taking for the 3rd screen without selecting the row of table control for user-defined buttons.

i tried to put the warning message but its still going to 3rd screen .

how can i stop processing further if user don't select any row in table control?

i would like to give an error and stay in the same screen so that he has to select a row in table control for further processing...

Please help me ASAP.

Thanks,,

Madhu

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 Jan 09, 2007 at 10:05 PM

    Hi,

    If the user didn't select any thing..Just say leave screen..

    Example

    -


    MODULE USER_COMMAND.

    CASE SY-UCOMM.

    WHEN 'REQUEST FOR THIRD SCREEN'.

    • ASSUMING SELECTED IS THE COLUMN FOR THE TABLE CONTROL SELECTION ROW

    • SELECTION.

    READ TABLE ITAB_TC WITH KEY SELECTED = 'X'.

    IF SY-SUBRC <> 0.

    MESSAGE S208(00) WITH 'SELECT ATLEAST ONE ROW'.

    LEAVE SCREEN.

    ELSE.

    CALL SCREEN '0300'.

    ENDIF.

    ENDCASE.

    ENDMODULE

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 03:09 PM

    Thanks Naren,

    appreciate ur help....

    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.