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 to return multiple values

Former Member
0 Likes
1,195

Hi all,

I've created a search help and I'd like it to return several values to different fields, I don't want these fields to be seen on the selection screen.

For example:

1. User clicks on search help for FIELD1 and selects a value from the pop-up box

2. Program populates FIELD1 depending on the user selection

3. Program also populates FIELD2 and FIELD3 which can be used in the program at a later date.

I can do 1 and 2 but I'm having an issue with 3. I've tried selecting all fields in the search help as Export, but although that populates the fields in the search help test facility, it doesn't know which fields I want it to populate in my program.

I've also tried using FM F4IF_FIELD_VALUE_REQUEST but can only get this to return one line in table RETURN_TAB.

The screen fields are declared as:


PARAMETERS: FIELD1 LIKE TAB1-FIELD1 MATCHCODE ZSEARCH_HELP,
                         FIELD2 LIKE TAB1-FIELD2 NO-DISPLAY,
                         FIELD3 LIKE TAB1-FIELD3 NO-DISPLAY.

Any help is appreciated.

Gill

3 REPLIES 3
Read only

Former Member
0 Likes
660

Hi,

Try like below:


PARAMETERS: FIELD1 LIKE TAB1-FIELD1 MATCHCODE ZSEARCH_HELP user-command ucom,
                         FIELD2 LIKE TAB1-FIELD2 NO-DISPLAY,
                         FIELD3 LIKE TAB1-FIELD3 NO-DISPLAY.


at selection-screen output.

 populate field2 and field3 based on field1.

Regards,

Himanshu

Read only

0 Likes
660

Thanks for your suggestion but what I failed to put in my original post was that FIELD1 is a description field and FIELD2 and FIELD3 are the actual key fields for the table which I need.

So, I can't do your suggestion of populating them based on FIELD1, I need to know which line the user selects to populate these key fields as FIELD1 may not be unique within the table.

Does that make sense?

That's why I wanted the search help to return all 3 values then I can populate FIELD2 and FIELD3 from that.

Read only

0 Likes
660

Hi,

This thread is marked as answered, but I don't understand how your requirement has been met...

May I ask you to post the solution?

Thanks & Regards,

Robert.