Skip to Content

Error While Using FM L_INV_COUNT_EXT for Counting in WM

Dear All,

Am writing a program to automate Materials Counting with respect to Ware house Management. Let me first iterate what am doing in my code.

As a First step am trying to pass on the storage bins with respect to the storage type and try to get all the articles that belong to that Bin. I execute this method using FM L_INV_DOC_CREATE.

This step is successful for me, as it is creating a Physical inventory document without any error.

Now i try to count the relevant articles by inputting respective quantities. this is done using the FM L_INV_COUNT_EXT.

While i count through this FM, i get no issue when i execute only the articles that belong to the bin. But when i try to add some articles that do not belong to this bin am getting an exception as Check Problem 3.

When i debug further on this issue i get below error message:

The material XXXXXX does not exist or is not activated.

Kindly advice on what could be the root cause of the issue and please help how to overcome this issue to add any article that do not belong to a bin.

Your inputs are very valuable and thanks in Advance.

Regards,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 08 at 01:31 AM

    In fm L_INV_DOC_CREATE, please use parameter IV_LIAKT = 'X' for activate physical inventory document.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09 at 04:58 AM


    Thanks @Andy Pataselano.

    The Parameter is already passed as X

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 10 at 07:17 AM

    Thanks all, i resolved the issue.

    The issue was due to material not being extended to the required storage location.

    I have also went ahead and wrote a blog explaining the inventory concept, please refer below link.

    https://blogs.sap.com/2019/04/10/overview-guide-for-physical-inventory/

    Thanks

    Add comment
    10|10000 characters needed characters exceeded