cancel
Showing results for 
Search instead for 
Did you mean: 

How to create BOM automatically from SAP PLM - ECTR when MM has only 2views created from ECTR

arun_prasads
Participant
0 Kudos

Hi,

Material masters for all parts & assembly can be created automatically from SAP PLM - ECTR with only 2 views Basic Data1 & 2 and BOM cannot be derived from ECTR if material masters does not have all views or plant related information..

How do we automate this with material masters to be created with all views from ECTR (Prefilled values automatically) and BOM generated further...

Thanks

Arun Prasad

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Arun,

If you want create BOM automatically when check in DIRs in ECTR, you just need to define the "Default.txt" which directory is "\ECTR\customize\config".

"Default.txt" definition content as below.

# Define how to create a BOM. Set to true, ECTR will create a material BOM
# on checkin of a document with component references. If set to false,
# BOMs can only be created manually.
# true:  Create a bom at checkin
# false: Don't create a bom at checkin

      plm.bom.createAtCheckin = false


And if you wanna create material master including Plant view and create BOM in corresponding Plant, you should define "Default.txt" which directory is "\ECTR\customize\config" and "dtype.xml" which directory is "\ECTR\applications\XXX\customize\config".

"Default.txt" definition content as below.

# Set the default value for plant at BOM creation
#   plm.bom.plant.<material type> = <value>

      plm.bom.plant                       = 8018
      plm.bom.plant.FERT                  = 8018

"dtype.xml"definition content as below.

<material_create      material_creation_method="deferred"

                               material_number_assignment="internal"

                               material_type=""

                               material_template=""

                               material_plant_assignment="8018"

                               material_default_class=""/>

Hope it helps.

Martin

Former Member
0 Kudos

Yeah~

arun_prasads
Participant
0 Kudos

Hi All,

Thanks for your valuable response...

As per Martin's suggestion, I did try those options already... but ECTR is throwing some error plant data & plantdataX values are different... despite maintaining the same values...

I shall check on Gerhard';s suggestion..

However, we have developed a custom BAPI that extends the additional views of material that is created from ECTR.. automatically and BOM as well..

Thanks again.

Arun Prasad

Answers (1)

Answers (1)

GerhardHimmelsb
Advisor
Advisor
0 Kudos

Hello Arun,

you need to create a plant view as prerequisite to create a plant dependent BOM.

During creating of Material Masters you may implement a Badi/Exit to automatically create the Plant View for the specific Material Master.

Examples to create a plant view can be reused by this class~method: /PLMI/IF_EX_GSS_MBOM_ASSIST~PREPARE_MATERIAL_PLANTDATA.

Hope this helps

Regards

Gerhard