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: 

Blocking delivery output types

vinod_vemuru2
Active Contributor
0 Kudos

Hi All,

I am doing my coding in user exit MV50AFZ1 for checking transportation data for the line items in STO. If it is not maintained then we should block that delivery. For that we are changing likp-lifsk and xlikp-lifsk value to 01(Block). Now client has added some new functionality to this. Now he is able to issue the delivery output with output types. We should be able BLOCK this also. Any pointers to do this will be of great help. We tried changing value lips-kvgr1 and xlips-kvgr1 to NDO, But it is not working.

Regards,

Vinod.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Create a VOFM requirements routine for the output..And then assign that VOFm routine to the output type in the output determination procedure..

In that VOFM routine have the following code..

SY-SUBRC = 0. " Propose the output type.

IF XLIKP-LIFSK = '01'. " Don't propose the output type if the delivery block is set.

SY-SUBRC = 4.

ENDIF.

***If XLIKP-LIFSK is not available then try using

  • KOMKBV2-LIFSK.

Thanks

Naren

vinod_vemuru2
Active Contributor
0 Kudos

Thanks all