Ansicht
Dokumentation
PM_GET_STORAGE_LOC_INBOUND - Inbound storage location determination
rdisp/max_wprun_time - Maximum work process run time Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
Functionality
This function module determines a storage location on the basis of entries in tables MARC, T001L and TWLOF (storage location determination).
Storage location determination is dependent on the following parameters:
- Target plant
- Situation
- Material
- Storage conditions of the material
- Indicator: Storage conditions of the material are determined by the calling program and are transferred to the function module.
- Promotion number:
If no situation is transferred, then the function module determines the situation on the basis of the entry in parameter "Promotion number":
- Promotion number exists: Situation = '02' (promotion)
- otherwise: Situation = '01' (standard)
If only one storage location exists for the target plant in T001L, then this is returned.
If several storage locations exist for the target plant, the procedure is as follows:
- If the situation is non-standard, the storage location for this situation is first determined via table TWLOF.
- If no storage location is found, and storage conditions are blank, the system checks whether a storage location is entered in field MARC-LGFSB (storage location for third-party procurement) for the plant and material in MARC.
- If it is not, the storage location is determined via TWLOF with the situation as "Standard".
TWLOF is accessed using the following next-level principle: The system first tries to find an entry
for target site, situation and storage condition, then tries to find an entry following the same sequence
but without the storage condition. If access to TWLOF is unsuccessful, and the situation is non-standard
(and relates only to placement in or removal from storage), the system searches TWLOF a second time
on the basis of the next-level principle described above, but this time searching only for placement in or removal from stock.
Example:
- Situation: Promotion = '02'
- Situation: Promotion, placement in stock only = '12'
- Situation: Promotion, removal from stock only = '22'
The function module is called with the following parameters:
Target plant: VZ01
Situation: '22'
Storage condition: '01'
Material number: 4711
During storage location determination, the system accesses data in the following sequence:
1) TWLOF with target plant, situation '22' and storage condition '01'
2) TWLOF with target plant, situation '22' and storage condition ' '
3) TWLOF with target plant, situation '02' and storage condition '01'
4) TWLOF with target plant, situation '02' and storage condition ' '
5) MARC not applicable as the storage condition is not blank
6) TWLOF with target plant, situation '01' and storage condition '01'
7) TWLOF with target plant, situation '01' and storage condition ' '
The storage location found first in this access sequence, plus the situation and storage condition accessed, are returned to the calling program.
Parameters
E_LGORTE_RAUBE
E_SITUA
FLEPAD_PAKTI
I_AKTNR
I_MATNR
I_RAUBE
I_RAUBE_READ
I_SITUA
I_WERKS
Exceptions
INVALID_PARAMETERSMATERIAL_NOT_FOUND
NO_ENTRIES_FOUND
NO_ENTRIES_MATCH
OTHER_ERRORS
Function Group
WAK3Fill RESBD Structure from EBP Component Structure rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 4022 Date: 20240523 Time: 125712 sap01-206 ( 59 ms )