Description The program generates a function module called MATERIAL_READ_ fora user-defined function group. This function module can be used toimport the material master data that is assigned to the specifiedfunction group in table TVGVI. For this purpose, the program generatesthe specified function group if it does not exist already. If it doesalready exist, it will be deleted and then regenerated. The function group control program is set up in the following way: SAPLXXXX (XXXX = function group)
- LXXXXTOP (RMMMGTOP is used as a reference for this Include.)
RMMMGTO1 Contains general data definitions that are relevant for each functiongroup. LXXXXTAB Contains material master structures that, according to TVGVI, areassigned to the function group. It is generated in a similar way toLMATLTAB by program RMGNL021.
- LXXXXUXX
LXXXXU01 Contains coding that is almost identical for every function module tobe generated. RMMMGU01 is used as the reference for this Include. LXXXXCAS Contains the central Case loop of the function module. It is generatedin a similar way to LMATLCAS by program RMGNL021. LXXXXMTA Contains generated coding for determining the material type. This ishard-coded in SAPLMATL. Note: The "Move-art" field in TVGVI is used to generate this coding. Thisfield was not used in the material master record until now. If thefield contains the value X, the material type will be taken not fromMARA but from the specified DB view.
- LXXXXFOR
Contains subroutines specific to function groups. It is generated in asimilar way to LMATLFOR by program RMGNL021.
|