| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | loop at lt_items. "prepare data for create... "...................................... CALL FUNCTION 'BAPI_GOODSMVT_CREATE'     EXPORTING       goodsmvt_header  = ls_header       goodsmvt_code    = ls_code     IMPORTING       materialdocument = lv_mat_doc     TABLES       goodsmvt_item    = lt_smvt_item       return           = lt_return. *--------------------------------------------------------------------* *   Clear locking flags of goods movement. This is a workaround *   for the check introduced to prevent multiple calls of *   MB_CREATE_... in one LUW. *--------------------------------------------------------------------*     PERFORM clear_xcommit(saplmbwl) IF FOUND. endloop. COMMIT WORK. | 
 
	