cancel
Showing results for 
Search instead for 
Did you mean: 

Customer (ZZ) fields cannot be processed for Manufacturer parts (HERS)

Former Member
0 Kudos

When sending an XML file from an external PLM system (with correct mapping), BAPI_MATERIAL_SAVEDATA cannot process ZZ-field for materials with material type HERS. Within the BAPI the append structure fields get cleaned and not sent over to table MARA. The structure BAPI_TE_MARA for BAPI_MATERIAL_SAVEDATA is populated accordingly. It contains the custom (ZZ) fields in its definition.<br>

Is there a way in customizing to populate the custom fields of manufacturer parts into table MARA via module BAPI_MATERIAL_SAVEDATA?<br>

Material type HERS is customized as standard SAP provides it. "Manufacturer part" is checked in section "Special material types".<br>

The settings of table T134 (Via SPRO: Logistics General --> Material Master --> Basic Settings --> Material Types --> Define Attributes of Material Types) are:<br><br>

Material Type : HERS Manufacturer parts<br> <b>General Data</b> Field reference : HERS<br> X-plant matl status : blank<br> SRef: material type : HERS<br> Item category group : blank<br> Authorization group : HERS<br> With Qty Structure : inactive<br> Initial Status : inactive<br> <b>Special material types</b><br> Material is configurable : inactive<br> Material f. process : inactive<br> Pipeline mandatory : inactive<br> Manufacturer Part : active<br> <b>User Departments</b><br> Purchasing : Active<br> <b>Internal/external purchase orders</b><br> Ext. Purchase Orders : 2<br> Int. purchase orders : 0<br> <b>Classification</b><br> Class type : blank<br> Class : blank<br> <b>Valuation</b><br> Price Control : blank<br> Acct cat. Reference : blank<br> Price ctrl mandatory : inactive<br> <b>Quantity/value updating</b><br> In no valuation area (Qty updating) : Active<br> In no valuation area (Value updating) : Active<br> <b>Retail-specific fields</b><br> Material type ID : General material type<br> Time till deleted : blank<br> Display material : inactive<br> Print price : inactive

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear Enda,

Thanks for the quick response. Unfortunately it doesnu2019t solve our issue.

We use the same logic for non-manufacturer part materials which works correctly.

The issue lies in the fact that table T134 has an active Manufacturer Parts checkbox.

The interface works fine when deactivating the checkbox.

Regards,

PHW

Enda
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello PHW ,

Please check following data are set in EXTENSIONIN & EXTENSIONINX

if you test in SE37, first.

EXTENSIONIN-STRUCTURE: BAPI_TE_MARC

EXTENSIONIN-VALUEPART1: blank 18 byte + value of appended fields

EXTENSIONIN-VALUEPART2: fill all the fields by '-' which means no data

EXTENSIONIN-VALUEPART3: same as VALUEPART2

EXTENSIONIN-VALUEPART4: same as VALUEPART2

EXTENSIONINX-STRUCTURE: BAPI_TE_MARCX

EXTENSIONINX-VALUEPART1: blank 18 byte + 'X' to the customer fields

EXTENSIONINX-VALUEPART2: fill all the fields by '-' which means no data

EXTENSIONINX-VALUEPART3: same as VALUEPART2

EXTENSIONINX-VALUEPART4: same as VALUEPART2

VALUEPART1 must be set completely the same length as BAPI_TE_MARC and

BAPI_TE_MARCX. Please count needed bytes and set values accourding to

data type rule.

If no data are set into some customer fields, they must be filled by

blank or '-'.

Please also refer to the attached notes 211815 and 545626.

The reason maybe because there is no field selection group

maintained for these fields, so no field selection during the

BAPI-execution is possible and no values are transmitted for these

fields. If you want to use these fields, then please maintain in the

customizing transaction OMSR for this field a field selection group

and set the fields to optional or input required. Then the values

should be saved during the creation by the BAPI.

Please, see the note 308291 regarding this matter.

Also, please, have a look at the note 44410, especially

relating to the settings in table T130F.

Thanks -

Enda.