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

regarding va31

Former Member
0 Likes
337

When an SA is manually created in VA31, before the SA is saved, all schedule lines in VBEP that belong to the SA

move VBEP-VBELN to ztable-vbeln

move VBEP-POSNR to ztable-POSNR

assign a serial number starting from 1 to ztable-ETENR

move VBEP-EDATU when VBEP-BMENG > 0 (CSD date) to ztable-EDATU

please can u tell the logic how to perform

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
305

Hai,

You can perform this task using USEREXIT_SAVE_DOCUMENT_PREPARE subroutine.

This is available in

Include MV45AFZZ

Program SAPMV45A.

When an SA is manually created in VA31, before the SA is saved, all schedule lines in VBEP that belong to the SA

move VBEP-VBELN to ztable-vbeln

move VBEP-POSNR to ztable-POSNR

assign a serial number starting from 1 to ztable-ETENR

move VBEP-EDATU when VBEP-BMENG > 0 (CSD date) to ztable-EDATU

please can u tell the logic how to perform

1 REPLY 1
Read only

Former Member
0 Likes
306

Hai,

You can perform this task using USEREXIT_SAVE_DOCUMENT_PREPARE subroutine.

This is available in

Include MV45AFZZ

Program SAPMV45A.