{"id":7653,"date":"2025-08-27T13:48:05","date_gmt":"2025-08-27T08:18:05","guid":{"rendered":"https:\/\/www.sapewmhelp.com\/?question=what-is-idoc-and-basic-tcode-used-for-idocs"},"modified":"2025-08-27T13:48:05","modified_gmt":"2025-08-27T08:18:05","slug":"what-is-idoc-and-basic-tcode-used-for-idocs","status":"publish","type":"question","link":"https:\/\/www.sapewmhelp.com\/?question=what-is-idoc-and-basic-tcode-used-for-idocs","title":{"rendered":"What is IDOC and Basic Tcode used for IDOCS ?"},"content":{"rendered":"<p>An <strong>IDoc (Intermediate Document)<\/strong> is SAP\u2019s standard format for electronic data interchange (EDI) between SAP systems or between SAP and external systems. It acts as a structured container for data, ensuring that the information exchanged follows a predefined format, making communication consistent and reliable across different systems.<\/p>\n<h5>Structure of an IDoc<\/h5>\n<ol>\n<li>\n<p><strong>Control Record<\/strong> \u2013 Contains metadata (sender, receiver, IDoc type, etc.).<\/p>\n<\/li>\n<li>\n<p><strong>Data Records<\/strong> \u2013 Actual business data (sales order, material, etc.).<\/p>\n<\/li>\n<li>\n<p><strong>Status Records<\/strong> \u2013 Processing status (success, error, etc.).<\/p>\n<\/li>\n<\/ol>\n<p>Used for inbound (into SAP) and outbound (from SAP) communication.<\/p>\n<\/p>\n<h5>Common Scenarios for IDocs<\/h5>\n<ul>\n<li>\n<p>Sending <strong>sales orders<\/strong> from a non-SAP system into SAP.<\/p>\n<\/li>\n<li>\n<p>Transferring <strong>master data<\/strong> (customer, material) between SAP systems.<\/p>\n<\/li>\n<li>\n<p>Sending <strong>invoices, deliveries, purchase orders<\/strong> electronically.<\/p>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<table>\n<thead>\n<tr>\n<th><strong>Tcode<\/strong><\/th>\n<th><strong>Purpose<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>WE30<\/code><\/td>\n<td>Create IDoc type<\/td>\n<\/tr>\n<tr>\n<td><code>WE31<\/code><\/td>\n<td>Create segment<\/td>\n<\/tr>\n<tr>\n<td><code>WE81<\/code><\/td>\n<td>Create message type<\/td>\n<\/tr>\n<tr>\n<td><code>WE82<\/code><\/td>\n<td>Assign message type to IDoc type<\/td>\n<\/tr>\n<tr>\n<td><code>WE20<\/code><\/td>\n<td>Partner profile configuration<\/td>\n<\/tr>\n<tr>\n<td><code>WE19<\/code><\/td>\n<td>Test tool for IDoc processing (very common)<\/td>\n<\/tr>\n<tr>\n<td><code>WE02<\/code><\/td>\n<td>Display IDocs (overview &amp; details)<\/td>\n<\/tr>\n<tr>\n<td><code>WE05<\/code><\/td>\n<td>Display IDocs (alternative to WE02, with more selection options)<\/td>\n<\/tr>\n<tr>\n<td><code>BD87<\/code><\/td>\n<td>Reprocess failed IDocs<\/td>\n<\/tr>\n<tr>\n<td><code>WE09<\/code><\/td>\n<td>Search IDocs for specific data values<\/td>\n<\/tr>\n<tr>\n<td><code>WE60<\/code><\/td>\n<td>Documentation for IDoc types<\/td>\n<\/tr>\n<tr>\n<td><code>WE21<\/code><\/td>\n<td>Port definition (RFC, File, etc.)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h5>Quick Example Workflow<\/h5>\n<ol>\n<li>\n<p><strong>Create<\/strong> a new IDoc type: <code>WE30<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>Define segments<\/strong>: <code>WE31<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>Link to a message type<\/strong>: <code>WE81<\/code> + <code>WE82<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>Configure partner profile<\/strong>: <code>WE20<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>Send\/Receive IDocs<\/strong> \u2192 Check with <code>WE02<\/code> \/ <code>WE05<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>Reprocess errors<\/strong> \u2192 <code>BD87<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>Test<\/strong> \u2192 <code>WE19<\/code>.<\/p>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","question-category":[158],"question_tags":[178,380,177],"class_list":["post-7653","question","type-question","status-publish","hentry","question-category-abap","question_tags-abap","question_tags-idocs","question_tags-sap"],"_links":{"self":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/question\/7653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/question"}],"about":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7653"}],"wp:attachment":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7653"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fquestion-category&post=7653"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fquestion_tags&post=7653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}