All about Idocs Communication between BW and R/3



Similar documents
StreamServe Persuasion SP4 StreamServe Connect for SAP - Business Processes

BW Source System: Troubleshooting Guide

Step by Step Guide How to Copy Flat File from Other Application Server to BI and Load through Info Package

Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

Data Flow from LBWQ/SMQ1 to RSA7 in ECC and Delta Extraction in BI

Creating New Unit of Measure in SAP BW

How to Modify, Create and Delete Table Entries from SE16

Step by Step Procedure to Block and Debug a CIF Queue Flowing from R/3 to APO System

Reverse Transport Mechanism in SAP BI

Converting and Exporting Data in XML Format

SAP CRM Campaign Automation

Step by Step Procedure to Create Broadcasters, to Schedule and to Enhance of SAP- BI Queries from Query Designer

Extractor in R/3 and Delta Queue

Understanding DSO (DataStore Object) Part 1: Standard DSO

SAP CRM-BW Adapter an Overview

SAP BW - Excel Pivot Chart and Pivot Table report (Excel)

Invoice Collaboration: Self Billing Invoice

Create Automatic Mail Notification/ Alert for Process Chain Monitoring

SAP BI/BW LO Extraction

SAP BW 7.3: Exploring Semantic Partitioning

SAP CRM 7.0 E2C Setup: CRM via Toolset

ODEX Enterprise. Introduction to ODEX Enterprise 3 for users of ODEX Enterprise 2

Step by Step Guide for Language Translation Tool

Working with SAP BI 7.0 Data Transfer Process (DTP)

A Step-by-Step guide on SMTP Configuration and File to Mail Scenario Using Process Integration Scenario in PI 7.1

Compounding in Infoobject and Analyzing the Infoobject in a Query

IDoc Interface / Electronic Data Interchange (BC-SRV-EDI)

Order Split Usage in Production Orders

XSLT Mapping in SAP PI 7.1

Transfer of GL Master from Source SAP System to a Target SAP System through IDOCS

Middleware Configuration and Monitoring for Master Data Transfer from SRM to ECC

Step by Step guide of Report-to- Report Interface in BW Reporting

Display Options in Transaction SE16

ALE Settings, for Communication between a BW System and an SAP System

Creating and Scheduling Publications for Dynamic Recipients on SAP Business Objects Enterprise

SAP FI - Automatic Payment Program (Configuration and Run)

Step By Step Procedure to Create Logical File Path and Logical File Name

Inventory Management in SAP BW

Integrating SAP CRM with the SAP R/3 HR module

Data Aquisition Techniques in SAP Netweaver BW BI

Step by Step Guide to Extract Batch Master Data via Generic and Classification Datasource to BW

Creating Content Using SO10 Objects and Text Symbols

Sending an Image File Through XI in a File-to-Mail Scenario

SAP MM: Purchase Requisition with Classification and Workflow Approval

Embedding Crystal Reports inside ECC ALV Reports

How to Integrate CRM 2007 WebClient UI with SAP NetWeaver Portal

SDN Community Contribution

Process Controlled Workflow SRM 7.0 (Using BRF)

Deleting the User Personalization done on Enterprise Portal

Direct Subcontracting Process (SAP SD & MM)

Workflow Troubleshooting and Monitoring in SAP ECC 6.0

IDOC Payment Process with SAP

How to Load Data from Flat Files into BW PSA

SAP BW - Generic Datasource Function Module (Multiple Delta Fields)

SAP BW Configuration Basic System Settings

Step by Step Guide to Archiving and Deleting of XML Messages in SAP NetWeaver PI

Creation and Configuration of Business Partners in SAP CRM

Multi Provider Creation Based on Sales and Planning Info Cubes

Restricting Search Operators in any Search View

Guidelines for Effective Data Migration

SAP Workflow in Plain English

Deleting the Requests from the PSA and Change Log Tables in Business Intelligence

