cancel
Showing results for 
Search instead for 
Did you mean: 

Querries on V_V2

Former Member
0 Kudos


Dear Experts,

Needed your help.

We have 3 order types

Order-1  -Order type (ZH)

Order- 2 - Order type (ZM)

Order 3 - Order Type (ZL)

User has created multiple orders and all are awaiting for quntity confirmation to proceed for Dly/GI/Invoice.

In wearhouse, stock filling happens at 6AM,  allocation happens at 8 AM by using T-code V_V2.

Now, the issues is, when V_V2 executed, system should consider and reserve stock as mentioned below prority

ZH- 1st prority

ZM- 2nd

ZL - 3rd

Could you please guide how to set this in V_V2 batch program ?..

Really appreciate if you can share any screen shots

Thanks in advance

KVK

Accepted Solutions (1)

Accepted Solutions (1)

Lakshmipathi
Active Contributor
0 Kudos

You can change via MASS with Object Type BUS2032 where you can see the field  MASSVBAP-LPRIO.  Change the required Delivery Priority and execute so that your requirement can be achieved.

G. Lakshmipathi

Former Member
0 Kudos


Dear Balaji,

If we go on delivery basis, need to check each line item wise which is time consuming to the user.

May i ask you one question,

In V_V2, there is document category, what is this regarding? Can we do some thing on this field?

Regards,

KVK

former_member223981
Active Contributor
0 Kudos

Document Category refers to whether it is a sales order or an STO (See the sub entries of Document Category).

Answers (2)

Answers (2)

former_member223981
Active Contributor

Hi KVK,

Are all three order types using the same number range?

If not, then you can just sort with Document Number = priority 1.

I do not think there is a way to sort by order type. The sorting in V_V2 takes place at the following code:

SDV03V02 FORM XTAB_SORT

*************************************

SORT xtab BY (LV_SORT1) (LV_SORT2) (LV_SORT3)

             (LV_SORT4) (LV_SORT5).

*************************************

The problem is that the XTAB structure does not contain an "Order Type" field. Therefore, the system will not sort by it.

Former Member
0 Kudos

Hi Noel,

Thanks for the reply.

Number range is same for all 3 document types.

I prefer to do via order types... is there any other option?

Please advice.

Regards,

KVK

Former Member
0 Kudos

Hi, try to use sorting by delivery priority. For this you mast fill correspond field in item of sales order

Former Member
0 Kudos

Hi,

Thanks for the reply.

1) As SO has more than 1000 line items it would be difficult change at item level.

2) Is there any alternative way/menthod to do this? with any other T-Codes?

Please advice.

Regards,

KVK

former_member223981
Active Contributor
0 Kudos

I do not think there is any way to achieve this in the standard system.

Perhaps, you could get your ABAPer to create a Z program that updates VBAP-LPRIO based on the order type. Use this Z program as "step 1" in your batch job. The idea of the z program would be to assign priority 1 to order type ZH, priority 2 to Zm and priority 3 to ZL.

Then in step 2, report SDV03V02 (V_V2) is executed with a variant that will reschedule according to delivery priority (as illustrated by Maxim above)