09-22-2014 7:38 AM
Hi Experts,
The BADI ehss_spec_checks which we are using for characterstic values for the material.
Could you please suggest us how to fetch the material from the master data....so that we can add logic to trigger the code.
Points will be rewarded.
Thanks,
Suni.
09-22-2014 9:04 AM
Hi Sunitha
From the BadI docuemntation
Usage
This BAdI is used in the specification management component (EHS-BD-SPE).
You can use this BAdI to define checks that you can carry out in the following places:
- When you open specifications
- When you save specifications
- During the specification-material assignment
- During the bill of materials (BOM) transfer if a specification is determined for a material
- During the bill of materials transfer if the relevant BOM items are determined
- As of Release SAP ERP 2005: During the bill of materials transfer if the units of measure of the BOM items are checked
You can use this BadI to issue additional messages in these places and to prevent specification data being saved or a specification-material assignment if the inspection result is negative. During the BOM transfer, you can use this BAdI to determine the specification that is relevant for the BOM transfer for a material that has several specifications assigned to it, for example.
This BadI checks specifications, not materials.
On the other hand, the specification can be assignment to one or several materials or material-center. So you must first checks this assignment.
Regards.
09-22-2014 9:04 AM
Hi Sunitha
From the BadI docuemntation
Usage
This BAdI is used in the specification management component (EHS-BD-SPE).
You can use this BAdI to define checks that you can carry out in the following places:
- When you open specifications
- When you save specifications
- During the specification-material assignment
- During the bill of materials (BOM) transfer if a specification is determined for a material
- During the bill of materials transfer if the relevant BOM items are determined
- As of Release SAP ERP 2005: During the bill of materials transfer if the units of measure of the BOM items are checked
You can use this BadI to issue additional messages in these places and to prevent specification data being saved or a specification-material assignment if the inspection result is negative. During the BOM transfer, you can use this BAdI to determine the specification that is relevant for the BOM transfer for a material that has several specifications assigned to it, for example.
This BadI checks specifications, not materials.
On the other hand, the specification can be assignment to one or several materials or material-center. So you must first checks this assignment.
Regards.
09-22-2014 1:40 PM
Hi,
Thanks for replying it is useful info.
I have solved through the field symbols.
The materila no is passed to the field symbol
field-symbols: <abc> type any." TABLE.
assign (c_prog) to <abc>.
if <abc> is assigned.
li_matnr = <abc>.
endif.
now i can retrieve the material, am closing this thread.
Thanks a lot for you help.