How to Assign Transport Request for Language Translation?

LSMW: Upload Master Data using Batch Input Recording

Standard SAP Configuration of SMS through HTTP with Third Party SMS Gateway

How to Generate Stack Xml for Ehp4 and Above Upgrade

Different Types of Alerts for Process Chains. Table of Content

Introduction to COPA and COPA Realignment

ABAP Debugging Tips and Tricks

CA-EDI. Certification of the EDI Interface

Automating Invoice Processing in SAP Accounts Payable

Configuring Java IDoc Adapter (IDoc_AAE) in Process Integration. : SAP Labs India Pvt.Ltd

ABAP Proxy Interfacing

Currency Conversion using Variables in SAP BI -Reporting

Deploying Crystal Reports on Top of a SAP BI Query

How to... Master Data Governance for Material: Use the Data Import Framework for Material. Applicable Releases: EhP6, MDG 6.1, MDG 7.

Electronic processing of invoice receipts as Managed Services pay-per-use

Exposing RFC as Web Service and Consuming Web Service in Interactive Forms in ABAP

SAP CRM Middleware Configurations

Inventory Management (0IC_C03) Part - 3

Configuration and Utilization of the OLAP Cache to Improve the Query Response Time

SDN Contribution Beginners guide to CRM Interaction Center (IC) Winclient setup

Web Application Designer for Beginners

Creating Transaction and Screen Variants

BW Performance Monitoring

First step to Understand a Payroll Schema

Deploying JDBC drivers in PI 7.1x Systems

Quick Viewer: SAP Report Generating Tool

Query OLAP Cache Optimization in SAP BW

Solution Manager Service Desk an End-to-End Helpdesk Solution

Data Extraction and Retraction in BPC-BI

Web Dynpro ABAP: ALV and Table in Popup Window

Salesforce.com Integration Using SAP PI: A Case Study

Salesforce Integration Using PI: How to Perform Query and Other DML Operations Using the Enterprise WSDL

Configuring HTTPs Connection in SAP PI 7.10

Overview of SAP BusinessObjects Risk Management 10.0

Scenario... 3 Step-by-Step Solution Virtual Infocube... 4 Function Module (Virtual InfoCube)... 5 Infocube Data Display... 7

Time Evaluation RPTIME00 Report Prerequisites, Process Flow and Storing results on Cluster B2

SAP BI Generic Extraction Using a Function Module

Sales Commission Calculation & Settlement Handling through Order Processing

Transcription:

All about Idocs Communication between BW and R/3 Applies to: SAP BI 7.0. Summary Data acquisition from an SAP source system is a very common scenario in SAP BW. This process involves extracting the data using either standard business content-provided extractors or custom-built extractors. Data extraction from an SAP R/3 source system to BW begins when BW sends a request in the form of a request IDoc. The source system then extracts the data and sends it to the BW system. During this activity of data transfer, the two systems exchange additional information from time to time in the form of info IDocs. These info IDocs also transfer the information about the extracted data, such as data source details, data package number, and number of records. Therefore, you should acquire a detailed understanding of the IDoc exchange process. Author: Aadil Siddiqui Company: Patni Computers Ltd Created on: 21 January 2007 Author Bio Aadil Siddiqui is currently working in Patni Computers Ltd. He is working on SAP BI 7.0 and is mainly involved in Development and Enhancement work 2008 SAP AG 1

Table of Contents Basics of Idocs:...3 Communication between BW and R/3 during Extraction...3 Idoc Number and its Meaning...5 Transactions Related to IDocs...7 Related Content...9 Disclaimer and Liability Notice...10 2008 SAP AG 2

