cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop the control of screen at runtime

Former Member
0 Kudos

Hi Experts,

I have a requirement to validate my initial screen.

I am using T1oo mesage handling.

If I want to validate the control of the screen to the Initail and dont want the result screen to be displayed.

How can i achieve it without navigating to the result screen, i want to show the error on the same screen.

Kindly Help.

Thanks in advance!!

Regards,

Sahil

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member205703
Participant
0 Kudos

Hi Sahil ,

To restrict the mesage to the same view where error has occoured , you need to set the view parameter of the t100 method ( give the view name ).

Second if you dont want to navigate to result view ( or some other view ) , please check for error and if error occours dont fire the outbound plug , or use the cancel navigation parameter of t100 method.

lo_message_manager->report_t100_message(
    msgid                    = msgid
    msgno                    = msgno
    msgty                    = msgty
    p1                       = p1
    p2                       = p2
    p3                       = p3
    p4                       = p4
    msg_user_data            = msg_user_data
    is_permanent             = ABAP_FALSE
    scope_permanent_msg      = CO_MSG_SCOPE_CONTROLLER
    *view*                     = *view*
    show_as_popup            = show_as_popup
    controller_permanent_msg = controller_permanent_msg
    msg_index                = msg_index
    *cancel_navigation*        = *cancel_navigation*
       ).

Regards

Amol Deshmukh