cancel
Showing results for 
Search instead for 
Did you mean: 

Avoid messages in F4 helps

daniel_humberg
Contributor
0 Kudos

I have a main view with a message bar, and on the view, there is an input field with an F4 help. Now, the user does some action with leads to a message in the message bar. Then, he opens the F4 help. As a consequence, the message will also be shown in the F4-help popup, which looks strange. Is there a way to prevent that any messages are shown in the F4 help?

Or can I somehow clear the message log before the F4 help is opened?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Although this thread is marked as 'answered', I can not see any solution here. I am facing the same problem. Could anyone help?

Former Member
0 Kudos

I have found a solution. It was simple, suppliyng optional parameter VIEW in a method for displaying messages solved this problem.

daniel_humberg
Contributor
0 Kudos

Hi Adrian,

that sounds great. Could you post a code example? What exactly did you pass to the view parameter?

I will also try to grant you the points. I had to set this question to answered because I can only have up to 20 open questions in SDN.

Regards,

Daniel

Former Member
0 Kudos

Hi Daniel,

I was reporting a message using a method if_wd_message_manager=>report_t100_message. I have used a wizard to achieve this. Than I was facing the same problem as You. And a solution was just to pass the name of a main view to this method via parameter view.

CALL METHOD lr_msg_manager->report_t100_message
      EXPORTING
        msgid                   = ls_bapiret2-id
        msgno                  = ls_bapiret2-number
        msgty                   = ls_bapiret2-type
        p1                        = ls_bapiret2-message_v1
        p2                        = ls_bapiret2-message_v2
        p3                        = ls_bapiret2-message_v3
        p4                        = ls_bapiret2-message_v4
       view                      = 'MAIN'
       show_as_popup             = 'X'
      RECEIVING
        message_id                = lv_msgid
        .

Adrian

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

which F4 help u are using.

daniel_humberg
Contributor
0 Kudos

I am using a standard F4 help, that is defined in the ABAP dictionary (DDIC), and that I attached to my context attribute.

Former Member
0 Kudos

Hi,

I think you can not clear the standard messages in F4 help..If it is an OVS/Freely programmed help...We can handle it..because

F4 event gets triggered.. we can clear messages.

Please try one thing..

In the IF_WD_MESSAGE_MANAGER try to use clear_messages. Give it a try.

Regards,

Lekha.

daniel_humberg
Contributor
0 Kudos

it cannot be cleared