Basics of Idocs: An IDoc (intermediate document) is a standard data structure for electronic data interchange (EDI). IDocs are used for the data interchange between SAP systems as well as between an SAP system and an external system. IDocs serve as the vehicle for data transfer in SAP s Application Link Enabling (ALE) system. The contents, structure, sender, receiver, and current status of the IDoc are defined in the IDoc header. Data acquisition from an SAP source system is a very common scenario in SAP BW. This process involves extracting the data using either standard business content-provided extractors or custombuilt extractors. Data extraction from an SAP R/3 source system to BW begins when BW sends a request in the form of a request IDoc. The source system then extracts the data and sends it to the BW system. During this activity of data transfer, the two systems exchange additional information from time to time in the form of info IDocs. These info IDocs also transfer the information about the extracted data, such as data source details, data package number, and number of records. Therefore, you should acquire a detailed understanding of the IDoc exchange process. Communication between BW and R/3 during Extraction When BW executes an InfoPackage for data extraction, the system sends a request IDoc (RSRQST) to the Application Link Enabler (ALE) inbox of the source system. This IDoc (Figure 1) contains information such as the request ID (REQUEST), request date (REQDATE), request time (REQTIME), Info-Source (ISOURCE), and update mode (UPDMODE). The source system acknowledges the receipt of this IDoc by sending an info IDoc (RSINFO) back to the BW system. The status is 0 if it is OK or 5 for a failure. Once the source system receives the request IDoc successfully, it processes it according to the information in the request. This request starts the extraction process in the source system (typically a batch job with a naming convention that begins with BI_REQ). The request IDoc status now becomes 53 (application document posted). This status means the system cannot process the IDoc further. 2008 SAP AG 3

The source system confirms the start of the extraction job by the source system to BW by sending another info IDoc (RSINFO) with status = 1 (Figure 2). Transactional Remote Function Calls (trfcs) extract and transfer the data to BW in data packages. Another info IDoc (RSINFO) with status = 2 sends information to BW about the data package number and number of records transferred (Figure 3). 2008 SAP AG 4

At the conclusion of the data extraction process (i.e., when all the data records are extracted and transferred to BW), an info IDoc (RSINFO) with status = 9 is sent to BW, which confirms the extraction process. If no data is found in the source system for extraction, an info IDoc (RSINFO) communicates this to the BW system with status = 8. Idoc Number and its Meaning 0 Not used, only R/2 1 IDoc generated 2 Error passing data to port 3 Data passed to port OK 4 Error within control information of EDI subsystem 5 Error During Translation 6 Translation OK 7 Error during syntax check 8 Syntax check OK 9 Error during interchange handling 10 Interchange handling OK 11 Error during dispatch 12 Dispatch OK 13 Retransmission OK 14 Interchange Acknowledgement positive 15 Interchange Acknowledgement negative 16 Functional Acknowledgement positive 17 Functional Acknowledgement negative 18 Triggering EDI subsystem OK 19 Data transfer for test OK 20 Error triggering EDI subsystem 21 Error passing data for test 22 Dispatch OK, acknowledgement still due 23 Error during retransmission 24 Control information of EDI subsystem OK 25 Processing despite syntax error (outbound) 26 Error during syntax check of IDoc (outbound) 27 Error in dispatch level (ALE service) 28 IDoc sent to ALE distribution unit retroactively 29 Error in ALE service 30 IDoc ready for dispatch (ALE service) 2008 SAP AG 5

31 Error - no further processing 32 IDoc was edited 33 Original of an IDoc which was edited 34 Error in control record of IDoc 35 IDoc reloaded from archive 36 Electronic signature not performed (timeout) 37 IDoc added incorrectly 38 IDoc archived 39 IDoc is in the target system (ALE service) 40 Application document not created in target system 41 Application document created in target system 42 IDoc was created by test transaction 50 IDoc added 51 Application document not posted 52 Application document not fully posted 53 Application document posted 54 Error during formal application check 55 Formal application check OK 56 IDoc with errors added 57 Test IDoc: Error during application check 58 IDoc copy from R/2 connection 59 Not used 60 Error during syntax check of IDoc (inbound) 61 Processing despite syntax error (inbound) 62 IDoc passed to application 63 Error passing IDoc to application 64 IDoc ready to be transferred to application 65 Error in ALE service 66 IDoc is waiting for predecessor IDoc (serialization) 67 Not used 68 Error - no further processing 69 IDoc was edited 70 Original of an IDoc which was edited 71 IDoc reloaded from archive 72 Not used, only R/2 73 IDoc archived 74 IDoc was created by test transaction 2008 SAP AG 6

