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: 

user exit for sales order

Former Member
0 Kudos

Hi Friends,

I have to update the my Ztable by user exit.

while creating the sales order by VA01 tcode when i will press the save button it will update my ztable.

The entries in this table should be created when a new sales order is processed and saved.

My Ztable having fields vbeln,vkorg, vtweg, spart & status field.

Now i wanted to write the logic if net value is greater than 5000 than it is high order value & status field should be updated as per above mentioned logic.

Anybody will pls tell me what I can do for this??

Pls tell me sample logic.

Pls reply my asap.

1 REPLY 1

Former Member
0 Kudos

Hi

Do your coding in

INCLUDE MV45AFZZ

in <i>FORM USEREXIT_SAVE_DOCUMENT</i>

Or use the similar functionality in BADI_SD_SALES

For the logic part

there will be two fields <b>XVBAK and XVBAP</b> which will be available in the user exit which will give u the data u need

Check XVBAP-ZMENG which you can use for quantity check

Regards

Deepak

Message was edited by:

Deepak Krishnakumar

Message was edited by:

Deepak Krishnakumar