2008 Dec 02 6:57 AM
Hi Abapers,
In BAPI_PO_CREATE1 function module, while creating the STO, by default 'Availability check' has been performed.
But in my scenario, Delivery has been completed already. So this availability check should not be happened.
How can I achiev it?
Please give me ur solutions as early as possible.
Thanks and regards
Subash
2008 Dec 02 7:03 AM
hi,
i think SAP checks LIPS-MTVFP value before avaibility... so if you set the value in such a way the avability check can be skipped...
ags.
2008 Dec 02 7:15 AM
But how can I do that. its in standard BAPI_PO_CREATE1. please give me your suggestions.
2008 Dec 02 7:33 AM
Hi S.A ,
doing availability check is standard process , even for online transactions also u wll get this issue , so what u can do is , try to find out any Enhancement which can skip this check for STO.
regards
Prabhu
2008 Dec 02 8:00 AM
u can pass field Delivery Completed" Indicator
structure BAPIMEPOITEM
field NO_MORE_GR
like:-
wa_item-material = p_matnr.
wa_item-plant = '3200'.
wa_item-quantity = 100.
wa_item-conf_ctrl = 'Z01'.
wa_item-ACKN_REQD = 'X'.
WA_ITEM-ERS = ''.
wa_item-NO_MORE_GR= 'X'.
APPEND wa_item TO it_item.
wa_itemx-po_item = p_int.
wa_itemx-material = c_x.
wa_itemx-plant = c_x .
wa_itemx-stge_loc = c_x .
wa_itemx-quantity = c_x .
wa_itemx-item_cat = c_x .
wa_itemx-acctasscat = c_x .
wa_itemx-conf_ctrl = 'X'.
wa_itemx-ACKN_REQD = 'X'.
WA_ITEMX-ERS = 'X'.
wa_itemx-NO_MORE_GR= 'X'.
APPEND wa_itemx TO it_itemx.