SAP Material; SAP Stock; SAP stocks; Trigger MATMAS IDoc using BTE event; Trigger MATMAS IDoc using BTE Function, SAP Material Master Tables, SAP MMBE; SAP MM03

Trigger MATMAS IDoc using BTE Function

Trigger MATMAS IDoc using BTE Function: this is a sample ABAP Program to generate a MATMAS IDoc for a Material Change using BTE event when a SAP Material is saved in MM02 / MM01.

Trigger MATMAS IDoc using BTE Function ABAP

First Step is to generate IDoc Control Record : EDIDC
The Second Step is to generate IDOC Data Table : EDIDD
The last step is to call the MASTER_IDOC_DISTRIBUTE to generate the IDoc

This sample ABAP function code is a little particular to generate MATMAS IDoc using BTE Function ABAP. This is a enhanced copy of the standard Function SAMPLE_INTERFACE_00001250.

Find more resource about the Most important Idocs Tcodes and Idocs Tables and also .

The second step is to fill some Data into MATMAS Idoc such

Check also   SAP GOS Attachment : Authorization and Technical Overview
  • E1MARAM : MARA
  • E1MAKTM : MAKT : Material Description Table
  • E1MARCM : MARC : Material Plant Data
  • E1MARDM : MARD : Material Storage Location Data
  • E1MARMM : MARM : Material Alternative Unit Table
  • E1MLANM : MLAN : Tax Classification for Material

The Last step is to generate the IDoc as following using MASTER_IDOC_DISTRIBUTE BAPI

Check also   SAP Info Record Table, Info Recort Tcodes and SAP Info Record Report

Here it is the Idoc MATMAS should be created when a material is Saved ( if the ALE configuration is already set-up)

Check also   Create SAP PO with Explicit PO Number

Leave a Reply

Your email address will not be published. Required fields are marked *