How to test SAP IDocs with your integration platform

SAP is and remains a tremendously popular ERP application. As integration specialists, we are all confronted one day with the integration of SAP. SAP has quite some history and one of the mechanisms it supports for integration are the so called IDocs.

As an integration engineer, you must feel comfortable in an SAP world. And know your SAP transactions (programs) to develop, test, debug and support the information exchanges to and from SAP ERP systems.

This blog will briefly show you how to do this!

Login and menu

Via the SAP Logon Pad log in to the desired system.

With the search bar you can go directly to different menus.

The only 2 important menus when sending or receiving IDocs are:

  • We02 (to view IDoc)
  • We19 (to send IDoc)

Viewing IDocs (in SAP)

Once you think your IDoc has been successfully delivered in SAP you can verify this using following steps.

Use the “IDoc list” menu (we02 shortcut). “Direction” should be “2”. This is for inbound IDocs. Then press the execute button (F5) indicated with the red square  on below screenshot.

In the window that appears you will be able to see all the inbound IDocs within the selected date range.

Sending IDoc from SAP to external program

Sending an IDOC from SAP to an external program you can use “Test tool for IDoc processing” menu (we19 shortcut). Actually what we do is re-sending an already existing IDoc again.

More advanced option is to generate a completely new IDoc by first making some changes to business data and generating a new IDoc. But let’s stick to the basic re-sending of an already existing IDoc.

Search for an existing IDOC. To do that press the button indicated in red in the picture below.

On the next window you can enter a date range, time range, very many other parameters. Most importantly is the IDoc name, also called ‘Logical Message Type’ (wildcard can be used).

After every desired parameter is filled in, press the execute button(F5) indicated with a red square in the next picture.

You will then receive a screen with all the IDocs found. Select one.

The ‘existing IDoc’ field that we saw in the first screen will now be filled in with an IDoc number. Press the ‘v clock button’ again. You will receive a new menu. Here press ‘standard outbound processing’ to send the IDoc. Select the amount of IDocs you want to send and continue.

And if everything goes well, the outbound IDoc pops up on my Integration Platform. IDocs are typically transported over the RFC protocol. On the Integration Platform we use the SAP JCo libraries to implement/support the (old) RFC protocol.

Author: Dries De Jonghe

Samuel Vandecasteele

Samuel Vandecasteele

Curious to know more about this topic?

Working at i8c

i8c is a system integrator that strives for an informal atmosphere between its employees, who have an average age of approx 30 years old. We invest a lot of effort in the professional development of each individual, through a direct connection between the consultants and the management (no multiple layers of middle management). We are based in Kontich, near Antwerp, but our customers are mainly located in the triangle Ghent-Antwerp-Brussels and belong to the top 500 companies in Belgium (Securex, Electrabel, UCB, etc…).

Quality Assurance

i8c is committed to delivering quality services and providing customer satisfaction. That’s why we invested in the introduction of a Quality Management System, which resulted in our ISO9001:2000 certification. This guarantees that we will meet your expectations, as a reliable, efficient and mature partner for your SOA & integration projects.

i8c - ISO9001-2015

Also worth reading

AWS AppFlow: Streamlining SaaS Integrations with AWS Services

In today’s digital world, organizations are constantly looking for ways to streamline their workflows and improve their data management processes. One of the key challenges that organizations face is integrating their various software as a service (SaaS) applications with their data management systems. This is

Read More »

Apigee Scope Validation using OpenAPI Specification

In API security and management, we often use a lot of different security mechanisms to protect the requested resource behind the API Gateway. One of these mechanisms is the validation of scopes to authorize a client on a specific sub-resource of the API. Most of

Read More »