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

Multiple return values in Customized elementary search help

Former Member
0 Likes
1,553

Hello,

I have a requirement when i select the value from F4 . It should populate the more than one return values in ALV grid in different rows .

Any FM or help search exit is available to do this .

Regards,

kevin

5 REPLIES 5
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,018

Hi,

You must use a search help exit, which does the following:

1) in first step PRESEL1, update CALLCONTROL-MULTISEL = 'X', that will display the checkboxes in the hit list (to allow multiple selection)

2) in "last" step RETURN, call function module DYNP_VALUES_UPDATE to update all the fields you want in the calling screen

Sandra

Read only

0 Likes
1,018

The DYNP_VALUES_UPDATE is not working . I tried with DYNP_VALUES_FIELD to populate the selected values in the grid .

It didn't work because it is taking input screen no and dynamic program name . Since it is a ALV grid I don't have these values .

Any other idea to populate the selected vallues in the ALV grid.

Regards,

kevin.

Read only

0 Likes
1,018

Is there any FM to change the export parameter in search help exit , based on the other fields.

For example : when user types XY value in the first column , then next column F4 should return 'Z' otherwise 'Y' .

Regards,

kevin

Read only

0 Likes
1,018

Hi Kevin,

About your first question, for filling several fields of an ALV from a single F4 search help, I think that you should register F4 event to call the search help yourself (F4IF_INT_TABLE_VALUE_REQUEST for instance), and fill the ALV fields inside your F4 handler method. If you used REUSE_ALV_GRID_DISPLAY, then I am not sure how you can handle F4, but you can do it using CL_GUI_ALV_GRID or SALV classes. See BCALV_TEST_GRID_F4_HELP.

About the second question, for filling automatically another field in the same row in the ALV grid, it should work automatically, as for normal dynpros, i.e. the search help must have these 2 fields defined as exporting, and these 2 fields of the ALV field catalog must refer to the same DDic structure, the search help must be assigned there to the field, and fill in the 2 exporting parameters too.

Sandra

Read only

0 Likes
1,018

Hi Kevin ,

as Sandra Said , what type of ALV it is ?

have a look at program BCALV_EDIT_08 for method F4....

regards

Prabhu