Enhancement of IDoc Type

By Suraj Kumar Pabbathi

Usually enhancement takes place when the content in IDocs provided by SAP are not sufficient for the business process. IDoc extension can take place whenever dictionary table has a new structure appended required by the business process. 

In brief IDoc extension takes place when extra fields are required for the business process.

Let us take a scenario and understand the process of IDoc extension.

In this scenario say visitor is different from the actual customer who has came to the sales office in behalf of the customer to obtain the quotation or inquiry etc. Or an authorized agent qualified by the actual customer to order for items. So a field by name NAMEVI (Visitor) is added to Customer master data. As there is no provision given by SAP to handle this, we need to extend an IDoc. 

The standard message type and IDoc type provided by SAP are DEBMAS and DEBMAS05. 

Consider the data in the table below for extending the IDoc. These details can be understood in different sections in the process of extending it. 

Basic IDoc type

DEBMAS05

Version

4.7

IDoc extension

DEBMASEXT

Custom segment

Z1KNA1

Fields in Custom Segment

Visitor

Parent of Custom Segment

E1KNA11

 Outbound process

Step1. Customize kna1 table by appending a structure provided by SAP (ZAKNA1) 

Component

                        Component Type

VISITOR

                                    NAMEVI

Step2: Write a module pool program to update some existing customers to add data  for Visitor. 

Step3: Create a custom segment

Transaction Code: WE31

Segment type: Z1KNA11   Click (create). Provide short text 

Field Name

                        Data element

VISITOR

                        NAMEVI

Save 

Step4: Create IDoc extension

Transaction

WE30

Object Name

DEBMASEXT

 Choose Extension

 

Click  and it leads to next screen.

Linked basic type: DEBMAS05

Provide description and enter

Observe all the segments to be copied into your IDoc extension from linked basic

type.

 Select E1KNA11 and click (create segment) to obtain a popup window

Provide the required values and observe child segment Z1KNA11 to be added to

 parent segment E1KNA11. 

Step5: Release segment and IDoc extension

Transaction: WE31

Segment type: Z1KNA11

Path: Edit à Set release

 

Step6: Assign Basic type to extension / messages

Transaction: WE82

Click , then

Select DEBMAS message type against DEBMAS06 basic type

Click  provide the information

Message Type

Basic Type

Extension

Version

DEBMAS

DEBMAS06

DEBMASEXT

            4.7

Delete the earlier one from which it was copied.

Save. 

Observe the result as follows

  

Contd..

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image