This article provides a code snippet on how to use BAPI_GOODSMVT_CREATE to change stock type of a batch. (Move a batch from unrestricted use to blocked status). Basically we will use the BAPI for event GM Code - 04 (Transfer posting).
There are many ways to find out which user exits (functional exits) get triggered for a particular transaction/program. There are many suggestions for this available in the internet. But in this article I will provide a easy method which will for sure work.
Tags: customer exit, Function module exit, search for call customer-function, search user exit for a program