A few weeks back, I was debugging a seemingly very weird error. Without getting into too much details, what turned out to be the cause for my issue is that I had a variable declared in a loop. Then, in an if block, the variable was assigned some valu...
Introduction to the ABAP Console
Perhaps you may be unfamiliar with this, but newer ABAP versions (7.52+) have the interface if_oo_adt_classrun, which allows printing to a console. This is an alternative to using WRITE statements or the cl_demo_outpu...
Preface
My first article on SAP Blogs – Consuming REST APIs with (Cloud) ABAP – was quite well received, so I figured this one might also be an interesting read for ABAP developers. I read this excellent article on developing plain REST APIs in ABAP ...
Introduction
There is something that’s been bugging me a lot about the hottest thing happening in ABAP right now – the RESTful Application Programming Model, ABAP RAP for short. Why do we need to modify the language itself to achieve such functionali...
API stands for Application Programming Interface, and comprises a set of standards that allow two applications to talk to each other. REST APIs are a certain pattern of building APIs. They are based on the HTTP protocol, sending and receiving JSON or...
Hey Suhas,
very neat trick, I was not actually aware of it!
It does also deal away with the problem in the sense that once the variable is declared outside of the loop, it will be immediately clear that it will retain its value from the previous it...
Hey, Jacques,
Thanks for linking that!
Indeed, I fully agree that declarations in an if block are a bad practice. They are still technically valid ABAP though, so it is important to know this when debugging other people's code.
Best,
Stoyko
Hey, Matthew,Indeed, problem resolution or just output testing are already great use-cases!Honestly, there are some issues currently which prevent more advanced use-cases. Some of them are described by 0281bd377f70426e8bb9d2d0005e7762 in the Horst Ke...
Yeah, as discussed already, from technical perspective it should work without any problems as long as developers follow some naming patterns. At the very least allowing some extra space, to conform with SAP's 30-char limit.
As a side-note, yesterday...