Search This Blog

Monday, April 5, 2021

TMG Events and Steps

 There are 39 events for TMG

  • 01 Before saving the data in the database
  • 02 After saving the data in the database
  • 03 Before deleting the data displayed
  • 04 After deleting the data displayed
  • 05 Creating a new entry
  • 06 After completely performing the function 'Get original'
  • 07 Before correcting the contents of a selected field
  • 08 After correcting the contents of a selected field
  • 09 After getting the original of an entry
  • 10 After creating the header entries for the change task (E071)
  • 11 After changing a key entry for the change task (E071K)
  • 12 After changing the key entries for the change task (E071K)
  • 13 Exit editing (exit main function module)
  • 14 After lock/unlock in the main function module
  • 15 Before retrieving deleted entries
  • 16 After retrieving deleted entries
  • 17 Do not use. Before print: Event 26
  • 18 After checking whether the data has changed
  • 19 After initializing global variables, field symbols, etc.
  • 20 After input in date subscreen (time-dep. tab./views)
  • 21 Fill hidden fields
  • 22 Go to long text maintenance for other languages
  • 23 Before calling address maintenance screen
  • 24 After restricting an entry (time-dep. tab./views)
  • 25 Individual authorization checks
  • 26 Before creating a list
  • 27 After creation or copying a GUID (not a key field)
  • 28 After entering a date restriction for time-dep. views
  • AA Instead of the standard data read routine
  • AB Instead of the standard database change routine
  • AC Instead of the standard 'Get original' routine
  • AD Instead of the standard RO field read routine
  • AE Instead of standard positioning coding
  • AF Instead of reading texts in other languages
  • AG Instead of 'Get original' for texts in other languages
  • AH Instead of DB change for texts in other languages
  • ST GUI menu main program name
  • AI Internal use only

STEPS :

STEPS FOR TMG EVENTS  :


1.  Create table in se11 and activate.

2.  Go to Utilities to select the Table maintenance generator.

3.  provide all required data for tmg.

4.  Go to envirnment -> Modification -> Events

5. To POP-UP the Information box “Do not make any changes (SAP data)”. Accept it.

6.  Click on new entries.

7.  from the pop-up window select the required event.

8.  Provide form routine name after that click on editor button.

9.  Select the new include and write your code as per event.

Wednesday, March 31, 2021

Delete internal table where select option is NE

 Delete internal table where select option is NE.



Delete itab where Fields NOT IN S_Field(Select option field)


ex.

 SELECT-OPTIONSS_PLANT FOR MARC-WERKS.

  START-OF-SELECTION.



 DELETE ITAB WHERE NOT WERKS IN S_PLANT.



Saturday, March 27, 2021

Breakpoints and Breakpoint Statements

 Breakpoints and Breakpoint Statements


There are the following types of breakpoints 

The following restrictions apply:

  • Up to 30 session breakpoints, external breakpoints, and debugger breakpoints can be set.

  • A breakpoint is either active or inactive.

    Only active breakpoints take effect. Inactive breakpoints are ignored at runtime.


1. Session Break Point  

2. External Break Point 

3. Break point Statement


Session breakpoints 

you can set session breakpoints in the sap editor (se38) . This breakpoint valid for the same use same session.

External Breakpoints 

You can debug applications with external breakpoints, that use the RFC interface or HTTP protocol.

This Valid for only 2 hours.


Breakpoint Statement

This can be triggered by breakpoint statement.

BREAK-POINT.


Pages