cancel
Showing results for 
Search instead for 
Did you mean: 

Return order Quantity / Item Validation

Former Member
0 Kudos

Dear All,

I have 2 business requirements:

1)Return order allows to enter any material irrespective of materials mentioned in invoice.

My requirement is system should only allow to create return order for materials mentioned in Invoice.

2) If I enter quantity more than invoice quantity in Return SO, first time system gives error message. But let say i create partial delivery & then again if I return any quantity system will not stop. Example: In invoice i have 100 pieces, i tried to create return order of 120 pcs, then system will give me error message. Now i created partial return SO of 100 pcs and saved it. Now i created a new return SO of 80 more pcs, system will not stop me(it only gives warning message). My requirement is to stop it.

Regards

Rahul

Accepted Solutions (0)

Answers (2)

Answers (2)

prashant_sharma21
Contributor
0 Kudos

Hello rahul,

You can follow below settings

1. For Return order use Reference mandatory: M With ref.to billing document. (If you want to restrict some product to restrict in return then there is a separate settings).

2. your second requirement can be map through Copy control settings VTAF as mentioned by Shiva.

Thanks,

Prashant Sharma

Former Member
0 Kudos

Dear Prashant,

Thanks for your reply.

I have already maintained Reference mandatory wrt invoice & also i have already done the setting Mr Shiva suggested. Still my requirement is not met.

Regards

Rahul Singh

sez41
Active Contributor
0 Kudos

Rahul,

1- What you've asked cannot be covered in standard. Reference mandatory customizing (automatic popup) works only in Initial sales document screen. In order to achieve your requirement you'll need to explore development options, as one can always add an additional item to a sales document without reference even if Reference mandatory customizing is done properly (Hint: Program MV45AFZB, Form USEREXIT_CHECK_VBAP, check vgbel and vgpos fields and code accordingly).

2- Ditto. You'll need development as well. Program MV45AFZZ, Form  USEREXIT_SAVE_DOCUMENT_PREPARE will work.

siva_vasireddy2
Active Contributor
0 Kudos

Hi,

you can restrict as follows

VTAF--- Item level-Pos./neg. quantity +

Message settings—OVAH—V4 229 to E

Message Settings—SE91—V1 499 to E

Or

Programme---  INCLUDE MV45AFZZ

USEREXIT_SAVE_DOCUMENT.

Former Member
0 Kudos

Dear Shiva,

Thanks for your reply.

I have already done below settings earlier itself:

VTAF--- Item level-Pos./neg. quantity +


OVAH—V4 229 to E.

In SE91, we can only create message. We cannot make it to E.

Issue is system will check for excess quantity in return order first time & give error message. But when i create second return order with ref to Invoice system will accept any quantity.

Regards

Rahul Singh