Logging Calls to your Gateway Service: SICF (for beginners)
Something which has come in very useful for me when using Gateway is the Logging functionality. On the project I’m currently working on the UI developers are from a different company and working out what they’re doing can be tricky. My colleague and I have set up our gateway service, and the UI guys are making the calls we’ve exposed to them.. but are they making them correctly? Are they making all the calls required?
When system testing it has given me peace of mind to be able to check the calls being made by the front end developers. When bugs have been raised I have been able to identify, using SICF, when the issues have been caused by incorrect or missing calls to our service.
This is a brief blog to explain (for those who are new to Gateway) how to use SICF for logging gateway calls, and how to use this to your advantage.
1. Log in to your Gateway system and navigate to TCode SICF
2. Click execute and expand the list until you get to your service
default_host->sap->opu->odata->sap->”service name”
3. Click (once) onto your service, so it’s highlighted, then activate a recording
Edit->Recorder->Activate Recording
There are 5 parts to make a selection for:
1 User: I select “All Users”, but if you know who the Gateway user is you can specify it directly
2 Record time: If you don’t want to have to come back and de-activate this you can set this to a very specific time frame (I usually leave it as default, and manually deactivate the recording)
3 Lifetime: How long do you want to be able to see these recordings for? After a time all entries will be deleted, so if you’re using the recording, for example, to make a point in a meeting, make sure you set the lifetime long enough, or you will find all your recordings deleted
4 URL Path: this will be auto-populated based on the service you selected. If it is BLANK then you didn’t select a service yet.
5 Request and Response is usually more useful
Once you’re ready, hit activate: now, any calls made to Gateway (by your specified user) will be recorded.
I tend to set this up, make some gateway calls and then immediately deactivate the recorder (as it has a maximum number of entries at 100 – and this can be reached very quickly in our system)
4. Deactivate the Recorder: Edit->Recorder->Deactivate Recording
5. To View your recordings: select the service again. Edit->Recorder->Display Recordings
If you left the recorder running for a while you might specify a time here, but if (like me) you want to see everything, don’t change any setting and click execute
7. To see details of any gateway call: select it, click the little glasses icon, select “in new session”
And there you have it – a simple way to track the calls made to your gateway service!
I hope this is helpful to those of you new to Gateway – I know it was useful to me.
Thanks !! Very Informative and Helpful . 🙂
Very Helpful Blog.
Thanks Syam!
Very informative!
Thanks Andre!
I hope people, who were life me a few months ago, find this helpful!
Nice work Lindsay! 🙂
Thansk DJ 🙂
All thanks to you that I know about these things! And not everyone has you to guide them, so I thought I'd share with those who don't!
Nice blog Lindsay 🙂 definitely helps newbies like me ..thanks!
Nice Work 😀
Hi Lindsay,
Nice find, and well presented. Do you know if the limit of 100 entries is hard coded in the system, or have you found any way around the limit ?
thanks
Hi Martin,
The 100 entry limit - I found out recently - is just a display limit. So you can only see 100 entries at once, even though more may exist. To see entries firther in the past you can restrict the time frame in step 5 to a specific time, and then you can see entries further in the past (assuming they haven't expired!)
This was something I only recently found out - so now I tend to set the recorder running at the start of the day (with expiry time of 8 hours) to run all day, then you can spoecify the time you want to check recordings, and you can see anything from the whole day.
Thanks for a good question 🙂
Lindsay
Thanks !!
Hi Martin,
I just discovered that there is a "display all" icon too! It's a yellow arrow pointing right with a green square under it.
Hope that helps (it's helping me out today so I thought you'd appreciate knowing too!)
Lindsay
Hi Lindsay, I can't find the service "ye_mps_gw" as mentioned in SICF. My system is NetWeaver 7.3 EHP1 (BW). Is this function only available on certain version of netweaver?
Thanks,
Jerry
Jerry
The "YE_MPS_GW" service is specific to Lindsay's project, and was just used as an example here. You should substitute the name of your own service.
cheers
dj
Hi DJ, got it. Thanks for your explanation.
Thanks DJ for explaining 🙂
I hope you're having more luck now Jerry!
Lindsay
Nice document Thanks...
Nice Document and Good job 🙂
Thanks.
Thanks Uday! Glad you liked it 🙂
Hi Lindsay,
very good document - thanks a lot!
In the brand-new SP7 of SAP NetWeaver Gateway there is now the 'Payload Trace' available (http://help.sap.com/saphelp_gateway20sp07/helpdata/en/e4/35cc51e637c00ce10000000a445394/frameset.htm).
This is offering similar features. In my introduction of SP7 I also gave a short pro / con list of the two possibilities: http://scn.sap.com/community/netweaver-gateway/blog/2013/08/28/sap-netweaver-gateway-sp7-is-out
It would be really interesting to hear you feedback to this new feature.
Best regards,
Martin
Thank you Martin, this is really helpful 🙂 Thank you for sharing it here!
best Regards,
Lindsay
thanks 🙂
Great blog Lindsay! 🙂
Thanks Oli 🙂
Great Blog and Thanks Lindsay. This it what I have been looking for since few days 🙂 .
Great document. Thanks Lindsay.
Can anyone let me know how to call the /SAP/BC/LREP service to store variants at backend.
http://help.sap.com/saphelp_uiaddon10/helpdata/en/a8/e55aa2f8bc4127923b20685a6d1621/content.htm?frameset=/en/7b/2e06c219dc4e4d964cc7e2f8629ef5/frameset.htm¤t_toc=/en/e4/843b8c3d05411c83f58033bac7f072/plain.htm&node_id=770
Brilliant! Big help!
Thanks for sharing Lindsay
Thanks for sharing, extremely useful !