Solution : https://service.sap.com/sap/support/notes/438649 (SAP Service marketplace login required)
Key words :
attached source code corrections, source code corrections, source code status, lc_retail tsysdef-sysdef, 'optional'release 45b, function modules 'mcb_determine_stocktype', function modules, tsysdef-sysdef, release 46b, stock type