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: 

BADI ehss_spec_checks

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

JuanCarlosDelga
Contributor
0 Kudos

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.

2 REPLIES 2

JuanCarlosDelga
Contributor
0 Kudos

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.

Former Member
0 Kudos

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.