Application Development 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: 

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

former_member337204
Discoverer
0 Kudos

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

4 REPLIES 4

0 Kudos

Hello Francois,

Have your tested with BAPI -  BAPI_MATERIAL_GET_ALL

Regards!

Carlos M

Shiva_Ram
Active Contributor
0 Kudos

Can you try with BAPI_MATERIAL_GET_DETAIL?

Regards,

Lakshmipathi
Active Contributor
0 Kudos

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

G. Lakshmipathi

VenkatRamesh_V
Active Contributor
0 Kudos

Hi,


Hope it help full.


Check the table MARA- General Material Data


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




Regards,

Venkat.