IDOC क्या है?
आईडीओसी केवल एक डेटा कंटेनर है जिसका उपयोग किसी भी दो प्रक्रियाओं के बीच सूचनाओं के आदान-प्रदान के लिए किया जाता है जो डेटा के सिंटैक्स और शब्दार्थ को समझ सकते हैं।
दूसरे शब्दों में, एक IDOC एक निर्दिष्ट प्रारूप वाली डेटा फ़ाइल की तरह है, जिसका 2 प्रणालियों के बीच आदान-प्रदान होता है, जो उस डेटा की व्याख्या करना जानते हैं।
IDOC का अर्थ " इंटरमीडिएट दस्तावेज़" होता है
जब हम एक आउटबाउंड ALE या EDI प्रक्रिया निष्पादित करते हैं , तो एक IDOC बनाया जाता है।
SAP सिस्टम में, I DOC को डेटाबेस में संग्रहीत किया जाता है। हर IDOC में एक विशिष्ट संख्या (एक ग्राहक के भीतर) होती है।
इस ट्यूटोरियल में आप सीखेंगे:
- IDOC क्या है?
- एक IDOC की संरचना
- IDOC प्रकार
- एक खंड क्या है?
- एक्सटेंशन IDOC प्रकार क्या है?
- IDOC दृश्य
- पार्टनर प्रोफाइल
- बंदरगाह
- आउटबाउंड प्रक्रिया
- भीतर की प्रक्रिया
- आईडीओसी भेजने और प्राप्त करने वाली प्रणालियों से स्वतंत्र हैं । (SAP-to-SAP और साथ ही गैर-SAP)
- IDOC ईडीआई मानकों, ANSI ASC X12 और EDIFACT पर आधारित हैं। डेटा आकार में किसी भी संघर्ष के मामले में, यह एक को अधिक लंबाई के साथ अपनाता है।
- IDOC डेटा एक्सचेंज की दिशा से स्वतंत्र होते हैं जैसे ORDERS01: क्रय मॉड्यूल: इनबाउंड और आउटबाउंड
- आईडीओसी को एक टेक्स्ट एडिटर में देखा जा सकता है । बाइनरी प्रारूप के बजाय डेटा को चरित्र प्रारूप में संग्रहीत किया जाता है।
एक IDOC की संरचना
I doc संरचना में 3 भाग होते हैं -
- प्रशासन भाग ( कंट्रोल रिकॉर्ड ) - जिसमें आईडॉक, संदेश प्रकार, वर्तमान स्थिति, प्रेषक, रिसीवर आदि का प्रकार होता है। इसे कंट्रोल रिकॉर्ड कहा जाता है।
- एप्लिकेशन डेटा ( डेटा रिकॉर्ड ) - जिसमें डेटा शामिल है। इन्हें डेटा रिकॉर्ड / सेगमेंट कहा जाता है ।
- स्टेटस की जानकारी ( स्टेटस रिकॉर्ड ) - ये आपको विभिन्न चरणों के बारे में जानकारी देते हैं, जो ईदगाह से होकर गुजरे हैं।
आप लेन-देन WE02 या WE05 का उपयोग करके I-DOC देख सकते हैं
जैसा कि IDOC रिकॉर्ड के ऊपर के स्क्रीनशॉट में तीन भाग होते हैं नियंत्रण, डेटा और स्थिति। आइए उन पर विस्तार से देखें - नियंत्रण रिकॉर्ड
- सभी नियंत्रण रिकॉर्ड डेटा EDIDC तालिका में संग्रहीत किए जाते हैं। इस तालिका की कुंजी IDOC नंबर है
- इसमें IDOC नंबर, दिशा (इनबाउंड / आउटबाउंड), प्रेषक, प्राप्तकर्ता जानकारी, चैनल का उपयोग कर रहा है, यह किस पोर्ट का उपयोग कर रहा है आदि जैसी जानकारी है।
- दिशा '1' आउटबाउंड इंगित करता है, '2' इनबाउंड इंगित करता है।
डेटा रिकॉर्ड
- डेटा रिकॉर्ड में एप्लिकेशन हेडर जानकारी, साप्ताहिक विवरण, क्लाइंट विवरण आदि जैसे डेटा शामिल हैं
- सभी डेटा रिकॉर्ड डेटा EDID2 में EDID4 तालिकाओं में संग्रहीत किया जाता है और EDIDD एक संरचना है जहां आप इसके घटकों को देख सकते हैं।
- इसमें idoc नंबर, नाम और idoc में सेगमेंट की संख्या, पदानुक्रम और डेटा जैसे डेटा शामिल हैं
- वास्तविक डेटा को SDATA नामक फ़ील्ड में एक स्ट्रिंग के रूप में संग्रहीत किया जाता है, जो 1000 वर्ण लंबा क्षेत्र है।
स्थिति रिकॉर्ड
- स्टेटस रिकॉर्ड प्रत्येक मील के पत्थर पर I-DOC से जुड़ा होता है या जब यह त्रुटियों का सामना करता है।
- सभी स्थिति रिकॉर्ड डेटा को EDIDS तालिका में संग्रहीत किया जाता है।
- 1-42 स्टेटबाउंड आउटबाउंड के लिए हैं जबकि 50-75 इनबाउंड के लिए
IDOC प्रकार
एक I DOC प्रकार, (बेसिक) उस व्यावसायिक दस्तावेज़ की संरचना और प्रारूप को परिभाषित करता है जिसका विनिमय किया जाना है। एक IDOC एक IDOC प्रकार का एक उदाहरण है , जैसे प्रोग्रामिंग भाषाओं में चर और चर प्रकार की अवधारणा। आप WE30 का उपयोग करके IDOC प्रकारों को परिभाषित कर सकते हैं
एक खंड क्या है?
एक सेगमेंट I-DOC में डेटा रिकॉर्ड के प्रारूप और संरचना को परिभाषित करता है । खंड पुन: प्रयोज्य घटक हैं।
प्रत्येक खंड के लिए एसएपी बनाता है
- खंड प्रकार (संस्करण स्वतंत्र)
- खंड परिभाषा (संस्करण पर निर्भर)
- सेगमेंट डॉक्यूमेंटेशन
अंतिम 3 वर्ण खंड का संस्करण है
परिभाषाएँ संस्करण के अनुसार बदलती रहती हैं लेकिन खंड प्रकार समान रहता है।
लेनदेन: WE31
एक्सटेंशन IDOC प्रकार क्या है?
एक IDOC 2 प्रकार का होता है: -
- बुनियादी
- एक्सटेंशन
SAP कई पूर्व-परिभाषित बेसिक IDOC प्रकार प्रदान करता है जिन्हें संशोधित नहीं किया जा सकता है । यदि आप इन प्रतिबंधित बुनियादी प्रकारों में अधिक डेटा जोड़ना चाहते हैं तो आप एक्सटेंशन प्रकार का उपयोग कर सकते हैं। अधिकांश बार आप एक्सटेंशन का उपयोग नहीं करेंगे ।
प्रलेखन
प्रत्येक IDOC लेनदेन WE60 में अच्छी तरह से प्रलेखित हैं
संदेश प्रकार
एक संदेश एक विशिष्ट प्रकार के दस्तावेज़ का प्रतिनिधित्व करता है जो दो भागीदारों के बीच संचरित होता है Ex। आदेश, आदेश प्रतिक्रियाएं, चालान आदि
एक मूर्ख प्रकार कई संदेश प्रकारों
के साथ जुड़ा हो सकता है। लेनदेन WE81
IDOC दृश्य
एक IDOC प्रकार का उपयोग एक से अधिक संदेश प्रकारों के लिए किया जा सकता है, जिसके परिणामस्वरूप IDOC में किसी विशेष संदेश प्रकार के लिए आवश्यक से अधिक फ़ील्ड्स होते हैं।
पार्टनर प्रोफाइल
एक भागीदार को एक व्यावसायिक भागीदार के रूप में परिभाषित किया जाता है, जिसके साथ आप व्यवसाय करते हैं और दस्तावेजों का आदान-प्रदान करते हैं
। एक साथी की साझेदार प्रोफ़ाइल में, जिसके साथ हम Idocs का आदान-प्रदान करते हैं, हम उन मापदंडों को बनाए रखते हैं जो डेटा के आदान-प्रदान के लिए आवश्यक हैं। उपयोग किया जाने वाला लेनदेन WE20 है ।
बंदरगाह
The port defines the technical characteristics of the connection between your SAP system and the other system you want to transfer data with (subsystem). The port defines the medium in which data is exchanged between the 2 systems.
There are different types of ports. The 2 most commonly used are the TRFC ports used in ALE and File ports which EDI uses.
For TRFC ports we have to give the name of the logical destination created using SM59.
When using file port you can specify the directory where the IDOC file should be placed. The other system or the middleware will pick up the file from here. The Function module can be used to generate a file name for the idoc. While Testing you can use "Outbound file" to specify a constant file name. The tab "outbound trigger" can be used to supply information if we want to trigger some processing on the subsystem when an idoc is created at this location. We have to specify the command file name and the directory which has to be run.
This is so CONFUSING!
Let's understand the process of creating an IDOC with an example -
- Whenever a Purchase Order (PO) is created we want to send the IDOC to a vendor.
- The PO is sent in the form of an IDOC to the vendor (partner). That partner has to be EDI enabled in that system. SAP should realize that it could send doc to this vendor electronically.
- The PO sent as an outbound idoc by the customer will be inbound idoc for the vendor. The SAP system on the vendor's side can process this to create an application document (a sales order) on their system.
- Quotation, RFQ, PO, SO, Invoice, delivery note etc are some of the commonly exchanged documents through IDOC
The process of data transfer out of your SAP system is called the Outbound process, while that of data moving into you SAP system is called Inbound process. As a developer or a consultant who will be involved in setting up theses process for your organization. Here are the steps how to set them up-
The Outbound Process
Steps Involved -
- Create segments(WE31)
- Create an idoc type(WE30)
- Create a message type (WE81)
- Associate a message type to idoc type(WE82)
- Create a port(WE21)
- If you are going to use the message control method to trigger idocs then create the function module for creating the idoc and associate the function module to an outbound process code
- Otherwise, create the function module or stand-alone program which will create the idoc
- Create a partner profile(WE20) with the necessary information in the outbound parameters for the partner you want to exchange the idoc with.Trigger the idoc.
The Inbound Process
Steps Involved-
- Creation of basic Idoc type (Transaction WE30)
- Creating message type (Transaction WE81)
- Associating the Message type to basic Idoc type (Transaction WE82)
- Create the function module for processing the idoc
- फ़ंक्शन मॉड्यूल विशेषताओं को परिभाषित करें (BD51)
- संदेश प्रकार (WE57) के लिए इनबाउंड फ़ंक्शन मॉड्यूल आवंटित करें
- परिभाषित करने की प्रक्रिया कोड (लेनदेन WE42)
- भागीदार प्रोफ़ाइल का निर्माण (लेनदेन WE20)