‎2011 Aug 31 6:11 AM
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
‎2011 Aug 31 9:12 AM
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
‎2011 Sep 01 12:14 AM
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.
‎2011 Sep 02 6:12 AM
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
‎2011 Sep 02 9:00 AM
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
‎2011 Sep 02 9:09 AM
Hi Kevin ,
as Sandra Said , what type of ALV it is ?
have a look at program BCALV_EDIT_08 for method F4....
regards
Prabhu