Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

'BAPI_GOODSMVT_CREATE movement type

Former Member
0 Likes
1,304

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

2 REPLIES 2
Read only

Former Member
0 Likes
846

I think it is 103. 103 is for GR into Blocked Stock.

Regards,

Ravi

Read only

0 Likes
846

I thinkfthats case for gm_code being goods reciept

but i have get it for TP-transfer posting code 04