Sap Ole3
Sap Ole3
Check the prerequisite #2 of the guide. The logical system should be maintained in
bd54 before it can be used as an EDI partner in we20.
E0266 – Could not find code page for receiving system
This is an iDoc error that could occur when passing the iDoc to Receiver Port. If
the Program ID of the RFC destination is not registered correctly, this issue can
occur.
The outbound iDoc will terminate with the error in status 02 (Error passing data to
port). You can request your BASIS team to troubleshoot this error.
How to Debug Outbound iDocs
We can debug the iDoc generation Process Code of an Outbound iDoc configured via
Output Control in four easy steps:
Set the Output Type Dispatch Time to Option 1 (Send with a periodically
scheduled job)
Set a break-point in iDoc processing FM (process code)
Issue the output from SAP application document
Execute program RSNAST00
Go to transaction NACE > Application Area > Output Type and change the Dispatch
time to “Send with Periodic Batch Job”.
Change the dispatch time of the output to "Send with Periodically Scheduled Job"Set
the Dispatch Time of the output to “Send with Schedule Job”
Click “Save”.
Step 2 – Assign a Break-point in iDoc Processing FM (Process Code)
First, find the Process Code under Message Control of Partner Profile.
Identify the Process Code of the Outbound iDoc via partner profile configuration in
transaction we20Identify the Process Code of the Outbound iDoc
Then, go to transaction we57 and find the iDoc processing FM. Or you can directly
go to transaction se16n or se11 to find the FM using table EDIFCT.
identify the FM that generates output docs via transaction we42. FM is assigned to
a iDoc Message Type and Basic type
Identify the iDoc processing FM of the Process Code
Alternative method to find the iDoc processing FM - Table EDIFCT via transaction
se16n
Alternative method to find the iDoc processing FM – Table EDIFCT
Either create a new sales order document or a new output from an existing sales
order. The output should be in yellow status (ready to be dispatched).
issue a new output from sales order header manually. output is yellow (ready to be
processed) statusIssue a new output from sales order header
When you save the sales order, output entry should be stored in NAST table. The
output will be in a status 01 (Not yet processed).
Output stored in NAST table as entry. Processing status is 0 (ready to be
processed)Output entry created in NAST table
Step 4 – Execute Program RSNAST00
Execute the program RSNAST00 that issues outputs. The breakpoint in iDoc creation
FM will be triggered.
debug mode of the ABAP FM that creates output iDocs
iDoc generation FM in Debug Mode
Now you can debug the FM that generates the iDoc from application data.
To summarize, you can use Output Determination to generate Outbound iDocs in SAP.
Outbound iDocs generated by the output go through a processing pipeline that has
multiple milestones (statuses). iDoc processing can be set up for “immediate
processing” or “background processing”. This is controlled in the partner profile.
You can debug iDoc processing ABAP source code by setting a break-point in iDoc
processing FM. Moreover, you can troubleshoot iDoc processing errors using iDoc
status messages.
Hi, I am Isuru Fernando, Senior SAP Integration Consultant with 10 years of SAP
full-cycle implementation and support project experience. From the early days, I
had a passion for coding, software development, and everything tech-related. I
started my carrier as an ABAP developer and soon found my love for system
integration when I learned SAP XI 3.0 in 2008. Playing a variety of roles from an
offshore technical consultant (ABAP, PI/PO, BW, BOBJ) at the beginning of my career
to a technical lead managing a team of consultants in different countries, I have
gained immense experience in SAP project implementation life cycle. Having the
opportunity to work on SAP implementation projects in USA, EU, and Asia, I learned
valuable ins and outs of global business processors in Sales and Distribution (SD),
Material Management, Retail, Customer Relationship Management (CRM), and Finance
and Controlling (FICO). Through this blog, I want to share my expertise in SAP
technical areas such as SAP ABAP, PI/PO, AIF, and Basis. I also want to provide a
platform for others with similar ambitions who would like to share their SAP
technical expertise with the world!
Change Pointer Tables in SAP (ALE) and BDCP2
Microsoft Power Apps Integration with SAP S4 HANA
Learn how to develop your first iFlow on SAP Integration Suite within 7 minutes!
Subscribe for more
SIGN UP TODAY!
Sign up to receive our monthly newsletter and special deals!
Hi Chandra, Is the iDoc failing after getting created or output does not
get triggered when you change the custom field?
November 22, 2019 at 12:51 pm
Reply
Peter Danilovic says:
Hi Isuru Fernando,
Firstly thank you for the detailed explanation. I am working in IS-Retail
environment, could you please help me understand what is the difference between
Partner Type KU and Partner Type LS.
December 23, 2019 at 1:33 pm
Reply
Isuru Fernando says:
Hi Rais,
Partner type KU is for customers and partner type LS represents logical
systems. You can trigger outputs also to partner type KU, the prerequisite is the
customer should be available as a master record in SAP.
Cheers!
Isuru
December 23, 2019 at 5:03 pm
Reply
mahabooba shaik says:
Hi Isuru,
Great, Thanks much for sharing more valuable. keep sharing. Thanks! Mahabooba
February 26, 2020 at 11:03 am
Reply
Isuru Fernando says:
HI Isuru,
Thank you so much for sharing this, I have configured Invoice outbound Idoc ,
IDoc has been triggered without any issue, however missing few fields In Segment
E1EDP01 like PEINH, LGORT, MATNR.
Kindly help.
Thank you,
Jayasri
June 9, 2020 at 10:44 am
Reply
Sirisha Reddy says:
Hai. Such a nice work. Great explanation. Can u please help me with asn
outbound idoc process
July 6, 2021 at 7:19 pm
Reply
vana says:
thank you very much , very clear explanation, and very informative.
August 27, 2021 at 4:08 pm
Reply
Iliyas says:
Great Work Isuru! Clear and detailed explanation. Thank you very much!!
December 2, 2021 at 2:34 pm
Reply
Isuru Fernando says:
Excellent
December 12, 2021 at 10:00 pm
Reply
Isuru Fernando says: