cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict the organization unit on search help PREM

former_member627003
Participant
0 Kudos

Hello All,

I need to restric the search help PREM using the exit HRMC_PREM_EXIT_A.

Somebody could give me any idea or code snipet for restricting this value inside the exit?

I need use this Exit, because the use of this PREM will be in a webdynpro component.

Thanks,

Ricardo

Accepted Solutions (0)

Answers (1)

Answers (1)

sergiu_popa
Participant
0 Kudos

Hi Ricardo,

When using a search help exit, you normally have a predefined interface for the function module. Changing parameters SHLP, CALLCONTROL and Tables SHLP_TAB, RECORD_TAB.

Now, using CALLCONTROL-STEP, you can identify the current processing step of the search help. E.g.: SELECT, DISP.

What you need to do in your search help exit is to identify when the search help goes through "SELECT" processing step, restrict the values that are to be displayed in RECORD_TAB and then manually set the CALLCONTROL-STEP to "DISP".

In case you are populating the search help entries inside the exit or modifying entries, make sure you do this inside a temporary internal table and then map the values to the search help RECORD_TAB via function module F4UT_RESULTS_MAP.

Best regards,

Sergiu