Application Development and Automation Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
rahul_mahajan
Active Participant
0 Likes
2,370

Introduction:

This article will describe in detail the usage of SMD tool with the customer exit which can be used for passing some additional fields while distributing the master data.  

In this article, we will take the example of material master data and additional field we would be considering is change number (AENNR).


Steps to be followed:  

Step1: Identify and Activate the Customer Exit.  

In this example, we are taking the example of material master data and hence we need to first identify the FM where we can put our code for passing the additional fields to the IDOC.


For Material Master Data the FM which is getting called is MASTERIDOC_CREATE_MATMAS.

If we see in detail, the MARA data is being copied to the structure E1MARAM. In this case, E1MARAM does have the field AENNR but not in MARA. Hence, somehow we need to fetch it and assign it to the E1MARAM.

Once we identify the customer exit, we can double click on the INCLUDE and press ENTER to activate it. It will take us inside the FM and there we can find the INCLUDE.

Step 2: Logic for fetching the change number and assigning it to E1MARAM structure.  

  Now, we can put the logic inside the include for fetching the change number.


Step 3:Execute the REPORT RBDMIDOC for your MESSAGE TYPE.  

It will create the IDOC from the change pointers.

Step 4:Verify the IDOC for E1MARAM and check if the AENNR is getting filled



Note: Please note that this is one way to use SMD tool for distributing the master data and user may needs to make some more changes depending on the his/her requirement.