Posts

Showing posts from March, 2025

Top 20 RAP Annotations Every ABAPer Needs to Master

20 Most Used Annotations in RAP for ABAP Developers Hey ABAPers! If you’re diving into the RESTful ABAP Programming Model (RAP) to build slick Fiori apps, you know annotations are your best friend. They’re like cheat codes—telling SAP how to display data, control behavior, and make your apps look pro without sweating over UI5 code. Today, I’m dropping the 20 most used RAP annotations you’ll see (and need) in CDS views to power your RAP services. Let’s roll! What Are RAP Annotations? In RAP, annotations are metadata tags in your CDS views that define how data looks and acts in Fiori apps. They handle UI layout, field properties, and service behavior. You write them with @ symbols in your CDS code, and RAP uses them to generate OData services. No annotations = boring app. With them = Fiori magic. Here’s the top 20, grouped by what they do, with examples you can steal for your own projects!   UI-Focused Annotations (Make It Pretty)  @UI.lineItem What : Adds a field to th...

Pranking with TH_POPUP

Image
  Pranking with TH_POPUP in SAP ABAP: A Fun Guide Introduction Have you ever wanted to play a harmless prank on your colleagues using SAP ABAP? Look no further! In this blog post, I'll show you how to use the TH_POPUP function module to display pop-up messages on your friends' screens. It's a simple yet effective way to add some fun to your workday. What is TH_POPUP? TH_POPUP is a function module in SAP ABAP that allows you to display a pop-up message on a specific user's screen. This can be used for various purposes, such as sending important notifications or, in our case, playing a light-hearted prank. How to Use TH_POPUP Here's a step-by-step guide on how to use the TH_POPUP function module: Open the ABAP Editor (SE37) Define the Function Module : In your program, define the TH_POPUP function module. EXECUTE it. Customize the Message : Replace the USERNAME Execute the Program : Run the program to send the pop-up message to the target user. If everything is se...