2014 Jan 10 9:38 AM
Hi
When creating material using MM01. I understand:
1. Value of 'Procurement Type' (in 'MRP 2' view) is dependent on 'Internal/External Purchase Orders' values in material type settings (in T-code OMS2).
2. And if either of 'Internal/External Purchase Orders' settings is set to 0, we cannot change the procurement type settings at the material level i.e. procurement type is grayed out/disabled for input.
But when I am creating material using FM MATERIAL_MAINTAIN_DARK neither of the above two conditions apply.
Please suggest if point 1 and 2 are not correct (my understanding is wrong) or if I am using MATERIAL_MAINTAIN_DARK incorrectly
2014 Jan 10 10:03 AM
Hi,
I think you are using the value in a wrong way! In BAPI you need to pass the procurement type as the below values.
MARC_UEB-BESKZ =
Pass the correct value and try again! If the field enable and disable is depends the material type! nothing to do with the BAPI.
2014 Jan 10 10:03 AM
Hi,
I think you are using the value in a wrong way! In BAPI you need to pass the procurement type as the below values.
MARC_UEB-BESKZ =
Pass the correct value and try again! If the field enable and disable is depends the material type! nothing to do with the BAPI.
2014 Jan 10 10:16 AM
so if point 1 and 2 are correct.
and I am passing material type with 'Ext. Purchase Orders' as '2' and 'Int. purchase orders' as '0' in OMS2 and 'Procurement Type' as 'X'.
Why MATERIAL_MAINTAIN_DARK is creating material with 'Procurement Type' as 'X' (enable) w/o any error.
by default 'Procurement Type' should have been 'F' (grayed out).
2014 Jan 10 10:34 AM
Could be! It's all depends on your material type settings! However if you want to know that in the FM!
Check the below code and debug
FM : READ_MATERIALTYPE
perform beskz_vorschlagen.
inside the form!
if it134-bsext = besch_n and
( it134-bsint = besch_w or it134-bsint = besch_j ).
mtart_beskz = beskze.
endif.
if it134-bsint = besch_n and
( it134-bsext = besch_w or it134-bsext = besch_j ).
mtart_beskz = beskzf.
endif.
if ( it134-bsint = besch_w or it134-bsint = besch_j ) and
( it134-bsext = besch_w or it134-bsext = besch_j ).
mtart_beskz = beskzx.
endif.
The values are passing through the SPRO settings only
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |