Lock Objects in SAP

Lock objects are use in SAP to avoid the inconsistancy at the time of data is being insert/change into database.

SAP Provide three type of Lock objects.  

- Read Lock(Shared Locked) 
   protects read access to an object. The read lock allows other  transactions read access but not write access to the locked area of  the table

- Write Lock(exclusive lock) 
   protects write access to an object. The write lock allows other  transactions neither read nor write access to the locked area of the  table.

- Enhanced write lock (exclusive lock without cumulating) 
  works like a write lock except that the enhanced write lock also  protects from further accesses from the same transaction.

 

Type of Locks

Type of Locks

 

Continue Reading…

Field Exit in SAP

Field exit are use to create programming logic for any data element.It carry out any checks,Conversions or Business related processing of screen fields. Important thing is it can not be debugged.It have its own naming convention FIELD_EXIT_.

In transaction code CMOD choose Text element -> Field exit.

Field Exit Initial Screen
Field Exit Initial Screen

Continue Reading…

Check Tables and Value Tables in SAP

Many ABAPers gets confused initially with these tables. The difference lies in there Implementation and Behavior. Lets have a closer look at each to understand them better.

 

Continue Reading…

Unicode in SAP

To have a better idea about what is Unicode, let us first look at what is a CodePage.

CodePage

A Code page is another name for character encoding (A character encoding system consists of a code that pairs each character from a given repertoire with something else, such as a sequence of natural numbers, octets or electrical pulses, in order to facilitate the transmission of data (generally numbers and/or text) through telecommunication networks or storage of text in computers).

Code Page

Code Page

Continue Reading…

ABAP Program to Hide Source Code of a Program

Although this method is not recommended by SAP and I have not found any ‘Rollback’ to retrieve the source code for this hide, still it can be used for Source Code Hiding taking following points into consideration:

1. Please do take a backup of the code (.txt).

2. At the time of unhiding( source code 2 in the following sample code), source code is lost/blanked. Copy-paste the code from the backup.

 

Enter Program Name to Hide

Enter Program Name to Hide

 

Continue Reading…

Page 5 of 18« First...34567...Last »