75 IDoc is in inbound queue Transactions Related to IDocs Transaction Code Short text /POSDW/IDIS BD100 BD20 BD41 BD42 BD43 BD55 BD55OLD BD56 BD59 BD65 BD66 BD69 BD73 BD75 BD79 BD79OLD BD83 BD84 BDM2 IDOC IDX1 IDX2 IDX5 IDXPW OYEA OYEB OYSN RE_RHALE_RGIN2IDOC RSEIDOC2 RSEIDOCA UPSMAS IDoc Parallel Processing IDoc display object channel view IDoc passed to application Dispatch IDocs for group Check IDocs for group Post IDocs for group Maintain IDoc Conversion Maintain IDoc Conversion Maintain IDoc Segment Filters Allocation object type -> IDoc type Maintain IDoc type required fields IDoc type field -> change doc.field Assignment of Message Type to IDoc Reposting of IDocs (ALE) Convert IDoc Status Maintain IDoc Conversion Rules Maintain IDoc Conversion Rules Send IDocs after an ALE error Post IDocs after ALE error Monitoring: IDocs in Receiving Sys. IDoc: Repair and check programs Port Maintenance in IDoc Adapter Meta Data Overview in IDoc Adapter IDoc Adapter - Monitoring IDoc Package Wizard IDoc administration Event coupling for IDoc inbound Number Range IDoc HR: Adjust HRMDRGIN to IDoc IDoc List Active IDoc Monitoring with Workflow Post UPSMAS-IDocs 2008 SAP AG 7

UPSREP05 WE02 WE05 WE06 WE07 WE09 WE10 WE11 WE23 WE30 WE31 WE32 WE34 WE40 WE56 WE60 WE61 WE72 WE82 WE84 WEINBQUEUE WEOUTQUEUE WPIE Post UPSRCP IDocs Display IDoc IDoc Lists Active IDoc monitoring IDoc statistics Search for IDocs by Content Search for IDocs by Content Delete IDocs Verification of IDoc processing IDoc Type Development Development IDoc Segment Development IDoc View Object for Display of XML IDocs IDoc Administration IDoc Administration Documentation for IDoc types Documentation for IDoc record types Conversion: IDoc types Assign Messages for IDoc Type Assignment of IDoc and appl. fields IDoc Inbound Queue IDoc Outbound Queue Inbound modified IDocs 2008 SAP AG 8

Related Content Please include at least three references to SDN documents or web pages. http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a662d507d11d18ee90000e8366fc2/frameset.htm http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a662d507d11d18ee90000e8366fc2/frameset.htm https://www.sdn.sap.com/irj/sdn/thread?threadid=198951 2008 SAP AG 9

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2008 SAP AG 10

Filename: All About Idocs.doc Directory: C:\Documents and Settings\c5080368\Desktop\links\to be done\2008\january\29 Template: C:\Documents and Settings\siddiqaa\Local Settings\Temporary Internet Files\OLK100\SDN_BPX Word Template.dot Title: Enter Title Here: Do not exceed space provided - Title automatically appears in page header Subject: Author: siddiqaa Keywords: Comments: Creation Date: 1/29/2008 12:01:00 PM Change Number: 4 Last Saved On: 1/29/2008 12:03:00 PM Last Saved By: c5080368 Total Editing Time: 3 Minutes Last Printed On: 1/29/2008 12:04:00 PM As of Last Complete Printing Number of Pages: 10 Number of Words: 1,699 (approx.) Number of Characters: 8,991 (approx.)