6 minute read

How Can I Add an Entry to an SAP Table?

In principle, there are several ways to add an entry to an SAP table. One is in the form of standardized transactions (for example, VOE4 for editing the EDPAR table) or using maintenance transactions such as SM30. However, both options are not always available. Either there is no separate transaction for maintaining a table or no maintenance dialog has been created for a particular table. This often occurs with Z tables.

Sometimes it can be useful to add a few entries to a table quickly for test purposes, so that a particular functionality can be tested. One possibility is presented below. This type of data change should only be performed on test systems and not on production environments. In most cases, however, this is prevented anyway by the lack of access to the corresponding transactions in production environments.

For more information on EDI or SAP, and to find out how we could help your business move to the next step, get in touch today or chat with our Sales team now!

Add entry to an existing SAP table

Option A): Using the standard transaction SE16 or SE16n

This option is the ā€œcleanestā€ approach, but is only available if a maintenance dialog is created for the table and table processing is allowed. To check whether there is a maintenance dialog, call transaction SE11, enter the table name and press F8. Click on ā€œDelivery and Maintenanceā€ to display the editing option.


Eintrag in eine SAP Tabelle hinzufĆ¼ge Transaktion SE11
Transaction SE11

Ā© 2020. SAP SE or an SAP affiliate company. All rights reserved. Used with permission of SAP SE.

If ā€œDisplay/Maintenance Allowed with Restrictionsā€ or ā€œDisplay/Maintenance Not Allowedā€ is activated, only options B), C) or D) come into consideration ā€“ see below.

If ā€œDisplay/Maintenance Allowedā€ is activated, however, entries can be created using transaction SE16 or SE16n. To change existing entries, you can use transaction SM30, for example.

Eintrag in eine SAP Tabelle hinzufĆ¼ge Transaktion SE16
Transaction SE16

Ā© 2020. SAP SE or an SAP affiliate company. All rights reserved. Used with permission of SAP SE.

The newer transaction SE16n provides its own maintenance dialog, which can be called via ā€œView Maintenanceā€. You can use this to change existing entries and create new entries.Eintrag in eine SAP Tabelle hinzufĆ¼ge Transaktion SE16n
Transaction SE16n

Ā© 2020. SAP SE or an SAP affiliate company. All rights reserved. Used with permission of SAP SE.

Option B) Via transaction SE37

If it is not possible to add entries by default using transaction SE16, the following approach can also be chosen.

First, open transaction SE37 and choose the function module SE16N_INTERFACE. Then start the dialog with F8 or by clicking on ā€œTest/Executeā€.

If it is not possible to access transaction SE37, continue with option C or D (see below).

Eintrag in eine SAP Tabelle hinzufĆ¼ge Transaktion SE3
Transaction SE37

The following dialog will then open.

Eintrag in eine SAP Tabelle hinzufĆ¼ge Transaktion SE37 Detail
Transaction SE37: Detail view

Ā© 2020. SAP SE or an SAP affiliate company. All rights reserved. Used with permission of SAP SE.

In the first line, instead of <THE_TABLE_NAME>, enter the name of the table for which new entries are to be added. Enter an X for each of the parameters I_EDIT and I_SAPEDIT. Then execute with F8.

This opens the selected table and new entries can be added with the function ā€œNew entryā€. Furthermore, existing entries can also be changed very easily.

Eintrag in eine SAP Tabelle hinzufĆ¼ge Transaktion MARA Beispiel
MARA table Example

Ā© 2020. SAP SE or an SAP affiliate company. All rights reserved. Used with permission of SAP SE.

The tabular display allows easy editing, as seen in programs like Excel, for example.

White Paper - EDI Integration in SAP

Option C): Using transaction SE16 with debug mode

In the first step, start transaction SE16 and select the desired SAP table. Then press F8 to execute the transaction so that the individual table entries are displayed.

Eintrag in eine SAP Tabelle hinzufĆ¼ge Transaktion SE16 Listenansicht
Transaction SE16: List view

Ā© 2020. SAP SE or an SAP affiliate company. All rights reserved. Used with permission of SAP SE.

Double-click on one of the existing SAP table entries to open the detailed view of an entry.

Eintrag in eine SAP Tabelle hinzufĆ¼ge Transaktion SE16 Detailansicht eines Eintrags
Transaction SE16: Detail view of an entry

Ā© 2020. SAP SE or an SAP affiliate company. All rights reserved. Used with permission of SAP SE.

Then enter ā€œ/hā€ in the command field to start the debug mode. Click once more in the command field and press Enter to start a debug session.

Eintrag in eine SAP Tabelle hinzufĆ¼ge Transaktion Debug Mode
Debug Mode

