cancel
Showing results for 
Search instead for 
Did you mean: 

Confirmed quantity during sales order migration

Former Member
0 Kudos

Do any of you experts see any issue with the following approach to set the schedule line confirmed quantity?

We need to migrate open order from Legacy to SAP system. While migrating we need to keep the schedule lines (dates and confirmed quantities) to be same as that in legacy (Note that legacy has exactly one schedule line per order).

For Migration we are using the program RVINVB10.

On order to bring in the confirmed quantity we plan to apply the following logic

1. Add following logic to user exit - MOVE_FIELDS_TO_VBEP (in MV45AFZZ)

If the order is a migrated order then

check if VBAP-POSEX <> '' (This an unused field so we will use this to pass the confirmed quantity)

then VBEP-BMENG = VBAP-POSEX

VBAP-POSEX = VBAP-MTVFP (Save Valye of Checking Group)

VBAP-MTVFP = ''. (clear the checking group to override the ATP check)

2. The following logic is added in User Exit SAVE_DOC_PREPARE (in MV45AFZZ)

If the order is migrated order then restore the value in VBAP-MTVFP from VBAP-POSEX and clear VBAP-POSEX.

This way we are able to get the confirmed quantity in schedule lines.

Any suggestions welcome,

Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The logic appears cool.

How are you planning to fill the Schedule line date?

Former Member
0 Kudos

IN BVBAPKOM we put the schedule line date in EDATU.

There is exactly one line in legacy so a single schedule line gets created for each line item and schedule line date is value we put in EDATU.

Let me know if you see any issues with same,

Regards,