Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Restrict F4 values for users

Former Member
0 Likes
769

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

2 REPLIES 2
Read only

Former Member
0 Likes
490

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

Read only

0 Likes
490

Hi,

Thanks for your reply

but how this can be aceived in SAP standard Transactions like FB02, ME21n.

Thanks & Regards,

Amit