Can I call the search program programmatically, with some parameters that are already filled in and cannot be edited?

I have a S_MAT1 collective search S_MAT1 defined for a MATNR data MATNR .

I want to program the append search application S_MAT1_APPEND , which means that when I click the button in the ALV list, I need to call the search dialog, for example, for search help.

I also want to be able to automatically populate some parameters and not allow the user to change them.

I expect to find a functional module that does this. HELP_START doesn't seem too documented and doesn't seem to be what I want.

Can this be done?

+4
source share
1 answer

Yes. Use the F4IF_GET_SHLP_DESCR function module to get a description of the search help, then call F4IF_START_VALUE_REQUEST with the description data. Remember that you need to set SHLP-INTERFACE-VALFIELD to X for the fields that you want to return from the value help.

+5
source

Source: https://habr.com/ru/post/1486560/


All Articles