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.
- Register logical system – bd54 or sale
- Create custom iDoc segments – we31
- Ascertain custom iDoc type – we30
- Create iDoc type
- Assign segments to iDoc Bones type
- Configure segment properties
- Create custom Bulletin Blazon – we81
- Assign iDoc Basic type to Message Type – we82
- Create Function Group – se80
- Develop iDoc processing Part Module – se37
- Define iDoc processing Role Module
- Lawmaking iDoc data processing ABAP logic
- Assign FM to Message Type/Basic Type combination – we57
- Configure characteristics of processing FM – bd51
- Configure custom entering Process Code – we42
- Create inbound Process Code
- Assign processing FM to Procedure Code
- Assign iDoc Message Type to inbound Process Code
- Setup Partner Profile – we20
- Create Partner Profile
- Configure inbound parameters of the Partner Contour
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'.
Let's annals the 60 minutes system equally 'TESTHR'.
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'.
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'.
Using Create button, add together segments created in the previous footstep to iDoc Basic Type.
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'.
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.
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.
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.
| IMPORTING VALUE (INPUT_METHOD) LIKE BDWFAP_PAR-INPUTMETHD VALUE (MASS_PROCESSING) Similar BDWFAP_PAR-MASS_PROC EXPORTING VALUE (WORKFLOW_RESULT) LIKE BDWF_PARAM- Effect VALUE (APPLICATION_VARIABLE) LIKE BDWF_PARAM-APPL_VAR VALUE (IN_UPDATE_Task) Similar BDWFAP_PAR-UPDATETASK VALUE (CALL_TRANSACTION_Washed) LIKE BDWFAP_PAR-CALLTRANS TABLES IDOC_CONTRL Construction EDIDC IDOC_DATA STRUCTURE EDIDD IDOC_STATUS STRUCTURE BDIDOCSTAT RETURN_VARIABLES STRUCTURE BDWFRETVAR SERIALIZATION_INFO STRUCTURE BDI_SER EXCEPTIONS WRONG_Office_Called |
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.
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.
Step 9: Using Transaction bd51 Configure Characteristics of Inbound Part Module.
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.
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.
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.
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.
Please leave a comment if you have any questions about Custom iDoc Creation steps.
DOWNLOAD HERE
Posted by: walkerdings1978.blogspot.com

0 Comments