2007 Jan 29 12:53 PM
here are my requirements
The current functionality in SAP takes a Material and changes it from Unrestricted to Restricted at the time of Material Expiry.
The Following Functionality is required:
Upon automatically running a batch job the system will check for all expired Materials with a stock status of Restricted and change that status to Blocked
i have to call Call 'BAPI_GOODSMVT_CREATE' function module for creating the material document
Upon running Batch job, the program will look in table MCH1 for all Batch/Material combinations that have an expired SLED (field: VFDAT).
After finding all expired Batch/Material combinations in step one the program will then use that data to locate the associated Plants (field: WERKS) and Storage Locations (field: LGORT) in table MCHB
where BAPI2017_GM_CODE-GM_CODE = 04(Transfer Posting).
my question is after passing the selcted data into GOODSMVT_ITEM will the materials that i have selcted will automatically be changed from Restricted and change that status to Blocked
if so what would be the correct GOODSMVT_ITEM-MOVE_TYPE
please help
2007 Jan 29 1:01 PM
I think it is 103. 103 is for GR into Blocked Stock.
Regards,
Ravi
2007 Jan 29 1:09 PM
I thinkfthats case for gm_code being goods reciept
but i have get it for TP-transfer posting code 04