2010 Mar 17 9:17 AM
Hi,
I want restrict the F4 values for different user in SAP
For example GL Account f4 if one user is valid to post or select only 2 GL accounts then only those 2 GL accounts must be viewed by the user when he press F4 key.
Thanks & Regards,
Amit
Hi,
I want restrict the F4 values for different user in SAP
For example GL Account f4 if one user is valid to post or select only 2 GL accounts then only those 2 GL accounts must be viewed by the user when he press F4 key.
Thanks & Regards,
Amit
2010 Mar 17 9:24 AM
Hi
AT SELECTION-SCREEN ON VALUE-REQUEST FOR fee-low.
PERFORM show_fee.
*&---------------------------------------------------------------------*
*& Form SHOW_FEE
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
form SHOW_FEE .
DATA: ltab_fields LIKE dynpread OCCURS 0 WITH HEADER LINE.
DATA : BEGIN OF it_fee OCCURS 0,
GROUPFEE TYPE ZGROUP_DE,
FEE_NUMBER TYPE ZFEE_NUMBER,
FEE TYPE ZFEE_NAME,
END OF it_fee.
SELECT GROUPFEE FEE_NUMBER FEE
FROM ZFICA_CATALOG
INTO TABLE it_fee
WHERE CITY_NAME = ltab_fields-fieldvalue.
SORT it_fee ASCENDING.
DELETE ADJACENT DUPLICATES FROM it_fee.
* Pass which field in the internal table should be passed in retfield
* Pass which screen field should have selected internal table field
* value in dynprofield
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'FEE_NUMBER'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'FEE'
value_org = 'S'
TABLES
value_tab = it_fee
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
endform. " SHOW_FEE
Just make your select based on your condition (user or something) and your population which you want to display.
Best Regards
Yossi
2010 Mar 17 9:28 AM
Hi,
Thanks for your reply
but how this can be aceived in SAP standard Transactions like FB02, ME21n.
Thanks & Regards,
Amit
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |