How to Modify, Create and Delete Table Entries from SE16



Similar documents
Step by Step Guide for Language Translation Tool

Step by Step Procedure to Block and Debug a CIF Queue Flowing from R/3 to APO System

Restricting Search Operators in any Search View

Reverse Transport Mechanism in SAP BI

How to Assign Transport Request for Language Translation?

Creating Content Using SO10 Objects and Text Symbols

ABAP Debugging Tips and Tricks

Exposing RFC as Web Service and Consuming Web Service in Interactive Forms in ABAP

ALE Settings, for Communication between a BW System and an SAP System

SAP Workflow in Plain English

Step by Step Guide How to Copy Flat File from Other Application Server to BI and Load through Info Package

Guidelines for Effective Data Migration

SAP CRM Campaign Automation

SAP FI - Automatic Payment Program (Configuration and Run)

Currency Conversion using Variables in SAP BI -Reporting

How to Create an ecatt?

Creating Transaction and Screen Variants

Release Strategy Enhancement in Purchase Order

Working with SAP BI 7.0 Data Transfer Process (DTP)

Embedding Crystal Reports inside ECC ALV Reports

Creating New Unit of Measure in SAP BW

Deleting the User Personalization done on Enterprise Portal

SAP CRM 7.0 E2C Setup: CRM via Toolset

BW Performance Monitoring

Display Options in Transaction SE16

Understanding OLAP Processor and RSRT

Invoice Collaboration: Self Billing Invoice

SPDD & SPAU Adjustments Handbook

How to Generate Stack Xml for Ehp4 and Above Upgrade

Valuation of Materials using FIFO Method

Data Flow from LBWQ/SMQ1 to RSA7 in ECC and Delta Extraction in BI

Web Dynpro ABAP: ALV and Table in Popup Window

SDN Community Contribution

Workflow Troubleshooting and Monitoring in SAP ECC 6.0

Creating Web Service from Function Modules/BAPIs & Integrating with SAP Interactive Forms

Step by Step Guide to Extract Batch Master Data via Generic and Classification Datasource to BW

Configuration of Enterprise Services using SICF and SOA Manager

Step by Step Guide to Archiving and Deleting of XML Messages in SAP NetWeaver PI

Vendor Consignment. Applies to: Summary. Author Bio. SAP ECC 6.0. For more information, visit the Supply Chain Management homepage.

SAP BW - Generic Datasource Function Module (Multiple Delta Fields)

SAP NetWeaver Developer Studio 7.30 Installation Guide

ABAP Proxy Interfacing

Web Dynpro: Multiple ALV Grids and Layouts in ALV

Step By Step Procedure to Create Logical File Path and Logical File Name

Transfer of GL Master from Source SAP System to a Target SAP System through IDOCS

Order Split Usage in Production Orders

SAP CRM 7.0 for Newbies: (Part 1) Simple BOL Object Creation for CRM Webclient UI

Understanding BW Non Cumulative Concept as Applicable in Inventory Management Data Model

Table of Content. SAP Query creation and transport Procedure in ECC6

SAP CRM System 6.0/7.0. For more information, visit the Customer Relationship Management homepage

Process Controlled Workflow SRM 7.0 (Using BRF)

Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

First step to Understand a Payroll Schema

Creation and Configuration of Business Partners in SAP CRM

Quick Viewer: SAP Report Generating Tool

Consuming Services in SOA Manager

Step by Step Procedure to Create Broadcasters, to Schedule and to Enhance of SAP- BI Queries from Query Designer

Deleting the Requests from the PSA and Change Log Tables in Business Intelligence

Extractor in R/3 and Delta Queue

Standard SAP Configuration of SMS through HTTP with Third Party SMS Gateway

Middleware Configuration and Monitoring for Master Data Transfer from SRM to ECC

Create Automatic Mail Notification/ Alert for Process Chain Monitoring

Integrating SAP CRM with the SAP R/3 HR module

A Step-by-Step guide on SMTP Configuration and File to Mail Scenario Using Process Integration Scenario in PI 7.1

How to Get Work Items from Workflow in your Outlook Inbox

Multi Provider Creation Based on Sales and Planning Info Cubes

Organizational Management- Organizational Structure Creation

Understanding BEx Query Designer: Part-2 Structures, Selections and Formulas

Multi Level Purchase Order Release Strategy

Direct Subcontracting Process (SAP SD & MM)

SAP CRM-BW Adapter an Overview

LSMW: Upload Master Data using Batch Input Recording

SAP BW - Excel Pivot Chart and Pivot Table report (Excel)

ABAP How To on SQL Trace Analysis

Understanding DSO (DataStore Object) Part 1: Standard DSO

Different Types of Alerts for Process Chains. Table of Content

Solution Manager Service Desk an End-to-End Helpdesk Solution

Enhancing Performance Management System (Performance Appraisal) with EHP4

Step by Step guide of Report-to- Report Interface in BW Reporting

Inventory Management in SAP BW

Inventory Management (0IC_C03) Part - 3

SAP CRM Middleware Configurations

Table of Contents. Passing Data across Components through Component Controller between Two Value Nodes

IDOC Payment Process with SAP

SAP BW Configuration Basic System Settings

SAP MM: Purchase Requisition with Classification and Workflow Approval

Splitting the Custom Container & Display more than one ALV

Configuring HTTPs Connection in SAP PI 7.10

Using PI to Exchange PGP Encrypted Files in a B2B Scenario

Query OLAP Cache Optimization in SAP BW

Merge PDF files in ABAP

SAP BI/BW LO Extraction

Quantifying the Amount of Cash Discount Lost

Mandatory Field Check in Web Dynpro- ABAP

Deploying Crystal Reports on Top of a SAP BI Query

Case Study of a Segregation of Duties Project

Sales Commission Calculation & Settlement Handling through Order Processing

Salesforce.com Integration Using SAP PI: A Case Study

How to Develop Programs for SAP Mobile RF

Introduction to COPA and COPA Realignment

Transcription:

How to Modify, Create and Delete Table Entries from SE16 Applies to This article applies to all SAP ABAP based products; however the examples and screen shots are derived from ECC 6.0 system. For more information, visit the ABAP homepage. Summary This article explains how to modify, create and delete table entries when a table is not maintained through transaction SM30. In this case you can use transaction SE16 and the Debugger tool. Author: David García Ortega Company: Accenture Created on: 21 st January 2011 Author Bio David is an SAP consultant with 3+ years experience working for Accenture. He has developing experience in ABAP and Business Objects. David also has functional knowledge of FI, MM, SD, PM and IS-U modules with expertise in BPEM (Business Process Exception Management) configuration and SAP Data Archiving full life cycle implementation. 2011 SAP AG 1

Table of Contents Introduction... 3 How to Modify Table Entries using Transaction SE16... 4 Scenario... 4 Approach... 4 Steps in SE16... 4 How to Create Table Entries using Transaction SE16... 7 Scenario... 7 Approach... 7 Steps in SE16... 7 How to Delete Table Entries using Transaction SE16... 8 Scenario... 8 Approach... 8 Steps in SE16... 8 Related Content... 11 Disclaimer and Liability Notice... 12 2011 SAP AG 2

Introduction Have you ever been in a situation where you need a configuration flag to be set (or unset) but you don t know the transaction to configure it? Or in the middle of a test and you need some more data with particular conditions and the process to create this data is very long and tedious? If you answer yes to any (or both) of these questions then this How-to article will probably turn out to be useful for you. If the tables where this data is stored are not maintained through SM30, this article will show you a series of techniques to modify, create and delete table entries using transaction SE16 (SE11 can also be used). In order to use these techniques, assumption is made that debugging is enabled on your system and your SAP user has the right authorizations to change variables during debugging. Note: Please bear in mind that these techniques are quite powerful in the sense that they allow you to change pretty much any configuration or data on your SAP system. You should always make sure that your data integrity is not affected when modifying, creating or deleting entries from tables and you should never use these methods in a Production system. These techniques can save you a lot of time but use them carefully. 2011 SAP AG 3

