Skip to Content

Function for checking if a material is marked for deletion, blocked, excluded

Hello All,

I have to use BAPI_SALESORDER_SIMULATE with a list of materials. When there is a single material from the list that is marked for deletion, blocked or excluded(exclusion list), BAPI_SALESORDER_SIMULATE returns an error.

Is there a function in ABAP that I could use to find out if a material is blocked\deleted\excluded so that I could filter out the "invalid materials" before I call BAPI_SALESORDER_SIMULATE ?

Regards

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Sep 11, 2014 at 03:56 PM

    Hello Francois,

    Have your tested with BAPI - BAPI_MATERIAL_GET_ALL

    Regards!

    Carlos M

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 12, 2014 at 01:25 AM

    Can you try with BAPI_MATERIAL_GET_DETAIL?

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 12, 2014 at 06:53 AM

    Moved from SAP ERP Sales and Distribution (SAP SD) to ABAP Development

    G. Lakshmipathi

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 12, 2014 at 09:12 AM

    Hi,


    Hope it help full.


    Check the table MARA- General Material Data


    Field LVORM (Flag Material for Deletion at Client Level).




    Regards,

    Venkat.





    Add comment
    10|10000 characters needed characters exceeded