Incorrect movement type on Goods issue created for Outbound delivery
For a specific FOC ( Free of Charge) scenario we are overriding the system determined schedule line category ZK ( with movement type Z01) to CP ( which has movement type 601 ) on the sales order item.
When we do the PGI the GI document picks up the incorrect movement type i.e. Z01 vs. expected 601.
We don't have user exits in the PGI process this is influencing the movement type change.
Also interestingly this doesn't happen when the schedule lines look like this i.e. product not confirmed for the requested delivery date.
This happens only when the product is confirmed for the requested delivery date.
Any pointer would be helpful!
Krishna Maram replied
You are correct, we did debug after clicking the PGI button on VL02n and figured that delivery copies the movement type from the schedule line ( VBEP) of the sales order and doesn't dynamically get it from the schedule line category config itself ( table TVEP) .
We updated the logic in the sales order exit to override the defaulted movement type ( i.e. before entering the plant ) in addition to overriding the Schedule line category which solved our issue.