5 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.

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 toarticles on our blog. Simply visit our blog homepage and click on the “how to guides” tab to see them all.

Do you still have questions about SAP or EDI? Get in touch with us – we are always happy to help!

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.

Subjects

most read

Keep on reading

5 minute read

Feature Focus: Visibility of EDI Relations Within the ecosio.monitor

Discover how you can simplify and streamline onboarding processes with the help of the ecosio.monitor EDI relations feature.

5 minute read

The Future of Supply Chains: Expert Insights

Looking for clarity regarding B2B integration and the future of supply chains? In this article our experts share four major predictions.

3 minute read

Germany Commits to Making B2B E- invoicing Mandatory

By passing the Growth Opportunities Act, Germany is taking a big step towards mandatory e-invoicing. Find out what this means for you.

4 minute read

Feature Focus: Managing ERP Partner Users in the ecosio.monitor

In this article we explain how to manage ERP partner users in the ecosio.monitor and the benefits this functionality can deliver.

7 minute read

Feature Focus: Messaging Operations in the ecosio.monitor

In this article we break down the various functionalities within the message overview and message details areas of the ecosio.monitor.

6 minute read

How to Achieve B2B Process Automation Success

B2B process automation projects can be daunting. In this article we explore what you can do to ensure your project is a success.

8 minute read

What Makes a Good EDI Dashboard?

A good EDI dashboard is central to successful B2B interactions. In this article we explore the key qualities of an effective solution.

9 minute read

EDI Invoicing: Common Questions Answered

EDI invoicing is becoming increasingly integral to success. In this article we explore some of the top questions on this topic.

8 minute read

How External Invoicing is Changing the Game

With invoicing requirements changing fast, more and more companies are outsourcing invoicing tasks to an external provider. Find out why!

9 minute read

The AS2 EDI Protocol Explained

The AS2 EDI protocol is critical to B2B connections across the world. In this article we explain how it works and what it offers.

9 minute read

ViDA: What Is It and How Will It Affect You?

What is ViDA, what changes will it bring and who will it impact? In this article we explore all of these questions and more.

10 minute read

EDI vs API: A Battle of Brothers

In recent years many have suggested that API may eliminate the need for EDI. But is this really true? And are they really rivals?

We use cookies to provide an optimal website experience. You decide which one you want to allow. Depending on the setting, however, not all functionalities may be available to you. Data protection & imprint.