Thursday, 26 April 2018
Function module to remove special characters : ES_REMOVE_SPECIAL_CHARACTER
Maybe I need to just have a single "Useful FMs" page... that'll prevent clutter... hmmm...
Wednesday, 21 February 2018
Table Maintenance Generator
You can do more than just the vanilla...
You can edit the screens that get generated in :Environment -> Modification ->Maintenance Screens - from there you can manipulate the screen field contents, in the same way for a screen you'd built yourself.
2/ Environment -> Modification -> Events. Events numbered 01-05 get hit by the processing of the screen, allowing you to do cool stuff like data validation, kick off workflows, errr... other stuff.
Wednesday, 7 February 2018
Three Reasons for Test Scripts
Just got asked by an end-user whether they needed to put screenshots into their test scripts... Now test-scripts are only partially for the benefit of the developer; they also serve the end-users and maybe audit, depending on the organisation. This was a pretty simple application (no spec, just a few conversations) for an end-user with whom I've got a good relationship. I'd done a bit of to-ing and fro-ing, had a few sit-down sessions where we point at the screen and talk about adjustments and how to use the app, along with it's supporting reports etc, but not got to the stage where we'd formally tested.
As far as I'm concerned, people do test-documents with a mixture of 3 attitudes:
1 I just want it done, get it
into PRD as soon as possible
In which case, you’re shooting
for the bare minimum that the CAB board will accept to put it into PRD. You
probably don’t need screenshots, you could get away with a text description,
replacing “Screenshot of” with “We tested and saw”.
2 I want a resilient, well
tested application that suits my requirements and what I asked for.
In which case, you describe the
end-to-end process (new joiners, new users, updates to policy documents,
mailing users to prompt them for un-acknowledged policies, facility to review
who has/has not acknowledged etc) with expectations of results at each stage.
You then run through the entire process, and highlight where the program’s
behaviour differs from your expectations.
3 I want to make sure the
Customer hasn’t got anything to bash my backside with in the future.
A testing document set up by the
customer/apps consultant allows us to confirm that the application has passed
any test that was agreed upon, and that any future amendments to the
application(s) are either bugs that weren’t picked up in testing, or changes
that have subsequently arisen.
In this case, owing to the good relationship, I'm not worried about 3, and the simplicity of the app means I'm not worried about 2, so that left me with 1...
I can't force users to test stuff before pushing to Production, but if I don't, I have to be prepared for the potential of a bunch of re-work!
Friday, 5 January 2018
WebIDE vs Eclipse
The first time I developed UI5 applications, I did so using Eclipse, because that was what the tutorials told me to do. Eclipse has served me well for UI5, but also for Android and HTML5 development.
The nice thing about Eclipse is that it's on my desktop, and once the HANA/UI5 setup has been done, I know full well that if my desktop can see the SAP system, then Eclipse can too. I don't need to negotiate any firewalls, install anything on the target system, or jump through any additional security hoops. I like that it's free (who doesn't!) and I know WebIDE has a free component, but when you've got a cloud solution, those guys could start charging any minute. (This happened to me recently with BKool online bike-training, who withdrew their free offering, making it a purely premium service...not happy!)
For those reasons, I've enjoyed using Eclipse. A co-worker, who started her UI5 journey with WebIDE decries the difficulty of getting Eclipse set up in the first place, that it's slow, and doesn't offer particularly good syntax checking or intellisense code completion.
She's right on both counts - getting Eclipse going for UI5 development isn't a straight "Download the UI5 Eclipse Version" - JDKs, System settings, JREs and adding software are all gotchas that can impair your progress.
Additionally, it requires updating every now and then, and if you're using Eclipse for a number of different purposes (say one day you're building an Android App, the next a WebPage) the libraries can all add up and start slowing Eclipse to a crawl - I solved this by having an install for each purpose, which takes up disk space, but at least keeps everything nicely siloed.
The verbal sparring we've had over the merits and drawbacks of each have made the long winter evenings just fly by, as you can imagine.
Bearing in mind that in our role as developers, we often have to just crack on and do the job, we don't get abundant time to try new things and compare the merits; Not wanting to knock something until I'd given it a fair chance, I've been dabbling with WebIDE recently.
The first few times I tried, it just seemed like someone had WebSkinned Eclipse, and it was slower and more unresponsive than my desktop. Why would I bother!? Here's a shootout for Developers:
Speed:WebIDE
The WebIDE is now faster... wasn't always the case, but Eclipse takes a long time to load. Once it's loaded, it's fine, but WebIDE has the win here:
Connection to backend:Eclipse
Using the HANA Cloud Connector, it's also possible to transmit your code to your on-premise solution relatively easily : There's a good blog about it here:
https://blogs.sap.com/2015/07/13/cloud-connector-a-brief-guide-for-beginners/
I don't think it's quite as straightforward as Eclipse's "Team->Share" option, but once set up is neat enough.
Getting Set Up:Contentious, but WebIDE
Sometimes you can have a really nice Eclipse setup experience, sometimes it takes forever. This seems to be a combination of laptop system settings, what JREs/JDKs you've already got on your computer, and whether HANA libraries and Eclipse releases are in sync at the moment.
The WebIDE should be a standard "set up an account on a website and you're in" experience... which could be sand-bagged by SAP.com's annoying habit of asking you for a password every page you go to.
Documentation: Eclipse
It's been around longer, so I'm expecting WebIDE to edge this in a year or so. The in-editor documentation on WebIDE is really good though.
Features: WebIDE
Intellisense code completion, documentation, object-method suggestion etc. WebIDE blows Eclipse out of the water on this one, and is the main reason I'm going to try and get some development work done there rather than in ol' faithful(Eclipse) in the next couple of months.
Once you know what you're doing, it'll be the connection to backend that makes the difference - and that'll depend on how amenable your sys-admins are to opening up their SAP system to a cloud solution... but I'm looking forward to using WebIDE a whole lot more.
The nice thing about Eclipse is that it's on my desktop, and once the HANA/UI5 setup has been done, I know full well that if my desktop can see the SAP system, then Eclipse can too. I don't need to negotiate any firewalls, install anything on the target system, or jump through any additional security hoops. I like that it's free (who doesn't!) and I know WebIDE has a free component, but when you've got a cloud solution, those guys could start charging any minute. (This happened to me recently with BKool online bike-training, who withdrew their free offering, making it a purely premium service...not happy!)
For those reasons, I've enjoyed using Eclipse. A co-worker, who started her UI5 journey with WebIDE decries the difficulty of getting Eclipse set up in the first place, that it's slow, and doesn't offer particularly good syntax checking or intellisense code completion.
She's right on both counts - getting Eclipse going for UI5 development isn't a straight "Download the UI5 Eclipse Version" - JDKs, System settings, JREs and adding software are all gotchas that can impair your progress.
Additionally, it requires updating every now and then, and if you're using Eclipse for a number of different purposes (say one day you're building an Android App, the next a WebPage) the libraries can all add up and start slowing Eclipse to a crawl - I solved this by having an install for each purpose, which takes up disk space, but at least keeps everything nicely siloed.
The verbal sparring we've had over the merits and drawbacks of each have made the long winter evenings just fly by, as you can imagine.
Bearing in mind that in our role as developers, we often have to just crack on and do the job, we don't get abundant time to try new things and compare the merits; Not wanting to knock something until I'd given it a fair chance, I've been dabbling with WebIDE recently.
The first few times I tried, it just seemed like someone had WebSkinned Eclipse, and it was slower and more unresponsive than my desktop. Why would I bother!? Here's a shootout for Developers:
Speed:WebIDE
The WebIDE is now faster... wasn't always the case, but Eclipse takes a long time to load. Once it's loaded, it's fine, but WebIDE has the win here:
Connection to backend:Eclipse
Using the HANA Cloud Connector, it's also possible to transmit your code to your on-premise solution relatively easily : There's a good blog about it here:
https://blogs.sap.com/2015/07/13/cloud-connector-a-brief-guide-for-beginners/
I don't think it's quite as straightforward as Eclipse's "Team->Share" option, but once set up is neat enough.
Getting Set Up:Contentious, but WebIDE
Sometimes you can have a really nice Eclipse setup experience, sometimes it takes forever. This seems to be a combination of laptop system settings, what JREs/JDKs you've already got on your computer, and whether HANA libraries and Eclipse releases are in sync at the moment.
The WebIDE should be a standard "set up an account on a website and you're in" experience... which could be sand-bagged by SAP.com's annoying habit of asking you for a password every page you go to.
Documentation: Eclipse
It's been around longer, so I'm expecting WebIDE to edge this in a year or so. The in-editor documentation on WebIDE is really good though.
Features: WebIDE
Intellisense code completion, documentation, object-method suggestion etc. WebIDE blows Eclipse out of the water on this one, and is the main reason I'm going to try and get some development work done there rather than in ol' faithful(Eclipse) in the next couple of months.
Once you know what you're doing, it'll be the connection to backend that makes the difference - and that'll depend on how amenable your sys-admins are to opening up their SAP system to a cloud solution... but I'm looking forward to using WebIDE a whole lot more.
Wednesday, 13 December 2017
How to track calls to SICF
https://blogs.sap.com/2013/07/12/logging-calls-to-your-gateway-service-sicf-for-beginners/
Hadn't come across this before, good to see we can do it from inside as well as outside SAP...
Hadn't come across this before, good to see we can do it from inside as well as outside SAP...
Monday, 25 September 2017
What is SPAU?
Been asked this a couple of times recently, so thought it worth saving here for posterity!
During the normal day to day operation
of an SAP system, OSS notes and other client-approved modifications to the standard
code may be made to accommodate business process and requirements in ways that
SAP didn’t provide for when they wrote their computer programs. This obviously
changes the state of the code (by which I mean, there are lines of code that
SAP don’t expect to be there).
As such, when we come to do an
upgrade, whereby SAP might be updating the “official” version of the code,
there may conflicts between what SAP expect to be there, and what actually is
there.
When an upgrade is done, any objects
that have been affected by the upgrade are offered to the developer in the SPAU
list. The developer will review the code and compare the before upgrade and
after upgrade code, with the option to merge existing bespoke and OSSNoted code
with the newly minted SAP Upgraded code.
The process of reviewing and updating
is known as “SPAU” after the transaction where the comparison is done. It
generates a transport, because after the patch/upgrade is done, there are
further “changes” (i.e. re-merging the bespoke/OSSNote code into the standard).
Usually the upgrade is done, then the SPAU list is
processed, which generates a transport, in the DEV box. Once this has been
completed, the same occurs in the QAS box, with the transport from DEV going
through to QAS and taking care of most, if not all, of the SPAU entries in the
QAS box.
The assumption here is that the boxes
are all roughly consistent, so any SPAU entries taken care of in DEV and QAS
should take care of any in PRD….
Monday, 11 September 2017
Subscribe to:
Posts (Atom)