12-14-2007 5:24 PM
Hi All,
When the user press F4 in the field BUKRS(company Code) user should see only limited entries based on the user name. We have maintained a Zee table for
Company code and user name. in F4 list user should see only Authorized company codes based on the username.
How can we achieve this.
Pls send me the procedure.
Regards
Partha.
12-14-2007 6:40 PM
Create a function group and function module with following parameters.
FUNCTION z_XXX_shlp_exit.
*"----
""Local Interface:
*" TABLES
*" SHLP_TAB TYPE SHLP_DESCT
*" RECORD_TAB STRUCTURE SEAHLPRES
*" CHANGING
*" REFERENCE(SHLP) TYPE SHLP_DESCR
*" REFERENCE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL
*"----
You can write code here. Put a break point and check the values.
RECoRD_TAB will have the values to display. You can control those values in this code.
IF callcontrol-step = 'DISP'.
Delete the records which you dont want to show on the screen.
endif.
Go to Se11 - C_T001 - Display - Choose included search help tab - Double click on APP_T001
Again Included search help - double click on H_T001 - enter the function module name in
search help exit field. activate it and see the values in record_tab.
validate them and use it. remember this applies to Company code field through out SAP
system. so be careful when you do this kind of enhancement to search help.