A ABAP programmer, who is working with ALE-IDOC`s must know about WE19 T-code, WE19 T-code is used to test inbound IDOCS (test ground).By using WE19, we can able to change existing IDOC data and test (new IDOC will be generated), we can create new IDOC using message type, we can debug IDOC.
Follow the below steps to process/debug IDOC using WE19In below example we are using MATMAS message type to create a material.
Step1: Go to WE19, if you have IDOC no select 'Existing Idoc' radio button and provide IDOC number, execute.
If you don`t have IDOC number, select 'Basic Type' radio button and provide 'Basic type' as MATMAS04, execute.
Step2: Now you can see the segments related to MATMAS, double click on required segments, add data.
Similarly add data to all segements for mandatory fields.
Step3: Click on inbound function module button (on toolbar), a popup will come, provide inbound function module name as 'IDOC_INPUT_MATMAS01' for MATMAS message type.If you wants to debug IDOC, select 'Call in debugging mode' check box and enter
Step4: A new IDOC will be created.
Step5:Go to T-code WE09, provide IDOC no, execute, you will find the status.