Professional Documents
Culture Documents
IDOC_AAEToFilewithallConfigurations|SCN
GettingStarted Newsletters
Hi,Guest
LogOn
JoinUs
Store
SearchtheCommunity
Products
Services&Support
AboutSCN
Downloads
Industries
Training&Education
Partnership
DeveloperCenter
Activity
LinesofBusiness
UniversityAlliances
Events&Webinars
Innovation
Browse
IDOC_AAEToFilewithallConfigurations
Communications
Actions
Version3
createdbySwathiBobbityonSep6,20129:27AM,lastmodifiedbySwathiBobbityonOct12,20122:49PM
Tweet
Context
Themainpurposeofthisdocumentisforleveragingthenewfeaturei.e.,IDOC_AAE(Javastack
IDOCadapter)introducedinSAPPI7.3whereasABAPstackIDOCadapterwasusedtillPI7.11
version.ThisdocumentwillbeusefulwhowanttogowithsinglestackfromPI7.3/PI7.31(AEX)
andconnectwithSAPECCusingIDOCadapter,evendualstack(ABAP+Java)canusethis
IDOC_AAEadaptertoconnecttoSAPapartfromABAPstackIDOCadapter.
Audience
SAPPIconsultants,whoarenewtoPI7.3/7.31/AEX,wanttoleveragetheIDOC_AAEadapter(Java
stack)
Issues
1)UnabletopostidocintoECCfromPI(ABAPStack).
Error:Authorisationissueinsm58.
Solution:S_IDOCCTRLandB_ALE_RECVrolesaddedbysecuritiesteam
2)Errorinsm58onpostingidocfromECC(UsingJavaAAE)
Error:BeanIDOC_INBOUND_ASYNCHRONOUSnotfoundonhost
Solution:Pleasemakesurethattheuserhassufficientauthorizations.YouneedtheS_IDOCDEFT
(EDI_TCD="WE30";ACTVT="03")authorization.
3)Probleminportsetting(Notmandatory)
ThedefaultSenderportfieldisnotmandatorybutsometimesifyoufaceissuethengoforthe
belowmentionedsolution
Solution:GotoNWA
A. Path:Configurations>infrastructure>applicationresources
B. Javaidocresourceadapter>propertiestab
SetthedefaultSenderportfieldofyourPIsystem
4)Authorisationissues
Error:NoRFCauthorizationforfunctionmoduleIDOCTYPE_READ_COMPLETE.
Solution:YouneedtogivetoServiceUser,therightrolesandauthorizationobjecttoexecuteRFC
function
Contentsoftheblog
Introduction.
a)ConfigurationsinNWA.
b)ConfigurationsattheSenderSystem(SAPECC).
c)DesigntheScenariointheEnterpriseServiceRepository.
d)ConfiguretheScenarioinIntegrationDirectory.
http://scn.sap.com/docs/DOC31398
1/16
12/18/2015
IDOC_AAEToFilewithallConfigurations|SCN
e)Testingthescenario.
Introduction
ThepurposeofthisdocumentistoshowallthestepsneededtoconfigureanIDoc_AAEtofile
scenario
ThisdocumentwillhelpSAPPIconsultantstounderstandtheALE(ApplicationLinkEnabling)and
NWAsettingsneededtocompletethisscenario.
Systemsinvolvedindevelopingthescenario
Sendersystem:SAPECC(SAPDEV_100)ClientNo100
PIsystem:SAPNETWEAVERPI7.3(PIDEV_100))ClientNo100
Receiver:LocalFileDirectory(NFS)
BriefOverviewofConfigurations
a)ConfigurationsinNWA
1)SettingsinApplicationResources
2)CreateJCORFCProviderdestination
b)ConfigurationsattheSenderSystem(SAPECC)
1)CreateRFCDestination
2)CreatePort
3)CreateLogicalSystem
4)CreatePartnerProfile
c)DesigntheScenariointheEnterpriseServiceRepository
1)ImporttheRequiredIDocfromSenderSAPECCSystem
2)CreateDataTypeforFilestructure
3)CreateMessageTypeforDataType
4)CreateServiceInterface
5)CreateMessageMappingdoingsimpleonetoonemapping
6)CreateOperationMapping
d)ConfiguretheScenarioinIntegrationDirectory
1)AssignBusinessSystemforsenderECC
2)CreateConfigurationScenario
3)CreateReceiverBusinesscomponent
4)CreateSenderCommunicationChannel
5)CreateReceiverCommunicationChannel
6)CreateIntegratedConfiguration
e)Testingthescenario
1)TriggertheIDocfromECC
2)CheckthetriggeredidocmessageinPIAdapterengineinRWB
3)CheckwhethertheMessageisreceivedinyourfilesystem.
Detaileddescriptionofthesteps
a)ConfigurationsinNWA
OpenNWApage
1)InNWAnavigatetothebelowpath:
Configuration>Infrastructure>ApplicationResources
http://scn.sap.com/docs/DOC31398
2/16
12/18/2015
IDOC_AAEToFilewithallConfigurations|SCN
Enter"inboundRA"intheResourceNameandclickonfiltericon
SelectResourceAdapter,inboundRA
Clickon"Properties"
Enteravaluefor"MaxReaderThreadCount"between5to10
Enter"true"forLocal
XI_IDOC_DEFAULT_PIDEV,PIDEVreferstothePIsystemID.
TheProgramIDvisiblehere,XI_IDOC_DEFAULT_PIDEV,mustbeusedwhencreatingtheRFC
destinationoftypeTontheECCsystem
http://scn.sap.com/docs/DOC31398
3/16
12/18/2015
IDOC_AAEToFilewithallConfigurations|SCN
2)CreateJCORFCProviderdestination
InNWAnavigatetothebelowpath:
Configuration>Infrastructure>JCORFCProvider
CreateJCORFCProviderdestinationwithnameXI_IDOC_DEFAULT_PIDEVinNWAwherePIDEV
referstothePISystemID.
EnterGatewayhostandgatewayserviceofyourPIsystem.
b)ConfigurationsattheSenderSystem(SAPECC)
ThissectiondescribesalltheconfigurationsneededintheSenderSAPSystem(ECC)forsendingan
IDoctoPI
1.CreateRFCDestination
OnyourSAPECCsysteminordertosendtheIDOCsyouneedtocreateanRFCdestinationoftype
T(TCP/IP)
GotoTransactionSM59createanewRFCdestinationofTypeT
1.1.SelecttheradiobuttonRegisteredServerProgram
2.IntheprogramIDentertheprogramIDfrominboundRAofNWA(explainedinthelater
partofthedocument)
3.EnterthegatewayhostandgatewayserviceofyourPIserver
http://scn.sap.com/docs/DOC31398
4/16
12/18/2015
IDOC_AAEToFilewithallConfigurations|SCN
InPIDEVCLNT100_AAEandXI_IDOC_DEFAULT_PIDEV,PIDEVreferstothePIsystemID.
Scrolldownandfillthefollowingdetails
EnterGatewayhostandgatewayserviceofyourPIsystem.
Afteryouconfigurethatyoushouldbeabletochecktheconfigurationusingthetestconnection
buttonontheRFCdestination.
http://scn.sap.com/docs/DOC31398
5/16
12/18/2015
IDOC_AAEToFilewithallConfigurations|SCN
2.CreatePort
GotoTransactionWE21
1.ClickontheTransactionalRFCfromPorts(lefttreepanel)
2.ClickonCreateButton
3.GivePortName(SAP<SID>)hereorselectgenerateportnameandclickoncontinue.Inmy
exampleIhavegivenasSAPPIDEV_AAE(PIDEVisPISystemIdand_AAEforbetter
understanding)
4.GivethedescriptionoftheportandselectRFCdestinationoftypeTcreatedabove.Now
clickonsave.
3.CreateLogicalSystem
GotoTransactionBD54
1.ClickoncreateButton
2.GivenameforyourLogicalSystemPIDEVCLNT100(<SID>CLNT<ClintNo.>)wherePIDEVis
PISystemIDand100isclientNumber.
3.Nowclickonsave
http://scn.sap.com/docs/DOC31398
6/16
12/18/2015
IDOC_AAEToFilewithallConfigurations|SCN
4.CreatePartnerProfile
CreatePartnerProfilewithoutboundparameter(WE20)tobesendtothePIreceiversystem
1.GotoTransactionWE20
2.SelectPartnerTypeLS
3.ClickonCreateButton
4.GiveLogicalSystemNamewhichwehavejustcreatedinstep3asPartnerNo,Partner
TypeshouldbeLS,Agent(somevaliddata),Language(EN).NowclickonSave
5.NowcreateanOutboundParameter.
SelecttherequiredMessageType.
SelecttheReceiverPort(whichwehavecreatedinstep2SAPPIDEV_AAEinthis
example).
SelectTransferIDocImmediatelyoptioninOutputmodeforImmediateTesting.Select
BasicTypeSave.
Enterallcredentialsinthepostprocessingpermittedagenttab.
http://scn.sap.com/docs/DOC31398
7/16
12/18/2015
IDOC_AAEToFilewithallConfigurations|SCN
WecanseeMessageTypeisaddedintheoutboundparameter.
c)DesigntheScenariointheEnterpriseServiceRepository
1)ImporttheRequiredIDocfromSenderSAPECCSystem
2)CreateDataTypeforFilestructure
http://scn.sap.com/docs/DOC31398
8/16
12/18/2015
IDOC_AAEToFilewithallConfigurations|SCN
3)CreateMessageTypeforDataType
4)CreateInboundServiceInterfaceforFile
5)CreateMessageMappingdoingsimpleonetoonemapping
http://scn.sap.com/docs/DOC31398
9/16
12/18/2015
IDOC_AAEToFilewithallConfigurations|SCN
6)CreateOperationMapping
d)ConfiguretheScenarioinIntegrationDirectory
Prerequisites
1)AssignBusinessSystemforsenderECC
2)CreateConfigurationScenario
3)CreateReceiverBusinesscomponent
4)CreateSenderCommunicationChannelusingIDOC_AAEadapter
http://scn.sap.com/docs/DOC31398
10/16
12/18/2015
IDOC_AAEToFilewithallConfigurations|SCN
SelectDefault(recommmended)inRFCServerParameters
TheAckDestinationcanbeleftblankorthevaluegivenasabove
5)CreateReceiverCommunicationChannel
6)CreateIntegratedConfiguration
Select appropriate sender and receiver components, channels in different tabs of integrated
configuration.
e)Testingthescenario
1)TriggertheIdocfromECCsystem.
http://scn.sap.com/docs/DOC31398
11/16
12/18/2015
IDOC_AAEToFilewithallConfigurations|SCN
Enterthetcodewe19totriggertheidoc
Searchwithmessagetypeofidoc(ORDRSP)thatyouwanttotrigger,andthenselecttheidoc
type(ORDERS05)
WewillgetIdocwithallitssegments
ClickonthecontrolsegmentthatisEDIDCinthisidocandfillallthesenderandreceiver
detailslikePort,PartnerNoandpartnertype.
Thenselectanyotherdatasegmentandpopulatevaluesintheidoc
WewillgetamessageasIDocsenttoSAPsystemorexternalprogram
Afterenteringvaluesclickonthetabstandardoutboundprocessingonthetoptotriggerthe
idoc.
2)CheckthetriggeredidocmessageinPIAdapterengine
NavigatetoRuntimeworkbench
GotoMessageMonitoringLink,SelectAdapterEnginefromthecomboboxMessagesfrom
componentandclickondisplaybutton
Youcanseethemessageherewithsuccessstatus
3)CheckwhethertheMessageisreceivedinyourfilesystem.
SincewehaveselectedNFSinourchannel,wecheckitinal11tcodeinPIsystem.
Gotothetargetdirectorythatyouspecifiedinyourchannel.Youcanfindyourfilebeingplaced
there.
33436Views
AverageUserRating
(5ratings)
Tweet
26Comments
AlejandroFerraraNov19,20125:53PM
Goodguide.IfollowedallstepsandIdocsaregettingstuckedinABAP.SM58saysError:Bean
IDOC_INBOUND_ASYNCHRONOUSnotfoundonhostasyousaidinIssues(2).
CouldyoutellmewichusermustIchecktheauthorizations?Youdon'tspecifyitin
thesolution.
Thankyouinadvance.
Like(0)
SwathiBobbityNov21,201210:28AM(inresponsetoAlejandroFerrara)
TheuserwhoistryingtoposttheidocfromECCshouldhavesufficientauthorisations.
Like(1)
SunilMavacheeJan23,20134:41AM
goodworkswathi,keepupdated.!
regards,
sunilm
Like(2)
CarlosOcamposApr10,201312:32PM
Goodwork!
Butjustonecomment:
http://scn.sap.com/docs/DOC31398
12/16
12/18/2015
IDOC_AAEToFilewithallConfigurations|SCN
Youdon'tneedtodothesecondstepinNWA.
2)CreateJCORFCProviderdestination
JCORFCProviderdestinationisnotneccesaryforthisconfig.
Kindregards.
Like(1)
SaschaWenningerApr15,20137:03AM(inresponsetoCarlosOcampos)
That'scorrect.TheJCoRFCProviderisnotneeded,andthissetupworkswithoutit.
Like(3)
BhargavakrishnaTalasilaMay21,201311:07AM
GoodworkSwathi,Ithelpedmeallot...
.
Like(1)
BhargavakrishnaTalasilaJun7,20137:43AM
HiSwathi,
ihaveonequery..
Asyoumentionedinb)step1)RFCdestination
EnterthegatewayhostandgatewayserviceofyourPIserver.
IthinkthisshouldbeECChostandgatewayservice.
imgettingerror"Programidnotregistered".
pleaseConfirmme..
Regards
Bhargavakrishna
Like(0)
SenthilnathanNatarajanJul12,20134:41PM(inresponsetoBhargavakrishnaTalasila)
hiBhargava,
Iamgettingthesameerror"Programidnotregistered"whenItestinECCSM59.
Howdidyousolveit?
ManyThanksinadavnce.
Senthil
Like(0)
BhargavakrishnaTalasilaJul13,20135:09AM(inresponsetoSenthilnathanNatarajan)
DidyouregistertheprogramidinSAPGatewayandinNWA?
AlsoyouneedtoprovideECCgatewayhostandservicedetailsinNWA>
Applicationresources>inboundRA>resourceadapter>properties..
Checkthat..once..hopeitwillwork..
Regards
Bhargavakrishna
Like(0)
SenthilnathanNatarajanJul13,20135:54AM(inresponsetoSenthilnathanNatarajan)
HiKrishna,
AfterprovidingtheECCgatewayhost/serviceinNWA>properties,Iamabletoget
theRFCdetsinationworking.
Thanksforpointingmeintherightdirection.
Senthil
Like(0)
MuniMJul9,20136:50PM
HiSwathi,
Thisisonewellexplainedsuperbblog.thanksforsharing.
Regards,
Muniyappan.
Like(0)
http://scn.sap.com/docs/DOC31398
13/16
12/18/2015
IDOC_AAEToFilewithallConfigurations|SCN
AmbrishMishraJul9,20137:03PM
Verydetailedandwellwritten.
cheers,
Ambrish
Like(0)
JorgeHuedoAug21,20135:40PM
Higuys,
I'mtryingtoperformthisconfigurationbutI'mstuckwiththeRFCDestinationinECC.
Let'srecapwhatIhavedone:
CreateDestinationinPI(XI_IDOC_DEFAULT_DESTINATION)
ConfigtheinboundRA
5andtrue,andthePIGateway(I'mnot100%sureaboutthis).
AlsoourprogramidXI_IDOC_DEFAULT_P21
Createdestinationinsm59typeTusingourprogramidandasgatewaythepigateway.
AndI'mhavingthenexterror:
LogonConnectionError
ErrorDetailsErrorwhenopeninganRFCconnection
ErrorDetailsERROR:accessdeniedfortpXI_IDOC_DEFAULT_P21fromhostecchost
ErrorDetailsLOCATION:SAPGatewayonhostP21CE73/3301
ErrorDetailsCOMPONENT:SAPGateway
ErrorDetailsCOUNTER:278
ErrorDetailsMODULE:D:/depot/bas/740_REL/src/krn/si/gw/gwxxreg.c
ErrorDetailsLINE:667
ErrorDetailsRETURNCODE:748
ErrorDetailsSUBRC:0
ErrorDetailsRELEASE:740
ErrorDetailsTIME:WedAug2116:29:232013
ErrorDetailsVERSION:2
IknowthattheprogramidisworkingbecauseifIchangeitreturnthattheprogramidisnotvalid,also
thetechnicaluserI'musinghasSAP_ALLsoitshouldn'tbeaproblem.
Anyideas?
Thanks.
Jorge
Like(0)
BhargavakrishnaTalasilaAug21,20136:29PM(inresponsetoJorgeHuedo)
HiJorge,
youneedtoprovideECCgatewayhostandservicedetailsinNWA>Application
resources>inboundRA>resourceadapter>properties..
Itisconnectionissue,recheckyourgatewayhostandservicedetails.
Pleasecheckitonce.
Regards
Bhargavakrishna
Like(0)
SatishDhanalakotiOct17,201312:44AM(inresponsetoBhargavakrishnaTalasila)
Hi,
WetoofacedthesameissueandwefixeditbymodifyingtheReginfofileofPIand
ECCsystem.
Bydefinition,theGatewayhostandserviceshouldbeofPIserveronlyinNWAand
inECC'sRFC.
PleasemakethechangesinReginfofiletoallowtheprogramidtoberegistered
andaccessedinECC.
Regards,
SatishDhanalakoti
Like(1)
JorgeHuedoOct17,201310:15AM(inresponsetoSatishDhanalakoti)
ThanksSatish,
WefoundthatfromPO7.4thesecurityingatewayisactivatedbydefault.
WehadtwodiferentsPIsonein7.3.1andanotherin7.4andwiththe
defaultinstallationwasworkinginthe7.3.1andnotinthe7.4.
Wesettheparametergw/acl_mode=0inthePOboxworkedfine.
Thanks
Jorge
http://scn.sap.com/docs/DOC31398
14/16
12/18/2015
IDOC_AAEToFilewithallConfigurations|SCN
Like(0)
ArunKumarJan12,201412:57AM
Gooddocument.
Asalreadyacoupleofcolleaguespointedout,noneedtosetupJCORFCprovider.
ProgramidsetinInboundRAadapaterpropertieswillbeusedforsettingupTCP/IPdestinationin
ECCside
GatewayserviceofPIshouldworkjustfine(intheadapterpropertiessettinglocalgatewayproperty
true')aslongasthegatewayservicenameisspecifiedcorrectlywithPIhostnameandACL
parameterissettoallowregisterignservicesandusingexternally
Regards
Arun
Like(0)
ZhangChaoJan21,20142:51AM
Soclearly!
Like(0)
RAVIREDDYMar3,20146:40AM
Verywellexplained............
thanks&Regards
E.RCreddy
Like(0)
jafershaikMar6,20141:29PM
IhavedonealltheNWACONFIGURATIONS,IamconfusedwhiletriggeringtheIDOCthroughWE19
T.codewhatwehavetogivetheSenderandReceiverPORT,PartnerNofortrigerring.Pleasehelp
meoutthisisaIDOC_AAEtoFILEscenarioSinglestackSAPPI7.3
Like(0)
StenishPeterSApr29,20143:43PM
Wow!Veryniceblog.Thanksforsharing:)
Like(0)
AdityaSharmaMay19,20147:21PM
Themostimportantthingmissingisintegratedconfiguration.Definitionofinbound/outbound
interfacesinbusinesscomponentandsystemsismissingtoo.
Itwouldhavebeenbetterbecausewithoutitstillsomehitandtrialhastobedone.
Like(0)
JigneshShahAug14,20146:16AM
Hi,
Niceblog!!
InABAPStackwehavethemetadataloadviatrasaction,howwecandothemetadatauploadin7.31
javastack.
Like(0)
durgagiduguOct7,20145:25PM
IthinkI'mlatetotheparty,looksliketheMaxReaderThreadCountplayscrucialrole.Inmycasewe
hadIDOC'sstuckinSM58andRFCtoPIserverwasfailingwitherro"PROGRAMREGISTER
FAILED"
ThevalueofThreadCountfortheinboundRAwassetto5whichwasearlier0,restartedtheservices
anditworksallfine.Alsogw/acl_modeparametertobesetonPIserver
BTW..goodblogswathi.!
Like(0)
rajasekharmoduOct27,20148:08AM
hiswathi
verynicepageaboutidoc_aae.
keeppostingaboutsinglestackscenarios.wanttolearnnewthings.
Thanksinadvance.
http://scn.sap.com/docs/DOC31398
15/16
12/18/2015
IDOC_AAEToFilewithallConfigurations|SCN
Like(0)
chandartOct29,201411:44AM
HiSwathi,
Thanksfortheniceblog.CanyoupleasecarifyonBD64,modelveiwcontrollersettingisrequired
hereornot?
Thanks,
ChandarT
Like(1)
SiteIndex
Privacy
ContactUs
TermsofUse
http://scn.sap.com/docs/DOC31398
SAPHelpPortal
LegalDisclosure
Copyright
FollowSCN
16/16