{"id":7766,"date":"2025-09-07T02:42:38","date_gmt":"2025-09-06T21:12:38","guid":{"rendered":"https:\/\/www.sapewmhelp.com\/?question=how-to-create-a-segment-in-idoc"},"modified":"2025-09-07T02:42:38","modified_gmt":"2025-09-06T21:12:38","slug":"how-to-create-a-segment-in-idoc","status":"publish","type":"question","link":"https:\/\/www.sapewmhelp.com\/?question=how-to-create-a-segment-in-idoc","title":{"rendered":"How to create a segment in IDOC?"},"content":{"rendered":"<p>A <strong>segment<\/strong> in <strong>IDocs (Intermediate Documents)<\/strong> is a <strong>structure<\/strong> that groups related data fields.<\/p>\n<p>Each segment has:<\/p>\n<ul>\n<li>A <strong>unique name<\/strong> (e.g., E1KNA1M for customer master data).<\/li>\n<li>Defined <strong>fields<\/strong> with fixed length and data types.<\/li>\n<li>A <strong>hierarchy<\/strong> (segments can have child segments).<\/li>\n<\/ul>\n<p><strong>Create a segment.\u00a0 (WE31)<\/strong><\/p>\n<p>Create a segment as per the fields you want to get fetched. Like in zlibrary we can fetch the <strong>bookid bookname bookauthor<\/strong> etc.<\/p>\n<p>Segment name: <strong>ZSEGDPM<\/strong><\/p>\n<p><img decoding=\"async\" class=\"content-img\" src=\"https:\/\/www.sapewmhelp.com\/wp-content\/uploads\/2025\/09\/s1.png\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Now, release the segment.<\/p>\n<p><img decoding=\"async\" class=\"content-img\" src=\"https:\/\/www.sapewmhelp.com\/wp-content\/uploads\/2025\/09\/s2.png\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>After release, you can see the output as<\/p>\n<p><img decoding=\"async\" class=\"content-img\" src=\"https:\/\/www.sapewmhelp.com\/wp-content\/uploads\/2025\/09\/s3.png\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>After saving the segment if you want to make some changes then you need to first cancel the release and then make the changes.<\/p>\n<p><img decoding=\"async\" class=\"content-img\" src=\"https:\/\/www.sapewmhelp.com\/wp-content\/uploads\/2025\/09\/s4.png\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>By following the Above steps we can create a segment for an IDOC.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","question-category":[158],"question_tags":[178,410,177,381],"class_list":["post-7766","question","type-question","status-publish","hentry","question-category-abap","question_tags-abap","question_tags-idoc","question_tags-sap","question_tags-segment"],"_links":{"self":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/question\/7766","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=7766"}],"wp:attachment":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7766"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fquestion-category&post=7766"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fquestion_tags&post=7766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}