2014 Feb 12 4:10 AM
Hello Experts,
I Have written a code to block the delivery during delivery change exit - MV50AFZ1- userexit_save_document_prepar
Where I wrote
xlikp-lifsk = 'NM'.
xlikp-UPDKZ = 'U'.
MODIFY xlikp TRANSPORTING lifsk updkz.
This code is working fine if user presses save option.
But at status there is option of PGI and if user presses PGI its doing PGI and save the delivery with delivery block...
So business want it should come up with standard incompletion log stating delivery is blocked.
They don't want custom Z message...
Is it possible????
Hello Experts,
I Have written a code to block the delivery during delivery change exit - MV50AFZ1- userexit_save_document_prepar
Where I wrote
xlikp-lifsk = 'NM'.
xlikp-UPDKZ = 'U'.
MODIFY xlikp TRANSPORTING lifsk updkz.
This code is working fine if user presses save option.
But at status there is option of PGI and if user presses PGI its doing PGI and save the delivery with delivery block...
So business want it should come up with standard incompletion log stating delivery is blocked.
They don't want custom Z message...
Is it possible????
2014 Feb 12 5:49 AM
Hi,
Try and check if this works.
PERFORM message_handling(sapmv50a)
USING < delivery #>
'000'
'E'
'VL'
<your msg>
space
space
space.