on 04-28-2015 1:46 PM
Hi Gurus,
I am using BAPI_DELIVERYPROCESSING_EXEC to create a delivery against SO and STO via IDOC. I need FM which will do ATP check for a given plant and most importantly BATCH before delivery creation. Tried to use FM BAPI_MATERIAL_AVAILABILITY but it has no option to check batch stock.
Inputs with a correct FM name is highly appreciated.
Regards
Vishal...
BAPI_MATERIAL_AVAILABILITY also checks if there is available quantity in the batch:
Import Parameters:
PLANT LIKE BAPIMATVP-WERKS
MATERIAL LIKE BAPIMATVP-MATNR
UNIT LIKE BAPIADMM-UNIT
CHECK_RULE LIKE BAPIT441V-PRREG
STGE_LOC LIKE BAPICM61V-LGORT
BATCH LIKE BAPICM61V-CHARG <<<<<<<<<<<<<<<<<<<<<<<<<
CUSTOMER LIKE BAPIKNVVKY-CUSTOMER
DOC_NUMBER LIKE BAPISDHEAD-DOC_NUMBER
This gets passed to the l_atpcs structure:
**************************************************
MOVE plant TO l_atpcs-werks.
MOVE stge_loc TO l_atpcs-lgort.
MOVE batch TO l_atpcs-charg. <<<<<<<<<<<
MOVE check_rule TO l_atpcs-prreg.
MOVE 'X' TO l_atpcs-chkflg.
**************************************************
If a batch is filled, the system will check availability stock in the batch.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
I tested the same and saw the same behaviour. Actually, the field AV_QTY_PLT will only display the quantity available at plant level. If you want to check the available quantity according to the batch that you have entered, you should look at the field WMDVEX-COM_QTY. This should hold the available quantity according to the storage location / batch.
Hope this helps.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.