cancel
Showing results for 
Search instead for 
Did you mean: 

User Exit ?

Former Member
0 Kudos

Hi Friends,

I want to ask you an user exit for our issues.  We have two issues.

First, we dont want to let users to create a sales order if reconciliation account definition is empty in customer master records.

Second, users should not create sales order, delivery etc... if there is no cost estimation for goods.

Is there any user exit or exits for our issues? Thank you for your helps.

Best regards,

Muzaffer OZ

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Muzaffer,

You use exit as USEREXIT_SAVE_DOCUMENT for not allowing sales oredr to create once if reconcillation account defination is empty in customer master record. You can also apply logic for second issue in same exit so sales order will not create and no other logic require to control for delivery because oredr will not create then it will not further allow delivery to create.

Regards,
Amit

Answers (1)

Answers (1)

Former Member
0 Kudos

I think both of issues can be handled by config itself.

1.  if reconciliation account definition: make this field obligatory in account grou of the customer master. And infact usually this should be obligatory without that company code view does not make much sense.

2. Mandatory cost calculation of the item: you can include the VPRS in incompletion procedure and does not allow the order to save if VPRS not found.

Hop this helps.    

Former Member
0 Kudos

Thank you Amid for your answers.

We will try your first answer, because the reconciliation account definition is a must at us. The problem is, the sd side of the customer is created by sd department and fi side of customer is created by fi department. Sometimes sd department forget to tell to fi department to make the fi definitions. This is why we have such problems. We solve our first problem with MV45AFZZ.

Actually my second question is about we do not want to let users to make goods movement and create billing document if there is no cost estimation for goods at MM03. Can we use MV45AFZZ at VL01N and VF01. Or is there any userexit for this issue.

Best regards,

Muzaffer OZ

Best regards,

Former Member
0 Kudos

Thank you Amid for your answers.

We will try your first answer, because the reconciliation account definition is a must at us. The problem is, the sd side of the customer is created by sd department and fi side of customer is created by fi department. Sometimes sd department forget to tell to fi department to make the fi definitions. This is why we have such problems. We solve our first problem with MV45AFZZ.

Actually my second question is about we do not want to let users to make goods movement and create billing document if there is no cost estimation for goods at MM03. Can we use MV45AFZZ at VL01N and VF01. Or is there any userexit for this issue.

Best regards,

Muzaffer OZ

Best regards,

Former Member
0 Kudos

Hi Muzaffer,

For first questions answer,

Option 1:if you use configuration for customer master i.e.Make reconcillation account as mandatory with below config path then you will not face this issue in sales order level.

Financial accounting (New)>>Account receivable and Accounts payable>>Customer account>>Master data>>Preparation for creating customer master data>>Define accoutn groups with screen layout>>then select accpunt group as 0001 (Sold to party)>>then select double click on the company code data>> then click on account management and then click on Field required entry for reconcillation account so in customer master itself system will make this mandatory field and system will not allow to save customer. so you can control there only.

Option 2: But you want to control in User exit level then use include MV45AFZZ and user exit as USEREXIT_SAVE_DOCUMENT which will check in saving of sales document.

For second question answer:

For controlling to Post goods issue, you can use MV50AFZ1 include and exit inside as USEREXIT_SAVE_DOCUMENT_PREPARE.

To check in VF01, you can use the include as RV60AFZZ

Former Member
0 Kudos

Hi Amid,

We solved our problems with your helps. We choosed the second one for reconcilation account.

We used MV50AFZ1 user exit.

Thank you / Best Regards

Muzaffer OZ