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

User exit for SD Contracts

Former Member
0 Likes
2,412

Hi,

While creating the contract in the line item one field product hierarchy is a mandatory field.In our project we maintain upto 3rd level of product hierarchy but if user maintain upto first level only in the sales document system is not throwing an error while saving the contract.Now through user exit we want to throw an error message if product hierarchy field is not maintained upto 3rd level.

Anybody please tell which user exit shall i use or in which user exit VBAP table in transaction VA41 & VA42 hits?

I gone through IMG documenation in SD--User exit but not getting clarity.

Regards,

SATYA

3 REPLIES 3
Read only

Former Member
0 Likes
1,215

You can code here. program MV45AFZZ.

FORM: USEREXIT_SAVE_DOCUMENT_PREPARE

Read only

Former Member
0 Likes
1,215

Use BADI BADI_SD_SALES

Method SAVE_DOCUMENT

Hope this helps...

Read only

0 Likes
1,215

Hi,

I happend to view this thread. As per my understanding, the only way to handle this is with Userexit 'SAVE_DOCUMENT_PREPARE' under MV45AFZZ. The BADI 'BADI_SD_SALES' is for the SAP internal use and the customer can't create any implementation for the same.

I would appreciate your views on this.

Thanks,

Pooja