SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Create a Data Element

Create a data element, which you will use in a later tutorial.

Overview

🎓 beginner 5 min. ABAP DevelopmentBeginnerSAP Netweaver

You will learn

  • How to create a data element.
  • How to use this data element to provide Boolean logic to one of the columns in the table
JULIE PLUMMER J JULIE PLUMMER March 21, 2023
Created on March 21, 2023
Contributors

More from Julie Plummer

See all 51 tutorials by Julie Plummer →

Prerequisites

Prerequisites

Steps

Step 1 Change field type to new data element

Go back to your ABAP Dictionary structure zso_invoice_item and change the type of field payment_status to zso_invoice_payment_status:

Image depicting step24-change-field-type
Image depicting step24-change-field-type

Since the data element zso_invoice_payment_status does not exist, you get a syntax error, which you will fix using a quick fix below.

Step 2 Choose a Quick Fix
+
Step 3 Create a new data element
+
Step 4 Enter type and field labels
+
Step 5 Save and activate the data element
+
Step 6 Check the structure for syntax errors
+
Step 7 Activate the structure
+
Step 8 Use your data element in the ABAP class
+
Step 9 Save and Activate the class
+
Step 10 Test your changes
+
Step 11 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 11
1. Change field type to new data element 2. Choose a Quick Fix 3. Create a new data element 4. Enter type and field labels 5. Save and activate the data element 6. Check the structure for syntax errors 7. Activate the structure 8. Use your data element in the ABAP class 9. Save and Activate the class 10. Test your changes 11. Test yourself
Next