Application Development and Automation 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: 
Read only

Delivery Block - Facing Problem if pressed PGI

0 Likes
533

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????

1 REPLY 1
Read only

Former Member
0 Likes
462

Hi,

Try and check if this works.

PERFORM message_handling(sapmv50a)

                 USING < delivery #>

                       '000'

                       'E'

                       'VL'

                      <your msg>

                      space

                      space

                      space.