Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Suppress information message

Former Member
0 Kudos

In my program there is call to the function module. Inside this function module there is an information message. When I execute the program in foreground I am getting an information message as pop up.Is there any option to suppress this Information message when I executet the program in foreground.

7 REPLIES 7

former_member212653
Active Contributor
0 Kudos

Information message in background mode will not any effect your program execution...so don't bother about.But make sure its information message only i.e. given through message i000 statement. Some times pop-screen are shown which looks similar to information message screen.

Former Member
0 Kudos

Any updates on the above issue

0 Kudos

Hi Soumya,

I think the information message is coming from a SAP FM(not a custom one). If you really want to supress the infor message then a shortcut right now in my head is to make a copy of that FM and comment that message.

Regards,

Mainak

0 Kudos

Wrong answer!

It doesn't matter whether the message is from an customer or SAP-functionmodule.

Please read also other answers, maybe you can learn a lot.

former_member190578
Participant

Use EXCEPTIONS 'ERROR_MESSAGES':



 CALL FUNCTION 'ANY_FUNCTION_MODULE' 
     EXPORTING 
          EXPORT_PARAS  = .....
          .....
     IMPORTING 
          IMPORT_PARAS = .....
          ......
     EXCEPTIONS 
          EXCEPTION_ONE = 1
          .........
          ERROR_MESSAGES    = 98
          OTHERS            = 99. 
 ... 

Now the I- and S- and W-messages from/in the function module doesn't appear.

A- and E-messages will continue appear.

Former Member
0 Kudos

Is there any way to suppress the information mesage in foreground.

0 Kudos

Please read the answers.