Skip to Content
Author's profile photo Horst Keller

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.

Assigned Tags

      20 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Christian Guenter
      Christian Guenter

      Hi Horst,

      just opened the english version and got this:

      Regards Christian

      Author's profile photo Horst Keller
      Horst Keller
      Blog Post Author

      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.

      Author's profile photo Horst Keller
      Horst Keller
      Blog Post Author

      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.

      Author's profile photo Christian Guenter
      Christian Guenter

      Yep, found it 😉

      Author's profile photo Horst Keller
      Horst Keller
      Blog Post Author

      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. 

      Author's profile photo Tomas Buryanek
      Tomas Buryanek

      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

      Author's profile photo Horst Keller
      Horst Keller
      Blog Post Author

       

      Should be fixed now ...

      Author's profile photo Horst Keller
      Horst Keller
      Blog Post Author

      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.

      Author's profile photo Sandra Rossi
      Sandra Rossi

      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:

      var r = confirm( "Copy URL to clipboard?\n\n" + field.value + "\n\nCopy to clipboard does not work in all browsers." );
      if (r == true) {
      try{
      document.execCommand("copy");
      }
      catch(e){ alert( "URL could not be copied to clipboard" ); }
      }
      window.scrollTo(0,0);

      After correction:

       var r = confirm( "Copy URL to clipboard?\n\n" + field.value + "\n\nCopy to clipboard does not work in all browsers." );
       if (r == true) {
         try{
           var copySuccess=document.execCommand("copy");
         }
           catch(e){ copySuccess=false; }
         if (!copySuccess) { field.parentNode.style.opacity=1; alert( "URL could not be copied to clipboard ; please copy manually the field at the bottom of the page" ); }
       }
       window.scrollTo(0,0);
      

      Tested today on Edge, IE 11, Chrome, in a local HTML file.

      Thanks!

      Sandra

       

      Author's profile photo Sandra Rossi
      Sandra Rossi

      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...

      Author's profile photo Mike Pokraka
      Mike Pokraka

      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!

      Author's profile photo Sandra Rossi
      Sandra Rossi

      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...

      Author's profile photo Horst Keller
      Horst Keller
      Blog Post Author

       

      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

      Author's profile photo Sandra Rossi
      Sandra Rossi

      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) :

      window.frames["basefrm"].window.location = file + 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 :

      function urlToClipboard(id,hash){ // add hash
      ...
       field.value = field.value + hash; // add line right before field.setSelectionRange(...
       field.setSelectionRange(0, field.value.length); // unchanged
      

      In the HTML, add one “URL” button at every “chapter”, and add the new hash argument to every urlToClipboard function call :

      <div style="float:right;">
      <input type="button" value="URL"
      style="font-size:10px; width:30px; height:18px; padding:0; "
      onclick="urlToClipboard('url','')" title="Copy URL to Clipboard" ></div>
      ...
      <div style="float:right;">
      <input type="button" value="URL"
      style="font-size:10px; width:30px; height:18px; padding:0; "
      onclick="urlToClipboard('url','#!ABAP_ALTERNATIVE_4@4@')" title="Copy URL to Clipboard" ></div>
      ...

      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)

      Author's profile photo Horst Keller
      Horst Keller
      Blog Post Author

       

      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

       

       

       

      Author's profile photo Sandra Rossi
      Sandra Rossi

      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 🙂

      Author's profile photo Horst Keller
      Horst Keller
      Blog Post Author

      It took some time, but ....

      ABAP Keyword Documentation (sap.com) (latest)

      ABAP Keyword Documentation (sap.com) (7.56)

       

      Author's profile photo Sandra Rossi
      Sandra Rossi

      Thank you very much Horst, I will use it ! 😀

      Author's profile photo Jet Willson
      Jet Willson

      Hi Horst,

      hope to add  the Chinese Version  and Offline version

      Don’t know if it can be achieved

       

      Thanks!

      Jet

      Author's profile photo Horst Keller
      Horst Keller
      Blog Post Author

      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.