Professional Documents
Culture Documents
GetStarted
Solutions Support Training Community Developer Partner About
IssuesfacedwithSAPGateway(GWbySE80
Method)
December24,2014 | 1,131Views |
VaibhavDeorukhkar
morebythisauthor
SAPGateway
share
0 share
0 tweet share
0 0
like
Follow
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 1/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
Helloeveryone,
BelowyouwillfindanillustrationofissuesfacedinSAPNetWeaverGatewaywhilecreatingservices
by the obsolete SE80 method.Although the SE80 method of generating gateway services is no more being
used by projects this document may prove useful to help resolve realtime issues for developers and
customersstillusingthisversion.
ThedocumentdiscussesvariousissuesalreadyfacedduringGoLive/PostGoLivephaseofthe
projectandalsoelaboratesasolu onastohowtheaboveshownGatewayErrorswereresolved.Although
SAP has provided us with the standard SAP Gateway Error Log. The messages are some mes hard to
decipheranddonotindicatetheac onneeded.
Pleasefeelfreetopostyourcomments.Andalso,docorrectmewhereyouthinkImayhavegone
wrong.Reasonbeing,thisisjustthestartandthereisalwaysscopeforimprovement.
Thanks.
VaibhavDeorukhkar
*******************************************************************************************************************************
***********************
IssuesfacedwithSAPNetWeaverGatewayandits
Resolu on(SP05andbelowversions)
Letsstartwithmostbasicandcommonerrorsfaced
SAPNetweaverGatewayhasbeendeactivated
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 2/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
Solution:
TheaboveerroroccurswhenGatewayisdeactivated.Toresolvethisnavigatetotransaction
codeSPRO,andexpandthebelowshownnodestoactivateSAPNetWeaverGateway.
P.S There may also be a case that an SAP System is having multiple clients and Gateway being
activated on another Client. In such a case it is required to maintain the system alias of that client
whilecreatingservicesorthesameerrormightagainpopup.
NoSystemAliasfoundforServiceZxxxxxxx_xxxxanduserXXXXXX
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 3/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
Solu on:
ThisisakindofanerrorwhenserviceisgeneratedaccordingtoSdatastandardinsteadofOdata.
AlthoughSdatas llisatypeofserviceURLbutifthefrontenddeveloperissendingdatainOdataformat;
itsrecipienthastobeinOdataformatonly.Andsinceintheabovescreenshotweconguredasystemalias
for the OData service, the above error has popped up since no system alias corresponding to the Sdata
versionoftheservicewascreated.ServiceswhichcontainOdataintheirURLhavebe ercompa bility
withODatastandardandmightintroducesupportforaddi onalODatacapabili es.TheODataURLofa
serviceisafeaturewhichwasaddedtoGatewaySP3.Sdataiss llavailableforbackwardcompa bility.
Bo omlineis,iftheserviceyouareworkingwithisavailableinOdataURLaswell;usethatinsteadofthe
sdataURL.
Noservicefoundfornamespace/SAP/,nameZ****_P****_I****,versionXXXX.
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 4/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
Solution:
This common error usually occurs when the service is not properly transported. Under
DevelopmentEnvironmentsuchanissueneverarises.Butoncetheservicesaremovedtoanother
environment(sayQuality/Production),itisapossibilitythattheabovemessageisregisteredinthe
errorlog.ToresolvethiswenavigatetoSPROTransactionandexpandtothebelowshownnode.
Next,navigatetotheServiceandselecttransport.
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 5/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
Entertherelevanttransportnumberandclickonsave.InSE10,youwillnowbeabletoseethe
newlyaddedentry.
Value*XXXXXXXXX*violatesfacetinformationmaxlength=10
Solution:
ThiserrorisencounteredwhentheRequestDataattemptstobetransmittedtotheBackend
withadatalengthmorethanwhatissetintheGateway/RFC.Thiscanberesolvedbytwo
methods
a.)Increasingthedatatypelength,sothatitequalsthelengthofthetargetdata,thatis
actuallybeingsentoverthroughthegateway.
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 6/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
b.)SettingtheDataTypelengthasSTRINGintheRFC/Classandappropriateconversionbe
doneintheCodetherebyavoidingthepossibilityofsuchanerrorbeingregisteredintheSAP.
RFCcallwasnotsuccessfulbecauseofsystemfailureUnabletointerpret0,0asa
number.
Solution:
Thiserrorisencounteredintwocases.
a.)WhentheDatabeingpassedoverthegatewayisofadatatypeotherthanthatwhatissetinthe
Backend.
Fore.g.I_QUANTITY,animportparameterissetintheCode/GatewayoftypeQUAN13anddatabeing
passedissay15*000(auserinput).
b.)Whentheuserparametersforaparticularuseraresetinsuchaway(fore.g.,toindicate.In
15,000)thattheGatewayParametersfailtointerpretthesymbol.Thisisbecauseingatewayweset
astaticdatatype.
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 7/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
Invalidformat(returntable):RowNumberX,PropertyNamexxxx_xxx_xx,PropertyValue
XX
Solution:
Thiserrorisencounteredwhenthevaluereturnedbytheserviceisnotinthesameformat
asexpected.
Fore.g.N.Na.NaNainsteadofastandardSAPDate.Thisthrowsanerroratthegatewaylevel.
However,noerrorisloggedinST22orrelevantDumpLogger.
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 8/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
Solution:
ThiserroroccurswhenthedataisstoredinSAPintheaboveshownformat.Thedatacannot
becorrectedbutstepshavetobetakentoensurethatthedatapassedontotheBAPIiscorrect.The
originofsuchgarbagedatacanbeanythingfromtheFrontendcodetotheBackendcode.There
are no explicit steps to handle such data at Gateway Level. However, if the output format of the
returntableismadetobeStringorCharthenprobablywecanatleastpreventfromshowingupan
HTTPrequestfailedontheUI5Frontend.
ErrorwhileparsinganXMLstream
Solution:
ThiserrorisencounteredwhenaspecialcharacterispassedinaREADURL.StandardSAP
Gateway(SE80)versionsupportsonlyupto1specialcharacterintheREADURL,inthiscase:isalready
used,soifitwastryingtopassanotherspecialcharactersuch/,thenitthrowsadumpintheErrorLog
andignorestheotherenteredspecialcharacter.
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 9/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
ActualDatainSAPwas
Thus,aswecansee,the/inN/Aiscaughtasaspecialcharacterandthrowsanerrorlog.
RFCcallwasnotsuccessfulbecauseofsystemfailureUserUK_XXXXXisalready
processingPurchasingdocum.
Solution:
Usuallysuchamessageshouldpopupasanerror/warningmessageontheUI5screen.Butif
thestandardBAPIbeinguseddoesnotfacilitatesendingsuchamessageasanexportparameteron
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 10/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
theUI5Screenandthedocumentisbeingeditedsimultaneouslybymorethanoneperson,thenthe
gatewayerrorlogregisterssuchamessageandshowsanHTTPRequestFailedontheUI5Screen.
Inconsistencyinkeyfieldi_process_order.
Solution:
Akeyfieldshouldneverbepassedblankthroughgateway.Thissettingcanbedoneinthe
RFCagainstwhichthegatewayserviceismade.Ifitisnotnecessaryforthatfieldtoholddataatall
timestheserviceiscalledthenitshouldbemarkedasoptional.Orotherwiseitshouldbemadesure
thatthisfieldalwayscarriessomevalue.
NoauthorizationtoaccessServiceZXXX_XXXXXX_XX_0001.
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 11/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
Solution:
Thisisabasisissuetododealwith.TherearespecificauthorizationstoaccessaGateway
Service.Theremayberequiredtoincorporateseparaterolesfrombasissidetosolvethisissue.
RFCcallwasnotsuccessfulbecauseofsystemfailureNoauthorizationtologonasa
TrustedSystem(L
Solution:
Thisisagainabasisissue.Specicse ngsaredonebythebasisteamtohelpresolve
thisissue.
Invalidkeypredicate
Solution:
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 12/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
ThisisencounteredwhentheURLpassedtocallagatewayserviceisincorrect.By
incorrectitisimpliedthatacertainkeyfieldisnotpassedintheURLwhichisconsideredas
mandatorytocontaindata.
BelowisasampleURLwithanInvalidKeyPredicate.
OperationtypeQdoesnotexistintheDataModel
Solution:
ThisisatypeoferrorwhenaQueryURLiscalledinsteadofaRead.InSAPGatewayifit
isknownthattheoutputcontainsatableofdata,thegatewayserviceatthedevelopmentstageitself
needstosupportQueryOperation.Hereinthecaseshownabove,maybeitwaspreviouslyexpected
thatoutputwillbeintheformatofInputfollowedbysingle/multipleexportparameters.ButtheURL
wascalledwithanexpectationthatatablewillbepassedontothefrontend.
Therecanbetwoscenariosfortheabove
a.)TheURLforQueryiscalledbymistakewhenitwasintendedtocallaReadService.
b.)TheGatewayserviceismadewithoutproperknowledgeoftheexpectedoutput.Atthispointin meit
isabsolutelynecessarytohavepropercoordina onbetweentheGatewayDeveloperandtheABAPer.
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 13/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
DatabaseLockforServiceZ**********couldnotbeset.
Solution:
This situation was encountered when many users are accessing a particular service
continuously. Although it did not seem to hamper any business functionality for the client, it was
deemedasapotentialhiccuptotheUI5applicationasawhole.Henceitwasdecidedtoturnonthe
Metadata Cache within the Gateway and since then the above issue never reoccurred. As a
negativeconsequenceofthesame,itwasneededtoclearthegatewaycacheaftereachcodedrop
intotheproductionenvironment.
Note:Cacheofonlythoseservicesneededtobeclearedthatweretransportedwithaddi onalelds.That
is,onlythosewithchangestotheexis ngones.Asama erofconcern,EachandeveryService
metadatacacheissafetobecleareda eracodedropintoProduc onEnvironment.
RFCcallwasnotsuccessfulbecauseofsystemfailureFillinallrequiredentryfields.
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 14/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
Solution:
Whenamandatoryeld(bymandatoryeld,wemeanthattheeldshouldcontaindata)is
missedoutintheURLthatistriggered,wehavethisentrybeingregisteredintheerrorlog.Toresolvethis,
itisrequiredtochecktheURLagainandthebackendcodeagainandensurethatallthemandatoryelds
containproperdata.
SpecifyPositiveValuesOnly
Solution:
Itisrequiredthataquan tyeldcannotbepassedasnega ve.Itmayalsobethecasethatthe
value that is passed is being derived a er mul ple calcula ons in the front end and eventually the
calcula on results in a nega ve number as a result (scenario might be dierent) and thus leads to
registeringthiserrorintheErrorLog.Thebestsolu ontoallowanega venumber,isdeclaringthedata
type of the eld being set to CHAR and then once the ABAP Code takes control of the parameters, it is
convertedtotherequirednega vevaluewithinthecode.
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 15/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
DereferencingoftheNULLreference
Solution:
ThisissuecroppedupintheProduc onEnvironmentandsomethingwhichwehadnot
expected.Therootcauseofthiswas,achangeintheBackendParameter,achangeintheGatewayService
butthegatewayserviceparametersnotge ngreectedintheproduc onenvironmentevena ermul ple
transports. This was then resolved a er clearing the Gateway Cache by naviga ng to the Transac on
/IWFND/CACHE_CLEANUP
BelowarethestepstoclearGatewayMetadataCache.
1.NavigatetotheTransaction/IWFND/CACHE_CLEANUP.
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 16/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
2.UsetheF4HelpandenterthepartoftheDataModelwhosecacheneedstobecleared.
3.ChoosetheGatewayServicewithtypePS(PublicSolution).
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 17/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
4.NextafterselectingtherequiredDataModelpressF8(Execute).
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 18/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
5.GatewayMetadataCacheclearedsuccessfully.
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 19/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
Toconclude,mostoftheGatewayErrorLogentriesclearlyexplainwhattheerroris;fortheonesthat
donot,wecanrefertothescenariosexplainedaboveandhelpresolvetheissues.Thisdocumentdoesnot
cover all the issues encountered but covers mostly those that posed a hindrance in the Produc on
Environment.Hopethishelps.
VAIBHAVDEORUKHKAR
***********************ENDOFDOCUMENT***********************
AlertModerator
7Comments
SrikanthGajula
January7,2015at10:12am
HelloVaibhav,
Goodstart,hopetoseeyouwriteonSEGWinnearfuture .
Cheers
Sri
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 20/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
VaibhavDeorukhkar Postauthor
January27,2015at6:43am
ThankyouSrikanthyesiwill!!
EkanshSaxena
January7,2015at10:31am
HiVaibhav,
Itsreallyagoodblogwhichcompilesthecommonerrorsatoneplace.Itwouldhelpmanywhiletroubleshooting.
IMOthenameoftheblogisbitconfusing. Youhavepostedtheerrorsfacedandthesolutionsbutthenamesuggests
thatitwillleadtotheconstraintsorlimitsofSAPGateway.
Regards,
Ekansh
VaibhavDeorukhkar Postauthor
January27,2015at6:49am
ThankyouEkansh,
Updatedthetitleaccordingly
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 21/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
PavanGolesar
February1,2016at11:54am
HiVaibhav,
AddingtoEkansh,Goodbundlingoferroralongwithsolutions
Nicetroubleshootingdocument..
SavedandBookmarked.
Regards,
PavanG
UmitCoskunAydinoglu
March29,2016at1:24pm
Hello,
Gooddocument!
IamgettingNoauthorizationtoaccessServiceZXXX_XXXXXX_XX_0001forasevicewhichsdefinitionisonanother
system.Therearealsoanotherservicewhichisdefinitionisonthatsystem.Icheckedbothservicesandcouldntfindany
difference.Doyouhaveanyidea?
KindRegards,
Cokun
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 22/23
4/23/2017 IssuesfacedwithSAPGateway(GWbySE80Method)|SAPBlogs
UmitCoskunAydinoglu
April21,2016at5:15am
Forauthorizationerrorsyouneedtocreatearoleintheserviceasstatedinthisdocument
AuthorizationsandRolesforTransactionalAppsSAPFioriprincipalappsforSAPERP1.0SAPLibrary
AddComment
Share & Follow Privacy TermsofUse LegalDisclosure Copyright Trademark Sitemap Newsletter
https://blogs.sap.com/2014/12/24/issuesfacedwithsapgatewaygwbyse80method/ 23/23