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

Former Member
0 Likes
496

Hi. I am new here.

I want to insert a search help by using 2 fields of it to a table field.

For example there is a business partner field and also its description field.

I want the both these fields be filled at the same selection from F4 help correspondingly.

I described all fields in the search help and run it. but it did not work.

How can I get 2 field value from a search help to the corresponding table field.

But I don't want to use that search help for each field. When I choose the business partner, the name of the business partner automatically come.

Thank you for your help.

3 REPLIES 3
Read only

Former Member
0 Likes
462

Hi,

For example, you are having MARA table, MATNR field.

If for a report you have MATNR from MARA table as input field(F4 help in selection screen), then, MATNR along with MAKTX(Material description) should be displayed. Hope this is your problem.

The solution is you need a table called MAKT with fields MATNR and MAKTX. MATNR should have foreign key relationship with MARA-MATNR. Then you can add entries to MAKT.

Now, create a search help say ZHELP. In the Selection method, specify the table name as MAKTX.

In the search help parameters, first give MATNR, check IMP & EXP, set LPos and SPos to 1. Also check SDIS.

Similarly do for MAKTX. set LPos and SPos to 2.

Now go to MARA table. Click on MATNR field. Click Search help button. Assign ZHELP to it.

Note: I am considering MARA and MAKT. Change this according to your requirement.

Thanks and Regards,

Suresh

Read only

prince_isaac
Active Participant
0 Likes
462

Welcome to SDN!

Soon to be your second home. After correctly creating your search help and inputing the business partner and description you can within your caller routine in the program populate the screen name partner description.

 PAI create module to default the partner description
module get_partner_description.

then in the module extract the description into the screen field


select name_org1 from but000 into screen_field-bp_name where partner = screen_filed-bp_number.

regards

Prince Isaac

Read only

Former Member
0 Likes
462

Hi (selam) Ebru ,

Maybe this demo program solved your problem .

Look at BCALV_EDIT_08 in se38 .

EDIT : first you create search help in se11 and you choose your field and click search help button in se11-display table .

Regards

Serkann ..

Edited by: Serkan Taskan on Feb 24, 2009 3:40 PM