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

Issue with FM : BAPI_MATPHYSINV_CREATE_MULT

Former Member
0 Likes
1,753

HI,

I am using the function module post physical inventory docuemnt.

There is one parameter where in you can pass the max number of items that you want on the document.

I have tired passing 999 and 99999 but the time it posted only 300 items system default limit.

Has any one ran into the same issue before?

CALL FUNCTION 'BAPI_MATPHYSINV_CREATE_MULT'

EXPORTING

head = l_wa_head

maxitems = v_max_count ( 999 or 99999)

TABLES

items = it_item

return = i_it_messages.

Thanks,

krishna

1 REPLY 1
Read only

Former Member
0 Likes
600

hi.

This is due to a limit in the function MB_GROUP_INVENTORY_ITEMS

the code here is

21 IF MAX_POSITIONS IS INITIAL.

22 MAX_POSITIONS = '300'.

23 ELSEIF MAX_POSITIONS > '300'.

24 MAX_POSITIONS = '300'.

25 ENDIF.

meaning that you may limit below 300 but not above it. I looked for notes and find one adding the max limit to 333 , but that's more or less the same.

There are a few good reasons to keep the nr of items down..

When you come to post teh differences you are limited to 999 postings to fi and each item with a gap requires 2 .. so it takes you down to 499 items as a good maximum.

And in the process of registrering the count you will also find better performance if the # items are "not too high"

And finally.. You are limited to the max nr of items = 999 ..due to the 3 digits item nr ..

So we have decided to live happily with the limit of 300..

Good luck..