VOOZH about

URL: https://thenewstack.io/navigating-the-complexity-of-legacy-code-with-generative-ai/

⇱ How Generative AI Can Remedy Legacy Code Complexity - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-12-26 09:05:01
How Generative AI Can Remedy Legacy Code Complexity
sponsor-sap,sponsored-post-contributed,
AI / AI Engineering / Developer tools / Large Language Models

How Generative AI Can Remedy Legacy Code Complexity

The introduction of generative AI offers a practical, scalable way to bridge knowledge gaps and maintain development momentum.
Dec 26th, 2024 9:05am by Sid Misra
👁 Featued image for: How Generative AI Can Remedy Legacy Code Complexity
Image by Shutterstock AI Generator.
SAP sponsored this post.

It’s no secret that the software industry grapples with a higher employee turnover rate compared to other industries. A 2022 LinkedIn analysis of its global user data found that technology companies experienced employee turnover rates of 12.9% percent, compared to an average turnover rate for all industries of 10.6%.

While this might seem volatile to outsiders, those within tech recognize it as a natural byproduct of an industry defined by constant change and adaptation. Workers often prioritize opportunities to engage with cutting-edge technologies or roles offering greater flexibility. Meanwhile, companies adjust workforce strategies to remain agile, competitive and responsive to evolving business priorities.

This churn often leaves teams grappling with legacy code: work that remains unfinished or inadequately documented once developers depart. The software developer tasked with picking up months or even a year later where their colleague left off faces a most daunting challenge.

When legacy code is inherited, developers rely on documentation and inline comments to understand its intended purpose. When these are missing or incomplete, they may spend an excessive amount of time deciphering or even reverse-engineering the code. Over time, the effects compound. Institutional knowledge dissipates. Backlogs become disproportionately weighted toward fixing technical debt instead of building new features. Frustration sets in.

SAP’s experience with this phenomenon offers a uniquely international perspective. Some of the company’s core business logic was written in the late 20th century, back when its development organization was centralized in its German headquarters. It was common at the time for business objects and technical constructs to be named in German: BUKRS for Buchungskreis (company code), GJAHR for Geschäftsjahr (fiscal year), and EKPO for Einkaufspositionsdaten (purchasing document item).

As the company evolved its workforce internationally to over 107,000 employees across more than 157 countries, this became one of many examples highlighting how legacy systems can inadvertently complicate modern workflows.

Artificial Intelligence as a Game Changer

Lately, SAP has joined many other tech companies in looking to generative AI as a strong potential remedy for managing legacy code. This confidence stems from the architecture, design principles and training methodologies underpinning large language models (LLMs). While originally designed to process human language, these models are highly effective in understanding code syntax and structure, as well as in inferring the underlying intent and context.

Trained on vast data sets of code, technical documentation and natural language, LLMs can identify patterns and conventions that are often implicit within legacy codebases. They excel at analyzing both individual lines of code and broader system interactions. This helps them map dependencies and reveal critical relationships. Their ability to contextualize extends beyond syntax, equipping them to infer domain-specific business logic and intent, even in poorly documented systems.

For developers, this means generative AI can provide natural language explanations for obscure functions and even suggest ways to optimize refactored code. By bridging gaps in institutional knowledge, it can reduce the time and effort required to update legacy code. More importantly, it helps development teams move quickly beyond maintaining older systems, accelerating innovation and delivering greater value.

SAP has trained Joule, its generative AI copilot, on its cloud development model and on ABAP, its proprietary programming language. In 2025, Joule developer capabilities will be seamlessly integrated into the ABAP Development Tools plugin within the Eclipse integrated development environment. Similarly, generative AI capabilities available through Joule have been added to SAP Build, a unified application development and automation solution combining low-code and pro-code tools.

From a developer’s perspective, a new modular window will let them chat directly with Joule throughout the course of their work. Code explanations can be generated as easily as directly asking what a specific function, method or business object does. Alternatively, developers can request a detailed explanation of a block of legacy code that was copied and pasted into the Joule chat window. Developers can also generate RESTful business objects, services and unit tests for classes and views.

The challenges of turnover and legacy code have long weighed heavily on the software industry, demanding time and resources that could otherwise fuel innovation. The introduction of generative AI marks a turning point, offering a practical, scalable way to bridge knowledge gaps and maintain development momentum. As solutions like SAP Build continue to evolve, they promise not just to resolve today’s challenges but also redefine how software teams build, innovate and thrive in an ever-changing environment.

Visit our website to start your own free trial of SAP Build.

SAP is a market leader in enterprise software, turning businesses into intelligent, sustainable enterprises. Our applications and services enable customers in 25 industries globally to operate profitably and adapt continuously. SAP helps the world run better and improve people’s lives.
Learn More
The latest from SAP
TRENDING STORIES
Sid Misra is vice president for SAP Build, which includes low-code, pro-code and Generative AI products in application development, process automation and digital experience. He has over 20 years of experience working in leading enterprise B2B and SaaS technology companies....
Read more from Sid Misra
SAP sponsored this post.
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.