How to Modify Table Entries using Transaction SE16 This section describes the steps to modify an entry from a table. An example scenario and approach are also provided in order to illustrate a situation where you might need to do this. Scenario You re currently testing the archiving functionality for IDocs but there is no IDoc that complies with the residence period criteria (IDoc has been created X years ago). Approach In this situation, an option is to edit the creation date for an IDoc in order to make it X years old and hence eligible to be archived (as it will be old enough ). Steps in SE16 1. Go to transaction SE16 (SE11 is also valid). 2. In the table name field enter the table (in this example is EDIDC). 3. Select an IDoc that you d like to modify and double-click on it to access its Display screen. Below you can see an image where the field that we want to change is highlighted. 2011 SAP AG 4

4. Write /h in the Command field and press return on your keyboard. 5. Press return again to go into debug mode, select the variable with id code and modify its value to be EDIT. 6. Press F8 to complete execution and modify the contents of the selected entry. 7. Edit value for the fields that you want to modify, in this case just Created on and click on Save. 8. You have successfully modified a field in a table (in this example EDIDC). Tip: You can select several entries on the Data Browser screen and modify them with only one execution of the debugger tool to modify the value of code variable. 2011 SAP AG 5

Selecting several entries from the Data Browser screen: After modifying the values of a single entry, click on Save and then Next entry : 2011 SAP AG 6

How to Create Table Entries using Transaction SE16 This section describes the steps to create a new entry in a table. An example scenario and approach are also provided in order to illustrate a situation where you might need to do this. Scenario You are testing a process that requires meter reads with actual consumption over 500. The actions to create new meter reads require a lot of time but you know the custom table where meter reads are stored. Approach In this situation, an option is to create a new entry in this custom (Z) table with value for actual consumption over 500. Steps in SE16 1. Go to transaction SE16 (SE11 is also valid). 2. In the table name field enter the table (in this example your Z custom table). 3. Select any entry (ideally you d like to select an entry whose content you can reuse for the new one) and double click on it to access its Display screen. 4. Write /h in the Command field and press return on your keyboard. 5. Press return again to go into debug mode, select the variable with id code and modify its value to be INSR. 6. Press F8 to complete execution and create a new entry based on the values of the entry that you were displaying. 7. You now need to be careful and make sure that you re respecting integrity rules for the table (i.e. not duplication of primary or unique keys, in this example Int. MR doc. ID ). Provide a new value for these fields and also make actual consumption bigger than 500 (which is the purpose of this example). Once you have completed your changes click on save. 2011 SAP AG 7

8. You have successfully created a new entry on this custom table. Note: Using these steps you can only create one entry each time. How to Delete Table Entries using Transaction SE16 This section describes the steps to delete an entry from a table. An example scenario and approach are also provided in order to illustrate a situation where you might need to do this. Scenario A process incorrectly configured has created some wrong data and you d like to delete it as it ll probably affect your tests. Approach In this situation, an option is to delete this data directly from the table where it s stored (in this example a custom table) Steps in SE16 1. Go to transaction SE16 (SE11 is also valid). 2. In the table name field enter the table (in this example your Z custom table). 3. Select the entry containing the wrong data and double click on it to access its Display screen. 4. Write /h in the Command field and press return on your keyboard. 5. Press return again to go into debug mode, select the variable with id code and modify its value to be DELE. 2011 SAP AG 8

6. Press F8 to complete execution and proceed to delete the entry that you selected. 7. Confirm that you want to delete this entry by clicking on Delete Entry. 8. You have now successfully deleted this entry from the custom table. Note: You can select several entries on the Data Browser screen and delete them with only one execution of the debugger tool to modify the value of code variable. Selecting several entries from the Data Browser screen: 2011 SAP AG 9

Click on Delete Entry and then Next entry : 2011 SAP AG 10

Related Content ABAP Debugger SAP Tables for Technical Consultants For more information, visit the ABAP Homepage 2011 SAP AG 11

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2011 SAP AG 12