Solution : https://service.sap.com/sap/support/notes/333032 (SAP Service marketplace login required)
Key words :
vbap-matnr 'reference' flag setiv_werks reference field, vbap-werks 'reference' flag setexport parameter, create function module sd_mat_site_apoatpcheck, iv_matnr reference field, 'reference' flag set, ev_atpcheck_in_apo reference type, 'availability check' flag, sd sales order, material/plant combination, v45p short text
Related Notes :
460444 | VBAP-PROSA not filled for RBA subitems |
386466 | Performance of initial supply of sales orders |
332900 | Profit center entry is not transferred |
327848 | Reason for substitution not displayed in sales order |
318425 | Configuration data not created in the sales order |