2012 Feb 14 6:16 PM
Hi,
I need find a function to simulate the confirmations in purchase order.
The standard process is strange. Sometimes, reduces even though the total amount does not reach a confirmed total order. It's like the standard randomly chose the quantity to reduce.
Best Regards
Edited by: Andréa Molina on Feb 14, 2012 7:16 PM
2012 Feb 15 3:48 AM
Hi Andrea,
Can you explain requirement more clearly.
Regards,
Madhu.
2012 Feb 15 10:26 AM
We created a new way to make the p.o. confirmations.
The process of confirmations should be like a standard process (ME22N). When standard reduce, the Z program reduce too. To try make that I studied the standard process, but the process does not follow a logical pattern common to all situations.
After all, in our process we have two confirmations:
Y1 - Confirme and creat a requirement in MD04 and Y3 - Ship, don't create a new requirement BUT repalces the Y1.
Exemple: The vendor confirm the deliv. date. The Y1 confirmation is created. When the vendor send the item (if international vendor) a new confirmation is created - the Y3.
Now, follows a real exemple of situation:
The item has 6.000 PC - P.O quantity (total).
All conditions below has one Y1 and Y3 confirmations:
Situation 1: 3000(Y1) and 3050(Y3). The quantity reduces was 50.
Situation 2: 2000(Y1) and 2050(Y3). Nothing reduces.
Situation 3: 3050(Y1) and 3000(Y3). The quantity reduces was 50.
Situation 4: 3000(Y1) and 3000(Y3). Nothing reduces.
Situation 5: 3050(Y1) and 3050(Y3). The quantity reduces was 100.
The difference between the 1-3 and the 4 is only the quantity. The quantity isn't the same of total quantity of P.O.
It appears that when the sum of quantities a value greater than half of the total the standard reduces the quantities over half. But using logic it seems to me somewhat risky.
So, I'm looking for a bapi/function that do this count and provides the reduces quantity like the ME232N transaction.