Creating An IDoc File On SAP Application Server - 4
Creating An IDoc File On SAP Application Server - 4
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
saptechnical.com/Tutorials/ALE/Guide/Index.htm 1/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Email: Basic IDOC Type Creation WE30
In Destination System:
Creating FM SE37
Client 900.
Client 800.
To transfer the data between two clients the table structures and their data types
should be match.
In this example, Client 900 is Source system, and Client 800 is destination system.
In Client 900 I have created a customized table and inserted some records.
Go to TCODE SALE.
IMG path IDoc Interface / Application Link Enabling (ALE) -> Basic Settings ->
Logical Systems -> Define Logical System
saptechnical.com/Tutorials/ALE/Guide/Index.htm 2/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Now you will come back to the IMG path screen. Click on Assign Logical System to
client.
saptechnical.com/Tutorials/ALE/Guide/Index.htm 3/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
saptechnical.com/Tutorials/ALE/Guide/Index.htm 4/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Step-by-step guide to ALE and IDOCs
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Creating the RFC Connection Names:
SAP Query
Userexits/BADIs
Go to TCODE SALE. Direct TCODE SM59
WebDynpro for Java/ABAPTM
Others
IMG Path IDoc Interface / Application Link Enabling (ALE) -> Communication -> Create
RFC Connections
Contribute?
Click on Logon Security tab and specify the details.
Sample Specs
What's Hot?
saptechnical.com/Tutorials/ALE/Guide/Page2.htm 1/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Name:
Email:
Subscribe Unsubscribe
GO
Click on the Special options tab and specify the details which you want.
Click on Back
Depends upon your settings the destination client will open. If you check the Current user
option under Logon/ Security tab, then it will show the screen directly without asking the
user name and password details.
saptechnical.com/Tutorials/ALE/Guide/Page2.htm 2/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Go to TCODE WE21
Select the Transactional RFC in left side tree and click on Create button
In dialog box you can select either Generate port name or own port name. If you select
Generate Port name system will generate automatically. Here I selected Own port name.
Click on continue.
Click on Save.
saptechnical.com/Tutorials/ALE/Guide/Page2.htm 3/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Repeat the same above process in other client. By using opposite client instead of 900
specify 800.
ð Go to TCODE SE11.
saptechnical.com/Tutorials/ALE/Guide/Page2.htm 4/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Step-by-step guide to ALE and IDOCs
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Creating the RFC Connection Names:
SAP Query
Userexits/BADIs
Go to TCODE SALE. Direct TCODE SM59
WebDynpro for Java/ABAPTM
Others
IMG Path IDoc Interface / Application Link Enabling (ALE) -> Communication -> Create
RFC Connections
Contribute?
Click on Logon Security tab and specify the details.
Sample Specs
What's Hot?
saptechnical.com/Tutorials/ALE/Guide/Page2.htm 1/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Name:
Email:
Subscribe Unsubscribe
GO
Click on the Special options tab and specify the details which you want.
Click on Back
Depends upon your settings the destination client will open. If you check the Current user
option under Logon/ Security tab, then it will show the screen directly without asking the
user name and password details.
saptechnical.com/Tutorials/ALE/Guide/Page2.htm 2/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Go to TCODE WE21
Select the Transactional RFC in left side tree and click on Create button
In dialog box you can select either Generate port name or own port name. If you select
Generate Port name system will generate automatically. Here I selected Own port name.
Click on continue.
Click on Save.
saptechnical.com/Tutorials/ALE/Guide/Page2.htm 3/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Repeat the same above process in other client. By using opposite client instead of 900
specify 800.
ð Go to TCODE SE11.
saptechnical.com/Tutorials/ALE/Guide/Page2.htm 4/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Step-by-step guide to ALE and IDOCs
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Creating IDOC Segments:
SAP Query
Userexits/BADIs
Go to TCODE WE31.
WebDynpro for Java/ABAPTM
Others
Specify a name and Click on Create Button.
What's New?
Contribute? Click on SAVE button, then it will show dialog box with user name, press
continue.
Sample Specs
What's Hot?
saptechnical.com/Tutorials/ALE/Guide/Page3.htm 1/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Email:
Subscribe Unsubscribe
GO
Click on Back button, and then you will see the created segment.
Go to TCODE WE30
saptechnical.com/Tutorials/ALE/Guide/Page3.htm 2/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
In next dialog box select create new option and specify the description of IDOC
and click on continue.
In dialog box specify the segment name which you created and check
mandatory check box.
saptechnical.com/Tutorials/ALE/Guide/Page3.htm 3/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Creating Message Type:
Go to TCODE WE81.
Specify a message type name and Description and click on SAVE button.
saptechnical.com/Tutorials/ALE/Guide/Page3.htm 4/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Step-by-step guide to ALE and IDOCs
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Assign Message Type to Basic IDOC Type:
SAP Query
Userexits/BADIs
Go to TCODE WE82
WebDynpro for Java/ABAPTM
Others
Click on Display / Change Button
What's New?
Note:
Contribute? ð Here the Release version you can find in this way
saptechnical.com/Tutorials/ALE/Guide/Page4.htm 1/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Name:
Email:
Subscribe Unsubscribe
GO
Specify description of model view and technical name in dialog box and press
continue.
Select your model view and click on Edit menu -> Add Message type
In dialog box specify the sender, receiver, message type and click on continue.
saptechnical.com/Tutorials/ALE/Guide/Page4.htm 2/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
saptechnical.com/Tutorials/ALE/Guide/Page4.htm 3/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Click on Back button 2 times, it will take back to Distribution Model screen.
saptechnical.com/Tutorials/ALE/Guide/Page4.htm 4/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Step-by-step guide to ALE and IDOCs
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Click on Edit Menu -> Model View -> Distribute.
SAP Query
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs Then it will show the Log of Model View Distribution.
What's Hot?
saptechnical.com/Tutorials/ALE/Guide/Page5.htm 1/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Subscribe Unsubscribe
GO
Write a Report Program in SE38 to create IDOC control records and transfer it to
destination partner system.
The following is the program to generate the IDOC control records and process it.
*&---------------------------------------------------------------------*
*& Report ZSHAN_IDOC_STUD
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ZSHAN_IDOC_STUD.
TABLES: ZSTUDENTS.
*&---------------------------------------------------------------------*
*& Form GENERATE_DATA_RECORDS
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM GENERATE_DATA_RECORDS .
IF SY-SUBRC NE 0.
MESSAGE E398(00) WITH 'No Students Found'.
ENDIF.
PERFORM ARRANGE_DATA_RECORDS.
saptechnical.com/Tutorials/ALE/Guide/Page5.htm 2/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
*----------------------------------------------------------------------*
FORM SEND_IDOC .
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
EXPORTING
MASTER_IDOC_CONTROL = S_CTRL_REC
* OBJ_TYPE = ''
* CHNUM = ''
TABLES
COMMUNICATION_IDOC_CONTROL = T_COMM_IDOC
MASTER_IDOC_DATA = T_EDIDD
EXCEPTIONS
ERROR_IN_IDOC_CONTROL = 1
ERROR_WRITING_IDOC_STATUS = 2
ERROR_IN_IDOC_DATA = 3
SENDING_LOGICAL_SYSTEM_UNKNOWN = 4
OTHERS = 5
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
COMMIT WORK.
LOOP AT T_COMM_IDOC.
WRITE:/ 'IDoc Generated - ', T_COMM_IDOC-DOCNUM.
ENDLOOP.
ENDIF.
*&---------------------------------------------------------------------*
*& Form ARRANGE_DATA_RECORDS
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM ARRANGE_DATA_RECORDS .
DATA: W_INDEX1 LIKE SY-TABIX,
W_INDEX2 LIKE SY-TABIX.
LOOP AT T_ZSTUDENTS.
S_ZSHSTUSEG-ZSTUID = T_ZSTUDENTS-ZSTUID.
S_ZSHSTUSEG-ZSNAME = T_ZSTUDENTS-ZSNAME.
T_EDIDD-SEGNAM = C_ZSHSTUSEG.
T_EDIDD-SDATA = S_ZSHSTUSEG.
APPEND T_EDIDD.
CLEAR T_EDIDD.
ENDLOOP.
Now execute the program, and specify the range of records to transfer
Click on Execute
saptechnical.com/Tutorials/ALE/Guide/Page5.htm 3/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
saptechnical.com/Tutorials/ALE/Guide/Page5.htm 4/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Step-by-step guide to ALE and IDOCs
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
In Client 800 Steps:
SAP Query
Userexits/BADIs
Function Module Creation:
WebDynpro for Java/ABAPTM
Others
Create a Function Module to update the table from the IDOC segments
Go to SE37
What's New? Specify a name and click on create.
Contribute?
Sample Specs
Specify the Export parameters in Export tab
What's Hot?
saptechnical.com/Tutorials/ALE/Guide/Page6.htm 1/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Email:
Subscribe Unsubscribe
GO
TABLES : ZSTUDENTS.
WORKFLOW_RESULT = C_WF_RESULT_OK.
saptechnical.com/Tutorials/ALE/Guide/Page6.htm 2/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
LOOP AT IDOC_CONTRL.
IF IDOC_CONTRL-MESTYP NE 'ZSHSTUDMT'.
RAISE WRONG_FUNCTION_CALLED.
ENDIF.
* Before reading a new entry, clear application buffer
LOOP AT IDOC_DATA WHERE DOCNUM EQ IDOC_CONTRL-DOCNUM.
W_ZSHSTUSEG = IDOC_DATA-SDATA.
MOVE-CORRESPONDING W_ZSHSTUSEG TO T_ZSTUDENTS.
INSERT INTO ZSTUDENTS VALUES T_ZSTUDENTS.
ENDLOOP.
IF SY-SUBRC EQ 0.
IDOC_STATUS-DOCNUM = IDOC_CONTRL-DOCNUM.
IDOC_STATUS-STATUS = '53'.
IDOC_STATUS-MSGTY = 'I'.
IDOC_STATUS-MSGID = 'YM'.
IDOC_STATUS-MSGNO = '004'.
IDOC_STATUS-MSGV1 = T_ZSTUDENTS-ZSTUID.
APPEND IDOC_STATUS.
CLEAR IDOC_STATUS.
ELSE.
IDOC_STATUS-DOCNUM = IDOC_CONTRL-DOCNUM.
IDOC_STATUS-STATUS = '51'.
IDOC_STATUS-MSGTY = 'E'.
IDOC_STATUS-MSGID = 'YM'.
IDOC_STATUS-MSGNO = '005'.
IDOC_STATUS-MSGV1 = T_ZSTUDENTS-ZSTUID.
APPEND IDOC_STATUS.
CLEAR IDOC_STATUS.
WORKFLOW_RESULT = C_WF_RESULT_ERROR.
RETURN_VARIABLES-WF_PARAM = 'Error_Idocs'.
RETURN_VARIABLES-DOC_NUMBER = IDOC_CONTRL-DOCNUM.
APPEND RETURN_VARIABLES.
CLEAR RETURN_VARIABLES.
ENDIF.
ENDLOOP.
ENDFUNCTION.
Go to TCODE WE57
Specify created FM name, Function Type, Basic Type (IDOC), Message Type,
and Direction and click on SAVE button.
saptechnical.com/Tutorials/ALE/Guide/Page6.htm 3/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
saptechnical.com/Tutorials/ALE/Guide/Page6.htm 4/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Step-by-step guide to ALE and IDOCs
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Define Input Method for Inbound Function Module:
SAP Query
Userexits/BADIs
Go to TCODE BD51
WebDynpro for Java/ABAPTM
Others
Click on Display / Change button
What's New?
Contribute?
Sample Specs
What's Hot?
saptechnical.com/Tutorials/ALE/Guide/Page7.htm 1/3
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Email: Creating Process Code:
Go to TCODE WE42
Subscribe Unsubscribe
GO Click on Display / Change Button
Specify a process code name, Description and select the options processing
with ALE services, Processing by Function Module.
In next screen select the FM name and click on SAVE button and Click on BACK
button.
It will take to you previous screen. Double Click on Logical Message in left side
tree.
saptechnical.com/Tutorials/ALE/Guide/Page7.htm 2/3
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
saptechnical.com/Tutorials/ALE/Guide/Page7.htm 3/3
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Step-by-step guide to ALE and IDOCs
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Specify the Message Type and Click on Save button
SAP Query
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs
What's Hot?
saptechnical.com/Tutorials/ALE/Guide/Page8.htm 1/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Name:
Email:
Subscribe Unsubscribe
GO
To check the partner profile details. Go to TCODE WE20. Select the partner system
name.
saptechnical.com/Tutorials/ALE/Guide/Page8.htm 2/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
Go to TCODE WE02
saptechnical.com/Tutorials/ALE/Guide/Page8.htm 3/4
7/1/2019 SAPTechnical.COM - Step-by-step guide to ALE and IDOCs
saptechnical.com/Tutorials/ALE/Guide/Page8.htm 4/4
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
Aim: Transfer the data from one system to another using user customized IDOC.
Document Categories:
Sender System:
ABAPTM Server: 172.25.8.185
Adobe Forms
ABAP-HR Client: 200
ALE & IDocs
ALV Data from Z table: zsach1
BAPI
BASIS ReceiverSystem:
BSP
Business Objects Server: 172.25.9.198
Business Workflow
CRM NEW Client: 800
LSMW
SAP Script/Smart Forms Data from Z table: zsach1
BI/BW
eXchange Infrastructure (XI) Data is fetched from Z table on the sender
Enterprise Portals (EP) system and inserted it in the Z table of
eCATT Receiver system using ALE/IDOC.
Object Oriented Programming
SAP Query
Userexits/BADIs Settings on the Sender End
WebDynpro for Java/ABAPTM
Others Table Creation T – Code SE11. The table contains data that is to be sent to Receiver.
T-Code – SALE
ABAP Test Cockpit HOT
SAP ABAP Pragmas
Understanding SE32 (ABAP
Text Element Maintenance)
Creating an IDoc File on SAP
Application Server
Understanding “Advance with
dialog” option of SAP Workflow
SAP Workflow Scenario:
Maintenance Notification
Approval
Enhancements to a standard
class
Working with Floating Field in
Adobe Forms
Inserting data from Internal
Table into the step “Send Mail”
Display GL Account long text
using enhancement framework
Differences between
polymorphism in JAVA and
ABAP Defining Logical System
Passing multiline parameters
from an ABAP Class event to a
Workflow container
Concept of Re-evaluate agents
for active work items in SAP
Workflow
Dynamic creation of component
usage in ABAP WebDynpro
Adobe Forms: Display symbols
like copyright and others
Deactivate Hold functionality in
Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using
BADIs
Tutorial on Wide casting Sap Tutorial ABAP Netweaver ABAP Objects
Defining a Range in Module
Pool Program
Copy fields from one
200 is our sender
structure/table into another
structure/table 800 is our receiver
Side Panel Usage in NWBC
Assigning Client to Logical System
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page1.htm 1/3
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
Subscribe Unsubscribe
GO
Step 1
Step 2
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page1.htm 2/3
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
Defining Port
The sender system is connected to the receiver system through this Port.
Continued...
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page1.htm 3/3
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
ALE-IDOC Scenario using Custom IDOC
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming Defining Partner Profiles
SAP Query
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page2.htm 1/3
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
Subscribe Unsubscribe Create new Distribution Model
GO
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page2.htm 2/3
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
Continued...
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page2.htm 3/3
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
What's New?
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page3.htm 1/3
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
Subscribe Unsubscribe This will take you to next screen as follows
GO
Here you have connected the basic type to the segment type.
This shows the relation between the basic and the segment types.
Next you need to make the entry of the segment in the system table.
Tcode : WE81
Here you are specifying the message type and the basic type and the release version.
This is all about the configuration you need to do on the sender side.
Now on the sender side you also need a program that will fetch the required data, couple it
in the IDOC format and post it.
*&---------------------------------------------------------------------*
*& Report ZSACH_CUST_IDOC *
*& *
*&---------------------------------------------------------------------*
*& *
*& *
*&---------------------------------------------------------------------*
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page3.htm 2/3
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
report zsach_cust_idoc .
parameters : p_logsys like tbdlst-logsys.
tables :zsach1.
data: begin of inttab occurs 0,
lname type z1hdr-lname,
fname type z1hdr-fname,
end of inttab.
data :
int_edidd like edidd occurs 0 with header line,
int_edidc like edidc occurs 0 with header line.
select * from zsach1 into corresponding fields of table inttab.
if sy-subrc ne 0.
message 'no data' type 'I'.
exit.
endif.
control_dat-mestyp = 'ZSACH'.
control_dat-idoctp = 'ZSACH'.
control_dat-rcvprt = 'LS'.
control_dat-rcvprn = p_logsys.
loop at inttab.
gen_data-lname = inttab-lname.
gen_data-fname = inttab-fname.
* GEN_DATA-SSN = INTTAB-SSN.
* GEN_DATA-DOB = INTTAB-DOB.
int_edidd-segnam = gen_segment.
int_edidd-sdata = gen_data.
append int_edidd.
endloop.
call function 'MASTER_IDOC_DISTRIBUTE'
exporting
master_idoc_control = control_dat
* OBJ_TYPE = ''
* CHNUM = ''
tables
communication_idoc_control = int_edidc
master_idoc_data = int_edidd
exceptions
error_in_idoc_control =1
error_writing_idoc_status =2
error_in_idoc_data =3
sending_logical_system_unknown =4
others =5
.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno.
else.
loop at int_edidc.
write :/ 'IDOC GENERATED',int_edidc-docnum.
endloop.
commit work.
endif.
Continued...
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page3.htm 3/3
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
ALE-IDOC Scenario using Custom IDOC
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Settings on the receiver side.
SAP Query
Userexits/BADIs
The ALE configuration is same as we did it on the sender side. Please refer to earlier pages.
WebDynpro for Java/ABAPTM
Others
The receiver specific differences are mentioned below.
T-Code – SALE
What's New?
200 is our sender
ABAP Test Cockpit HOT
SAP ABAP Pragmas
800 is our receiver
Understanding SE32 (ABAP
Text Element Maintenance)
Steps
Creating an IDoc File on SAP
Application Server
Understanding “Advance with Defining Logical System (Same as sender)
dialog” option of SAP Workflow
SAP Workflow Scenario: Assigning Client to Logical System (Same as sender)
Maintenance Notification
Approval Defining Target System for RFC Calls (Tcode – SM59) (Same as sender)
Enhancements to a standard
class
Working with Floating Field in Defining Port(Same as sender)
Adobe Forms
Inserting data from Internal
Table into the step “Send Mail”
Defining Partner Profiles – Here we are accepting the data from Sender system. Hence we need
Display GL Account long text to configure it as Inbound.
using enhancement framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to a
Workflow container
Concept of Re-evaluate agents
for active work items in SAP
Workflow
Dynamic creation of component
usage in ABAP WebDynpro
Adobe Forms: Display symbols
like copyright and others
Deactivate Hold functionality in
Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page4.htm 1/4
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
Subscribe Unsubscribe
GO
Here the message type is to be created again as it was created on the sender side.
The following steps are repeated, as done on the sender side, on the receiver end
Tcode WE30
Tcode WE31
Tcode WE82
Tcode WE81
Here on the receiver end, we need to specify a process code at the time of defining the partner
profile.
Process code is something that has the logic defined about what to be done after receiving the
IDOC.
In our case, on receipt of the IDOC, we are updating the Z Table. i.e Inserting the data from the
IDOC into the Z Table.
Tcode – WE42
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page4.htm 2/4
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
The logic associated is coded in the Function Module which is specified in the Identification
Field above.
To have your function Module in the above drop down list, the entry is to be made using the following
transaction
TCode – BD51
Once the entry is done here, the function module appears in the drop down list in the previous
stage.
Continued...
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page4.htm 3/4
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page4.htm 4/4
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
ALE-IDOC Scenario using Custom IDOC
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Also it is important to make the following entry
SAP Query
Userexits/BADIs
Tcode WE57
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page5.htm 1/3
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
Subscribe Unsubscribe
GO
Source Code
function z_idoc_input_sach .
*"----------------------------------------------------------------------
*"*"Local interface:
*" IMPORTING
*" VALUE(INPUT_METHOD) LIKE BDWFAP_PAR-INPUTMETHD
*" VALUE(MASS_PROCESSING) LIKE BDWFAP_PAR-MASS_PROC
*" VALUE(NO_APPLICATION_LOG) LIKE SY-DATAR OPTIONAL
*" VALUE(MASSSAVEINFOS) LIKE MASSSAVINF STRUCTURE MASSSAVINF
*" OPTIONAL
*" EXPORTING
*" VALUE(WORKFLOW_RESULT) LIKE BDWF_PARAM-RESULT
*" VALUE(APPLICATION_VARIABLE) LIKE BDWF_PARAM-APPL_VAR
*" VALUE(IN_UPDATE_TASK) LIKE BDWFAP_PAR-UPDATETASK
*" VALUE(CALL_TRANSACTION_DONE) LIKE BDWFAP_PAR-CALLTRANS
*" TABLES
*" IDOC_CONTRL STRUCTURE EDIDC
*" IDOC_DATA STRUCTURE EDIDD
*" IDOC_STATUS STRUCTURE BDIDOCSTAT
*" RETURN_VARIABLES STRUCTURE BDWFRETVAR
*" SERIALIZATION_INFO STRUCTURE BDI_SER
*" EXCEPTIONS
*" WRONG_FUNCTION_CALLED
*"----------------------------------------------------------------------
include mbdconwf.
data : it_emp_data like zsach1 occurs 0 with header line.
data : gen_data like zsach1 .
workflow_result = c_wf_result_ok.
data : counter type int4.
if idoc_contrl-mestyp ne 'ZSACH'.
raise wrong_function_called.
endif.
clear gen_data.
refresh it_emp_data.
loop at idoc_data where docnum eq idoc_contrl-docnum.
if idoc_data-segnam = 'ZSACH'.
gen_data = idoc_data-sdata.
it_emp_data-mandt = counter.
it_emp_data-lname = gen_data-lname.
it_emp_data-fname = gen_data-fname.
counter = counter + 1.
append it_emp_data.
else.
message 'ERROR' type 'I'.
endif.
endloop.
endloop.
insert zsach1 from table it_emp_data.
*****
call function 'EDI_DOCUMENT_OPEN_FOR_EDIT'
exporting
document_number = idoc_data-docnum
importing
idoc_control = idoc_contrl
tables
idoc_data = idoc_data
exceptions
document_foreign_lock =1
document_not_exist =2
document_not_open =3
status_is_unable_for_changing = 4
others = 5.
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page5.htm 2/3
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
clear t_itab_edids40.
t_itab_edids40-docnum = idoc_data-docnum.
t_itab_edids40-status = '51'.
t_itab_edids40-repid = sy-repid.
t_itab_edids40-tabnam = 'EDI_DS'.
t_itab_edids40-mandt = sy-mandt.
t_itab_edids40-stamqu = 'SAP'.
t_itab_edids40-stamid = 'B1'.
t_itab_edids40-stamno = '999'.
t_itab_edids40-stapa1 = 'Sold to changed to '.
*t_itab_edids40-stapa2 = t_new_kunnr.
t_itab_edids40-logdat = sy-datum.
t_itab_edids40-logtim = sy-uzeit.
append t_itab_edids40.
call function 'EDI_DOCUMENT_CLOSE_EDIT'
exporting
document_number = idoc_data-docnum
do_commit = 'X'
do_update = 'X'
write_all_status = 'X'
tables
status_records = t_itab_edids40
exceptions
idoc_not_open = 1
db_error =2
others = 3.
endfunction.
Continued...
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page5.htm 3/3
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
ALE-IDOC Scenario using Custom IDOC
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Running the Application
SAP Query
Userexits/BADIs
Sender system
WebDynpro for Java/ABAPTM
Others
Execute the program we created earlier
What's New?
Contribute?
Sample Specs
What's Hot?
Checking the data on the Receiver end
Web Dynpro for ABAP Tutorials
Tcode: WE02
Join the Mailing List
Email:
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page6.htm 1/2
7/1/2019 SAPTechnical.COM - ALE-IDOC Scenario using Custom IDOC
Subscribe Unsubscribe
GO
This way, the data has come to the receiver end successfully.
saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page6.htm 2/2
7/1/2019 SAPTechnical.COM - Distribute Master Data (Outbound)
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Distributing Master Data (Outbound)
eXchange Infrastructure (XI)
Enterprise Portals (EP)
By Sarang Kahu
eCATT
Object Oriented Programming
Master data can be distributed in two ways. In both case the IDOC receives data
SAP Query for only one master data object.
Userexits/BADIs
WebDynpro for Java/ABAPTM 1. Master data object sent directly
Others
This process sends the entire data of the master objects.
This is done by triggering a report program starting with RBDSEXXX where XXX
What's New? is the first three characters of the message type. Example for message type
MATMAS the program is RBDSRMAT. For DEBMAS the program is RBDSEDEB
ABAP Test Cockpit HOT and so on.
SAP ABAP Pragmas
Understanding SE32 (ABAP Text Inside the report programs a function module is called which is responsible for
Element Maintenance) generating and dispatching the IDOC for the master data. The naming
Creating an IDoc File on SAP convention for the function module is MASTERIDOC_CREATE_REQ__XXXXX
Application Server where XXXXX is the name of the message type.
Understanding “Advance with
dialog” option of SAP Workflow
The function module executes the change pointers and generates IDOC in the
SAP Workflow Scenario:
Maintenance Notification following manner
Approval
Enhancements to a standard Creates IDOC for each master data objects where the first field of each
class segment MSGFN is ‘005’.
Working with Floating Field in Pass the IDOC to the ALE layer by calling the function module MASTER
Adobe Forms IDOC_DISTRIBUTE.
Inserting data from Internal Table
into the step “Send Mail”
Executes COMMIT WORK and calls DEQUEUE_ALL Function module
Display GL Account long text
using enhancement framework
Differences between
2. Master data is distributed using SMD tool (Shared master data tool)
polymorphism in JAVA and
ABAP The SMD tools logs changes to a master data using changed pointers. Changed
Passing multiline parameters document should be written whenever the master data is changed or created or
from an ABAP Class event to a deleted. Only changed data is written to the IDOC, send to the ALE layer and
Workflow container dispatched to the other system.
Concept of Re-evaluate agents
for active work items in SAP
Workflow For example when a modification is recorded in customer information (VD02
Dynamic creation of component transaction), an entry is saved in BDCPS or BDCP2 table, it depends on the
usage in ABAP WebDynpro customizing. At the entry creation, the PROCESS field is empty. As soon as the
Adobe Forms: Display symbols change pointer has been processed, the field is filled with the value X.
like copyright and others
Deactivate Hold functionality in Steps for distributing Master data using SMD tool.
Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using BADIs Ø Define change relevant field for the message type
Tutorial on Wide casting
Defining a Range in Module Pool Transaction BD52
Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Contribute?
Sample Specs For master data to be distributed to other systems change document fields are
defined in transaction BD52 so that change pointers are written. This creates
entry in table TBD62.
What's Hot?
saptechnical.com/Tutorials/ALE/MasterDataDistribute/page1.htm 1/3
7/1/2019 SAPTechnical.COM - Distribute Master Data (Outbound)
Email:
Subscribe Unsubscribe
GO
Transaction BD50
Transaction BD61.
Transaction BD60
saptechnical.com/Tutorials/ALE/MasterDataDistribute/page1.htm 2/3
7/1/2019 SAPTechnical.COM - Distribute Master Data (Outbound)
Continued...
saptechnical.com/Tutorials/ALE/MasterDataDistribute/page1.htm 3/3
7/1/2019 SAPTechnical.COM - Distribute Master Data (Outbound)
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Distributing Master Data (Outbound)
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
A function module needs to be defined for each message type. This function module generates and dispatches the
SAP Query IDOC for the master data. The naming convention for the function module is
Userexits/BADIs MASTERIDOC_CREATE_SMD_XXXXX where XXXXX is the name of the message type.
WebDynpro for Java/ABAPTM
Others The function module executes the change pointers and generates IDOC in the following manner
Read all the changed pointers from change pointer table BDCP that has not been processed for the message type
What's New? using function module CHANGE_POINTERS_READ.
For each record retrieved from table BDCP populate IDOC segments. For each segment the first field
ABAP Test Cockpit HOT MSGFN is filled in the following manner
SAP ABAP Pragmas
Understanding SE32 (ABAP 009 – For any new master data
Text Element Maintenance)
Creating an IDoc File on SAP 004 – For any change in master data
Application Server
Understanding “Advance with 003 – For any deletion in the master data
dialog” option of SAP Workflow
SAP Workflow Scenario: 018 – If there was no change to the particular segment but the segment have to be included because
Maintenance Notification
Approval hierarchy subordinate segments have to be dispatched
Enhancements to a standard
class · Pass the IDOC to the ALE layer by calling the function module MASTER IDOC_DISTRIBUTE
Working with Floating Field in
Adobe Forms · For the master data that are processed set the change pointer status to ‘Processed’ in table BDCP by
Inserting data from Internal calling function module CHANGE_POINTER_STATUS_WRITE.
Table into the step “Send Mail”
Display GL Account long text
using enhancement framework Ø Adding message type to partner profile
Differences between
polymorphism in JAVA and
ABAP Transaction BD64
Passing multiline parameters
from an ABAP Class event to a Add message type for the master data to the distribution model and from menu path ‘Environment’ generate
Workflow container partner profile.
Concept of Re-evaluate agents
for active work items in SAP
Workflow Ø Create IDOC from change pointers
Dynamic creation of component
usage in ABAP WebDynpro Transaction BD21 - Program RBDMIDOC.
Adobe Forms: Display symbols
like copyright and others
SAP includes a scheduled program, RBDMIDOC that runs periodically to check the change pointers for a particular
Deactivate Hold functionality in
Purchase order (ME21N) message type. RBDMIDOC references the correct IDOC program for any given type via TBDME, which is maintained
Quiz on OOABAP through transaction BD60.
Add fields in FBL5N using
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC In the production system, it is obvious that the users will not launch the BD21 transaction by themselves. A periodic
job will be scheduled to execute the RBDMIDOC program, which is actually run by BD21 transaction, with a variant
containing the right message type.
Contribute?
Population custom field for extended IDOC.
Sample Specs For any modification or population of custom fields in extended IDOC through this program RBDMIDOC or
RDBSEXXX a user exit is available in function module MASTERIDOC_CREATE_XXXXX where XXXXX is the
What's Hot? message type.
saptechnical.com/Tutorials/ALE/MasterDataDistribute/page2.htm 1/2
7/1/2019 SAPTechnical.COM - Distribute Master Data (Outbound)
Subscribe Unsubscribe Extended IDOC Field: IDOC_CIMTYPE
GO
Set Change Document Flag on for custom fields
Transaction SE11
If change pointers are to be written for custom fields then the change document flag at the
domain level should be activated for that field. Then maintain an entry for this field in transaction BD52. Changes to
custom fields will be only picked if the change document for such fields is maintained in table BDCP.
Reference Links:
1. http://help.sap.com/saphelp_45b/helpdata/en/78/2178da51ce11d189570000e829fbbd/content.htm
2. http://help.sap.com/saphelp_nw04/helpdata/en/12/83e03c19758e71e10000000a114084/content.htm
3. https://www.sdn.sap.com/irj/sdn/thread?threadID=133101
saptechnical.com/Tutorials/ALE/MasterDataDistribute/page2.htm 2/2
7/1/2019 SAPTechnical.COM - Creation of Custom IDOC Type
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Creation of Custom IDOC Type
Trainings
By Sarang Kahu
Document Categories:
1.Business Case
ABAPTM
SAP R/3 systems send out data through IDoc (Intermediate Document), which in internally has
Adobe Forms
ABAP-HR
segments and fields containing the data. But sometimes, these fields are not sufficient for a specific
ALE & IDocs end-to-end business scenario as far as data transfer is concerned. So in such scenario, either few
ALV fields are to be added or subtracted, or completely new structure- IDoc needs to be created. This are
BAPI called as Custom – IDOC Types. Following blog gives out step-by-step approach for creation of the
BASIS same.
BSP
Business Objects
Business Workflow 2.Development of IDOC types
CRM NEW
LSMW
SAP Script/Smart Forms 2.1 Creation of Segment Types
BI/BW
eXchange Infrastructure (XI) Run T-code ‘WE31’ to create segment type, which has fields to contain the data and are added to the
Enterprise Portals (EP) segment type in the same transaction. The data stored contained into the segment mesh is finally
eCATT
stored in EDISEGMENT table.
Object Oriented Programming
SAP Query
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/CustomIDOC/Create.htm 1/2
7/1/2019 SAPTechnical.COM - Creation of Custom IDOC Type
Subscribe Unsubscribe Now, it takes you to following screen. Here you can add description for your IDoc type. Also you can
GO specify name of existing IDoc for Copy or Successor mode.
Now, you can maintain attributes of the custom IDoc, which consists of attaching segment type
created above to the IDoc type. Also specifying the details of frequency of these segments getting
filled i.e. Maximum and Minimum number. Fill the necessary details and release this IDoc type as
well.
Run T-code ‘WE81’ to create the logical message types. Go to Edit mode and click New Entry to go
to following screen.
Run T-Code ‘WE82’. Now we have to link these created IDoc types and Message types. Enter the
message type name, Basic IDoc type (ZCUST_IDC) and release type to be linked. In the data
transfer through ALE, these message types represent the IDOC structure.
Extension field above will be used as per the Extended IDoc type scenario i.e. in case of addition of
few more fields into the existing IDoc type.
Hence, now our Creation of Custom IDoc is ready to use in ALE scenarios.
saptechnical.com/Tutorials/ALE/CustomIDOC/Create.htm 2/2
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
ALE step by step Configuration for Message type
eXchange Infrastructure (XI) MATMAS
Enterprise Portals (EP)
eCATT By N.K.Chaitanya
Object Oriented Programming
SAP Query In this scenario, I explained the process for ALE configuration for MATMAS
Userexits/BADIs (Material Master Data).
WebDynpro for Java/ABAPTM
Others Go to Tcode SALE .Select Define Logical Systems.
What's New?
Contribute?
Sample Specs
What's Hot?
saptechnical.com/Tutorials/ALE/MATMAS/Index.htm 1/3
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
Name:
Email:
Subscribe Unsubscribe
GO
Now In SALE, select Assign Logical Systems to Client. You will get the below
screen.
saptechnical.com/Tutorials/ALE/MATMAS/Index.htm 2/3
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
saptechnical.com/Tutorials/ALE/MATMAS/Index.htm 3/3
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
ALE step by step Configuration for Message type MATMAS
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Now create RFC connections for two systems. In SALE you can select Create RFC Connections
SAP Query or you can directly go to Tcode SM59.
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/MATMAS/Page2.htm 1/3
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
Subscribe Unsubscribe In Logon & Security Tab Enter the Login details of the Receiver system (002 clients).
GO
Now Click on Connection Test. If you get the below it means the connection to the system is
successful. If the Connection fails then you will get error message.
saptechnical.com/Tutorials/ALE/MATMAS/Page2.htm 2/3
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
saptechnical.com/Tutorials/ALE/MATMAS/Page2.htm 3/3
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
ALE step by step Configuration for Message type MATMAS
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Now go to transaction SALE (client 001) ,go to Maintain Distribution Model and Distribute Views
SAP Query or else you can directly go to Transaction BD64.
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/MATMAS/Page3.htm 1/3
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
Subscribe Unsubscribe Now select the model view like above and then select Add message tpe. You will get the below
GO screen. Enter the Sender and Receiver and the Message type you want. Here we are sending
MATMAS data from ECC01 to ECC02.
Now when you expand the Model View You will get the below view.
Now again select the Model view and click on Generate Partner Profiles.
In Model View Enter the Model view name which you created and then in Partner system enter
the receiver system name (ECC02).
When you click on execute you will get the below screen. The port A000000017 will be created.
Now without creating the model view in receiver system you can distribute the model view so that
it will be sent to receiver system.
saptechnical.com/Tutorials/ALE/MATMAS/Page3.htm 2/3
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
saptechnical.com/Tutorials/ALE/MATMAS/Page3.htm 3/3
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
ALE step by step Configuration for Message type MATMAS
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Now In Client 002 check the model view in BD64.You can see it in Client 002 without creating it
SAP Query as we have distributed it.
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute? When you click on execute you will get the below screen.
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/MATMAS/Page4.htm 1/4
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
Subscribe Unsubscribe
GO
In Client 001 go to Tcode WE20. You need to configure the message type MATMAS in Partner
profile. In Outbound system (Sender system) we need to select the Inbound system (Receiver
system) and then in Outbound parameters we should configure MATMAS message type.
Now In Client 002 (Inbound system – Receiver system) after going to WE20 select the outbound
system and then in Inbound parameters configure MATMAS message type.
saptechnical.com/Tutorials/ALE/MATMAS/Page4.htm 2/4
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
Now create a material for testing in Client 001 using Tcode MM01.
saptechnical.com/Tutorials/ALE/MATMAS/Page4.htm 3/4
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
saptechnical.com/Tutorials/ALE/MATMAS/Page4.htm 4/4
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
ALE step by step Configuration for Message type MATMAS
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Check the material created by using the tcode MM03.
SAP Query
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs Now In Client 002 check whether the material created is available or not by using the tcode
MM03.
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/MATMAS/Page5.htm 1/3
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
Subscribe Unsubscribe
GO
You will
get the following screens.
Now In Client 002 check whether the material is available or not by using the Tcode MM03.
saptechnical.com/Tutorials/ALE/MATMAS/Page5.htm 2/3
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
So the material is distributed from client 001 to Client 002 using ALE.
saptechnical.com/Tutorials/ALE/MATMAS/Page5.htm 3/3
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
ALE step by step Configuration for Message type MATMAS
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Check the material created by using the tcode MM03.
SAP Query
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs Now In Client 002 check whether the material created is available or not by using the tcode
MM03.
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/MATMAS/Page5.htm 1/3
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
Subscribe Unsubscribe
GO
You will
get the following screens.
Now In Client 002 check whether the material is available or not by using the Tcode MM03.
saptechnical.com/Tutorials/ALE/MATMAS/Page5.htm 2/3
7/1/2019 SAPTechnical.COM - ALE step by Step Configuration for Message type MATMAS
So the material is distributed from client 001 to Client 002 using ALE.
saptechnical.com/Tutorials/ALE/MATMAS/Page5.htm 3/3
7/1/2019 SAPTechnical.COM - IDOC Mass Upload tool
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms IDOC Mass Upload tool
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
By Infosys Technologies Ltd (Manish Gupta, Vivek Gupta, Devakumar Karthikeyan)
eCATT
Object Oriented Programming
INTRODUCTION
SAP Query
Userexits/BADIs
As we know that SAP provides its users the facility to edit the data in the IDOC segments, but only one segment of an
WebDynpro for Java/ABAPTM IDOC at a time.
Others
Moreover, the user can not edit multiple occurrences of the same segment at the same time.
This tool provides the user the flexibility to edit multiple IDOC’s of the same Message type at one go and save the
What's New? IDOC’s at the same time.
The tool takes the IDOC number(s) and IDOC message type as input from the user and displays all the errors in that
ABAP Test Cockpit HOT IDOC (s)on the screen.
SAP ABAP Pragmas
Understanding SE32 (ABAP The user can select the IDOC(s), and after following a series of simple steps he can edit the data in the IDOC
Text Element Maintenance) segments.
Creating an IDoc File on SAP
Application Server Moreover, the tool also displays the user the original and the edited values on the same screen so that he can see
Understanding “Advance with what values he edited.
dialog” option of SAP Workflow
SAP Workflow Scenario:
Maintenance Notification
PROGRAMS
Approval
Enhancements to a standard Create the following programs:
class
Working with Floating Field in Main Program
Adobe Forms YRTRR6N_MASS_TOP - Include program for the data declaration
Inserting data from Internal YRTRR6N_MASS_SEL_SCREEN - Include program for the selection screen.
Table into the step “Send Mail” YRTRR6N_MASS_FORM - Include program for the subroutines
Display GL Account long text
using enhancement framework
Create a transaction code YRTR_IDOC_UPD for the main program created above.
Differences between
polymorphism in JAVA and
ABAP HOW TO USE THE TOOL
Passing multiline parameters
from an ABAP Class event to a
Workflow container
1. The below selection screen appears when the user executes the transaction ‘Y_IDOC_UPD’.
Concept of Re-evaluate agents
for active work items in SAP
Workflow
Dynamic creation of component
usage in ABAP WebDynpro
Adobe Forms: Display symbols
like copyright and others
Deactivate Hold functionality in
Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table 2. Provide input on the selection screen i.e. document number (IDOC) that needs to be edited and the message
Side Panel Usage in NWBC
type and click on EXECUTE .
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/IDOCTool/Index.htm 1/2
7/1/2019 SAPTechnical.COM - IDOC Mass Upload tool
Subscribe Unsubscribe 3. All the segments that contain errors are displayed on the screen as shown below.
GO
4. Select the IDOC’s that need to be edited by selecting the check box in front of each IDOC.
5. If you want to select all the entries together, click on the SELECT ALL button.
The below screen appears.
saptechnical.com/Tutorials/ALE/IDOCTool/Index.htm 2/2
7/1/2019 SAPTechnical.COM - IDOC Mass Upload tool
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms IDOC Mass Upload tool
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
SAP Query
6. After selecting the relevant check boxes, click on the MASS UPLOAD button.
Userexits/BADIs
WebDynpro for Java/ABAPTM a. If the UPDATE button is clicked, a pop up comes stating the user that he has clicked on the wrong button.
Others
What's New?
7. Edit the values you want to change on the above screen and click on the UPDATE button.
Contribute? The below pop up appears.
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/IDOCTool/Page2.htm 1/2
7/1/2019 SAPTechnical.COM - IDOC Mass Upload tool
Subscribe Unsubscribe
GO
9. The FIND AND REPLACE button allows you to find a particular value and replace it with a suitable value. When this butto
the below screen appears.
10. Enter the values in the above screen and click on the REPLACE button. The old values will be replaced
ones.
11. Now click on the UPDATE button. The below screen appears displaying the original and edited values.
saptechnical.com/Tutorials/ALE/IDOCTool/Page2.htm 2/2
7/1/2019 SAPTechnical.COM - IDOC Mass Upload tool
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms IDOC Mass Upload tool
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Additional Details like screen, message class and text elements used:
SAP Query
Userexits/BADIs
1. Screens: There are 2 screens created apart from selection screen i.e. 1100 and 1101 and their details are
WebDynpro for Java/ABAPTM as in the screen shot below:
Others
Screen # 1100: Screen attributes:
What's New?
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/IDOCTool/Page3.htm 1/4
7/1/2019 SAPTechnical.COM - IDOC Mass Upload tool
Subscribe Unsubscribe Screen Layout:
GO
Screen Layout:
saptechnical.com/Tutorials/ALE/IDOCTool/Page3.htm 2/4
7/1/2019 SAPTechnical.COM - IDOC Mass Upload tool
1. Status_1100:
2. Z_MASS_UPLOAD:
3. Z_OUTPUT:
saptechnical.com/Tutorials/ALE/IDOCTool/Page3.htm 3/4
7/1/2019 SAPTechnical.COM - IDOC Mass Upload tool
saptechnical.com/Tutorials/ALE/IDOCTool/Page3.htm 4/4
7/1/2019 SAPTechnical.COM - Conversion Rule in ALE/IDOC Scenario (R/3 To R/3)
Custom Search Se
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Conversion Rule in ALE/IDOC Scenario (R/3 To R/3)
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
By Jitendra Nath Sethi, HCL AXON
eCATT
Object Oriented Programming
Scenario: R/3 To R/3 ALE Communication ->when multiple systems involved in sending the messages to each other for
SAP Query their business transactions through IDOC.
Userexits/BADIs
WebDynpro for Java/ABAPTM If both the systems have different configurations then we need to convert the entity like Unit of measure/Text id/delivery
Others block etc. For example the system ‘A’ has the Unit of measure (BT –Bottle) but in the system ‘B’ it is (BO-Bottle). So while
sending an IDOC (Outbound) we need to convert the field value from BT to BO.
What's New? Solution: This can be achieving through User Exit or conversion Rule.
Conversion Rule: This is the standard functionality provided by the SAP & it is easy to deal with the conversion of the field
ABAP Test Cockpit HOT value in the segment of the IDOC.
SAP ABAP Pragmas
Understanding SE32 (ABAP There are three steps to achieve these conversions.
Text Element Maintenance)
Creating an IDoc File on SAP Step 1 -> Maintain Conversion Rules
Application Server
Understanding “Advance with a) Go to transaction code BD62
dialog” option of SAP Workflow
SAP Workflow Scenario: b) Click on the change button
Maintenance Notification
Approval
c) Enter the name of conversion rule, description and IDOC segment name.
Enhancements to a standard
class
Working with Floating Field in
Adobe Forms
Inserting data from Internal
Table into the step “Send Mail”
Display GL Account long text
using enhancement framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to a
Workflow container
Concept of Re-evaluate agents
for active work items in SAP
Workflow Steps 2 -> Create Conversion Rule
Dynamic creation of component
usage in ABAP WebDynpro a) Go to Transaction code BD55
Adobe Forms: Display symbols
like copyright and others b) Click on the New Entries
Deactivate Hold functionality in
Purchase order (ME21N) c) Enter type/Sender/Receiver/Conversion Rule etc.
Quiz on OOABAP
Add fields in FBL5N using d) Save
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Contribute?
Sample Specs
What's Hot?
Steps 3 ->ALE/IDOC Segment
Web Dynpro for ABAP Tutorials a) Go to Transaction code BD79
b) Enter the conversion rule which we have created in the transaction code BD62
Join the Mailing List
Email:
saptechnical.com/Tutorials/ALE/Conversion/Index.htm 1/3
7/1/2019 SAPTechnical.COM - Conversion Rule in ALE/IDOC Scenario (R/3 To R/3)
Subscribe Unsubscribe
GO
e) Double click on the field whose value need to be converted in this case it is : MENEE & PMENE
f) Select Convert Sender field & Copy Sender field radio button as shown in the screenshots.
g) Click on the conditions button & input the value in the table as shown in the below screen shots.
saptechnical.com/Tutorials/ALE/Conversion/Index.htm 2/3
7/1/2019 SAPTechnical.COM - Conversion Rule in ALE/IDOC Scenario (R/3 To R/3)
saptechnical.com/Tutorials/ALE/Conversion/Index.htm 3/3
7/1/2019 SAPTechnical.COM - Conversion Rule in ALE/IDOC Scenario (R/3 To R/3)
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Conversion Rule in ALE/IDOC Scenario (R/3 To R/3)
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Test Result:
SAP Query
Userexits/BADIs
Before applying conversion rule:
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/Conversion/Page2.htm 1/2
7/1/2019 SAPTechnical.COM - Conversion Rule in ALE/IDOC Scenario (R/3 To R/3)
Subscribe Unsubscribe
GO
saptechnical.com/Tutorials/ALE/Conversion/Page2.htm 2/2
7/1/2019 SAPTechnical.COM - Configuring Message Control and understanding how Message Control works
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Configuring Message Control and understanding how Message Control
BI/BW
eXchange Infrastructure (XI) works
Enterprise Portals (EP)
eCATT By Krunal Raichura, Accenture Services Pvt. Ltd
Object Oriented Programming
SAP Query Most SD and MM process use Message Control. The concept of Message control is to generate and manage
Userexits/BADIs outputs from an application and control their timing and medium of exchange.
WebDynpro for Java/ABAPTM
Others Below are the details for configuring the message control and understanding how message control works.
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/MessageControl/Index.htm 1/3
7/1/2019 SAPTechnical.COM - Configuring Message Control and understanding how Message Control works
Subscribe Unsubscribe
GO
- A List of output types – set of outputs that are possible for an application
- A Requirement field
- A manual flag
Set of Outputs those are possible for applications are listed in the output types.
Manual Flag is set if the output has to be selected by the user manually instead of selecting automatically.
For Sales, Procedures can be assigned to Sales document type using V/43 transaction.
Preconditions are captured in Requirements. These conditions are written in VOFM transaction.
saptechnical.com/Tutorials/ALE/MessageControl/Index.htm 2/3
7/1/2019 SAPTechnical.COM - Configuring Message Control and understanding how Message Control works
Please send us your feedback/suggestions at [email protected]
Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us
©2006-2007 SAPTechnical.COM. All rights reserved.
All product names are trademarks of their respective companies. SAPTechnical.COM is in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver, and and any other SAP trademarks are registered trademarks of SAP AG in Germany and in several other countries.
Every effort is made to ensure content integrity. Use information on this site at your own risk.
saptechnical.com/Tutorials/ALE/MessageControl/Index.htm 3/3
7/1/2019 SAPTechnical.COM - Configuring Message Control and understanding how Message Control works
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Configuring Message Control and understanding how Message
BI/BW
eXchange Infrastructure (XI) Control works
Enterprise Portals (EP)
eCATT ...Previous
Object Oriented Programming
SAP Query We can write the conditions for the Requirement selected from the above list by creating routine which
Userexits/BADIs will start from 900.
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute? An Output type defines the characteristics and attributes of the output itself.
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/MessageControl/Page2.htm 1/3
7/1/2019 SAPTechnical.COM - Configuring Message Control and understanding how Message Control works
Subscribe Unsubscribe
GO
Access sequence is the set of business rules for proposing an output type.
If the flag Access to condition is set then the medium and timing are determined from the condition
records using access sequence.
If the flag is not set then the medium and timing data is taken from the customer master.
Access Sequence:
Access sequence defines a sequence in which the business rules are checked for proposing an output
type. A business rule is checked by comparing the values passed in the application data with the
values defined in the condition records of the condition table. If a match occurs the business rule is
considered satisfied. After a business rule is satisfied the output values from the condition records are
used for the output type.
The exclusive or inclusive strategy specifies whether the system should exit after the first match of the
business rule against the condition record or should continue to process other business rule in the
access sequence.
The reason for an inclusive strategy is to have an output type proposed multiple times. However, one
of the attributes (partner function, partner number or language) must be different. The system does not
allow two output types to have identical values.
Condition Tables:
The condition table specifies the key field for a business rule. You use this key to access the condition
records for output values such as output medium, partner function, partner number, output language
and output time for the message.
If the standard condition tables supplied in the system do not meet your requirements, you can create
new condition tables.
Condition Records:
saptechnical.com/Tutorials/ALE/MessageControl/Page2.htm 2/3
7/1/2019 SAPTechnical.COM - Configuring Message Control and understanding how Message Control works
Condition records are inserted in the condition tables. Condition records contain the actual business
data against which the business rules are checked to propose an output. They are considered master
data maintained by customer.
You can create condition records for the each application in NACE transaction by clicking the condition
record button for the required application.
You will have to select the business rule for which condition record is to be maintained.
Specify the values for the key fields and maintain the output medium, output timing, partner number
and partner function for each record and save the entries.
saptechnical.com/Tutorials/ALE/MessageControl/Page2.htm 3/3
7/1/2019 SAPTechnical.COM - Configuring Message Control and understanding how Message Control works
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Configuring Message Control and understanding how Message Control
BI/BW
eXchange Infrastructure (XI) works
Enterprise Portals (EP)
eCATT ...Previous
Object Oriented Programming
SAP Query Understanding How Message Control works:
Userexits/BADIs
WebDynpro for Java/ABAPTM Message Control is a three step process:
Others
1. Output proposal
2. Output editing
What's New? 3. Output processing
Output Proposal
ABAP Test Cockpit HOT
SAP ABAP Pragmas
Understanding SE32 (ABAP
Text Element Maintenance)
Creating an IDoc File on SAP
Application Server
Understanding “Advance with
dialog” option of SAP Workflow
SAP Workflow Scenario:
Maintenance Notification
Approval
Enhancements to a standard
class
Working with Floating Field in
Adobe Forms
Inserting data from Internal
Table into the step “Send Mail”
Display GL Account long text
using enhancement framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to a
Workflow container
Concept of Re-evaluate agents
for active work items in SAP
Workflow
Dynamic creation of component
usage in ABAP WebDynpro
Adobe Forms: Display symbols
like copyright and others
Deactivate Hold functionality in
Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using When an
BADIs application is created or changed, after saving the application data the communication structure is filled and is
Tutorial on Wide casting passed to the Message control along with the application id and procedure.
Defining a Range in Module
Pool Program
The various outputs defined in the procedure are processed one at a time. The output marked as manual will
Copy fields from one
structure/table into another be processed manually by the user.
structure/table
Side Panel Usage in NWBC The requirement, if specified for an output type is executed to check if the output meets the requirement. If the
requirements are met then further checking continues.
Contribute? If the conditions are not met then the next output type will be processed from the list.
The short listed output types are checked for the access condition flag. If the flag is not set then the output
Sample Specs medium and timing are determined from the customer master data.
If the access condition flag is set then the processing continues for determining the output medium and timing.
For these output types the access sequence associated is access for various business rules and determines
What's Hot? which of the business rule is satisfied. The values from the communication structure are checked with the
values maintained in the condition tables.
Web Dynpro for ABAP Tutorials
Output Editing:
Join the Mailing List After the output proposal process is completed, the list of proposed outputs displays on the output control
screen of an application as shown below.
Enter name and email address below:
Name:
Email:
saptechnical.com/Tutorials/ALE/MessageControl/Page3.htm 1/3
7/1/2019 SAPTechnical.COM - Configuring Message Control and understanding how Message Control works
Subscribe Unsubscribe
GO
To reach he output control screen we can got for Extras ->Output->Edit for sales order or by Goto->Messages
for Purchase order.
The initial status of these outputs will be 0 (Not Processed) which is displayed as yellow light.
For EDI, the partner number in the proposed output is validated against the partner profile entry.
Output Processing:
After the final selection of the output is done and the application document is saved, entries are created in the
NAST table with application ID, Application document number, output type, output medium, output timing and
Status code.
If the output is not processed the Status code will have values as 0 (Not processed).
The entries in the NAST table are processed by RSNAST00 program. If the entries whose timing is set to
immediately, the program will immediately process those entries. For other entries you will have to schedule
the program RSNAST00.
The RSNAST00 program check the TNAPR table for each entries from NAST table and processes the
program associated with the output medium in the TNAPR table.
The EDI_PROCESSING routine reads the Message control record in the partner profile and determines the
process code.
The process code will be having a Function module which will be having the standard interface for its input
and output parameters. The function module will read the application document data and will format the data
into the idoc format.
The idoc data and the control record from the function modules received through the output parameters will be
used by the EDI_PROCESSING program to convert it into physical Idoc.
saptechnical.com/Tutorials/ALE/MessageControl/Page3.htm 2/3
7/1/2019 SAPTechnical.COM - Configuring Message Control and understanding how Message Control works
The setting of the Output mode field in the partner profile is read to determine the timing for dispatching the
idoc.
If the mode is set to ‘Transfer Idoc immed.’ then the idoc is immediately passed to the operating system and if
the mode is set to ‘Collect Idoc’ then the Idoc is not immediately passed to the operating system until the
RSEOUT00 program is executed explicitly.
If the flag for ‘Start subsystem’ is set then the subsystem program name is read from port definition and the
subsystem program is started.
saptechnical.com/Tutorials/ALE/MessageControl/Page3.htm 3/3
7/1/2019 SAPTechnical.COM - Serialization of IDOC Message type
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Serialization of IDOC Message type
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
By Vijayendra Krishnamurthy Rao, Hewlett-Packard
eCATT
Object Oriented Programming
Serialization for Sending and Receiving Data
SAP Query
Userexits/BADIs
With serialized message distribution, IDocs are created, sent and posted in a specific order. This prevents
WebDynpro for Java/ABAPTM errors occurring when inbound IDocs are processed. Interdependent messages can be distributed serially
Others in different ways, as described in the following sections.
ABAP Test Cockpit HOT In this Tutorial we will learn Serialization using IDOC Message types and the details steps involved.
SAP ABAP Pragmas
Understanding SE32 (ABAP Serialization Using Message Types
Text Element Maintenance)
Creating an IDoc File on SAP When master data is distributed, interdependent objects are often distributed together (for example,
Application Server purchasing info record is distributed with vendor and material). With serialized message distribution IDocs
Understanding “Advance with are created, dispatched and posted in a specific order. The interdependency of objects is at message
dialog” option of SAP Workflow type level and this avoids errors occurring during inbound processing of IDocs. Serialization groups in
SAP Workflow Scenario:
Maintenance Notification
which the messages to be used and the posting order is specified, are used to distribute interdependent
Approval messages serially.
Enhancements to a standard
class Example
Working with Floating Field in
Adobe Forms If you distribute materials and the material classes, they must be distributed together. You cannot process
Inserting data from Internal classification data in the receiver system, if this system does not also have the data of the material to be
Table into the step “Send Mail” classified. For this reason materials should be included with the associated classifications in a
Display GL Account long text serialization group. To use serialized distribution you must carry out the following steps in Customizing:
using enhancement framework
Differences between
polymorphism in JAVA and Steps to be followed: -
ABAP
Passing multiline parameters Define Serialization Groups
from an ABAP Class event to a
Workflow container Assign Message Types to the Serialization Group
Concept of Re-evaluate agents
for active work items in SAP In addition to the message types used, the dispatch of the message type SERDAT must be modeled in
Workflow
the distribution model.
Dynamic creation of component
usage in ABAP WebDynpro
STEP 1 à Define Serialization Groups
Adobe Forms: Display symbols
like copyright and others
Deactivate Hold functionality in In this section you create serialization groups and assign message types and the processing order to
Purchase order (ME21N) each group. Both the sender and the receiver of the serialization group must know the assignments. This
Quiz on OOABAP means this step needs to be carried out in both the receiving system and the sending system.
Add fields in FBL5N using
BADIs Serialization groups are required to distribute interdependent objects together so that they are processed
Tutorial on Wide casting in the correct order.
Defining a Range in Module
Pool Program Example
Copy fields from one
structure/table into another
structure/table
The message types MATMAS (material master) and CLFMAS (classification) are assigned to a
Side Panel Usage in NWBC serialization group for dispatching materials and their accompanying classifications. The message type
MATMAS is assigned the suffix 1 and the message type CLFMAS the suffix 2, so that the materials are
processed first and then the classifications.
Contribute? Create serialization group: Goto IMG à Modelling and Implementing Business Proccess àMaster
Data Distribution à Serialization for sending and Receiving data à Serialization using Message
Sample Specs types and click on DEFINE SERIALIZATION GROUPS
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/Serialization/page1.htm 1/4
7/1/2019 SAPTechnical.COM - Serialization of IDOC Message type
Subscribe Unsubscribe
GO
On the next screen Choose 'New entries' in the view 'Serialization groups' to add a new entry, In our case we
will just modify one of the existing groups provided by SAP.
We will modify the existing group GRP_MATMAS – Material Master Complete. So select the group from
the list and Place the cursor on a serialization group and choose 'Assign message types to serialization
group'.
saptechnical.com/Tutorials/ALE/Serialization/page1.htm 2/4
7/1/2019 SAPTechnical.COM - Serialization of IDOC Message type
Click on the Change/Display button and Select 'New entries'. In our case we will add one more message
type in this group. The message type to be added is CLSMAS. After adding the new entry we need to
adjust the sequence of serialization if required.
Enter the message types used and add a sequence number for each one.
Further notes
The message types in a serialization group are processed in ascending order of the sequence number
added. You can also leave spaces between the individual numbers. (For example: 1,2,4,10,20).
If the serialization group is to be dispatched later a setting must be made so that the outbound IDocs are
collected and inbound processing is carried out in the background for all message types. This is set under
Partner Profiles -> Generate Partner Profiles. You can also make these settings in the SAP Menu for each
partner profile and message type (choose ALE -> ALE Administration -> Services -> Runtime Settings ->
Partner Profiles).
Maintain the Distribution model as per the requirement and add the additional message type SERDAT as
shown in the screen shot below.
saptechnical.com/Tutorials/ALE/Serialization/page1.htm 3/4
7/1/2019 SAPTechnical.COM - Serialization of IDOC Message type
Note: The distribution model needs to have all the message types that will be distributed between
systems. It however need not have all the message types defined in the Serialization groups.
saptechnical.com/Tutorials/ALE/Serialization/page1.htm 4/4
7/1/2019 SAPTechnical.COM - Serialization of IDOC Message type
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Serialization of IDOC Message type
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Select the option from the menu to generate the partner profile
SAP Query
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs
What's Hot?
Email:
Once you execute the system will generate the partner profiles in the sending system and update the
partner profiles with the associated messages
saptechnical.com/Tutorials/ALE/Serialization/page2.htm 1/4
7/1/2019 SAPTechnical.COM - Serialization of IDOC Message type
Subscribe Unsubscribe
GO
You can cross check the details by going into WE20 and checking the partner profile.
As seen from the above by automatically generating the partner profile the system creates the required
entries.
Select all the message types and ensure that the option TRANSFER IDOC IMMEDIATELY is selected.
PLEASE NOTE THIS OPTION MUST BE SET ONLY IN THE OUTBOUND PARMETERS OR IN THE
SENDING SYSTEM.
saptechnical.com/Tutorials/ALE/Serialization/page2.htm 2/4
7/1/2019 SAPTechnical.COM - Serialization of IDOC Message type
Similarly maintain for all the other messages in the partner profile and once done save your entries.
Next distribute the model created in the sending system to the receiving system. To do this select the
menu option as shown below.
saptechnical.com/Tutorials/ALE/Serialization/page2.htm 3/4
7/1/2019 SAPTechnical.COM - Serialization of IDOC Message type
saptechnical.com/Tutorials/ALE/Serialization/page2.htm 4/4
7/1/2019 SAPTechnical.COM - Serialization of IDOC Message type
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Serialization of IDOC Message type
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Step 3 à Define Inbound Processing
SAP Query
Userexits/BADIs
In this section you can make the settings for processing inbound message types for a serialization group.
WebDynpro for Java/ABAPTM These settings are made in the receiving system.
Others
You can specify the size of the IDoc packet forwarded to the application, whether the packet is transferred
in parallel and what server group is used.
What's New? Example
ABAP Test Cockpit HOT For a serialization group containing materials and associated classifications you can specify how the
SAP ABAP Pragmas message types MATMAS (material) and CLFMAS (classification) are processed.
Understanding SE32 (ABAP
Text Element Maintenance) For the message SERDAT processing in the inbound partner profiles should be set to 'immediate
Creating an IDoc File on SAP processing'.
Application Server
Understanding “Advance with From the SALE transaction select Define inbound processing as shown in the image below
dialog” option of SAP Workflow
SAP Workflow Scenario:
Maintenance Notification
Approval
Enhancements to a standard
class
Working with Floating Field in
Adobe Forms
Inserting data from Internal
Table into the step “Send Mail”
Display GL Account long text
using enhancement framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to a
Workflow container
Concept of Re-evaluate agents
for active work items in SAP
Workflow
Dynamic creation of component
usage in ABAP WebDynpro
Adobe Forms: Display symbols
like copyright and others
Deactivate Hold functionality in
Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/Serialization/page3.htm 1/6
7/1/2019 SAPTechnical.COM - Serialization of IDOC Message type
Subscribe Unsubscribe
GO
On the next screen click on NEW ENTRIES button and add the details as shown below
Under the groups column mention the Serialization group name created in the first step. Under the
Message Type define the messages assigned to the Serialization group. Under the sending system
column enter the sending systems. If the data is sent to more than one system then all these steps have
to repeated for all the individual receiving systems. Under the Object column enter the number of objects
per process. In our case we will use 1 per process.
For Example: Number of objects (e.g. materials, vendors, customers) assigned to an available process.
Under the Indicator: Parallel processing yes/no set the indicator as per your requirement. Generally it is
set to YES.
If the indicator is set then the inbound processing of the application uses one free dialog process for each
IDoc packet on the application server ('asynchronous RFC' is used for this). This means that the packets
can be processed in parallel. If several IDoc packets have been selected, then the IDoc processing will
occupy all the dialog processes on the application server.
If the indicator is not set then the IDocs will not be processed in parallel. This means that each packet will
passed to the application in turn. Only one work process will be used for this action on the application
server.
Under the RFC server group define the server which will be used by the transaction in parallel processing.
saptechnical.com/Tutorials/ALE/Serialization/page3.htm 2/6
7/1/2019 SAPTechnical.COM - Serialization of IDOC Message type
You can check the server group from the transaction RZ12.
Step 4 à Enable Change pointers in the system globally using BD61 transaction and also for all the
message types using the BD50 transaction.
Change pointer has to be activated to enable data distribution through Change documents.
Once you have completed the above steps in the sending system login to the receiving system and do the
following steps.
Step 1à Maintain the serialization group as done in the above steps in the receiving system as well.
Step 2 à Go to to the distribution model and select the model that was distributed from the sending
system. And from the menu generate the partner profile in the receiving system. This step will create the
partner profiles in the receiving system.
saptechnical.com/Tutorials/ALE/Serialization/page3.htm 3/6
7/1/2019 SAPTechnical.COM - Serialization of IDOC Message type
Step 3 à Change the partner profile settings for all the message types EXCEPT the SERDAT message
type to TRIGGER BY BACKGROUND PROGRAM
As shown below
BUT DO NOT CHANGE THE SETTINGS FOR THE SERDAT message type.
saptechnical.com/Tutorials/ALE/Serialization/page3.htm 4/6
7/1/2019 SAPTechnical.COM - Serialization of IDOC Message type
Once these settings are done both the systems are now ready for distributing data in a serialized order.
These two activities are scheduled as a periodic job in the sending system.
Creating IDocs
The report RBDSER01 creates the IDocs for a serialization group. The serialization group to be created is
specified as a parameter in this report. The report selects all the master data change pointers assigned to
this serialization group. The IDocs are then created from the change pointers.
Dispatching IDocs
After the IDocs have been created the report RBDSER02 dispatches the IDocs belonging to a
serialization group. The name of the serialization group to be sent is specified as a parameter in this
report. You can also specify the receiving systems and in the time period that IDocs can be
created/changed.
The report also schedules the report RBDSER03 which checks whether all the IDocs have been
successfully sent to the receiving system. If they have, a control message of message type SERDAT is
sent to the receiving system and posts the serialization group there. To do this specify in the parameters
of report RBDSER02 the time that should be scheduled after sending report RBDSER03.
You also have the option to always dispatch the control message. This means dispatch it even if all the
IDocs have not been passed to the receiving system. This means that IDocs arriving in the receiving
system can be processed even if some IDocs are still being transferred. However, serialization difficulties
may occur.
Further notes
You can schedule reports RBDSER01 and RBDSER02 after each other in the same job (choose SAP
Menu -> Tools -> ALE -> ALE Administration -> Services -> Periodic Processing -> Outbox -> Serialized
Distribution Using Message Types - SM36).
The report RBDSER03 can be scheduled as an independent job. In this case you should not enter the
date and time.
The processing of inbound IDocs of a serialzation group can be directly started by the Report
RBDSER04.
saptechnical.com/Tutorials/ALE/Serialization/page3.htm 5/6
7/1/2019 SAPTechnical.COM - Serialization of IDOC Message type
Please send us your feedback/suggestions at [email protected]
Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us
©2006-2007 SAPTechnical.COM. All rights reserved.
All product names are trademarks of their respective companies. SAPTechnical.COM is in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver, and and any other SAP trademarks are registered trademarks of SAP AG in Germany and in several other countries.
Every effort is made to ensure content integrity. Use information on this site at your own risk.
saptechnical.com/Tutorials/ALE/Serialization/page3.htm 6/6
7/1/2019 SAPTechnical.COM - ALE - Error handling through workflow
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
Pre-requisites.
Document Categories:
It is assumed that the reader of this article has some knowledge in SAP workflow BOR objects and
ALE Idoc process like process code, Partner Profile etc.
ABAPTM
Adobe Forms
Description
ABAP-HR
ALE & IDocs Here, we will be discussing in details the Error handling of an Inbound Idoc through triggering an
ALV
event, which in turn will be triggering a workflow attached to the workflow.
BAPI
BASIS
Steps:-
BSP
Business Objects
1. Create custom BOR object with the events, Start and Stop event
Business Workflow
2. Create a workflow for the error handling, like generating a notification whenever an error
CRM NEW
LSMW
occurred in the Inbound Idoc.
SAP Script/Smart Forms 3. Creation of Function Module and attachment with the Process Code
BI/BW 4. Create the settings for the Inbound Process of the Idoc through the Process Code.
eXchange Infrastructure (XI)
Enterprise Portals (EP) Creation of BOR objects. Go to the transaction SWO1.
eCATT
Object Oriented Programming
SAP Query
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
ABAP Test Cockpit HOT Enter a name for the Object type and click ‘CREATE’ button for creating the custom BOR object.
SAP ABAP Pragmas
Understanding SE32 (ABAP Sap Tutorial Sap Idoc Sap Workflow
Text Element Maintenance)
Creating an IDoc File on SAP
Application Server
Understanding “Advance with
dialog” option of SAP Workflow
SAP Workflow Scenario:
Maintenance Notification
Approval
Enhancements to a standard
class
Working with Floating Field in
Adobe Forms
Inserting data from Internal
Table into the step “Send Mail”
Display GL Account long text
using enhancement framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to a
Workflow container
Concept of Re-evaluate agents
for active work items in SAP
Workflow
Enter the details required for creating the BOR objects...
Dynamic creation of component
usage in ABAP WebDynpro
Adobe Forms: Display symbols
like copyright and others
Deactivate Hold functionality in
Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Contribute?
Create the Key fields and events of the BOR object.
Sample Specs For creating the Key fields place the cursor on the Key fields and Click on the Create Button
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/ErrorHandling/page1.htm 1/3
7/1/2019 SAPTechnical.COM - ALE - Error handling through workflow
Subscribe Unsubscribe Create events for triggering the workflow and stopping the workflow.
GO
For creating the event place the cursor on the EVENTS and Click the create button like Key fields.
Enter the event name description etc and proceed further to create it.
Similarly create another event for ending the Workflow in the similar manner like that created earlier.
Create a workflow for the generation of notification whenever an error is reached in the Inbound Idoc.
saptechnical.com/Tutorials/ALE/ErrorHandling/page1.htm 2/3
7/1/2019 SAPTechnical.COM - ALE - Error handling through workflow
Click on the CREATE button for creating the workflow for error handling.
Choose the Step type to be inserted for the notification like here we are using Send Mail option for
sending a mail to the user whenever any error occurred.
saptechnical.com/Tutorials/ALE/ErrorHandling/page1.htm 3/3
7/1/2019 SAPTechnical.COM - ALE - Error handling through workflow
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
What's New?
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/ErrorHandling/page2.htm 1/3
7/1/2019 SAPTechnical.COM - ALE - Error handling through workflow
Subscribe Unsubscribe
GO
After the successful linkage the following sign will appear on the workflow.....
This shows that the workflow has been linked to the event and it will be triggered whenever that
particular event will be triggered.
After the creation and successful linkage of workflow with the event it is required it is required to
generate a function module and attached it to the process code.
Go to SE37 transaction and copy a standard process code function module to a custom one. Do
no delete any parameters from the function module as the SAP standard program itself is calling
this.
In that function module do the required validation and whenever the validation fails set a standard
parameter ‘WORKFLOW_RESULT’ to 9999 from within the function module, otherwise normally
proceed to set the status to 53.
saptechnical.com/Tutorials/ALE/ErrorHandling/page2.htm 2/3
7/1/2019 SAPTechnical.COM - ALE - Error handling through workflow
After the creation of function module it is required to attach it to the process code and
corresponding attached to the message type at the Partner Profile stage.
saptechnical.com/Tutorials/ALE/ErrorHandling/page2.htm 3/3
7/1/2019 SAPTechnical.COM - ALE - Error handling through workflow
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms ALE - Error handling through workflow
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
The process code is being created through the transaction WE42
SAP Query
Userexits/BADIs
Go to the change mode and click the New Entries button for creating new process code.
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs
What's Hot?
Web Dynpro for ABAP Tutorials The details for the of the Process Code after clicking the identification button will be
Email:
saptechnical.com/Tutorials/ALE/ErrorHandling/page3.htm 1/3
7/1/2019 SAPTechnical.COM - ALE - Error handling through workflow
Subscribe Unsubscribe
GO
Whenever idoc arrives into the Destination system then the standard SAP triggers the Process code attached to
the Message type in the partner profile. The partner profile is being maintained in the transaction WE20.
Since, it is and inbound scenario so the message type and the corresponding process code will be maintained
for the Inbound Parameters.
Click on Create Inbound Parameters button for creating new Inbound Message type and the corresponding
message type.
saptechnical.com/Tutorials/ALE/ErrorHandling/page3.htm 2/3
7/1/2019 SAPTechnical.COM - ALE - Error handling through workflow
Whenever the IDOC arrives into the target system, it checks the partner profile and finds the corresponding
process code. The process code is being linked with the function module through which the IDOC is required to
be processed.
saptechnical.com/Tutorials/ALE/ErrorHandling/page3.htm 3/3
7/1/2019 SAPTechnical.COM - Archiving IDocs
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Archiving IDocs
eXchange Infrastructure (XI)
Enterprise Portals (EP)
This document details about the step-by-step process in archiving the IDocs. Archiving is the
eCATT process of offloading “Out-of-date” data onto a file at the operating system. The following are the
Object Oriented Programming two important reasons for archiving:
SAP Query
Userexits/BADIs Improving the performance
WebDynpro for Java/ABAPTM Saving the disk space on the SAP Server
Others
Scenario: In this scenario, let us archive the IDocs created before Jan 1st 1995.
What's New? Let us view at the IDocs created on or before 31st Dec 1994. Go to transaction WE05 and
provided necessary details:
ABAP Test Cockpit HOT
SAP ABAP Pragmas
Understanding SE32 (ABAP
Text Element Maintenance)
Creating an IDoc File on SAP
Application Server
Understanding “Advance with
dialog” option of SAP Workflow
SAP Workflow Scenario:
Maintenance Notification
Approval
Enhancements to a standard
class
Working with Floating Field in
Adobe Forms
Inserting data from Internal
Table into the step “Send Mail”
Display GL Account long text
using enhancement framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to a
Workflow container Press Execute. Following are the IDocs available in the given date range.
Concept of Re-evaluate agents
for active work items in SAP
Workflow
Dynamic creation of component
usage in ABAP WebDynpro
Adobe Forms: Display symbols
like copyright and others
Deactivate Hold functionality in
Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Contribute?
Sample Specs
What's Hot?
saptechnical.com/Tutorials/ALE/ArchiveIDocs/page1.htm 1/2
7/1/2019 SAPTechnical.COM - Archiving IDocs
Subscribe Unsubscribe
GO
To assign physical path: Select the Z logical path created above and now double-click on the
assignment of physical paths on the left side of the screen.
Maintaining File Names: Now click on “Logical file name definition” and click on new entries.
Provide the details as shown below:
saptechnical.com/Tutorials/ALE/ArchiveIDocs/page1.htm 2/2
7/1/2019 SAPTechnical.COM - Archiving IDocs
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Archiving IDocs
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Archiving of IDocs: There are two methods of archiving IDocs:
SAP Query
Userexits/BADIs
Using the transaction SARA
WebDynpro for Java/ABAPTM Using the standard programs like RSEXARCA (for archiving), RSEXARCR (for reading)
Others and RSEXARCL (reloading of data into the system)
This document would detail the procedure using the transaction SARA.
What's New? Go to transaction SARA and the enter the Archiving Object name as IDOC
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/ArchiveIDocs/page2.htm 1/4
7/1/2019 SAPTechnical.COM - Archiving IDocs
Subscribe Unsubscribe
GO
Click on Continue. Now in this screen, you would mention the data or the IDocs that needs to be
archived.
Click on attributes.
Click on Save and return to main screen. Now we need to mention the start date for the archive to
begin. Click on button “Start Date”.
saptechnical.com/Tutorials/ALE/ArchiveIDocs/page2.htm 2/4
7/1/2019 SAPTechnical.COM - Archiving IDocs
From the above screenshot, you can observe that the IDOC could not be archived. The IDocs
shouldn’t be in error status for the IDocs to be archived.
saptechnical.com/Tutorials/ALE/ArchiveIDocs/page2.htm 3/4
7/1/2019 SAPTechnical.COM - Archiving IDocs
Click on Execute.
Now try executing the transaction SARA and archive the IDocs.
saptechnical.com/Tutorials/ALE/ArchiveIDocs/page2.htm 4/4
7/1/2019 SAPTechnical.COM - IDOC Filtration
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
IDOC Filtration
Trainings
By Jaya Vani Bheemarasetti, YASH Technologies
Document Categories: A Business Scenario:
Consider a company that has 10 plants manufacturing the material MAT01. The material master data is
ABAPTM
maintained in the central SAP system for all 10 plants. The material MAT01 has an MRP view for each
Adobe Forms
ABAP-HR
plant. If we distribute this material with MRP views, including the ones for other plants. When the number of
ALE & IDocs materials exchanged between the systems is large and very frequent, this approach can be an
ALV unnecessary waste of network resources and can be undesirable from a business point of view.
BAPI
BASIS The technique of filtering at the IDoc level enables to send a subset of data that is relevant for a receiving
BSP system. The system provides several filter objects for each message type to filter data. We have to choose
Business Objects the appropriate filter for our business needs and add it to our distribution model.
Business Workflow
CRM NEW Maintain the Following Configurations:
LSMW
SAP Script/Smart Forms Step 1 : Port Definition: T.code WE21.
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
eCATT
Object Oriented Programming
SAP Query
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs Double click on the Message Type MATMAS and enter Message type, Receiver port,
Pack size, basic type and select the radio button “Transfer IDOC immed. “
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/IDOCFiltration/page1.htm 1/3
7/1/2019 SAPTechnical.COM - IDOC Filtration
Subscribe Unsubscribe
GO
The actual process is whenever a mater IDoc is created, the IDoc consults the distribution model and
determines whether any filter objects are specified for a receiver. If so, the value in the filter object is
compared to values in the master IDoc’s data record. If the values do not match, the data record is
dropped.
To test the scenario, go to BD10 to send a material and here give the Message type and Partner system
Logical name and execute.
saptechnical.com/Tutorials/ALE/IDOCFiltration/page1.htm 2/3
7/1/2019 SAPTechnical.COM - IDOC Filtration
For IDOC Filtration we have to search for a suitable filtering object in transaction BD59.
saptechnical.com/Tutorials/ALE/IDOCFiltration/page1.htm 3/3
7/1/2019 SAPTechnical.COM - IDOC Filtration
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms IDOC Filtration
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
There are many predefined filtering objects available for standard message types. Here we have to give the
SAP Query Segment name and filed name that we want to drop.
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/IDOCFiltration/page2.htm 1/3
7/1/2019 SAPTechnical.COM - IDOC Filtration
Subscribe Unsubscribe
GO
saptechnical.com/Tutorials/ALE/IDOCFiltration/page2.htm 2/3
7/1/2019 SAPTechnical.COM - IDOC Filtration
Below is the IDoc generated after applying filter object for ‘Plant’.
saptechnical.com/Tutorials/ALE/IDOCFiltration/page2.htm 3/3
7/1/2019 Material Master distribute using Standalone programs and change pointers
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Distributing Material Master data using Standalone programs and Change
BI/BW
eXchange Infrastructure (XI) Pointers
Enterprise Portals (EP)
eCATT By Jaya Vani Bheemarasetti
Object Oriented Programming
SAP Query MASTER Data is the data that exists in the organization like employee details, material master, customer master,
Userexits/BADIs vendor master etc.
WebDynpro for Java/ABAPTM
Others Master data can be transferred by two methods:
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/MaterialMaster/Distribute1.htm 1/4
7/1/2019 Material Master distribute using Standalone programs and change pointers
Subscribe Unsubscribe Step 2: Assign Client to the logical system T.code: SALE
GO
Path: ALE--> Basic Settings à Logical Systems à Assign client to Logical System
saptechnical.com/Tutorials/ALE/MaterialMaster/Distribute1.htm 2/4
7/1/2019 Material Master distribute using Standalone programs and change pointers
saptechnical.com/Tutorials/ALE/MaterialMaster/Distribute1.htm 3/4
7/1/2019 Material Master distribute using Standalone programs and change pointers
saptechnical.com/Tutorials/ALE/MaterialMaster/Distribute1.htm 4/4
7/1/2019 Material Master distribute using Standalone programs and change pointers
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Distributing Material Master data using Standalone programs and
BI/BW
eXchange Infrastructure (XI) Change Pointers
Enterprise Portals (EP)
eCATT ....Previous
Object Oriented Programming
SAP Query Step 5: Maintain Partner Profiles Tcode: WE20
Userexits/BADIs
WebDynpro for Java/ABAPTM In partner profile we specify the names of the partners which are allowed to exchange IDocs .
Others
What's New?
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/MaterialMaster/Distribute2.htm 1/3
7/1/2019 Material Master distribute using Standalone programs and change pointers
Subscribe Unsubscribe
GO
Click on the Create button and enter the short text, Technical name etc as shown below
Now select the created model view and click on Add message type button .A pop up box appears,
enter Sending system, receiving system and message type.
saptechnical.com/Tutorials/ALE/MaterialMaster/Distribute2.htm 2/3
7/1/2019 Material Master distribute using Standalone programs and change pointers
It leads to the next transaction where in the selection screen you have to provide Model view name,
Partner System logical system and execute.
Then, you will be intimated about the partners, port creation, and outbound parameters creation.
Transaction: BD82
Provide Model view and logical system of Partner system to this system (our Outbound system)
Execute, again you will be intimated about the creation of inbound parameters.
NOTE:
You cannot maintain a message type between the same sender and receiver in more than one customer
distribution model.
Only the owner is authorized to modify the model.
saptechnical.com/Tutorials/ALE/MaterialMaster/Distribute2.htm 3/3
7/1/2019 Material Master distribute using Standalone programs and change pointers
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Distributing Material Master data using Standalone programs
eXchange Infrastructure (XI) and Change Pointers
Enterprise Portals (EP)
eCATT ....Previous
Object Oriented Programming
SAP Query Step 7: Creation of material T.code MM01.
Userexits/BADIs
WebDynpro for Java/ABAPTM Enter the details as shown below and create a material.
Others
What's New?
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/MaterialMaster/Distribute3.htm 1/4
7/1/2019 Material Master distribute using Standalone programs and change pointers
Subscribe Unsubscribe
GO
For the partner add the message type .here the message type is MATMAS
saptechnical.com/Tutorials/ALE/MaterialMaster/Distribute3.htm 2/4
7/1/2019 Material Master distribute using Standalone programs and change pointers
Double click on the message type and enter the processing code (MATM) and select Trigger
Immediately radio button, save.
Enter the material created or changed, and the Message as shown below.
saptechnical.com/Tutorials/ALE/MaterialMaster/Distribute3.htm 3/4
7/1/2019 Material Master distribute using Standalone programs and change pointers
Graphic Design by Round the Bend Wizards
saptechnical.com/Tutorials/ALE/MaterialMaster/Distribute3.htm 4/4
7/1/2019 Material Master distribute using Standalone programs and change pointers
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Distributing Material Master data using Standalone programs and
BI/BW
eXchange Infrastructure (XI) Change Pointers
Enterprise Portals (EP)
eCATT ....Previous
Object Oriented Programming
SAP Query Data Transfer by Change Pointers:
Userexits/BADIs
WebDynpro for Java/ABAPTM Steps from 1 to 6 are same as stand alone programs.
Others
Step1: Define logical system
What's New? Step2: Assign logical system to the client
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/MaterialMaster/Distribute4.htm 1/2
7/1/2019 Material Master distribute using Standalone programs and change pointers
Subscribe Unsubscribe
GO
Create or change a material and check for the Idoc creation in the T.code WE09.
saptechnical.com/Tutorials/ALE/MaterialMaster/Distribute4.htm 2/2
7/1/2019 SAPTechnical.COM - Automatic IDOC generation whenever a PO is created/changed
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW Automatic IDOC generation whenever a PO is created/changed
eXchange Infrastructure (XI)
Enterprise Portals (EP)
This document details about the step-by-step procedure in generating an IDOC whenever a PO
eCATT
Object Oriented Programming
is either created or changed.
SAP Query
Userexits/BADIs
1. Go to transaction NACE.
WebDynpro for Java/ABAPTM
Others
What's New?
What's Hot?
saptechnical.com/Tutorials/ALE/AutoIDOCGen/AutomaticIDocGeneration1.htm 1/3
7/1/2019 SAPTechnical.COM - Automatic IDOC generation whenever a PO is created/changed
Name:
Email:
Subscribe Unsubscribe
GO
saptechnical.com/Tutorials/ALE/AutoIDOCGen/AutomaticIDocGeneration1.htm 2/3
7/1/2019 SAPTechnical.COM - Automatic IDOC generation whenever a PO is created/changed
5. Let us use the output type “NEU” for our demonstration purpose. Double-click on NEU.
6. Ensure that the checkboxes “Access to conditions” and “multiple issuing” are checked.
Continued...
saptechnical.com/Tutorials/ALE/AutoIDOCGen/AutomaticIDocGeneration1.htm 3/3
7/1/2019 SAPTechnical.COM - Automatic IDOC generation whenever a PO is created/changed
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW Automatic IDOC generation whenever a PO is created/changed
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
7. Now click on “Processing Routines” on the left hand side.
SAP Query
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs
What's Hot?
Web Dynpro for ABAP Tutorials 11. Select NEU and click on “Condition records”. Following pop-up box appears.
Email:
saptechnical.com/Tutorials/ALE/AutoIDOCGen/AutomaticIDocGeneration2.htm 1/3
7/1/2019 SAPTechnical.COM - Automatic IDOC generation whenever a PO is created/changed
Subscribe Unsubscribe
GO
12. Enter a new record for the medium A (Distribution ALE) and 4 (Send immediately) in the date/time.
13. Also ensure that you have done the necessary ALE configuration (not covered in this document). In
the partner profiles, use the message type “ORDERS” and the IDOC type “ORDERS05”.
In the tab “Message Control”, use the process codes “ME10” and “ME11” for “PO Create” and “PO
Change” respectively.
saptechnical.com/Tutorials/ALE/AutoIDOCGen/AutomaticIDocGeneration2.htm 2/3
7/1/2019 SAPTechnical.COM - Automatic IDOC generation whenever a PO is created/changed
saptechnical.com/Tutorials/ALE/AutoIDOCGen/AutomaticIDocGeneration2.htm 3/3
7/1/2019 SAPTechnical.COM - IDOC Extension
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Enhancement of IDoc Type
eXchange Infrastructure (XI)
Enterprise Portals (EP)
By Suraj Kumar Pabbathi
eCATT
Object Oriented Programming
Usually enhancement takes place when the content in IDocs provided by SAP are not sufficient for
SAP Query the business process. IDoc extension can take place whenever dictionary table has a new structure
Userexits/BADIs appended required by the business process.
WebDynpro for Java/ABAPTM
Others In brief IDoc extension takes place when extra fields are required for the business process.
Sample Specs Segment type: Z1KNA11 Click (create). Provide short text
saptechnical.com/Tutorials/ALE/IDOCExtension/IDOCExtension.htm 1/4
7/1/2019 SAPTechnical.COM - IDOC Extension
Subscribe Unsubscribe Object Name DEBMASEXT
GO
Choose Extension
Observe all the segments to be copied into your IDoc extension from linked basic
type.
saptechnical.com/Tutorials/ALE/IDOCExtension/IDOCExtension.htm 2/4
7/1/2019 SAPTechnical.COM - IDOC Extension
Provide the required values and observe child segment Z1KNA11 to be added to
Transaction: WE31
Transaction: WE82
Click , then
Save.
Contd..
saptechnical.com/Tutorials/ALE/IDOCExtension/IDOCExtension.htm 3/4
7/1/2019 SAPTechnical.COM - IDOC Extension
saptechnical.com/Tutorials/ALE/IDOCExtension/IDOCExtension.htm 4/4
7/1/2019 SAPTechnical.COM - IDOC Extension
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Enhancement of IDoc Type
BI/BW
eXchange Infrastructure (XI)
By Suraj Kumar Pabbathi
Enterprise Portals (EP)
eCATT
Previous
Object Oriented Programming
SAP Query
Step 7: Check and Transport IDoc extension
Userexits/BADIs
WebDynpro for Java/ABAPTM
Transaction: WE30
Others
Object name: DEBMASEXT
What's New? Path: Development object -> Check
Join the Mailing List helpful for inbound ALE process. This user exit can be used to read the segments
Enter name and email address below: and post it to Application repository.
Name:
Step9: Develop a project to encapsulate enhancements and components.
saptechnical.com/Tutorials/ALE/IDOCExtension/IDOCExtension2.htm 1/4
7/1/2019 SAPTechnical.COM - IDOC Extension
Email: Transaction: CMOD.
From the initial screen of the transaction, select components and click change.
Activate them.
Select user exit EXIT_SAPLVV01_001 for outbound process and double click it.
It leads to function builder.
Now, write supporting code for IDoc extension, i.e., populating custom
segments in IDoc.
Code in ZXVSVU01
*&---------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*extended
*&---------------------------------------------------------------------*
*Data declarations
* since customer number is not passed in this user exit, you need to go
loop at idoc_data.
case idoc_data-segnam.
when 'E1KNA1M'.
when 'E1KNA11'.
select single *
into w_kna1
if sy-subrc eq 0.
idoc_cimtype = 'DEBMASEX'.
clear z1kna11.
condense: z1kna11-visitor.
saptechnical.com/Tutorials/ALE/IDOCExtension/IDOCExtension2.htm 2/4
7/1/2019 SAPTechnical.COM - IDOC Extension
* populate segment name in the data record, copy data contents into it
append idoc_data.
Step 10:
INBOUND PROCESS
Step 11: Append the custom structure to the table KNA1 similar to the process
done
in outbound process.
Step 12.
Step 13. Execute the transaction to ‘Send Customers’ from Outbound system.
Step 14. Now in the Inbound system, create the project in the similar way as
done at
outbound side.
In the user exit EXIT_SAPLVV02_001, find include ‘ZXVSVU02’. Write the code
to
Code in ZXVSVU02
*&---------------------------------------------------------------------*
*&---------------------------------------------------------------------*
LOOP AT IDOC_data.
case idoc_data-segnam.
when 'E1KNA1M'.
kna1m = idoc_data-sdata.
when 'E1KNA11'.
kna11 = idoc_data-sdata.
when 'Z1KNA11'.
z1kna11 = idoc_data-sdata.
saptechnical.com/Tutorials/ALE/IDOCExtension/IDOCExtension2.htm 3/4
7/1/2019 SAPTechnical.COM - IDOC Extension
select single *
from kna1
into fs_kna1
if sy-subrc eq 0.
update kna1
else.
idoc_status-docnum = idoc_control-docnum.
idoc_status-status = '51'.
idoc_status-msgty = 'E'.
idoc_status-msgid = 'ZE'.
idoc_status-msgno = '005'.
idoc_status-msgv1 = kna1m-kunnr.
append idoc_status.
Transaction: WE57
saptechnical.com/Tutorials/ALE/IDOCExtension/IDOCExtension2.htm 4/4
7/1/2019 SAPTechnical.COM - Conversion of IDOC's to XML format
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Conversion of IDOC's to XML format
BI/BW
eXchange Infrastructure (XI)
By Suresh Parvathaneni and Narasimha Motupalli
Enterprise Portals (EP)
eCATT
This Tutorial details about the step by step in conversion of IDOCs to XML format for further use in XI
Object Oriented Programming
or any other application. It is assumed that the reader of this Tutorial has some knowledge in ALE,
SAP Query
Userexits/BADIs
IDOCs and Change Pointers.
WebDynpro for Java/ABAPTM
Others
Scenario: Conversion of the Material IDOC (Message type: MATMAS) to XML format and store the
same in the application server of SAP®.
Change pointers are used for sending IDOCs for master data like Material Master. To work with
ABAP Test Cockpit HOT Change pointers, following two steps have to be performed:
SAP ABAP Pragmas
Understanding SE32 (ABAP Turn on change pointer update generally
Text Element Maintenance) Providing the message types to be included for change pointer updation.
Creating an IDoc File on SAP
Application Server To do the above configurations:
Understanding “Advance with
dialog” option of SAP Workflow TCode: SALE --> IDOC Interface / Application Link Enabling (SALE) --> Modeling and implementing
SAP Workflow Scenario: Business Processes --> Master Data Distribution --> Replication of Master Data
Maintenance Notification
Approval
Enhancements to a standard
ALE Configuration Steps:
class
Working with Floating Field in 1. Creation of logical system for the sender system.
Adobe Forms 2. Assignment of logical system to the client.
Inserting data from Internal 3. Create a logical system for the recipient
Table into the step “Send Mail” 4. Creation of RFC destination (Connection type:TCP/IP)
Display GL Account long text
using enhancement framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to a
Workflow container
Concept of Re-evaluate agents
for active work items in SAP
Workflow
Dynamic creation of component
usage in ABAP WebDynpro
Adobe Forms: Display symbols
like copyright and others
Deactivate Hold functionality in
Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using
BADIs 5. Creation of Model View (TCode: BD64).
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Contribute?
6. Save the Model View and Generate Partner Profiles.
7. There might be a problem with the automatic Port creation. Creation of the port has to be done
Sample Specs manually.
8. Create an XML Port from the transaction WE21 (Port type: XML File).
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/IDOCToXML/IDOCToXML.htm 1/3
7/1/2019 SAPTechnical.COM - Conversion of IDOC's to XML format
Subscribe Unsubscribe
GO
Here 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 create any custom function module for any other naming conventions.
In the outbound trigger tab, mention the RFC destination created earlier.
9. Make an entry in the partner profile generated earlier for message type MATMAS.
10. A background job need to be scheduled, for a periodic run (interval as required) for the
program RBDMIDOC with the message type MATMAS.
11. 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 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.
saptechnical.com/Tutorials/ALE/IDOCToXML/IDOCToXML.htm 2/3
7/1/2019 SAPTechnical.COM - Conversion of IDOC's to XML format
Graphic Design by Round the Bend Wizards
saptechnical.com/Tutorials/ALE/IDOCToXML/IDOCToXML.htm 3/3
7/1/2019 SAPTechnical.COM - Download IDOC to excel, html or any other format
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Download IDOC to excel, html or any other format
eXchange Infrastructure (XI)
Enterprise Portals (EP)
By Sravani
eCATT
Object Oriented Programming
To download an IDOC into an Excel, HTML or any other format:
SAP Query
Userexits/BADIs
Go to transaction IDOC
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs
What's Hot?
Enter an IDoc number and select the check box “Also output empty fields”. Click on “Output in
Web Dynpro for ABAP Tutorials Internal Form”.
Email:
saptechnical.com/Tutorials/ALE/Download/IDOC.htm 1/2
7/1/2019 SAPTechnical.COM - Download IDOC to excel, html or any other format
Subscribe Unsubscribe
GO
Click on Execute.
Now select the required format and hit Enter. The IDoc is now stored on your system in the
required format.
saptechnical.com/Tutorials/ALE/Download/IDOC.htm 2/2
7/1/2019 SAPTechnical.COM - Change Pointers in ALE
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Change Pointers in ALE
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
By Kamesh G, IBM
eCATT
Object Oriented Programming
SAP Query
1. Change Pointers
Userexits/BADIs
WebDynpro for Java/ABAPTM Change Pointers are log entries to remember all modified records relevant for ALE. Change pointers are log
Others entries to table BDCP, which are written every time a transaction modifies certain fields.
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/ChangePointers/Index.htm 1/4
7/1/2019 SAPTechnical.COM - Change Pointers in ALE
Subscribe Unsubscribe
GO
If some messages types are no longer to be distributed by change pointers, you can deactivate change
pointers for this message type (by removing active flag in BD50). We can deactivate change pointers for the
message type and reactivate them again in transaction BD50.
Following screen shows how to deactivate change pointers for reduced message types.
Example: I have taken ‘ZMATMAS’. Here the shaded part is shows Deactivate change pointers PUSH
button.
TCODE: BD21
Program: RBDMIDOC
We can create IDOCS from change pointers with the report RBDMIDOC
The report tells how many master and communication IDocs have been created.
TCODE: BD22
Program: RBDCPCLR
saptechnical.com/Tutorials/ALE/ChangePointers/Index.htm 2/4
7/1/2019 SAPTechnical.COM - Change Pointers in ALE
Here we can delete obsolete and processed change pointers in specific time and for specific message type.
Example:
In above screen I have selected obsolete change pointers for MATMAS message type.
Example:
Execute
saptechnical.com/Tutorials/ALE/ChangePointers/Index.htm 3/4
7/1/2019 SAPTechnical.COM - Change Pointers in ALE
saptechnical.com/Tutorials/ALE/ChangePointers/Index.htm 4/4
7/1/2019 SAPTechnical.COM - Extending the standard IDOC for Outbound delivery (VL02N)
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Extending the standard IDOC for Outbound delivery
eXchange Infrastructure (XI) (VL02N)
Enterprise Portals (EP)
eCATT By Rajeev Sharma, Intelligroup
Object Oriented Programming
SAP Query Scenario:
Userexits/BADIs
WebDynpro for Java/ABAPTM Step by step procedure for extending a standard IDOC, populating the custom segment
Others and trigger the extension IDOC from VL02N transaction.
Extending an IDOC:
What's New?
This begins with creating a custom segment; custom segment creation is developed in
transaction WE31.
ABAP Test Cockpit HOT
SAP ABAP Pragmas Custom segments begin with ‘Z1’ (just a name standard), now go to T-code: WE31 and
Understanding SE32 (ABAP
Text Element Maintenance)
type your custom segment name as Z1EDLPI and click on the create button as shown
Creating an IDoc File on SAP below.
Application Server
Understanding “Advance with
dialog” option of SAP Workflow
SAP Workflow Scenario:
Maintenance Notification
Approval
Enhancements to a standard
class
Working with Floating Field in
Adobe Forms
Inserting data from Internal
Table into the step “Send Mail”
Display GL Account long text
using enhancement framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to a
Workflow container
Concept of Re-evaluate agents
for active work items in SAP
Workflow
Dynamic creation of component When the create button is clicked, the below shown screen will be displayed. Enter a
usage in ABAP WebDynpro
Adobe Forms: Display symbols
short description for the custom segment and add the required field name and the
like copyright and others corresponding data element. Once the required fields are added click on the save
Deactivate Hold functionality in button.
Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Contribute?
Sample Specs
What's Hot? After clicking on save button, click on back button you will see the below shown screen.
Now click on the segment definition you have created and do “Set Release” from EDIT
Web Dynpro for ABAP Tutorials menu.
Note: Without releasing your segment definition you cannot use the segment.
Join the Mailing List
saptechnical.com/Tutorials/ALE/IDOCExtension/VL02N.htm 1/3
7/1/2019 SAPTechnical.COM - Extending the standard IDOC for Outbound delivery (VL02N)
Name:
Email:
Subscribe Unsubscribe
GO
Next step is to create an extension IDOC with the above created custom segment, Go to
transaction WE30.
Enter a name ‘ZDELVRY03’ for the extension IDOC and check on the Extension check
box and click create button.
The following popup screen will be displayed. Click on the ‘Create New’ radio button to
create an extension with the help of a Basic IDOC type. Enter the standard basic type
name ‘DELVRY03’ in the ‘Linked Basic type’ field and enter a short description and click
continue.
The following screen will be displayed with all the standard segment of basic type
‘delvry03’.
Now we need to add our custom segment to the required segment, in our example we
will take segment E1EDL22. We will have to add the custom segment Z1EDLPI to
segment ELEDL22.
Select the segment E1EDL22 and click on the create button, an information message will
pop up and say ‘Extension segment type(s) will be in child segment type(s) of E1EDL22’.
Click on continue. Another pop up will be prompted for entering the custom segment
name and attributes.
Enter the name of the segment Z1EDLPI, minimum and maximum occurs as shown
below.
saptechnical.com/Tutorials/ALE/IDOCExtension/VL02N.htm 2/3
7/1/2019 SAPTechnical.COM - Extending the standard IDOC for Outbound delivery (VL02N)
Note: Attribute entries may vary depending on the requirement, the below shown
attribute entries are for our requirements only.
saptechnical.com/Tutorials/ALE/IDOCExtension/VL02N.htm 3/3
7/1/2019 SAPTechnical.COM - Extending the standard IDOC for Outbound delivery (VL02N)
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Extending the standard IDOC for Outbound delivery (VL02N)
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
Save the extension IDOC and click on the back button and go to Utilities -> Enhancement -
SAP Query >Assign basic type.
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute? A pop up will be prompted as shown below, click on YES to release the Extension IDOC.
Sample Specs
What's Hot?
saptechnical.com/Tutorials/ALE/IDOCExtension/Page2.htm 1/3
7/1/2019 SAPTechnical.COM - Extending the standard IDOC for Outbound delivery (VL02N)
Next step is to create a logical message type. Go to transaction WE81.
Subscribe Unsubscribe By default the screen will be in display mode, go to change mode to enter a new entry.
GO
Give some name to the logical message type and a short description. Save the entry.
Next step is to assign the created extension IDOC type with the above created logical message
type. This is carried out in transaction WE82.
Here you will assign the message type with the extension IDOC type along with the basic type
and release version combination as shown below.
Next step is to create a partner profile and assign our message type to it. Also provide details
like output types, process code etc in message control tab. To create a partner profiles go to
transaction WE20.
Note: The partner number in partner profile and ship to party number in delivery (VL02N)
should be same. In the below shown example we are using Delivery number ‘80016347’ and
hence the ship to party ‘1171’ will be our partner number. In WE20 transaction, expand the
partner type ‘Partner type KU Customer’ and find the partner number ‘1171’. If it doesn’t exist
then click on the create button and type the partner number ‘1171’ and save the entry.
Now click on the Create Outbound Parameter button (A icon with green plus symbol).
saptechnical.com/Tutorials/ALE/IDOCExtension/Page2.htm 2/3
7/1/2019 SAPTechnical.COM - Extending the standard IDOC for Outbound delivery (VL02N)
saptechnical.com/Tutorials/ALE/IDOCExtension/Page2.htm 3/3
7/1/2019 SAPTechnical.COM - Extending the standard IDOC for Outbound delivery (VL02N)
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Extending the standard IDOC for Outbound delivery (VL02N)
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
The following screen will be displayed. Enter the partner role(optional), message type, receiver
SAP Query port, basic type and extension type names respectively. Also select the ‘Transfer IDOC immed.’
Userexits/BADIs Radio button. And save the entries.
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute? Once the necessary entries are made click on save button.
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/IDOCExtension/Page3.htm 1/3
7/1/2019 SAPTechnical.COM - Extending the standard IDOC for Outbound delivery (VL02N)
Subscribe Unsubscribe
GO
Time for a little coding, as stated earlier the process codes are associated with function modules
to process our extension IDOC. To see the function module double click on the process code
‘DELV’. It will take to the following screen.
Next step is to find the customer exit in the function module to populate the custom segment in
the extension IDOC. Check for the PERFORM that fill the Data records internal table and
proceed to find the relevant customer exit or directly you can search customer exit for Data
record. Usually the customer exits for Data records will be “customer-function ‘002’ ”.
Note: FM: IDOC_OUTPUT_DELVRY has all the standard logic to populate the standard
segments of the extension IDOC ‘ZDELVRY03’. We use the customer exit to imply our logic on
standard segments and to populate custom segments. In our case we are using it for latter case.
saptechnical.com/Tutorials/ALE/IDOCExtension/Page3.htm 2/3
7/1/2019 SAPTechnical.COM - Extending the standard IDOC for Outbound delivery (VL02N)
saptechnical.com/Tutorials/ALE/IDOCExtension/Page3.htm 3/3
7/1/2019 SAPTechnical.COM - Extending the standard IDOC for Outbound delivery (VL02N)
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
Extending the standard IDOC for Outbound delivery (VL02N)
eXchange Infrastructure (XI)
Enterprise Portals (EP)
...Previous
eCATT
Object Oriented Programming
The below code has the logic for adding the custom segment ‘Z1EDLPI’ as child of ‘E1EDL22’
SAP Query and what data needs to be populated in the fields of the custom segment. Save and activate
Userexits/BADIs include ZXTRKU02.
WebDynpro for Java/ABAPTM
Others
What's New?
Contribute?
Sample Specs
With this all the necessary configurations on the EDI IDOC front is over. The next step will be
What's Hot? configuring the output types in VL02N to trigger the Extension IDOC. To do this, go to Transaction
VL02N.
Web Dynpro for ABAP Tutorials
Email:
saptechnical.com/Tutorials/ALE/IDOCExtension/Page4.htm 1/4
7/1/2019 SAPTechnical.COM - Extending the standard IDOC for Outbound delivery (VL02N)
Subscribe Unsubscribe
GO
Select the ‘Send Immediately option’ and click on back button and save the Delivery.
When the delivery is saved successfully we can see the IDOC number by selecting the output
type and clicking on processing log push button as shown below.
saptechnical.com/Tutorials/ALE/IDOCExtension/Page4.htm 2/4
7/1/2019 SAPTechnical.COM - Extending the standard IDOC for Outbound delivery (VL02N)
Now to see whether the custom segment has been populated as desired and to know the status
of the IDOC, go to transaction WE02.
saptechnical.com/Tutorials/ALE/IDOCExtension/Page4.htm 3/4
7/1/2019 SAPTechnical.COM - Extending the standard IDOC for Outbound delivery (VL02N)
Please send us your feedback/suggestions at [email protected]
Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us
©2006-2007 SAPTechnical.COM. All rights reserved.
All product names are trademarks of their respective companies. SAPTechnical.COM is in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver, and and any other SAP trademarks are registered trademarks of SAP AG in Germany and in several other countries.
Every effort is made to ensure content integrity. Use information on this site at your own risk.
saptechnical.com/Tutorials/ALE/IDOCExtension/Page4.htm 4/4
7/1/2019 Re-Processing inbound IDOC using WE02
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Re-Processing inbound IDOC using WE02
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
By Manish Gupta, Infosys Technologies Ltd
eCATT
Object Oriented Programming
Whenever posting an inbound IDOC results in error, the general tendency is to post the IDOC
SAP Query again by executing the posting application/program again or by correcting the errors and re-
Userexits/BADIs processing the IDOC using transaction WE19. Both these options would create a new IDOC in
WebDynpro for Java/ABAPTM the system leaving the old IDOC useless.
Others
There is a provision in SAP wherein we can re-process the same IDOC without creating any
additional IDOC’s in the system. This can be achieved by using the transaction WE02. The
What's New? below steps tell how to do it:
Contribute?
Sample Specs
What's Hot?
3. Double click on the page type icon adjacent to the error segment name, as shown in the
Web Dynpro for ABAP Tutorials figure below.
Email:
saptechnical.com/Tutorials/ALE/WE02/Index.htm 1/3
7/1/2019 Re-Processing inbound IDOC using WE02
Subscribe Unsubscribe
GO
4. It will take you to the below screen, this shows which fields are filled for that particular
segment.
5. Go to change mode, this will show all the fields that exist in the segment whether filled or
not.
saptechnical.com/Tutorials/ALE/WE02/Index.htm 2/3
7/1/2019 Re-Processing inbound IDOC using WE02
saptechnical.com/Tutorials/ALE/WE02/Index.htm 3/3
7/2/2019 Customer exit for passing extra fields in Master data distribution using SMD tool (Shared master data tool)
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Customer exit for passing extra fields in Master data distribution
BI/BW
eXchange Infrastructure (XI) using SMD tool (Shared master data tool)
Enterprise Portals (EP)
eCATT By Rahul Manoj Mahajan, John Deere India Pvt. Ltd
Object Oriented Programming
SAP Query Introduction:
Userexits/BADIs
WebDynpro for Java/ABAPTM
This article will describe in detail how the customer exit can be used for passing some additional fields
Others
while distributing the master data using SMD tool.
In this article, we will take the example of material master data and additional field we would be
What's New?
considering is change number (AENNR).
Contribute?
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ExitsBADIs/SMD/Index.htm 1/3
7/2/2019 Customer exit for passing extra fields in Master data distribution using SMD tool (Shared master data tool)
Subscribe Unsubscribe
GO
Step2: Logic for fetching the change number and assigning it to E1MARAM structure.
Now, we can put the logic inside the include for fetching the change number.
saptechnical.com/Tutorials/ExitsBADIs/SMD/Index.htm 2/3
7/2/2019 Customer exit for passing extra fields in Master data distribution using SMD tool (Shared master data tool)
Step4:Verify the IDOC for E1MARAM and check if the AENNR is getting filled
Note: Please note that this is generic solution and user needs to make some more changes depending on
the his/her requirement.
saptechnical.com/Tutorials/ExitsBADIs/SMD/Index.htm 3/3
7/2/2019 Automatic Master Data distribution using the change pointers for Material Master Data
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms Automatic Master Data distribution using the change pointers for
BI/BW
eXchange Infrastructure (XI) Material Master Data
Enterprise Portals (EP)
eCATT By Rahul Manoj Mahajan, John Deere India Pvt. Ltd.
Object Oriented Programming
SAP Query Introduction:
Userexits/BADIs
WebDynpro for Java/ABAPTM
This article will describe in detail how to distribute the master data automatically and how to create and
Others
active the change pointers using IDOC.
In this article, we will take the example of material master data with the message type as “MATMAS”.
What's New?
Requirement:
ABAP Test Cockpit HOT
SAP ABAP Pragmas Automatic Master Data distribution using IDOC.
Understanding SE32 (ABAP
Text Element Maintenance) Steps to be followed:
Creating an IDoc File on SAP
Application Server Step1: Activate the Change Pointers
Understanding “Advance with
dialog” option of SAP Workflow Before we actually active the change pointers for the message type through which we will be distributing
SAP Workflow Scenario:
Maintenance Notification
the master data. To do this, go to the transaction BD50 and search for the Message type.
Approval
Enhancements to a standard Since in this example we are considering the Material Master data distribution, we will consider the
class message type “MATMAS”. Please refer below screenshot.
Working with Floating Field in
Adobe Forms
Inserting data from Internal
Table into the step “Send Mail”
Display GL Account long text
using enhancement framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to a
Workflow container
Concept of Re-evaluate agents
for active work items in SAP
Workflow
Dynamic creation of component
usage in ABAP WebDynpro
Adobe Forms: Display symbols
like copyright and others
Deactivate Hold functionality in
Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Contribute? Step2: Adding the Segment name and the fields which we want to be distributed.
In order to add the segment name and fields, we have the transaction code BD66.
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/ChangePointers/MM.htm 1/3
7/2/2019 Automatic Master Data distribution using the change pointers for Material Master Data
Subscribe Unsubscribe
GO
Click Ok. After that add the respective entry and save.
Step3: Create a BATCH JOB which will trigger after every 15 minutes and distribute data via IDOC.
In order to create batch job, go to transaction SM36 and fill the required fields as shown below.
After that set the “Start Condition” and the follow the instruction. Please refer below screenshot for
reference.
It will execute after every 15 mins and check if there are any changes to the material master data using
standard program RBDMIDOC.
In case you want to test your development changes without using the batch job; please follow below
steps. Once everything is working as expected; activate the batch job and it will distribute the data.
Batch job will execute the REPORT RBDMIDOC (tcode BD21) for your MESSAGE TYPE to create IDOC.
saptechnical.com/Tutorials/ALE/ChangePointers/MM.htm 2/3
7/2/2019 Automatic Master Data distribution using the change pointers for Material Master Data
saptechnical.com/Tutorials/ALE/ChangePointers/MM.htm 3/3
7/2/2019 Configure workflow notifications for IDocs in error status
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
eCATT
Object Oriented Programming
SAP Query Purpose
Userexits/BADIs
WebDynpro for Java/ABAPTM Whenever an IDoc gets into error or a negative acknowledgement is received, a notification can be configured
Others to be sent to a responsible user via workflow task. Doing this will help to resolve the error as soon as it is
raised in an automated manner. Also, this will make the monitoring of IDoc easy.
ABAP Test Cockpit HOT Automatically notification will reach the responsible user if any error arises or negative acknowledgement is
SAP ABAP Pragmas received in outbound IDOC so that immediate action can be taken.
Understanding SE32 (ABAP
Text Element Maintenance)
Assignment of Workflow Task for Outbound IDOC Error
Creating an IDoc File on SAP
Application Server
Understanding “Advance with Go to WE46 in editable mode:
dialog” option of SAP Workflow
SAP Workflow Scenario:
Maintenance Notification
Approval
Enhancements to a standard
class
Working with Floating Field in
Adobe Forms
Inserting data from Internal
Table into the step “Send Mail”
Display GL Account long text
using enhancement framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to a
Workflow container
Concept of Re-evaluate agents
for active work items in SAP
Workflow
Dynamic creation of component
usage in ABAP WebDynpro
Adobe Forms: Display symbols
like copyright and others
Deactivate Hold functionality in To specify the custom task for process code EDIR, change the task id from TS70008125 to your custom
Purchase order (ME21N) task as shown below:
Quiz on OOABAP
Add fields in FBL5N using
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/ErrorHandling/Index.htm 1/3
7/2/2019 Configure workflow notifications for IDocs in error status
Subscribe Unsubscribe Click on DISPLAY button and you will be navigated to the following screen:
GO
Here a task will be specified by default which is set up in WE46(Error and Status Processing Settings).
We need to maintain the Agent to whom the Error Notification needs to be mailed in WE20.
saptechnical.com/Tutorials/ALE/ErrorHandling/Index.htm 2/3
7/2/2019 Configure workflow notifications for IDocs in error status
So when there is an Error or Negative Transmission of IDOC, mail will be trigger to the person maintained
in WE20 under the Post Processing: Permitted Agent Tab.
Open table STACUST and specify EVCODS(Process code for inbound statuses) as EDIR to find all the
error statuses for which workflow task has been assigned. For such statuses, SAP by default configured
TASK TS70008125 in WE46.
saptechnical.com/Tutorials/ALE/ErrorHandling/Index.htm 3/3
7/2/2019 Create Condition Records Using the Message Type COND_A for condition table A018
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
Create Condition Records Using the Message Type COND_A for condition table
A018
By Rehana Begum Shaik, Cognizant
This document explains how to create condition records using the message type COND_A for condition table A018. For
this
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW Assign the logical system REC6_251 to client 901 using the t-code SCC43
LSMW
Click on new entries
SAP Script/Smart Forms
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
eCATT
Object Oriented
Programming
SAP Query
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
saptechnical.com/Tutorials/ALE/Condition/Index.htm 1/3
7/2/2019 Create Condition Records Using the Message Type COND_A for condition table A018
Working with Floating Field
in Adobe Forms
Inserting data from Internal
Table into the step “Send
Mail”
Display GL Account long text
using enhancement
framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to
a Workflow container
Concept of Re-evaluate
agents for active work items
in SAP Workflow
Dynamic creation of
component usage in ABAP
WebDynpro
Adobe Forms: Display
symbols like copyright and
others
Deactivate Hold functionality
in Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Contribute?
Sample Specs
As we are using the standard message type COND_A04 and idoc type COND_A SAP has already being maintained
What's Hot? necessary configuration steps like
Email:
Subscribe Unsubscribe
GO
WE20 - Create partner profile REC6_251 and maintain the message type in inbound parameters and maintain the process
code inside the message type COND_A as follows.
saptechnical.com/Tutorials/ALE/Condition/Index.htm 2/3
7/2/2019 Create Condition Records Using the Message Type COND_A for condition table A018
saptechnical.com/Tutorials/ALE/Condition/Index.htm 3/3
7/2/2019 Create Condition Records Using the Message Type COND_A for condition table A018
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
Create Condition Records Using the Message Type COND_A for condition table
A018
...Previous
Double click on COND_A and maintain the process code COND as follows.
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
Now the configuration part is over.
ALE & IDocs
ALV Create the following Program:
BAPI
BASIS REPORT ZRS_INBOUND_COND_IDOC.
BSP *&---------------------------------------------------------------------*
Business Objects *& Report ZRS_INBOUND_COND_IDOC
Business Workflow *&
CRM NEW *&---------------------------------------------------------------------*
LSMW *&This program is used to post the conditional data using the message type
SAP Script/Smart Forms *&COND_A and idoc type COND_A4 which updates the tables A018, KONH and
BI/BW *&KONP
eXchange Infrastructure (XI) *&---------------------------------------------------------------------*
Enterprise Portals (EP) *---------------------------------------------------------------------*
eCATT * TABLES *
Object Oriented *---------------------------------------------------------------------*
Programming TABLES: t000, "clients
SAP Query edp21, "partner profile inbound
Userexits/BADIs e1komg, "Filter segment with separated condition key
WebDynpro for Java/ABAPTM e1konh, "Data from condition header
Others e1konp. "Conditions Items
*---------------------------------------------------------------------*
* TYPES DECLARATIONS *
What's New? *---------------------------------------------------------------------*
*/ Types for Idoc Header
TYPES BEGIN OF t_idoc_header.
ABAP Test Cockpit HOT
INCLUDE STRUCTURE edidc.
SAP ABAP Pragmas
TYPES END OF t_idoc_header.
Understanding SE32 (ABAP
Text Element Maintenance)
*/ Types for Idoc Data
Creating an IDoc File on SAP
TYPES BEGIN OF t_idoc_data.
Application Server
INCLUDE STRUCTURE edidd.
Understanding “Advance
TYPES END OF t_idoc_data.
with dialog” option of SAP
Workflow
*/ Types for Status Record (IDoc)
SAP Workflow Scenario:
TYPES BEGIN OF t_idoc_status.
Maintenance Notification
INCLUDE STRUCTURE edids. "EDIDD/EDID4
Approval
TYPES END OF t_idoc_status.
Enhancements to a standard
class
* EDI process types (inbound)/ Process codes
TYPES BEGIN OF t_tede2.
saptechnical.com/Tutorials/ALE/Condition/Page2.htm 1/4
7/2/2019 Create Condition Records Using the Message Type COND_A for condition table A018
Working with Floating Field INCLUDE STRUCTURE tede2.
in Adobe Forms TYPES END OF t_tede2.
Inserting data from Internal *----------------------------------------------------------------------*
Table into the step “Send * Structures & Internal tables declaration *
Mail” *----------------------------------------------------------------------*
Display GL Account long text DATA: wa_idoc_header TYPE t_idoc_header,
using enhancement it_idoc_header TYPE TABLE OF t_idoc_header,
framework wa_idoc_data TYPE t_idoc_data,
Differences between it_idoc_data TYPE TABLE OF t_idoc_data,
polymorphism in JAVA and wa_idoc_status TYPE t_idoc_status,
ABAP it_idoc_status TYPE TABLE OF t_idoc_status.
Passing multiline parameters *--------------------------------------------------------------------*
from an ABAP Class event to * Variables declaration *
a Workflow container *--------------------------------------------------------------------*
Concept of Re-evaluate DATA: docnum TYPE edidc-docnum, "IDoc number
agents for active work items state TYPE sy-subrc.
in SAP Workflow *----------------------------------------------------------------------*
Dynamic creation of * Constants declaration
component usage in ABAP *----------------------------------------------------------------------*
WebDynpro CONSTANTS: c_true TYPE sap_bool VALUE 'X'.
Adobe Forms: Display *--------------------------------------------------------------------*
symbols like copyright and * START-OF-SELECTION *
others *--------------------------------------------------------------------*
Deactivate Hold functionality START-OF-SELECTION.
in Purchase order (ME21N)
Quiz on OOABAP PERFORM fill_idoc_header.
Add fields in FBL5N using PERFORM fill_idoc_data.
BADIs
Tutorial on Wide casting *&---------------------------------------------------------------------*
Defining a Range in Module *& Form FILL_IDOC_HEADER
Pool Program *&---------------------------------------------------------------------*
Copy fields from one * Fill IDOC with control information
structure/table into another *----------------------------------------------------------------------*
structure/table FORM fill_idoc_header.
Side Panel Usage in NWBC
*Get the partner profile from EDP21 table
SELECT SINGLE *
Contribute? FROM edp21
WHERE sndprn = 'REC6_251'
AND sndprt = 'LS'
Sample Specs AND mestyp = 'COND_A'.
IF sy-subrc EQ 0.
What's Hot? SELECT SINGLE * FROM t000 WHERE mandt = sy-mandt.
IF t000-logsys IS INITIAL.
MESSAGE 'Local system is not defined' type 'E'.
Web Dynpro for ABAP Tutorials ENDIF.
REFRESH : it_idoc_data.
CLEAR : wa_idoc_data, e1komg, e1konh, e1konp.
e1konh-knumh = '$000000001'.
e1konh-datbi = '99991231'..
e1konh-datab = '20100912'.
wa_idoc_data-sdata = e1konh.
saptechnical.com/Tutorials/ALE/Condition/Page2.htm 2/4
7/2/2019 Create Condition Records Using the Message Type COND_A for condition table A018
* Append the KONH segement data to idoc
APPEND wa_idoc_data TO it_idoc_data.
CLEAR wa_idoc_data.
* This generates the IDOC number with the data provided in the above logic
CALL FUNCTION 'IDOC_INBOUND_WRITE_TO_DB'
EXPORTING
* pi_do_handle_error = 'X'
pi_no_dequeue =''
pi_return_data_flag = 'X'
* PI_RFC_MULTI_CP =' '
IMPORTING
pe_idoc_number = docnum
pe_state_of_processing = state
pe_inbound_process_data = i_data
TABLES
t_data_records = it_idoc_data
* T_LINKED_OBJECTS =
CHANGING
pc_control_record = wa_idoc_header
EXCEPTIONS
idoc_not_saved =1
OTHERS =2.
IF sy-subrc NE 0.
WRITE 'Idoc not created'.
ELSE.
REFRESH it_idoc_header.
APPEND wa_idoc_header TO it_idoc_header.
*FM processess the idoc and updates the data in the corresponding DB tables
* A018, KONH and KONP
CALL FUNCTION 'IDOC_START_INBOUND'
EXPORTING
pi_inbound_process_data = i_data
* PI_CALLED_ONLINE =''
* PI_DO_COMMIT = 'X'
* PI_START_EVENT_ENABLED = 'X'
* PI_ORG_UNIT =''
* SUCC_SHOW_FLAG =''
TABLES
t_control_records = it_idoc_header
t_data_records = it_idoc_data
EXCEPTIONS
invalid_document_number =1
error_before_call_application = 2
inbound_process_not_possible = 3
old_wf_start_failed =4
wf_task_error =5
serious_inbound_error =6
OTHERS = 7.
IF sy-subrc EQ 0.
* Get the status of the Idoc
select *
from edids
into table it_idoc_status
where docnum = docnum.
saptechnical.com/Tutorials/ALE/Condition/Page2.htm 3/4
7/2/2019 Create Condition Records Using the Message Type COND_A for condition table A018
saptechnical.com/Tutorials/ALE/Condition/Page2.htm 4/4
7/2/2019 Create Condition Records Using the Message Type COND_A for condition table A018
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
Create Condition Records Using the Message Type COND_A for condition table
A018
...Previous
Output:
WE02 Transaction:
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
eCATT
Object Oriented
Programming
SAP Query TABLE – A018
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
saptechnical.com/Tutorials/ALE/Condition/Page3.htm 1/2
7/2/2019 Create Condition Records Using the Message Type COND_A for condition table A018
Working with Floating Field
in Adobe Forms
Inserting data from Internal
Table into the step “Send
Mail”
Display GL Account long text
using enhancement
framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to
a Workflow container
Concept of Re-evaluate
agents for active work items
in SAP Workflow
Dynamic creation of
component usage in ABAP
WebDynpro
Adobe Forms: Display
symbols like copyright and
others
Deactivate Hold functionality TABLE – KONH
in Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Contribute?
TABLE – KONP
Sample Specs
What's Hot?
Email:
saptechnical.com/Tutorials/ALE/Condition/Page3.htm 2/2
7/2/2019 Creating an IDoc File on SAP Application Server
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
Introduction
This document illustrates on how to create IDoc flat file on SAP application server.
Scenario: On change or Create of SAP delivery document, an automatic IDoc should trigger and an IDoc file to be created
on the SAP application server.
Perquisite: We can use Standard Delivery IDoc and Message Type i.e. (Basic Type: DELVRY03, Message Type:
DESADV) for our scenario
Step1
Step2
SAP Virtual/Onsite
Create Output type for delivery i.e. ZAEB. For this configuration go to T-Code NACE.
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
eCATT
Object Oriented
Programming
SAP Query
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
saptechnical.com/Tutorials/ALE/File/Index.htm 1/4
7/2/2019 Creating an IDoc File on SAP Application Server
Working with Floating Field
in Adobe Forms Click on .
Inserting data from Internal
Table into the step “Send
Mail”
Display GL Account long text
using enhancement
framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to
a Workflow container
Concept of Re-evaluate
agents for active work items
in SAP Workflow
Dynamic creation of
component usage in ABAP
Step4
WebDynpro
Adobe Forms: Display
symbols like copyright and Give output Type, Description, Access Sequence then press .
others
Deactivate Hold functionality
in Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Contribute?
Sample Specs
What's Hot?
Subscribe Unsubscribe
GO
Step6
Click on and give necessary program name, subroutine and save entry.
saptechnical.com/Tutorials/ALE/File/Index.htm 2/4
7/2/2019 Creating an IDoc File on SAP Application Server
Step7
Step8
Step9
saptechnical.com/Tutorials/ALE/File/Index.htm 3/4
7/2/2019 Creating an IDoc File on SAP Application Server
Graphic Design by Round the Bend Wizards
saptechnical.com/Tutorials/ALE/File/Index.htm 4/4
7/2/2019 Creating an IDoc File on SAP Application Server
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
Step10
Assign output type to standard procedure and save it. For this select any standard procedure and click on control from left
navigation panel.
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
eCATT
Object Oriented
Programming
SAP Query Step11
Userexits/BADIs
WebDynpro for Java/ABAPTM Enter step, counter, output type and save it.
Others
What's New?
saptechnical.com/Tutorials/ALE/File/Page2.htm 1/3
7/2/2019 Creating an IDoc File on SAP Application Server
Working with Floating Field
in Adobe Forms
Inserting data from Internal
Table into the step “Send
Mail”
Display GL Account long text
using enhancement
framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to
a Workflow container
Concept of Re-evaluate
agents for active work items
in SAP Workflow
Dynamic creation of
component usage in ABAP
WebDynpro
Adobe Forms: Display
symbols like copyright and
others
Deactivate Hold functionality
in Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Step13
Contribute?
Now create logical path and assign it physical path where our IDoc file store.
What's Hot?
Email:
Subscribe Unsubscribe
GO
saptechnical.com/Tutorials/ALE/File/Page2.htm 2/3
7/2/2019 Creating an IDoc File on SAP Application Server
Save it.
Step14
Give port name, Description, Directory & Function module name for file naming convention and save it.
saptechnical.com/Tutorials/ALE/File/Page2.htm 3/3
7/2/2019 Creating an IDoc File on SAP Application Server
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
Step15
Now create partner profile. For this firstly create Partner (LOGICAL SYSTEM) via T-Code BD54
Save it.
SAP Virtual/Onsite
Trainings
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
eCATT
Object Oriented
Programming
SAP Query
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
saptechnical.com/Tutorials/ALE/File/Page3.htm 1/5
7/2/2019 Creating an IDoc File on SAP Application Server
Working with Floating Field
in Adobe Forms
Inserting data from Internal
Table into the step “Send
Mail”
Display GL Account long text
using enhancement
framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to
a Workflow container
Concept of Re-evaluate
agents for active work items
in SAP Workflow
Dynamic creation of
component usage in ABAP
WebDynpro
Adobe Forms: Display
symbols like copyright and
others
Deactivate Hold functionality
in Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using And Save it.
BADIs
Tutorial on Wide casting Now add Message Type into outbound parameters:
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Contribute?
Sample Specs
What's Hot?
Email:
Subscribe Unsubscribe
GO Now enter below mention parameters and save it.
saptechnical.com/Tutorials/ALE/File/Page3.htm 2/5
7/2/2019 Creating an IDoc File on SAP Application Server
Save it.
Step16
Now Create Distribution Model View. For this Run T-Code BD64
saptechnical.com/Tutorials/ALE/File/Page3.htm 3/5
7/2/2019 Creating an IDoc File on SAP Application Server
Now select above created model view and click on . Another popup window will appear.
saptechnical.com/Tutorials/ALE/File/Page3.htm 4/5
7/2/2019 Creating an IDoc File on SAP Application Server
Please send us your feedback/suggestions at [email protected]
Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us
©2006-2007 SAPTechnical.COM. All rights reserved.
All product names are trademarks of their respective companies. SAPTechnical.COM is in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver, and and any other SAP trademarks are registered trademarks of SAP AG in Germany and in several other countries.
Every effort is made to ensure content integrity. Use information on this site at your own risk.
saptechnical.com/Tutorials/ALE/File/Page3.htm 5/5
7/2/2019 Creating an IDoc File on SAP Application Server
Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us
Step17
Now it’s time for testing the IDoc. If all the things work fine then an IDoc file created into SAP Application directory which
mention above i.e. < D:\usr\sap\EH5\SYS\profile>.
For this first open any one delivery whose sales organization will be ‘3000’ and sold-to-party will be ‘91300’ because we
have only maintains the condition record for these entry.
T-Code VL02N
Press enter.
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
Now check our output type will be trigger successfully or not. For this open delivery click on output type.
LSMW
SAP Script/Smart Forms
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
eCATT
Object Oriented
Programming
SAP Query
Userexits/BADIs
WebDynpro for Java/ABAPTM
Others
What's New?
saptechnical.com/Tutorials/ALE/File/Page4.htm 1/4
7/2/2019 Creating an IDoc File on SAP Application Server
Working with Floating Field
in Adobe Forms
Inserting data from Internal
Table into the step “Send
Mail”
Display GL Account long text
using enhancement
framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to
a Workflow container
Concept of Re-evaluate Open this IDoc into T-Code WE02
agents for active work items
in SAP Workflow
Dynamic creation of
component usage in ABAP
WebDynpro
Adobe Forms: Display
symbols like copyright and
others
Deactivate Hold functionality
in Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Contribute?
Sample Specs
What's Hot?
Email:
Subscribe Unsubscribe
GO
Now Check IDoc files on application directory, for this run T-Code AL11
saptechnical.com/Tutorials/ALE/File/Page4.htm 2/4
7/2/2019 Creating an IDoc File on SAP Application Server
Double Click on it. See IDoc File which contains IDoc Number in file naming.
To Download this file from SAP application sever to Local Desktop run T-Code CG3Y,Popup window will appears
Give above created file name with path into Source File input filed and give path where you download your file into your
saptechnical.com/Tutorials/ALE/File/Page4.htm 3/4
7/2/2019 Creating an IDoc File on SAP Application Server
saptechnical.com/Tutorials/ALE/File/Page4.htm 4/4