Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Help required BAPI_MATPHYSINV_COUNT

Former Member
0 Likes
1,177

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.

2 REPLIES 2
Read only

Former Member
0 Likes
685

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

Read only

0 Likes
685

Hi,

Its already maintained conversion for the material.