Skip to Content

Programmatically Check if Physical Inventory Document is Active for SO Line

Hi all,

Prior to running BAPI_MATPHYSINV_CREATE_MULT I'd like to check if a physical inventory document is already active for a sales order line item / material. My thoughts are to read the ISEG table and check for entries that are not marked as deleted and do not have a posting date. Has anyone done this before that could help shed some light on this?

Thanks much!


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 23, 2017 at 09:09 PM

    IKPF is the header table that also has status fields that you could use.

    Add comment
    10|10000 characters needed characters exceeded

    • I was suggesting using the statuses on both the tables together and not just checking the item table. You can't just use the header, because there is no material on it. But, you can use the header to narrow down which documents are open, that will make your search on the ISEG faster - or you could even use a join.