Home > SAP software/management Tips > SAP tips and best practices > Converting IDocs to XML format
SAP Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

SAP TIPS AND BEST PRACTICES

Converting IDocs to XML format


Suresh Kumar Parvathaneni
12.08.2006
Rating: -4.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


This article details the step-by-step conversion of IDocs into XML format for further use in XI or any other application. It is assumed that the reader of this article has some knowledge in ALE, IDocs and change pointers.

Scenario

Conversion of the Material IDoc (Message type: MATMAS) to XML format and storage of the same in the application server of SAP.

Approach

Change pointers are used for sending IDocs for master data like Material Master. To work with change pointers, the following two steps have to be performed:

  • Turn on the change pointer update
  • Provide the message types to be included for change pointer updates.

To do the above configurations:
TCode: SALE -> IDoc Interface / Application Link Enabling (SALE) -> Modeling and Implementing Business Processes -> Master Data Distribution -> Replication of Master Data

ALE configuration steps

  1. Create a logical system for the sender system
  2. Assign the logical system to the client
  3. Create a logical system for the recipient
  4. Create RFC destination (Connection type:TCP/IP)
  5. [IMAGE]

  6. Create the model view (TCode: BD64)
  7. [IMAGE]

  8. Save the Model View and Generate Partner Profiles.
  9. There might be a problem with the automatic port creation. The port may need to be created manually.
  10. Create an XML Port from the transaction WE21 (Port type: XML File).
  11. [IMAGE]

    Directory is the path on the application server. The Function Module is used for file naming conventions. Any of the SAP-provided function modules could be used for this (Use F4 help to check on this) or you could create a custom function module for any other naming conventions. In the outbound trigger tab, mention the RFC destination created earlier.

    [IMAGE]

  12. Make an entry in the partner profile generated earlier for message type MATMAS.

    [IMAGE]

  13. A background job needs to be scheduled for a periodic run (interval as required) for the program RBDMIDOC with the message type MATMAS.
  14. Depending on the settings in the partner profiles, it may be necessary to send IDocs directly by executing the program RSEOUT00 (if the setting is to "Collect ...

    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



    RELATED CONTENT
    SAP tips and best practices
    Minimizing business disruptions during an SAP upgrade or implementation
    Retrieving content from an SAP workflow attachment
    Updating URLs in SAP SRM
    How to change default settings in SAP SRM
    What are the benefits of implementing SAP SRM?
    Increase column width in a transaction screen
    Updating an RT table entry in SAP HR Payroll -- without the ADDWTE option
    Is this the quickest way to find a BADI?
    Adding custom fields for retail product comparisons in SAP BW
    Improving performance with ABAP Objects in SAP Workflow

    SAP interface technologies
    SAP CTO expects today's SAP applications to be running in 2020
    SAP TechEd 09 keynoters: Managing change today like trying to board a speeding train
    SAP's Web 2.0 strategy makes way for social networking in business apps
    Error when clicking the SAP GUI logon button
    SAP applications demo: BP's key mapping
    Viewing a list of SAP interfaces
    Interface a locally developed application with SAP
    Will there always be an implicit commit in an RFC?
    Is there a way to search within IDocs using a purchase order number?
    Configuring the JDBC Connector Service to perform database lookups

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    Application Link Enabling  (SearchSAP.com)
    IDoc  (SearchSAP.com)
    Remote Function Call  (SearchSAP.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary


    IDocs")

Test the above scenario by creating a material using MM01. An XML file would have been created in the directory specified in the XML port. The file could be downloaded onto the front-end system using the transaction CG3Y.

Rate this Tip
To rate tips, you must be a member of SearchSAP.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



NetWeaver SAP White Papers
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts