cancel
Showing results for 
Search instead for 
Did you mean: 

Sales order type to be created with reference

colin_cheong
Contributor
0 Kudos

My finance wants the local company to create RETURN and Credit memo request compulsory with reference.

I understand the configuration can be set to reference to billing document.

The current sales order type is shared by both local and overseas company.

Is there any way to configure only for local company and not affecting overseas company?

Both are using the same document type. Any user exit that can be modified?

Accepted Solutions (0)

Answers (2)

Answers (2)

Lakshmipathi
Active Contributor
0 Kudos

Try with any of the following user exits

  • USEREXIT_READ_DOCUMENT in the program MV45AFZZ
  • USEREXIT_CHECK_VBAK in the program MV45AFZB

where you need to validate the field BEZOB based on the sales area

G. Lakshmipathi

Former Member
0 Kudos

Hi,

Dont set anything the configuration.

In MV45AFZZ User Exit Program, you can develop a code to check :

If company code =  XXXX

   If XVBRP-VGBEL = Blank

      Display Error message

   Endif.

Endif.

In this way, you can make reference document mandatory for one specific sale org / company code or any other org unit.

Hope this helps.

Regards

Raju

colin_cheong
Contributor
0 Kudos

Are you referring to the correct field?

XVBRP-VGBEL is supposed to be a billing item field, am I right?

My problem starts from the sales order.


Former Member
0 Kudos

if u are using different billing types then u can go through this,

in the copy requirement b/w invoice to order(VTAF)

give condition like if VBRK-FKART is F2 then allow to create returns order/credit/debit request.

Former Member
0 Kudos

when you create Sales order with reference tio any other document, that information will be stored in VBRP not in VBRK.

hence please use the above code.  That will mwork.

Regards

Raju