In one of our customization there was a requirement where quantity allocated to transactions (order, delivery etc.) should be moved to another transaction. To do this we think of using standard Location change function. But creating location change record will not move the inventory allocated to specific document (it does the location change for available inventory randomly). After some investigation we have found the solution to move inventory allocated to specific transaction.
New Stuff: Determines the quantity of available memory at a given time
Adding an entry point to STKMAJ standard processing file you can easily achieve the above modification.
There are mainly 3 actions get called from STKMAJ:
STA_CRIT: in this action you can add a document criteria’s in WSTACRIT variable
STKMAJ: in this action filter the stock allocation [STOALL] table with the desired document number
AGRSTJ: in this action filter the stock allocation [STOALL] table with the desired document number
Refer to below screen shot for better clarification:
Also Read: