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: 

To Put a Schedule line block while saving Sales Order

Former Member
0 Kudos

Hi Experts,

I have a requirement of putting an 'AH' block at schedule line. In the User exit USEREXIT_SAVE_DOCUMENT_PREPARE i have coded it in the following manner.

loop at xvbep where posnr = xvbap-posnr.

xvbep-lifsp = 'AH'.

modify xvbep index sy-tabix.

endloop.

However it is not putting the block when the Sales order gets saved.

Please help me out.

Regards,

Anjali

Edited by: Anjali Steeve on Oct 7, 2009 1:26 PM

1 ACCEPTED SOLUTION

former_member404244
Active Contributor
0 Kudos

Hi,

The XVBEP structure should have a Update indicator filed...Please set the value of that field to be 'U'. and see.

Regards,

Nagaraj

2 REPLIES 2

former_member404244
Active Contributor
0 Kudos

Hi,

The XVBEP structure should have a Update indicator filed...Please set the value of that field to be 'U'. and see.

Regards,

Nagaraj

Former Member
0 Kudos

HI anjali,

Try doin the same in this Form Routine: FORM USEREXIT_MOVE_FIELD_TO_VBEP

Guess it should work.

Best Regards,

Navin Fernandes.