Rules for Structuring the Transfer File for Material Master Data 
General Structuring Rules
Creating Material Master Records
When you transfer data from a legacy system to the R/3 System, you can create material master records under new numbers assigned by the R/3 System (internal number assignment) or keep the same numbers as before (external number assignment). If you want to keep the old numbers, you must specify each of them when transferring the data. Be sure that the material number matches the material type. For more information, see the documentation for the activity Define Number Ranges in Customizing for the Material Master.
When extending or changing a material master record, you must always assign the number externally. To extend a material master record that you have just created (that is, in the same session), you must enter
0 as the material number. The program then automatically uses the number of the previously created material master record as the material number.When you create a material master record, you cannot use existing master records as a reference. Predefined settings have no effect.
If you want to create a material master record at several organizational levels of the same type (for example, several storage locations for a plant), you must create each organizational level individually.
When using profiles, be sure that the fixed values specified in the profile are not also transferred separately since this will otherwise result in an error when the session is processed.
The system uses the data you enter to determine which views to create. For example, if you specify a value for a field in the MRP view, this view is created.
Extending Data Transfer Structures
If you subsequently extend one of the structures listed under Structure-Specific Information below, the end of the structure is marked by a special field (SENDE). If you already use the new extended structure, enter the special character NODATA in this field when initializing the structure. This makes it possible for the system to recognize when importing the structure whether the data is based on the old structure or on the new structure.
Field Contents and Formats
The data that you transfer from a legacy system to the R/3 System must be compatible with the fields in the R/3 System. This means that the data must exist in the character or date format required by the direct input program, and that the fields in the legacy system must not be longer than the equivalent R/3 fields.
You have to make an entry for each field in the direct input structure. This can be one of the following:
You want to transfer a specific value
You want to delete an entry when changing a material master record.
You do not want to transfer any value, for example, because you do not use the field.
The special character is interpreted such that the current value of the field remains intact in the R/3 System. The current value can be one of the following:

When you create a material master record, the Price control indicator is proposed automatically as a result of the material type chosen. If you transfer data for this field in the direct input structure, the default values are overwritten. However, if you want to accept the default value given by the material type, you must enter the special character for this field in the direct input structure.
In the direct input program, / is used as the special character. If you want to use a different special character, you must define it in the session record in field BGR00-NODATA.
For initializing internal direct input structures with the special character, you use routine INIT_STRUKTUREN_ERZEUGEN in program RMMMBIMI. If you initialize your internal structures with this special character, you later enter only the field values to be transferred, for example, record type 1 and transaction code MM01. The system leaves fields in which you have not entered a value either blank or enters a default value or determines a value automatically.
Alternatively, you can specify that the special character in field BGR00-NODATA is blank. In the data record field, this has the following meaning:
You want to change the value.
You do not want to change the value, but leave it as it is.
You want to reset the field to its initial value.
You must enter all field values in the same format as you would enter them online, except entries in period fields for maintaining consumption values and forecast values. These entries must be in the format YYYYPPDD. The meaning of the individual characters is as follows:
4-digit year (for example, 1999)
2-digit period
Depending on the period indicator and fiscal year variant in structure BMMH1, this means:
2-digit day in the case of daily periods
Structure-Specific Information
The following structures are defined in the ABAP Dictionary. From the SAP standard menu, you can display the fields in a given structure by choosing Tools
® ABAP Workbench ® Development ® Dictionary. Enter the structure required and choose Display.The data you want to transfer is expected in the sequential file in the following order:
One session record for each direct input run
This structure contains the data valid for the direct input run. The client specified must be the same as the client in which you run the direct input program.
One header record with header data for each transaction
This structure contains, for example, the following fields:
You continue to use this field to transfer the current transaction codes (such as MM01).
You use this field if, in future, you need to transfer transaction codes longer than four characters. The content of this field is processed only if field TCODE is blank or contains the NODATA character.
All other records up to the next header record are assigned to the last transaction read.
Besides the transaction code, the header record contains all data for the initial screen (such as the material number, material type, and industry sector), and also for the Select View(s) dialog box and Organizational Levels dialog box.
You have the following options for transferring the maintenance statuses to be maintained:
The following maintenance statuses are possible:
Maintenance status |
View |
A |
Work scheduling |
B |
Accounting |
C |
Classification |
D |
MRP |
E |
Purchasing |
F |
Production resources/tools |
G |
Costing |
K |
Basic data |
L |
Storage |
P |
Forecasting |
Q |
Quality management |
S |
Warehouse management |
V |
Sales |
If you do not make an entry, the system uses the maintenance status determination type to determine the maintenance statuses automatically.
One main record for each transaction
The main record contains the following data:
If you have included new fields in master tables MARA, MARC, and so on (and appended them to BMMH1 to supply them by direct input), you must run program RMDATING with the Generate code for FGroup MGAD indicator set in order to regenerate program parts for program RMDATIND. Otherwise, the fields appended will not be supplied with data.
The following records occur only if you require additional data on the additional screens of the respective transaction:
One tax record with the tax classifications for each additional country (for example, if a sales organization sells from a plant belonging to a different country than the sales organization itself)
The tax data for a country is expected without omission. If the system finds a blank combination of tax category and tax classification, it performs a completeness check for the country concerned.
One forecast record for each forecast period
One consumption record for each consumption period
One material description record for each additional language for the material description
This structure contains, for example, the following fields:
You continue to use this field to transfer the single-character language key, for example, E for English.
You use this field to transfer the language in the new external format (ISO language key), for example, EN for English. The content of this field is processed only if field SPRAS is blank or contains the NODATA character.
One unit of measure record for each alternative unit of measure
In this structure, you also maintain the main EAN for each unit of measure. For information on additional EANs, see structure BMMH8.
One long text record for each line of a long text and for each language
The lines for each text type and language must follow in succession.
You can have the following text types:
Structure BMMH7 contains, for example, the following fields:
You continue to use this field to transfer the single-character language key, for example, E for English.
You use this field to transfer the language in the new external format (ISO language key), for example, EN for English. The content of this field is processed only if field SPRAS is blank or contains the NODATA character.
If you want to change a long text, you must specify the entire text in its new form. You cannot delete long texts by direct input.
In field BMMH7-TDFORMAT, you set the formatting for the current line as required. NODATA logic is not used for this field; this means that the value is always transferred exactly as specified. This makes it possible to transfer the value

For performance reasons, it is recommended that you transfer long texts using the separate SAPscript tool.
One International Article Number (EAN) record per EAN
You use this structure to transfer the additional EANs that you can manage for each unit of measure in a material master record. It must not contain any main EANs (see structure BMMH6). Unlike the other structures, the old EAN and the new EAN must be transferred for technical reasons. This structure contains the following fields:
If you want to create an additional EAN, enter the new EAN in field EAN11 in the case of external number assignment, or, with internal number assignment, enter the EAN category in field NUMTP. Leave field EANBI blank.
If you want to change an additional EAN, enter the existing EAN in field EANBI and complete fields EAN11 or NUMTP as though you were creating an additional EAN.
If you want to delete an additional EAN, enter it in field EANBI, leaving fields EAN11 and NUMTP blank.
Example
The transfer of data contained in a material master record could look something like this:

Fields for which you do not want to transfer a value (for example, because you do not use the field) must contain the special NODATA character. For more information, see Field Contents and Formats above.