Ā© 2020. SAP SE or an SAP affiliate company. All rights reserved. Used with permission of SAP SE.

The ABAP code under the transaction then opens. Double-click on the variable ā€œcodeā€ in the ABAP code (left arrow). Then change the value of the variable in the right-hand window to ā€œEDITā€ (for editing) or ā€œINSRā€ (for inserting) and confirm with Enter.

Eintrag in eine SAP Tabelle hinzufĆ¼gen Transaktion Debug Modus zum Ƅndern einer Variable
Debug mode to change a variable

Ā© 2020. SAP SE or an SAP affiliate company. All rights reserved. Used with permission of SAP SE.

Then press F8 to finish the code. The entry can now be edited or a new entry can be added.

Option D): Using transaction SE16N with debug mode

Start transaction SE16n, enter SAP table name and press F8.

Eintrag in eine SAP Tabelle hinzufĆ¼gen Transaktion S16n Tabellenauswahl
SE16n: Table selection

Ā© 2020. SAP SE or an SAP affiliate company. All rights reserved. Used with permission of SAP SE.

Start the debug mode in the detail view by entering /h in the command field. Then press Enter again in the command field to start a new debug session. In the debug session, add the following two variables, set the value to ā€œXā€ and finish the execution with F8.

  • GD-SAPEDIT
  • GD-EDIT

SE16n - Neue Variablen hinzufĆ¼gen
SE16n: Add new variables

Ā© 2020. SAP SE or an SAP affiliate company. All rights reserved. Used with permission of SAP SE.

The entries can now be edited or a new entry can be added.

SE16n - Neuer Eintrag
SE16n: New entry

Ā© 2020. SAP SE or an SAP affiliate company. All rights reserved. Used with permission of SAP SE.

Any questions?

Weā€™ve got lots of helpful ā€œhow toā€ articles on our blog. Simply visit our blog homepage and click on the ā€œhow to guidesā€ tab to see them all.

For more information on EDI or SAP, and to find out how we could help your business move to the next step, get in touch today or chat with our Sales team now!

SAP ERP and SAP S/4HANA are the trademarks or registered trademarks of SAP SE or its affiliates in Germany and in several other countries.

most read

Keep on reading

2 minute read

How to End Another User's SAP Session

Unable to edit a crucial document in SAPĀ® because you're locked out? Learning how to end another user's SAP session will solve this issue.

3 minute read

Ɯbersetzungen fĆ¼r SAPĀ®-Terminologie und SAPĀ®-Begriffe finden

Using the correct translations for SAPĀ® terminology is important in international projects. Discover how to find these quickly.

2 minute read

How to Save an IDoc Parser Report to a Local File

In this short and simple guide we show you how to save an IDoc parser report to a local file in just a couple of easy steps.

6 minute read

How to Debug SAP Message ME161 - "The Notified Quantity Exceeds the Ordered Quantity"

Don't know how to fix SAP error message ME161 "The notified quantity exceeds the ordered quantity"? In this article we break it down.

3 minute read

ecosio to Host SAP/EDI Workshop at UKISUG Connect 2021

ecosio is exhibiting and running an SAP/EDI workshop at this year's UKISUG Connect conference. Find out what attendees can enjoy at the event.

6 minute read

SAPĀ® EDI Project Roles - A Breakdown

Learn the various EDI project roles involved in achieving successful EDI integration in SAP systems and how the different roles interact.

5 minute read

Alternatives to the Seeburger PI Adapter

The end of maintenance for the Seeburger PI Adapter is imminent. What alternatives are there and which is the best suited for your business?

10 minute read

Alternative Solutions for EDI Data Exchange with SAP PI

Many companies use SAP PI to enable data exchange between a given SAP ERP system and its connecting systems. Discover the options available.

6 minute read

How do I implement EDI with SAP Cloud Platform Integration?

EDI with SAP Cloud Platform Integration: take over internally yourself or hire a fully managed EDI service provider? In this article we explore the ll help you to make the...

3 minute read

How to create an SAP transaction code

Want to know how to create an SAP transaction code for an existing ABAP program so that you can easily call the program?

9 minute read

Alternative Solutions for EDI Data Exchange with SAP PI and SAP PO

Discover the three possibilities when it comes to implementation of electronic data interchange (EDI) in SAP Process Integration or SAP Process Orchestration (SAP PI/PO).

6 minute read

How to Set Up and Manage Automatic SAP Jobs

SAP jobs can be used to automate processes in SAP ERP so they can be carried out without user intervention. We explore the key features.

Subscribe to the e-Invoicing newsletters