Avalados por :
Hello friends,
Continuing the process of preserving the solutions to Frequently Asked Questions, today I chose this subject. Few might have understood the possible need behind this simple title. However, I will explain.
The Background:
There were threads asking for solution where they want Orders with some status to be prohibited from processing. The ' Do not Execute ' function is the ready answer for the Orders which are in CRTD status. But generally the queries were for REL Orders? There are two situations of this requirement.
Similarly there were queries where Authorization check at the initial screen of IW32 was sought. Obviously this as an alternative route to control through Roles.
One way of doing addressing all these is definitely through user-exit IWO10009 . But this method stops users at the time of Saving the Order. Means, user spends time and effort to make all changes in the Order and system refuses his changes when he tries to Save the Order. Also achieving a perfect solution for Cases1,2 through user-status ( OIBS ) transaction control is not possible.
So the requirement is to stop the user in the beginning itself of IW32. The ways to do it.
The Solutions:
The solutions discussed here are very effective using an Implicit Enhancement point in the include LCOIHF7R of Order program ( SAPLCOIH ). Here there is an enhancement point at the end of the form AUTHORITY_CHECK_AUART_SMOD .
The place to put our code:
Means, I have created an Enhancement named ZPM_STAT at the enhancement point provided by the system, where I got access to put my code. Now let's see the codes for various cases and situations.
First we look at the Case1,
Situation1
:
For all Orders of certain Type and in REL status, Converting IW32 to Display mode
The code:
Pedro PascalSe unió el 07/03/2018
contacto@primeinstitute.com
(+51) 1641 9379
(+57) 1489 6964
© 2025 Copyright. Todos los derechos reservados.
Desarrollado por Prime Institute