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

Search help problem in module pool

former_member224444
Participant
0 Likes
13,532

Hi Guru's,

I have a screen in Module pool which has 6 input fields, each input field is attached to the same search help.

EMPID

EMPNAME

EMAIL

PHONE

DEPTID

DEPTDESC

These fields are from 'Z' table. I have created a collective search help USING these 6 fields. All the 6 fields are marked for IMPORT and EXPORT. 

So whenever i click F4 on any of the above 6 fields, It will display search help popup and returns some rows...But the values are transfered back only for 1 fields ..i.e for the first field only (EMPID).

I want that ...as soon as i select any of the row from Search hit list..corresponding field from that row should get populated.

Regards,

Rithika.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
12,461

Please give detailed screen shot one more time for:

I’m using following table

 

Zktest_coll is a collective search help included in Entry help/check tab of the table

 

Elementary search help zktest created using the fields which I need in screen

 

ZKTEST_COLL collective search help details

Regards

20 REPLIES 20
Read only

Former Member
0 Likes
12,461

Do a parameter assignment for all the six field in your collective search help. You get the button "Param.Assignment" in Included search help tab. See standard collective search help DEBI and included search help DEBID for your reference.

Read only

0 Likes
12,461

To simplify the situation create a elementary search help USING these 6 fields.

Attach search help to these 6 fields  in 'Z' table using SE11(Explicit search help attachment to field).

Read only

0 Likes
12,461

I have done the parameter assignment for these fields also, still the problem exist. I have created this collective search by including two 'z' search help ,  and i have also tried attaching elementary search help to these fields in z table. Nothing is working.

Rgds,

Rithika

Read only

0 Likes
12,461

I did it by myself. And it works like a charm. Here are the steps what I followed.

1. Create a elementary search help for all the fields and remember to tick the "export" check box for the field you want to transfer from screen.

2. Create a collective search help. This is optional and will only be required if you want to include more that one search help. Do the parameter assignment as I suggested earlier.

3. Create a dictionary structure with all the fields and add the search help in the field level by search help assignment in the Entry help/Check tab in SE11.

4. Now refer the field to the dictionary structure ( e. g. STRUCTURE-FIELD1) that was created in Step 3.

Now it should work.

Hope it helps.

Read only

0 Likes
12,461

Dear Rudra,

Firstly thanks for your reply and effort, But i tried all the above steps you mentioned still my problem exist, for your better understand look into the detailed screen shot below:

I’m using following table:


Zktest_coll is a collective search help included in Entry help/check tab of the table

Elementary search help zktest created using the fields which I need in screen:


ZKTEST_COLL collective search help details:


Parameter assignment of the fields in collective search help

Zktest1 is the check table for zktest just for reference I’m showing this, I’m not using this table in my screen, will use in future.


My screen details:

Empid

Empname


Deptid is the listbox in the screen

Phone


Email


Still all the fields are taking empid in my output

Regards,

Rithika

Read only

Former Member
0 Likes
12,461

Hello,

Try to directly assign the value to the specific Selection screen parameter name..

Just a question, would it be possible that user can choose a value which is not pertaining to the combination of the 6 fields?

Regards,

KR

Read only

bhaskar_v3
Explorer
0 Likes
12,461
Read only

Former Member
0 Likes
12,462

Please give detailed screen shot one more time for:

I’m using following table

 

Zktest_coll is a collective search help included in Entry help/check tab of the table

 

Elementary search help zktest created using the fields which I need in screen

 

ZKTEST_COLL collective search help details

Regards

Read only

0 Likes
12,461

Dear Boris,

Here is the detailed screenshot for what you asked,

I’m using following table


 

Zktest_coll is a collective search help included in Entry help/check tab of the table

 

Elementary search help zktest created using the fields which I need in screen

 

ZKTEST_COLL collective search help details

Zktest1 is the check table for zktest just for reference I’m showing this, I’m not using this table in my screen, will use in future.


Regards

Rithika.


Read only

0 Likes
12,461

Hi Rithika,

I think that you should start with a simpler version, get it to work, and then gradually move to your case.

I did following steps with standard objects of  SAP , so you can replicate,check and

compare your development with my work.

1. Create a  table  ZKTEST.

2. Create  a help view   ZKTEST_VIEW.

3. Create a elementary search  help  ZKTEST.

4. Create a collective search help ZKTEST_COLL.

5. Assign  collective  search help  ZKTEST_COLL  to fields in SE11.

Hope it helps.

Read only

0 Likes
12,461

Dear Boris,

I have followed the steps as you said, but the problem is not not solved, i think am making some mistake in module pool screen in assignment part of search help to the field. Can you give screen shot of module pool screen with search help assignment to the field.  It will be helpful.

Thanks,

Read only

0 Likes
12,461

You must only create fields on module pool screen  without  assignment of search help to them.

The fields automatically will be assigned to search help by inheritance from data dictionary properties.

Regards

Boris

Read only

0 Likes
12,461

Dear Boris,

Thank you, your solution solved my problem. But i want to know in what type of situation we should use the search help assignment for the screen field.

Regards,

Rithika

Read only

0 Likes
12,461
Read only

0 Likes
12,461

Thanks Boris, Really helpful link..

Read only

Former Member
0 Likes
12,461

Rithika,

Pass the data elements to the Search method as exporting parameters.

All the other configuration looks fine for me.

Regards,

SK

Read only

0 Likes
12,461

Dear SK,

You are asking me to make search help parameter in zktest_coll(collective search help) to export parameter rite? previously i ticked both export and import parameter, now as you said i ticked only export paratmeter but my problem is not solved yet.

Regards,

Rithika

Read only

0 Likes
12,461

Hi Rithika,

May be the problem is that you have drop down fields instead of normal fields with Search help. Please try with converting them to normal fields.

You can also try to with POV and using F4IF_INT_TABLE_VALUE_REQUEST FM and then populate the data programmatically.

Read only

0 Likes
12,461

Dear Rudra,

Except DeptID all the fields are normal fields only, its not working for normal fields also, i can use F4IF_INT_TABLE_VALUE_REQUEST, but my question is why is it not working if i assign search help to the field.

Read only

0 Likes
12,461

I don't know. I tried by myself and it worked perfectly fine. So i thought it might be due to drop down listbox.