Create a stock transport order in transaction ME59N (or ME59) though fields LFM1-KZAUT or MARC-KAUTB are not flagged.
- From the business point of view, when creating a intracompany STO, it is not necessary to check the settings in material or vendor master data, because in the follow-up purchase order, the leading actor is supplying plant, not the vendor, so system is working fine when allows to convert the purchase requisition in a purchase order through transaction ME59N, even though the field LFM1-KZAUT is not ticked.
- You can check this in program RM06BB30F01:
the PERFORM check_bukrs_umlag CHANGING . called and here the system fing that both plants belong to the same Comp.Code.
IF NOT l_same_company_code IS INITIAL.
CALL FUNCTION 'AIP01_PLANT_DETERMINE'
i_werks = ch_eban-reswk
e_ownls = l_ownls
OTHERS = 0.
IF NOT l_ownls IS INITIAL.
If yes, then ch_eban-flief is deleted. In the next form check_requisitions the first check comes on ch_eban-flief, which fails.
We never had a logic to check 'Automatic PO' for intracompany stock transport order. It would be considered only for intercompany STO where Vendor assigned to the plant would be checked for auto conversion. You can use BAdI ME_PROCESS_PO_CUST in order to get your desired functionality.