Application Development and Automation 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: 
Read only

export values in Search help

Former Member
0 Likes
1,407

Hi all,

i want to use a simple Search help which fills two parameters in a report. My problem is that only the first EXPORT value is transfered.

Here's the Coding of my Report Z_BC_SSMLG:

REPORT z_bc_ssmlg.

PARAMETERS: p_group1 TYPE rzlli_apcl LOWER CASE MATCHCODE OBJECT z_serv_group,
            p_serve1 TYPE rzlli_asvr LOWER CASE MATCHCODE OBJECT z_serv_group.

Here's the configuration of my Search help Z_SERV_GROUP:


Selection method: RZLLITAB
Dialog Type: display values immediately

1st Parameter: 
Search help parameter = CLASSNAME
EXP = X
LPos = 1
SPos = 1
Data element = RZLLI_APCL

2nd Parameter:
Search help parameter = APPLSERVER
EXP = X
LPos = 2
SPos = 2
Data element = RZLLI_ASVR

If i use the Search help with p_group1 the only value which is transfered is CLASSNAME. If i use the Search help with p_serve1, p_serve1 get's the value CLASSNAME too, which is wrong. I want both values transfered. CLASSNAME should be transfered to p_group1 and APPLSERVER to p_serve1.

What am i doing wrong?

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
726

Hi,

Transferring both values will only work if you have defined a structure in the data dictionary with fields for "group" and "server", attach the search help to both fields and refer to this structure in your parameter definition.

Regards,

John.

3 REPLIES 3
Read only

Former Member
0 Likes
727

Hi,

Transferring both values will only work if you have defined a structure in the data dictionary with fields for "group" and "server", attach the search help to both fields and refer to this structure in your parameter definition.

Regards,

John.

Read only

0 Likes
726

Thanks John!

Your solution works fine!

Regards

Mark-André

Read only

0 Likes
726

I am trying to do a similar thing to what is described above, (export 2 values from a search help) except it is in a dialog program. I have 2 screen fields - matnr and maktx. I would like to search for a material number and have the search help instantly populate the material number (matnr) field and also the material text field (maktx).

I created a search help zmatsearch with these 2 fields and specified them both as export parameters. when I test the search help it works great. I also created a structure called zdescr that contains the fields matnr and maktx

On my screen I have referenced both fields to zmatsearch and referenced each field to the structure zdescr but I still cannot get the search help to populate the text field.

Appreciate any feedback.

Thanks.