Read the BAPI documentation, as well as the already available document at scn, how-to guide, code samples and discussions. There is also a FAQ OSS Note 520813 - FAQ: BAPIs for goods movements
Hint: look for GOODSMVT_CODE and MOVE_TYPE in documentation.
Regards,
Raymond