Skip to Content
Personal Insights
Author's profile photo Darryl Naidoo

Blogpost

Update Status:

..: Update Status under re-construction..

Assigned Tags

      5 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Jelena Perfiljeva
      Jelena Perfiljeva

      Oh boy... 1990s called again and now want their programming style back too. 🙂

      I'm not quite sure why "newbies" in 2023 need to have a code example to use this exact FM in such a strange way. (You can generate maintenance screen and then use it to enter as many records as you like in SM30. And there is also this option.)  But that aside, we just don't write ABAP programs in this style anymore.

      In the comments to your previous post, a link to Clean ABAP has already been provided. SAP has also been quite clear about switching to classes and obsoleting FORM/PERFORM command. And there are new commands like VALUE available that could be used in this case.

      Just because something is for beginners, it doesn't mean it shouldn't follow modern ABAP guidelines. Even in our ABAP Introduction book, where code examples are primitive, we tried to follow modern style as much as possible. Our code examples are available here: https://github.com/Boneill3/IntroToABAP

      P.S. To preempt inevitable "who are you to criticize me, do you want me to delete my blog post now, is that what you want, huh?" outburst - I don't care about this post (although in the old days, content like this would've been removed by the moderators). But I do care about not having to retrain the developers who read content like this and learn bad coding style. That's all.

      Author's profile photo Matthew Billingham
      Matthew Billingham

      You missed out the defining of global variables with the L prefix - for local!

      Author's profile photo Jelena Perfiljeva
      Jelena Perfiljeva

      Oh, I saw that, just didn't want to pile up. Just noticed that OP completely removed the post text. Now our comments look crazy. 🙂 Oh well.

      Author's profile photo Matthew Billingham
      Matthew Billingham

      ..: Update Status under re-construction..

      Maybe he's taken the comments on board and is re-writing.

      Author's profile photo Fábio Luiz Esperati Pagoti
      Fábio Luiz Esperati Pagoti

      Under rebranding