‎2010 Aug 18 4:31 PM
I am using BAPI "BAPI_MATPHYSINV_COUNT" to post recount physical inventory document.
I am passing the values to that BAPI are:
v_phyinvno : physinventory document
v_gjahr : fiscalyear
v_cntdt : date
i_phitm1-entry_qnt
i_phitm1-batch
i_phitm1-zero_count
i_phitm1-material
i_phitm1-entry_uom
i_phitm1-item
CALL FUNCTION 'BAPI_MATPHYSINV_COUNT'
EXPORTING
physinventory = v_phyinvno
fiscalyear = v_gjahr
count_date = v_cntdt
TABLES
items = i_phitm1[]
return = i_return[].
I am getting below error during execution of above BAPI.
Error is "Material number XXXX is not maintained in the physical inventory document".
Material number which is in the error message is already maintained in the physical inventory document.
Please suggest me do i need to add any other information to that BAPI?
NOTE: Where as when i am using the same data by doing manually using MI04 transactions its getting posting.
Thaks in advance.
‎2010 Aug 19 4:50 AM
before passing the material change the format to internal/external :
CONVERSION_EXIT_MATN1_INPUT or CONVERSION_EXIT_MATN1_outPUT
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT '
EXPORTING
input = old matrial
IMPORTING
output = nw material
Edited by: pr@t on Aug 19, 2010 9:35 AM
‎2010 Aug 19 8:05 AM