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: 

Hide status-messages

Former Member
0 Kudos

Hi all,

I have copied a standard program in which it is using some FMs and having some status messages that are displayed during the processing.

My requirement is , <b>I dont want to display these status messages</b> which are coming from FM. How can i achive this.

Regards,

Nilesh

5 REPLIES 5

former_member404244
Active Contributor
0 Kudos

Hi,

refresh the status messges whic are coming from function module..

Regards,

Nagaraj

0 Kudos

I cant because these msg are being displayed within FM itself. and i cant make any changes to std FM.

former_member404244
Active Contributor
0 Kudos

Hi,

Why don't u cpoy the standard function module to zfunction module and call the zfunction module instead of stanard function module .now u can supress the messages in the zfunction module.

Regards,

Nagaraj

Former Member
0 Kudos

Copying standard programs and function modules for minor changes like this is never a good idea. Even if the change is much more major - still do not copy the original.

SAP supplies support stacks on a regular basis which most sites will apply every few months to keep their system up to date with the latest patches. If you have copied a standard program or function the copy you have made will not be updated with the changes made to the SAP program. In some cases this will be harmless as the changes are in areas of the code you do not use, but in others this can have any number of hidden effects on your system.

The "best" result in this case is if the changes to the SAP program and includes, dictionary structures, etc are so major that your Z copy no longer runs. At least in this case you will find something is wrong and have a chance to fix it.

However, the most likely result is that the change will be less visible and your program will keep operating, but will be incorrectly updating data or performing wrong calculations.

Unless the change you are making is major, you should seriously consider using an enhancement or repair to the original object to achieve the change in functionality you want. This way the modification assistant will keep track of your changes, and you will be informed via SPAU when updates are applied to the program so you can confirm your changes are still valid.

If you must copy a standard program - evaluate fully the long term risks involved. Simple reports are safer to copy than module pools or function modules, but even with these you can end up with a costly amount of extra work at the time of your next upgrade as you try to work out what was changed and why.

In the few cases where I copy standard programs, I always suggest that comments be added to the original program and all includes saying "Copy taken to Z..." so the program is flagged as "Repaired" and is highlighted in SPAU when patched.

For your case of hiding status messages - I would check first if these can be disabled in config as a lot can, and if not I would confirm that business definately cannot live with the messages being displayed. If they insist, I would repair the function module to comment out the message statements (as long as they are only type S, I or W messages).

Andrew

Former Member
0 Kudos

answered