DATA DICTIONARY

Share Embed Donate


Short Description

Download DATA DICTIONARY...

Description

Maintenance Views Maintenance views are used to view and/or modifi tables. A tranaction code can be generated for the maintenance view. Usefull transactioncodes: • • • •

SM30 Maintain tabel views SE54 Generate Table Maintenance Dialog: Initial table/View Screen SE55 Generate Table Maintenance Dialog: generation Environment SE93 Maintain Transaction

Follow these steps to create a maintenance view and generate a transaction code for it:

Create view in SE11 • • • • • •

Goto transcation SE11 ABAP Dictionary Select View and type in the name of the view you want to create. Press the Create button In the dialog box that appears, choose Maintenance View Select tables and fields for the view Activate the view

Create maintenance screens Goto transaction SE55 Generate Table Maintenance Dialog: Geneartin Environment Type in Table/View name, Authorization Group, the name of the function module for the screen code. Select one or 2 step screen maintenance:

Create tranaction code to call the view Goto transaction SE93 and craete a new transaction. Select transaction type Tranaaction with parameters

In the transaction select transaction SM30 Maintain Table Views and insert the paramerts UPDATE and VIEWNAME in the default values part. Note that the value for VIEWNAME should be the name of the maintenance view created above. The value of UPDATE shoul be X.

Lock objects

Lock objects are created in SE11. The name must start with E. E. g.: EZHRACTIVITY_DEL When the lock object is activated 2 function modules are created for enqueueing and dequeueing the object. They re named ENQUEUE and DEQUEUE Example: ENQUEUE_EZHRACTIVITY_DEL DEQUEUE_EZHRACTIVITY_DEL CALL FUNCTION 'ENQUEUE_EZHRACTIVITY_DEL' EXPORTING mode_zhr_activity_del = 'E' mandt = sy-mandt pernr = l_zhr_activity_del-pernr ldate = l_zhr_activity_del-ldate * X_PERNR = ' ' * X_LDATE = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' * EXCEPTIONS * FOREIGN_LOCK = 1 * SYSTEM_FAILURE = 2 * OTHERS = 3 . IF sy-subrc 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. Parameters The keys to be locked must be passed here. Parameter X_ that defines the lock behavior when the initial value is passed exists for every lock field . If the initial value is assigned to and X_, then a generic lock is initialized with respect to . If is assigned the initial value and X_ is defined as X, the lock is set with exactly the initial value of . Parameter _SCOPE controls how the lock or lock release is passed to the update program You have the following options: • _SCOPE = 1: Locks or lock releases are not passed to the update program. The lock is removed when the transaction is ended. • _SCOPE = 2: The lock or lock release is passed to the update program. The update program is responsible for removing the lock. The interactive program with which the lock was requested no longer has an influence on the lock behavior. This is the standard setting for the ENQUEUE function module.

• _SCOPE = 3: The lock or lock release is also passed to the update program. The lock must be removed in both the interactive program and in the update program. This is the standard setting for the DEQUEUE function module. Parameter _COLLECT controls whether the lock request or lock release should be performed directly or whether it should first be written to the local lock container. This parameter can have the following values: • Initial Value: The lock request or lock release is sent directly to the lock server. • X: The lock request or lock release is placed in the local lock container. The lock requests and lock releases collected in this lock container can then be sent to the lock server at a later time as a group by calling the function module FLUSH_ENQUEUE. Whenever you have lock mode X (extended write lock), locks should not be written to the local lock container if very many locks refer to the same lock table. In this case, there will be a considerable loss in performance in comparison with direct transmission of locks. parameter _WAIT. This parameter determines the lock behavior when there is a lock conflict. You have the following options: • Initial Value: If a lock attempt fails because there is a competing lock, the exception FOREIGN_LOCK is triggered. • X: If a lock attempt fails because there is a competing lock, the lock attempt is repeated after waiting for a certain time. The exception FOREIGN_LOCK is triggered only if a certain time limit has elapsed since the first lock attempt. The waiting time and the time limit are defined by profile parameters.

CALL FUNCTION 'DEQUEUE_EZHRACTIVITY_DEL' * EXPORTING * MODE_ZHR_ACTIVITY_DEL = 'E' * MANDT = SY-MANDT * PERNR = * LDATE = * X_PERNR = ' ' * X_LDATE = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' .

Change database table entry even if it is not allowed • • •

Goto SE16 and display the table Select the entry Type /h in the command line and press enter

• • • •

Press the Display button The program now goes into debug mode Press F7 to leave the first form You are now in the code below. Change variable code to ’EDIT ’

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF