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

VA01

Former Member
0 Likes
728

Hi all...

I need a user exit which will default the values of Max no of deliveries( VBAP-KZTLF) and partial deliveries(VBAP-ANTLF) for all schedule line items after SAVE has been used. I tried USEREXIT_SAVE_DOCUMENT_PREPARE but it does not seem to be working.. Pl advice...

Rishi

Hi all...

I need a user exit which will default the values of Max no of deliveries( VBAP-KZTLF) and partial deliveries(VBAP-ANTLF) for all schedule line items after SAVE has been used. I tried USEREXIT_SAVE_DOCUMENT_PREPARE but it does not seem to be working.. Pl advice...

Rishi

4 REPLIES 4
Read only

Former Member
0 Likes
656

try using USEREXIT_MOVE_FIELD_TO_VBAP

Read only

0 Likes
656

Or use USEREXIT_SAVE_DOCUMENT

You can use structure VBAP and internal table XVBAP to set the appropriate fields.

Read only

0 Likes
656

Hi Utsah,

Tried using XVBAP to modify the values of partial deliveries and maximum no of entries in the USEREXIT_SAVE_DOCUMENT.

However the changes are not being be reflected in the values...

My code looks like this...

clear vbap.

loop at xvbap into vbap.

vbap-antlf = '4'.

vbap-kztlf = 'D'.

modify xvbap from vbap.

clear vbap.

endloop.

Read only

Former Member
0 Likes
656

did u check the exit

USEREXIT_MOVE_FIELD_TO_VBAP in the include program MV45AFZZ