I have a requirement where for some standard table such as LFA1, As we go into SE11 or SE16N screen and on clicking the F4 search help for certain vendor when the accounting group LFA1-KTOKK = 'XYZ1' (just a sample accounting group) which is already entered in the input , the entire row for that accounting group should be masked in F4 search help.Also, this to be done for certain role which will be maintained in PFCG transaction . How to achieve this in S4 HANA system ?
Result should be like -
The user who have role can see the entire rows but the user who does not have role must see the masked value for this accounting group only.
The accounting group select is happening in dynamically generated program /1BCF41/T077K so it is not advisable to add logic there.
so analyze below programs and create an implicit enhancement(at end of any subroutine) to add logic to validate the user ID for authorization and mask the values. you can find the output values in internal table VALUE_TAB or OUTPUT_VALUES.
These programs might be used for F4 help of many other fields so do it carefully. add check for table name, search help name and user name before starting the actual logic.
Hope this helps.