Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Search Help

Former Member
0 Kudos

Hi All,

How to create Search Help? and what is LockObject? How to create it?

Thanks in advance.

3 REPLIES 3

paruchuri_nagesh
Active Contributor
0 Kudos

hi

u can create a serch help in se 11 initial screen choose option search help

search help are two types ewlementary search help & collective search help

collective search help is nothing but group of elementary search help

after creating search help u have to assign these to either data element or field in database table

another of creating search help is

through se 38

parameters : p_lifnr like lfa1-lifnr match code object lif.

u will get one window

double click on lif go accordingly

lock object:

lock objects are used to prevent simultaneous updation and deletion of data in adatabase

u can create lock objects through data dictionary se11

reward for use ful answers

so that u can get more response from me

regards.

Nagesh.Paruchuri

Former Member
0 Kudos

Hi ,

"First  : Search help

Creating a basic search help which allows you to provide the user with a selection help to select specific fields from a table or view is very straight forward. Simply create a search help with the desired table as the selection method and add the fields you want them to see/select into the search help parameters section. See below for details of how to create a search help for table TRDIR

please see this link for details .

<a href="http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm">http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm</a>

"second :Creating Lock Objects

Procedure

1.Select object type Lock object in the initial screen of the ABAP Dictionary, enter an object name and choose Create. The name of a lock object should begin with an E (Enqueue).

The maintenance screen for lock objects is displayed.

2.Enter an explanatory short text in the field Short text.

You can then use the short text to find the lock object at a later time, for example with the R/3 Repository Information System.

3.Enter the name of the primary table of the lock object.

All other tables in the lock object must be linked with the primary table using foreign keys. There are also some restrictions on the valid foreign key relationships.

4.Select the lock mode of the primary table in the field below it.

The lock mode is used as the default value for the corresponding parameters of the function modules generated from the lock object.

5.Choose Add if you want to lock records in more than one table with the lock object.

A list of all the tables linked with the primary table using valid foreign keys is displayed. Select the appropriate table. The lock mode of the primary table is copied as lock mode. You can change this setting as required, for example you can assign the lock mode separately for each table.

Similarly, you can add a table linked with the secondary table just added with foreign keys. To do this, place the cursor on the name of the secondary table and choose Add.

If no lock mode is assigned to a table, no lock is set for the entries in this table when the generated function modules are called. You should not assign a lock mode if a secondary table was only used to define a path between the primary table and another secondary table with foreign keys.

6.Save your entries.

A dialog box appears in which you have to assign the lock object a development class.

7.You can (optionally) exclude lock parameters (see lock objects) from the function module generation on the Lock parameter tab page. This makes sense for example if you always want to lock a parameter generically.

To do this, simply deselect the Weight flag for the parameter. The parameter is not taken into consideration in the generated function modules. This parameter is then always locked generically.

8.The name of a lock parameter is usually the name of the corresponding table field. If two fields with the same name are used as lock parameters in the lock object from different tables, you must choose a new name for one of the fields in field Lock parameter.

9.You can define whether the function modules generated from the lock object should be RFC-enabled on the Attributes tab page.

If you set the Allow RFC flag, the generated function modules can be called from within another system with Remote Function Call.

10.If you permit Remote Function Calls for an existing lock object, you must ensure that the generated function modules are called from within an ABAP program with parameters appropriate for the type. You should therefore check all programs that use the associated function modules before activating the lock object with the new option.

11.Choose activate . .

Result

When you activate the lock object, the two function modules ENQUEUE_<lockobjectname> and DEQUEUE_<lockobjectname> are generated from its definition to set and release locks.

You can find information about the activation flow in the activation log, which you can display with Utilities -> Activation log. If errors occurred during activation, the activation log is displayed immediately.

Reward points if it is usefull...

Girish

Former Member
0 Kudos

This message was moderated.