Let start learning IDOC. IDOC is new to me as well. I learned it when I was in one of the project. It was great that I have the opportunity to learn new stuff. Back to the point… let start what you need to do with IDOC.
1) Create segment (WE31)
Of course it will have naming convention for different company. Here are some tips:
If you copy from existing or std segment eg: Z1E1EDP01_01.
If not you can just put Z1….but this is only the example.
2) Create IDOC Types (WE30)
3) Create message type (WE81)
4) Link message type with basic type (WE82)
5) Create FM
In the FM all the attributes should be the same for Inbound or Outbound. Basically you can get an example from the std FM eg: Inbound – IDOC_INPUT_DELVRY
Outbound – IDOC_OUTPUT_SHPMNT.
6) Create Process Code (Inbound – WE41/ Outbound – WE42)
IMPORTANT: Before you key in the FM, you are required to add the FM in this table V_TBD51.
7) Link FM with Basic Type
For testing go to WE19.
Here are some of the std program that you can use for IDOC:
1) RSNAST00 – Issuing Output type
2) RBDINPUT – Processing Inbound idocs
3) RBDAPP01 – Processing Idocs that already processed before
4) RBDSEMAT- Stand alone program to generate IDocs (Send Material)
5) RBDMIDOC – Outbound triggered from change pointer
6) RSEINB00 – Convert file to IDOC in status 64