Hello.
We have a custom RF program in our ERP EHP7 that creates transfer orders using FM L_TO_CREATE_TR and L_TO_CREATE_DN. But we use these FMs with defined SUs to be used, as scanned by the user. When the SU scanned is a consignment stock, the function modules return an error L3 037 "Storage type & does not allow negative stock figures". The material has available stock in that particular storage but all are consignment only.
When I debugged the FMs, in routine VONQUANT_BESTIMMEN of include LL03AF1C, at the time the selection from LQUA is made using the LTAP structure, consignment values (SOBKZ and SONUM) of the SU is not yet assigned to structure LTAP. The values of LTAP-SOBKZ and LTAP-SONUM are blank, therefore no row was selected from LQUA, hence, the error message. There are no other quant or consignment fields in the parameters of the function modules.
I validated with business and in both cases, transfer in reference of a TR and an outbound delivery, consignment stock can be used, especially when there are no own stock available (posting to own stock done in the background after picking). And using LT04 and LT03 with the particular consignment SUs are creating the TO successfully.
So my question is, have anybody encountered this? Do you have any recommendations how to go about this? Why is the consignment stock not considered? Should I open an OSS note? =D
Thanks in advance!