Skip to Content

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

/wp-content/uploads/2013/07/1_245025.png
2. Click execute and expand the list until you get to your service
default_host->sap->opu->odata->sap->”service name”

/wp-content/uploads/2013/07/2_245026.png
3. Click (once) onto your service, so it’s highlighted, then activate a recording
Edit->Recorder->Activate Recording

/wp-content/uploads/2013/07/3_245033.png

/wp-content/uploads/2013/07/4_245034.png
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

/wp-content/uploads/2013/07/5_245035.png
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

/wp-content/uploads/2013/07/6_245039.png
7. To see details of any gateway call: select it, click the little glasses icon, select “in new session”

/wp-content/uploads/2013/07/7_245041.png

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.

To report this post you need to login first.

28 Comments

You must be Logged on to comment or reply to a post.

    1. Lindsay Stanger Post author

      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!

      (0) 
  1. Martin English

    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

    (0) 
    1. Lindsay Stanger Post author

      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

      (0) 
    2. Lindsay Stanger Post author

      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

      (0) 
  2. Jerry Zhu

    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

    (0) 
    1. DJ Adams

      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    

      (0) 
  3. Martin Bachmann

    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

    (0) 

Leave a Reply