ABAP News for Release 7.51 – ABAP Keyword Documentation is Online
The “offline version” of the ABAP Keyword Documentation for ABAP 7.51 is online*.
Besides adding new and overhauling existing contents, I was able to fulfill another SCN request.
Hitting the URL button shows the current URL and allows you to copy it to the clipboard, at least for MS IE and Google Chrome. So you don’t have to add “?file=…” manually any more. E.g. the above one gives
The buttons do not work for Firefox or Safari. But you can mark the URL and Ctrl+C it at least for Firefox there. Believe me, it was far from simple for my limited html/js skills to achieve that at all. I almost gave up before the pieces that I gathered up from the web suddenly teamed up. If you have a better idea how to achieve it, don’t hesitate to tell me. The problem is that copying to the clipboard is regarded as a general security risk and browsers try to prevent it.
For the time being, I enjoy the current solution for placing links to the new documentation in community posts.
_________________________________________________________
*Remember, the real online versions are those shown after F1 in SE38 or ADT.
Hi Horst,
just opened the english version and got this:
Regards Christian
Yes I know.
Forgot to run ABAP_DOCU_RESET in the translation system before downloading the tree html.
New upload is already triggered.
... and the tree is replaced now, node texts are in English.
I guess, you will soon find a flaw in the URL button that I've found today, of course after publishing it, and that I have to analyze tomorrow.
Yep, found it 😉
Hopefully the same 😮
URL-Copy doesn’t work if URL is already extended with “?file=”.
Corrected the inadequate IF statement in the JS function for 7.51, SP01 and will upload a new version then.
Hello, thank you for the great documentation!
I tested new button, but it does not work in Chrome. It always returns “entry link url”.
If I open documentation through for example link:
http://help.sap.com/abapdocu_751/en/index.htm?file=abencds.htm
then browse somewhere, then it always puts this same URL into clipboard.
And by the way, is there somewhere list of online “abapdocu” by version?
I know of:
http://help.sap.com/abapdocu_731/en
http://help.sap.com/abapdocu_740/en
http://help.sap.com/abapdocu_751/en
Should be fixed now ...
A new version (7.51, SP01) is online. Some bugs in URL copy are fixed (didn’t work, if the URL didn’t end with index.htm) and a popup asks now for allowance to copy to the clipbpoard.
Hello Horst,
In Edge, the URL button doesn't work at all and there's no popup to tell that an error was detected. And I remember that the URL button used to show a field at the bottom of the page to copy manually the URL, but I don't find it anymore.
I think this correction could work (in the function urlToClipboard):
Before correction:
After correction:
Tested today on Edge, IE 11, Chrome, in a local HTML file.
Thanks!
Sandra
Although it's worth this little correction above, edge is back to normal today, the URL button works again... Maybe a bug in edge which was corrected today...
Do people really use Edge?
I tried several times, as recently as a few weeks ago but gave up mostly because it doesn't play nicely with SharePoint. The irony!
It works, most of time. Or, I can say, it works, but then they do a change and it doesn't work anymore, then it works again... They probably use Continuous Injection of bugs and corrections...
Hi Sandra,
Thanks for your effort. How embarrassing, the second time that you send me JS code for that documentation.
Nevertheless, I tested it on Edge before publishing and it worked then. I tested again and it still works for me. I know that it doesn’t work for Firefox or Safari.
I hesitate a bit to include the correction. The current solution works on Chrome in Android and I don’t want to loose it. First I have to test that.
If I include the correction in CL_ABAP_DOCU_DOWNLOAD=>ADJUST_LINKS now, it would only be published with the next version of the ABAP platform anyway. I’ll see if I find time to check the modified code in Android. But that would be for local files only.
Best
Horst
Hello Horst Keller
If you have some time, is it possible to improve the ?file= functionality to allow the positioning inside the page i.e. handle the hash part (aka fragment identifier).
For instance the URL to ASSIGN COMPONENT could be:
https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abapassign_mem_area_dynamic_dobj.htm#!ABAP_ALTERNATIVE_4@4@
(the hash part is #!ABAP_ALTERNATIVE_4@4@, it should make the ASSIGN page display from the paragraph “Alternative 4 … COMPONENT comp OF STRUCTURE struc”)
Currently, there’s the following possibility which does the positioning but it doesn’t display the menu on the left :
https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/abapassign_mem_area_dynamic_dobj.htm#!ABAP_ALTERNATIVE_4@4@
The index.htm script could be changed here (add + window.location.hash) :
Of course, it’s currently only possible to add the hash tag to the URL manually.
But if you wish, I did the test, you may add the “URL” button at every chapter, then it could be a minor modification in the generated HTML pages :
In the HTML, add one “URL” button at every “chapter”, and add the new hash argument to every urlToClipboard function call :
It worked with Chrome, Edge, IE 11 (didn’t test firefox and others).
Thanks a lot !
Sandra
(PS: not sure about how web browsers handle the exclamation mark and arobase characters correctly (maybe %21 and %40 could better work) but anyway my tests with the 3 browsers were okay)
Hi Sandra,
Yes, I know that the positioning inside the page doesn't work in the offline version while it works in the online versions (the anchors are all there).
Again, one of these tasks that I postpone until someone asks for.
Now, you asked and even gave hints how to do it, so I guess,I'll have to implement it sooner or later. But don't expect it too soon, I'm doing other things until the end of the year.
Thanks,
Horst
I guess the need is only for the few people in the forums who are willing to give accurate answers, so it can wait a little bit ! And thank you for the answer 🙂
It took some time, but ....
ABAP Keyword Documentation (sap.com) (latest)
ABAP Keyword Documentation (sap.com) (7.56)
Thank you very much Horst, I will use it ! 😀
Hi Horst,
hope to add the Chinese Version and Offline version
Don’t know if it can be achieved
Thanks!
Jet
The ABAP Keyword Documentation is available in English and German in the System and in English as an Offline Version. Other languages are not supported. See SAP Note 2390554.