SlideShare a Scribd company logo
1 of 13
Download to read offline
https://www.linkedin.com/groups/8483193
INTEGRATION COMMUNITY
0
External System non-SAP Client to Idoc
Adapter (AAE) Part I
Applies to: SAP PO 7.4 SP10 and SAP HR, JCO 3.0.14 (32 BIT), SAPIDOC 3.12
Summary: We want to explain how to generate a java client on NWDS to send idocs from a non-SAP system to a
SAP PO system throw idoc adapter advance extended (AAE).
Author: Integration Community
Created on: 2016/04/05
https://www.linkedin.com/groups/8483193
Table of Contents
Introduction 2
Step-by-Step procedure 3
References 11
Version
number
Purpose / Changes Author Date
1 Initial draft Integration Community 06/04/2016
https://www.linkedin.com/groups/8483193
Introduction
On this document we face how to implement a client server to send idocs from a non-SAP system to PO via AAE
idoc. Below step by step procedure explain way to register program ID into PO gateway and obtain metadata to
achieve our goal from a SAP system (metadata repository by default).
You can see into next flow picture how connection should be split into two points:
1. Sending idoc to PO and register idoc on PO via idoc sender AAE (Idoc Message:
HRCC1UPTEVEN.HRCC1UPTEVEN01 )
2. Checking metadata into a SAP system.
Document Scope
non SAP System
SAP System
Process Orchestration
GATEWAY
Sender Idoc
program ID
register
Idoc:HRCC1UPTEVEN01 Idoc:HRCC1UPTEVEN01
Check_metadata_idoc
propertyFile: SERVER_REPOSITORY. jcoDestination
Next integration community document relate will explain opposite direction from SAP system to non-SAP system and
how to handle creation java server to receive idocs.
This document has been created and developed by the Integration Community team (Roberto
Cantero and Federico Abait)
https://www.linkedin.com/groups/8483193
Step-by-Step procedure
Step Description Screenshot
NWDS configuration for java project
1 Run NWDS and open Java
perspective
Click: OK
2 Create Java Project:
File > Java Project (or Other >
Java Project)
https://www.linkedin.com/groups/8483193
3 Project name:
JCOExampleIdocAdapterAAE,
with the following
characteristics.
Click: Finish
https://www.linkedin.com/groups/8483193
4 Add libraries: Add External
JARs…:
-sapjco3.jar (in my case,
version 3.0.14 32BIT, because
my NWDS version is 32BIT)
-sapidoc3.jar
Clock: OK
5 Create new package with name
com.sap.conn.idoc.examples
Click: OK
https://www.linkedin.com/groups/8483193
6 By the moment project should
looks like this
7 Create new class
IDocClientExample with the
following characteristics.
Click: Finish
8 Replace default code with that
one
package com.sap.conn.idoc.examples;
import com.sap.conn.jco.*;
import com.sap.conn.idoc.*;
import com.sap.conn.idoc.jco.JCoIDoc;
import java.io.*;
public class IDocClientExample {
public static void main(String[] args) {
try
https://www.linkedin.com/groups/8483193
{
String iDocXML = null;
FileReader fileReader;
try
{
fileReader = new
FileReader("...//workspace//JCOExampleIdocAdapterAAE//src//com//sap//conn//idoc//exampl
es//Client_IDocDocumentAsXML_Example.xml");
BufferedReader br = new
BufferedReader(fileReader);
StringBuffer sb = new StringBuffer();
String line;
while ((line = br.readLine()) != null)
{
sb.append(line);
}
iDocXML = sb.toString();
br.close();
fileReader.close();
}
catch(Exception ex)
{
ex.printStackTrace();
}
// see configuration file CLIENT_PO.jcoDestination and
SERVER_REPOSITORY.jcoDestination provided in the installation directory
JCoDestination
destination=JCoDestinationManager.getDestination("CLIENT_PO");
IDocRepository iDocRepository = JCoIDoc.getIDocRepository(destination);
String tid = destination.createTID();
IDocFactory iDocFactory = JCoIDoc.getIDocFactory();
IDocXMLProcessor processor=iDocFactory.getIDocXMLProcessor();
IDocDocumentList iDocList=processor.parse(iDocRepository, iDocXML);
JCoIDoc.send(iDocList, IDocFactory.IDOC_VERSION_DEFAULT, destination, tid);
destination.confirmTID(tid);
}
catch(Exception e)
{
e.printStackTrace();
}
System.out.print("program end");
}
}
9 Take in account the following
line in the code
fileReader = new
FileReader("...//workspace//JCOExampleIdocAdapterAAE//src//com//sap//conn//idoc//exampl
es//Client_IDocDocumentAsXML_Example.xml");
Note in this line we are making reference to xml file that it contents the Idoc to be sent to
PO. In our case it will be in the following path
“//workspace//JCOExampleIdocAdapterAAE//src//com//sap//conn//idoc//examples//”
https://www.linkedin.com/groups/8483193
10 Content in file
Client_IDocDocumentAsXML_
Example.xml
<?xml version="1.0" encoding="UTF-8"?>
<HRCC1UPTEVEN01>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1">
<TABNAM>EDI_DC40</TABNAM>
<STATUS>50</STATUS>
<DIRECT>1</DIRECT>
<OUTMOD>2</OUTMOD>
<IDOCTYP>HRCC1UPTEVEN01</IDOCTYP>
<MESTYP>HRCC1UPTEVEN</MESTYP>
<SNDPOR>XXX</SNDPOR>
<SNDPRT>LS</SNDPRT>
<SNDPRN>XXXX1002</SNDPRN>
<RCVPOR>XXX</RCVPOR>
<RCVPRT>LS</RCVPRT>
<RCVPRN>XXXCLNT200</RCVPRN>
<CREDAT>20160207</CREDAT>
<CRETIM>053513</CRETIM>
</EDI_DC40>
<E1BPCC1UPTEVEN SEGMENT="1">
<SOURCE_SYS>XXXCLNT200</SOURCE_SYS>
<TEVENTTYPE>P01</TEVENTTYPE>
<TERMINALID>0029</TERMINALID>
<LOGDATE>20160207</LOGDATE>
<LOGTIME>053259</LOGTIME>
<PHYSDATE>20160207</PHYSDATE>
<PHYSTIME>053258</PHYSTIME>
<TIMEID_NO>00003840</TIMEID_NO>
<PERNO>01002461</PERNO>
</E1BPCC1UPTEVEN>
<E1BPCC1UPTEVEN SEGMENT="1">
<SOURCE_SYS>XXXCLNT200</SOURCE_SYS>
<TEVENTTYPE>P01</TEVENTTYPE>
<TERMINALID>0029</TERMINALID>
<LOGDATE>20160207</LOGDATE>
<LOGTIME>053307</LOGTIME>
<PHYSDATE>20160207</PHYSDATE>
<PHYSTIME>053306</PHYSTIME>
<TIMEID_NO>00003865</TIMEID_NO>
<PERNO>00021287</PERNO>
</E1BPCC1UPTEVEN>
<E1BPCC1UPTEVEN SEGMENT="1">
<SOURCE_SYS>XXXCLNT200</SOURCE_SYS>
<TEVENTTYPE>P01</TEVENTTYPE>
<TERMINALID>0029</TERMINALID>
<LOGDATE>20160207</LOGDATE>
<LOGTIME>053449</LOGTIME>
<PHYSDATE>20160207</PHYSDATE>
<PHYSTIME>053449</PHYSTIME>
<TIMEID_NO>00003953</TIMEID_NO>
<PERNO>00021611</PERNO>
</E1BPCC1UPTEVEN>
</IDOC>
</HRCC1UPTEVEN01>
11 Take in account the following
line in the code
JCoDestination destination=JCoDestinationManager.getDestination("CLIENT_PO");
Note: in this line we are making reference to property file CLIENT_PO.jcoDestination (in
the installation directory) where is the necessary parameter to connect to the gateway
defined. The parameters defined are:
CLIENT_PO.jcoDestination
SNDPOR: The port
name should be
same as Logical
system name of the
business system
(Sender) defined in
SLD.
https://www.linkedin.com/groups/8483193
jco.client.gwhost: Gateway host
jco.client.gwserv: Gateway Service
jco.client.tpname: Program ID (it will be registered by Sender IDOC Adapter (you can
find the settings bellow)
jco.client.type= Client type (for example “E”)
jco.destination.repository_destination: reference the name of the property file
SERVER_REPOSITORY. jcoDestination (in the installation directory) where is the
necessary parameter to connect to SAP to recovery the metadata of idoc. The parameters
defined are:
SERVER_REPOSITORY. jcoDestination
jco.client.type: Connection Type (for example “3”)
jco.client.client: System Number
jco.client.user: Logon User
jco.client.passwd: Logon Password
jco.client.lang: Logon Language
jco.client.mshost: Application Server (host)
jco.client.r3name: ID System
jco.client.group: Logon Group (for example “SPACE” o “PUBLIC”)
jco.client.trace
12 The project in the NWDS should
looks like follow
SAP PO configuration
https://www.linkedin.com/groups/8483193
13 The Communication Channel
Sender IDOC should be as
follow
14 You have to set the system
Java Virtual Machine
parameter
Parameter: “jco.allow_non_abap_partner” to “1”, otherwise the non-SAP
communication is not allowed.
This configuration must be done in the “Config Tool”.
15 Now you can configure
Integrated Configuration (ICO)
You must define:
-Sender Business System (System non-SAP): The port name should be same as Logical
system name of the business system (Sender) defined in SLD.
-Receiver Business System (System SAP):
Program ID to be
registered in the gateway
Gateway to register the
Program ID
https://www.linkedin.com/groups/8483193
Configuration is done and now you have to test and monitoring it.
16 Once Sender Idoc has
registered the Program ID in the
gateway, you can execute the
client application in NWDS
17 Once the execution is finished
18 Go to monitoring in PO server
References
 http://scn.sap.com/docs/DOC-52483
 http://scn.sap.com/thread/3535452
 http://help.sap.com/saphelp_nwpi711/helpdata/en/48/634503d4e9501ae10000000a42189b/content.htm?fra
meset=/en/48/707c54872c1b5ae10000000a42189c/frameset.htm&current_toc=/en/b4/3f9e64bff38c4f9a196
35f57eb4248/plain.htm&node_id=506
 http://scn.sap.com/community/pi-and-soa-middleware/blog/2011/09/19/exchanging-idocs-with-non-sap-
system-over-tcpip-using-pi-as-middleware
 http://a248.g.akamai.net/n/248/420835/56c2ce22d9f611f223717a77d0032ea05633c0516dffe22233af9fce22
318231/sapasset.download.akamai.com/420835/sapcom/docs/2015/08/dc66efe1-557c-0010-82c7-
eda71af511fa.pdf
 Note: 1752276 - Idoc support for non-sap systems
 Note: 1729203 - Support for communication with external RFC server
 Note: 1717833 - RFC destinations to support external rfc servers
 Note: 1877907 - Support of extern-to-extern RFC communication with JCo 3.0
.
https://www.linkedin.com/groups/8483193
END OF DOCUMENT

More Related Content

Recently uploaded

SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 

Recently uploaded (20)

SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 

Featured

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

External system non_sap client_to_idoc_adapter_(aae)

  • 1. https://www.linkedin.com/groups/8483193 INTEGRATION COMMUNITY 0 External System non-SAP Client to Idoc Adapter (AAE) Part I Applies to: SAP PO 7.4 SP10 and SAP HR, JCO 3.0.14 (32 BIT), SAPIDOC 3.12 Summary: We want to explain how to generate a java client on NWDS to send idocs from a non-SAP system to a SAP PO system throw idoc adapter advance extended (AAE). Author: Integration Community Created on: 2016/04/05
  • 2. https://www.linkedin.com/groups/8483193 Table of Contents Introduction 2 Step-by-Step procedure 3 References 11 Version number Purpose / Changes Author Date 1 Initial draft Integration Community 06/04/2016
  • 3. https://www.linkedin.com/groups/8483193 Introduction On this document we face how to implement a client server to send idocs from a non-SAP system to PO via AAE idoc. Below step by step procedure explain way to register program ID into PO gateway and obtain metadata to achieve our goal from a SAP system (metadata repository by default). You can see into next flow picture how connection should be split into two points: 1. Sending idoc to PO and register idoc on PO via idoc sender AAE (Idoc Message: HRCC1UPTEVEN.HRCC1UPTEVEN01 ) 2. Checking metadata into a SAP system. Document Scope non SAP System SAP System Process Orchestration GATEWAY Sender Idoc program ID register Idoc:HRCC1UPTEVEN01 Idoc:HRCC1UPTEVEN01 Check_metadata_idoc propertyFile: SERVER_REPOSITORY. jcoDestination Next integration community document relate will explain opposite direction from SAP system to non-SAP system and how to handle creation java server to receive idocs. This document has been created and developed by the Integration Community team (Roberto Cantero and Federico Abait)
  • 4. https://www.linkedin.com/groups/8483193 Step-by-Step procedure Step Description Screenshot NWDS configuration for java project 1 Run NWDS and open Java perspective Click: OK 2 Create Java Project: File > Java Project (or Other > Java Project)
  • 6. https://www.linkedin.com/groups/8483193 4 Add libraries: Add External JARs…: -sapjco3.jar (in my case, version 3.0.14 32BIT, because my NWDS version is 32BIT) -sapidoc3.jar Clock: OK 5 Create new package with name com.sap.conn.idoc.examples Click: OK
  • 7. https://www.linkedin.com/groups/8483193 6 By the moment project should looks like this 7 Create new class IDocClientExample with the following characteristics. Click: Finish 8 Replace default code with that one package com.sap.conn.idoc.examples; import com.sap.conn.jco.*; import com.sap.conn.idoc.*; import com.sap.conn.idoc.jco.JCoIDoc; import java.io.*; public class IDocClientExample { public static void main(String[] args) { try
  • 8. https://www.linkedin.com/groups/8483193 { String iDocXML = null; FileReader fileReader; try { fileReader = new FileReader("...//workspace//JCOExampleIdocAdapterAAE//src//com//sap//conn//idoc//exampl es//Client_IDocDocumentAsXML_Example.xml"); BufferedReader br = new BufferedReader(fileReader); StringBuffer sb = new StringBuffer(); String line; while ((line = br.readLine()) != null) { sb.append(line); } iDocXML = sb.toString(); br.close(); fileReader.close(); } catch(Exception ex) { ex.printStackTrace(); } // see configuration file CLIENT_PO.jcoDestination and SERVER_REPOSITORY.jcoDestination provided in the installation directory JCoDestination destination=JCoDestinationManager.getDestination("CLIENT_PO"); IDocRepository iDocRepository = JCoIDoc.getIDocRepository(destination); String tid = destination.createTID(); IDocFactory iDocFactory = JCoIDoc.getIDocFactory(); IDocXMLProcessor processor=iDocFactory.getIDocXMLProcessor(); IDocDocumentList iDocList=processor.parse(iDocRepository, iDocXML); JCoIDoc.send(iDocList, IDocFactory.IDOC_VERSION_DEFAULT, destination, tid); destination.confirmTID(tid); } catch(Exception e) { e.printStackTrace(); } System.out.print("program end"); } } 9 Take in account the following line in the code fileReader = new FileReader("...//workspace//JCOExampleIdocAdapterAAE//src//com//sap//conn//idoc//exampl es//Client_IDocDocumentAsXML_Example.xml"); Note in this line we are making reference to xml file that it contents the Idoc to be sent to PO. In our case it will be in the following path “//workspace//JCOExampleIdocAdapterAAE//src//com//sap//conn//idoc//examples//”
  • 9. https://www.linkedin.com/groups/8483193 10 Content in file Client_IDocDocumentAsXML_ Example.xml <?xml version="1.0" encoding="UTF-8"?> <HRCC1UPTEVEN01> <IDOC BEGIN="1"> <EDI_DC40 SEGMENT="1"> <TABNAM>EDI_DC40</TABNAM> <STATUS>50</STATUS> <DIRECT>1</DIRECT> <OUTMOD>2</OUTMOD> <IDOCTYP>HRCC1UPTEVEN01</IDOCTYP> <MESTYP>HRCC1UPTEVEN</MESTYP> <SNDPOR>XXX</SNDPOR> <SNDPRT>LS</SNDPRT> <SNDPRN>XXXX1002</SNDPRN> <RCVPOR>XXX</RCVPOR> <RCVPRT>LS</RCVPRT> <RCVPRN>XXXCLNT200</RCVPRN> <CREDAT>20160207</CREDAT> <CRETIM>053513</CRETIM> </EDI_DC40> <E1BPCC1UPTEVEN SEGMENT="1"> <SOURCE_SYS>XXXCLNT200</SOURCE_SYS> <TEVENTTYPE>P01</TEVENTTYPE> <TERMINALID>0029</TERMINALID> <LOGDATE>20160207</LOGDATE> <LOGTIME>053259</LOGTIME> <PHYSDATE>20160207</PHYSDATE> <PHYSTIME>053258</PHYSTIME> <TIMEID_NO>00003840</TIMEID_NO> <PERNO>01002461</PERNO> </E1BPCC1UPTEVEN> <E1BPCC1UPTEVEN SEGMENT="1"> <SOURCE_SYS>XXXCLNT200</SOURCE_SYS> <TEVENTTYPE>P01</TEVENTTYPE> <TERMINALID>0029</TERMINALID> <LOGDATE>20160207</LOGDATE> <LOGTIME>053307</LOGTIME> <PHYSDATE>20160207</PHYSDATE> <PHYSTIME>053306</PHYSTIME> <TIMEID_NO>00003865</TIMEID_NO> <PERNO>00021287</PERNO> </E1BPCC1UPTEVEN> <E1BPCC1UPTEVEN SEGMENT="1"> <SOURCE_SYS>XXXCLNT200</SOURCE_SYS> <TEVENTTYPE>P01</TEVENTTYPE> <TERMINALID>0029</TERMINALID> <LOGDATE>20160207</LOGDATE> <LOGTIME>053449</LOGTIME> <PHYSDATE>20160207</PHYSDATE> <PHYSTIME>053449</PHYSTIME> <TIMEID_NO>00003953</TIMEID_NO> <PERNO>00021611</PERNO> </E1BPCC1UPTEVEN> </IDOC> </HRCC1UPTEVEN01> 11 Take in account the following line in the code JCoDestination destination=JCoDestinationManager.getDestination("CLIENT_PO"); Note: in this line we are making reference to property file CLIENT_PO.jcoDestination (in the installation directory) where is the necessary parameter to connect to the gateway defined. The parameters defined are: CLIENT_PO.jcoDestination SNDPOR: The port name should be same as Logical system name of the business system (Sender) defined in SLD.
  • 10. https://www.linkedin.com/groups/8483193 jco.client.gwhost: Gateway host jco.client.gwserv: Gateway Service jco.client.tpname: Program ID (it will be registered by Sender IDOC Adapter (you can find the settings bellow) jco.client.type= Client type (for example “E”) jco.destination.repository_destination: reference the name of the property file SERVER_REPOSITORY. jcoDestination (in the installation directory) where is the necessary parameter to connect to SAP to recovery the metadata of idoc. The parameters defined are: SERVER_REPOSITORY. jcoDestination jco.client.type: Connection Type (for example “3”) jco.client.client: System Number jco.client.user: Logon User jco.client.passwd: Logon Password jco.client.lang: Logon Language jco.client.mshost: Application Server (host) jco.client.r3name: ID System jco.client.group: Logon Group (for example “SPACE” o “PUBLIC”) jco.client.trace 12 The project in the NWDS should looks like follow SAP PO configuration
  • 11. https://www.linkedin.com/groups/8483193 13 The Communication Channel Sender IDOC should be as follow 14 You have to set the system Java Virtual Machine parameter Parameter: “jco.allow_non_abap_partner” to “1”, otherwise the non-SAP communication is not allowed. This configuration must be done in the “Config Tool”. 15 Now you can configure Integrated Configuration (ICO) You must define: -Sender Business System (System non-SAP): The port name should be same as Logical system name of the business system (Sender) defined in SLD. -Receiver Business System (System SAP): Program ID to be registered in the gateway Gateway to register the Program ID
  • 12. https://www.linkedin.com/groups/8483193 Configuration is done and now you have to test and monitoring it. 16 Once Sender Idoc has registered the Program ID in the gateway, you can execute the client application in NWDS 17 Once the execution is finished 18 Go to monitoring in PO server References  http://scn.sap.com/docs/DOC-52483  http://scn.sap.com/thread/3535452  http://help.sap.com/saphelp_nwpi711/helpdata/en/48/634503d4e9501ae10000000a42189b/content.htm?fra meset=/en/48/707c54872c1b5ae10000000a42189c/frameset.htm&current_toc=/en/b4/3f9e64bff38c4f9a196 35f57eb4248/plain.htm&node_id=506  http://scn.sap.com/community/pi-and-soa-middleware/blog/2011/09/19/exchanging-idocs-with-non-sap- system-over-tcpip-using-pi-as-middleware  http://a248.g.akamai.net/n/248/420835/56c2ce22d9f611f223717a77d0032ea05633c0516dffe22233af9fce22 318231/sapasset.download.akamai.com/420835/sapcom/docs/2015/08/dc66efe1-557c-0010-82c7- eda71af511fa.pdf  Note: 1752276 - Idoc support for non-sap systems  Note: 1729203 - Support for communication with external RFC server  Note: 1717833 - RFC destinations to support external rfc servers  Note: 1877907 - Support of extern-to-extern RFC communication with JCo 3.0 .