Sap Download Manager Basket Content Could Not Be Read

Although we should e'er effort to reuse iDoc Message Types and iDoc Types provided with standard SAP content, in that location could be scenarios where you lot need to create a completly new Message Type and iDoc type with your ain custom processing logic. Permit'due south look at how to create and configure a completely new custom iDoc Blazon in SAP.

SAP Versions used in the analogy:

  • SAP S4 HANA Fashion 1709

Scenario or Requirement for Custom iDoc Type:

Allow's presume you take an external Human Resources Direction organisation and you lot want to transfer employee information to SAP from this external 60 minutes system using iDocs.

Overview of Steps to Create Custom iDoc Types.

  1. Register logical system – bd54 or sale
  2. Create custom iDoc segments – we31
  3. Ascertain custom iDoc type – we30
    • Create iDoc type
    • Assign segments to iDoc Bones type
    • Configure segment properties
  4. Create custom Bulletin Blazon – we81
  5. Assign iDoc Basic type to Message Type – we82
  6. Create Function Group – se80
  7. Develop iDoc processing Part Module – se37
    • Define iDoc processing Role Module
    • Lawmaking iDoc data processing ABAP logic
  8. Assign FM to Message Type/Basic Type combination – we57
  9. Configure characteristics of processing FM – bd51
  10. Configure custom entering Process Code – we42
    • Create inbound Process Code
    • Assign processing FM to Procedure Code
    • Assign iDoc Message Type to inbound Process Code
  11. Setup Partner Profile – we20
    • Create Partner Profile
    • Configure inbound parameters of the Partner Contour
Overview of custom iDoc creation steps
Overview of custom iDoc creation steps

Let's look at these steps in detail.

Stride 1: Define iDoc Sender System as a Logical System in SAP.

First, let's register the external 60 minutes system equally a Logical System in SAP. Go to ALE transaction 'SALE' and select 'DefineLogical System' nether 'Logical Systems'.

Select Define Logical System in transaction SALE
Select 'Define Logical System' in SALE.

Let's annals the 60 minutes system equally 'TESTHR'.

Register iDoc sender Logical System in SALE or BD54
Annals iDoc sender Logical System

You could too directly annals the Logical Arrangement using transaction bd54.

Step ii: Create iDoc Custom iDoc Segments using Transaction We31.

Go to iDoc segment creation transaction we31 and create two new segments 'ZEMP_HDR' and 'ZEMP_DESIGNATION'.

Create iDoc header segment in we31.
Create iDoc header segment in we31.
Configure iDoc detail segment in we31
Configure iDoc particular segment in we31

Using Segment Editor configure the fields of each segment. Set up the field names and assign a data type for each field.

Step 3: Create Custom Z iDoc Basic type using Transaction we30.

Become to iDoc Basic Type creation transaction we30 and create custom iDoc blazon 'ZEMPLOYEE_DETAIL'.

Select 'Create New'.

Create new custom iDoc Type in transaction we30
Create new custom iDoc Type in transaction we30

Using Create button, add together segments created in the previous footstep to iDoc Basic Type.

Add segments to iDoc basic type in transaction we30
Add segments to iDoc bones type in transaction we30
Configure iDoc segment maximum and minimum occurrences in we30
Configure iDoc segment maximum and minimum occurrences in we30

Prepare iDoc segment properties 'Maximum Number' and 'Minimum Number'. These 2 settings correspond to maximum number of occurrences and minimum number of occurrences of the iDoc segment. If you want to configure a segment as mandatory, ready the 'Minimum Number' as one.

Stride iv: Create Message Type using Transaction we81.

In alter mode, add new entry and ready the Message Type name as 'ZMSG_TY_EMPLOYEE_DETAIL'.

Create custom Message Type in we81
Create custom Message Type in we81
assign custom Message Type name in we81
assign custom Message Type proper name in we81

Step v: Assign Message Type to iDoc Type Using Transaction we82.

Assign the Message Blazon 'ZMSG_TY_EMPLOYEE_DETAIL' created in step iv with iDoc type 'ZEMPLOYEE_DETAIL' created in pace 3.  Notice, you also have to set the release version of your SAP system with the configuration.

Add new entry in transaction we82
Add new entry in transaction we82

Pace half dozen: Create Function Group in Transaction se80.

To assign the iDoc processing Function Module, create Function Grouping 'ZEMPDETAIL_INBOUND_IDOC' using transaction se80.

Function Group for inbound iDoc Function Module - se80
Function Grouping for inbound iDoc Function Module – se80

Pace 7: Create Inbound iDoc Processing Function Module in se37.

We need a Function Module to procedure inbound iDocs in SAP. Inbound iDoc role modules should exist in a certain format. That is, all inbound iDoc processing function modules have the same signature (import, export, tables and changing parameters). Only awarding/business logic of the function module is different in order to handle different Message Types and iDoc Types.

Signature of the inbound iDoc processing Function Module should be in below format.

Notice any standard inbound iDoc processing Function Module using transaction we57 and copy it to a custom Z function module in transaction se37. In this example I am using the standard Role Module 'BAPI_iDoc_Input1' to create my custom Z role module.

Copy inbound iDoc processing function module to custom z function module.
Copy inbound iDoc processing function module to custom z function module.
Custom inbound iDoc Processing Function Module format
Custom entering iDoc Processing Function Module format and ABAP logic

Write your own ABAP logic using IMPORT and TABLES parameters. Tabular array IDOC_DATA comprise iDoc segment data.

Footstep eight: Assign Message Type and iDoc Type to Role Module using Transaction we57.

Add new entry in we57 for custom Message Type, iDoc Type and Function Module
Add new entry in we57 for custom Message Blazon, iDoc Blazon and Function Module
Bind custom iDoc Function Module with Message Type and iDoc Type created.
Bind custom iDoc Function Module with Bulletin Type and iDoc Type created

Step 9: Using Transaction bd51 Configure Characteristics of Inbound Part Module.

configure inbound Function Module parameters
Configure inbound Function Module parameters

Step 10: Create Inbound Process Code in Transaction we42.

Create inbound process lawmaking 'ZEMP_DETAIL_POST' using custom iDoc Function Module created in footstep seven and assign the Logical Message 'ZMSG_TY_EMPLOYEE_DETAIL' to Procedure Code.

Configuration of inbound Process Code in transaction we42
Configuration of inbound Procedure Code in transaction we42
Assign logical Message Type to Process Code
Assign logical Message Type to Process Code

Step 11: In Transaction we20 Create Partner Profile.

Create Partner Profile in transaction we20 with the aforementioned proper noun of the Logical Organisation we had registered in Step 1.

Add new Logical System in we20
Add together new Logical System in we20
Create Partner type Logical System
Create Partner type Logical System

Stride 13: Configure Entering Parameters of Partner Profile using Transaction we20.

Configure Inbound Parameters with the Custom Message Blazon. Then assign the custom Z process code created in previous steps.

Add new Inbound Parameter for Partner
Add together new Entering Parameter for Partner
Configure Message type, Process Code and Processing Type for Inbound Parameter
Configure Bulletin type, Procedure Code and Processing Type for Inbound Parameter

Step 12: Using iDoc Test Transaction we19 Create Test iDoc.

To test newly created custom iDoc type, use transaction we19 and select examination using 'Basic Type'.

Fill information to iDoc segment by double clicking on each segment and execute the iDoc using 'Entering Function Module' option.

Test custom iDoc Type and Process Code in we19
Test custom iDoc Type and Process Code in we19

Please leave a comment if you have any questions about Custom iDoc Creation steps.

DOWNLOAD HERE

Posted by: walkerdings1978.blogspot.com