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

Can any one explain y we r giving import and export(check boxes) and y we giving position while creating a search help

6 REPLIES 6

Former Member
0 Kudos

Hi,

Position in the hit list of an elementary search help

Position of the parameter in the hit list.

If the parameter should not appear in the hit list, leave this field empty. No position number may occur more than once in this column, but gaps are allowed. They do not affect the design of the hit list.

Example: An elementary search help contains parameters PAR1, PAR2, PAR3 and PAR4. Field LPos is defined as follows:

Parameter LPos

PAR1 3

PAR2 0 or ' '

PAR3 1

PAR4 7

Parameters PAR3, PAR1 und PAR4 appear in this order in the hit list.

Note: In an elementary search help, at least one parameter should appear in the hit list. The only exception to this rule is the elementary search help, in which the display of the hit list is entirely copied from a search help exit.

Position in dialog box of an elementary search help

Position of the search help parameter in the dialog box for limiting the hit list.

If the parameter should not appear in this dialog box, leave this field empty. If no such dialog box appears while making possible entries as defined by this elementary search help, leave this field empty for all parameters.

No position number may occur twice in this column, but gaps are allowed. They do not affect how the selection screen looks.

Example: An elementary search help contains parameters PAR1, PAR2, PAR3 and PAR4. Field SPos is defined as folllows:

Parameter SPos

PAR1 3

PAR2 0 or ' '

PAR3 1

PAR4 7

Parameters PAR3, PAR1 and PAR4 then appear in this order in the dialog box for restricting values.

Refer the link:

http://help.sap.com/saphelp_erp2005vp/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm

Thanks.

Former Member
0 Kudos

hI

It is used for Exporting and Importing data from memory

SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens

SAP global memory retains field value through out session.

set parameter id 'MAT' field v_matnr.

get parameter id 'MAT' field v_matnr.

They are stored in table TPARA.

ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data

to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.

ABAP memory is temporary and values are retained in same LUW.

export itab to memory id 'TEST'.

import itab from memory Id 'TEST'.

Here itab should be declared of same type and length.

http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm

ABAP Memmory & SAP Memmory

http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm

http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm

Former Member
0 Kudos

you should define your help search so that checkbox "export" is marked for every field you want to be returned.

Regards

Vasu

Former Member
0 Kudos

hi,

Export is used for exporting perticular field, means it is the field which u want to select from search help and want into search criteria.

Import is use to give input for getting filtered values of Export fields.

For example u want that material according to entered palnt should display in search help.

so u have to tick import for plant as u giving perticular plant and export for material as u want material as output.

<b>LPOS:-</b>

Position of the parameter in the hit list.

If the parameter should not appear in the hit list, leave this field empty. No position number may occur more than once in this column, but gaps are allowed. They do not affect the design of the hit list.

Example: An elementary search help contains parameters PAR1, PAR2, PAR3 and PAR4. Field LPos is defined as follows:

Parameter LPos

PAR1 3

PAR2 0 or ' '

PAR3 1

PAR4 7

Parameters PAR3, PAR1 und PAR4 appear in this order in the hit list.

<b>SPOS:-</b>

Position of the search help parameter in the dialog box for limiting the hit list.

If the parameter should not appear in this dialog box, leave this field empty. If no such dialog box appears while making possible entries as defined by this elementary search help, leave this field empty for all parameters.

No position number may occur twice in this column, but gaps are allowed. They do not affect how the selection screen looks.

Example: An elementary search help contains parameters PAR1, PAR2, PAR3 and PAR4. Field SPos is defined as folllows:

Parameter SPos

PAR1 3

PAR2 0 or ' '

PAR3 1

PAR4 7

Parameters PAR3, PAR1 and PAR4 then appear in this order in the dialog box for restricting values.

reward if useful.

former_member200338
Active Contributor
0 Kudos

Hi,

IMP : check this box if the field is import parameter.

EXP: This the value that has to be returned when the user selects in the dialog box

Make the dialog type as dialog with value restriction.

check the export and import parameter. Set apprpriate LPOS and SPOS value.

You will understand.

Also, This import and export value can be used while using the search help exit.

Regards,

Niyaz

Former Member
0 Kudos

When an input help is called, the entries that the user already made in the input template are taken into consideration. For example, if a user calls the input help for the flight number and already specified the carrier, of course only the numbers of flights of this carrier should be offered.

On the other hand, if the user selects one row of the hit list, more than one field of the input template might have to be filled with data from the selected row of the hit list. For example, if the flight number is obtained from the hit list, the city of departure and the destination should also be returned in the screen template.

The interface of a search help defines the context data that can be used in the input help and the data that can be returned in the input template.

A parameter of a search help can be classified as:

Import parameters: Parameters with which context information from the processed input template (screen) may be copied to the help process.

Export parameters: Parameters with which values from the hit list may be returned to the input template.

A parameter can simultaneously be an input and an export parameter. A search help can also contain parameters that are neither import nor export parameters. Such parameters could be required for the internal input help process, for example.

When you attach a search help, you must define where the import parameters of the search help get their values from and the fields in which the contents of the export parameters are returned. See also Value Transport for Input Helps.