Clear historical cache for particular field

Hi all,
I am working on a module pool program. There is one field to display the exployee number, let's say the field length is 8 char.
Everytime accessing into the screen, the employee number field should clear (clear from history) for the next new employee to enter the employee number.
The problem I am facing now is, the next employee can easily press on the SPACEBAR to select the employee number from the history (which is not agreed by my boss).
I also understand that there is a fastest way to handle this by increasing the field length to longer, let's say 60 char. Then it will not display out in list for them to select from history even they press on SPACEBAR.
In ABAP programming, how do I remove it from history for this particular field? Other fields are required to store in history for easier data entry.
Thanks in advance.

Hi,
For each user related information is stored in the local folder. You can get the latest cache file for that user from there. Below is the path to obtain the same.
C:\Documents and Settings\andy\SapWorkDir\SAP_Cache_andy
Here you will find a lot of files. They will contain the latest cache information.
Cache1 and Cache2. You need to manipulate these files to achieve the requirement.
Thanks,
Samantak.

Similar Messages

  • How do i clear java caches for Mac OS X, version 10.6.8?

    how do i clear java caches for Mac OS X, version 10.6.8?

    Sarah2565 wrote:
    should i keep the "keep temp files" box checked after removing Java caches?
    Yes. Always keep the default settings unless you have a specific reason not to.
    If you are a heavy user of Java programs or applets, you may need to clear the cache files after Java updates because the old caches may interfere.

  • How to set a default value for particular field in SRM PO Portal

    Dear Gurus,
    Im desparetly need a help in web dynpro on how to set a default value for a field(flag) in PO header tab in portal.
    My requirement is whenever the user press the edit button in PO screen,automatically a flag field should be set as abap_false.
    I dont think this will handle in check badi or change badi. i tried this part in onbuttonpressed overwriteexit in CNR_VIEW views,i can get the function EDIT in debugging mode,but dont know how to proceed further.....
    Many of them suggested to go with get attribute and set attribute for changing any particular field in web dynpro,but im not very familiar in using those get and set attributes.I request you people can give me sample code on how to identify my target field in the node and set the values while pressing EDIT Button.
    Thanks in advance...
    Regards,
    Sathish

    Dear Laurent,
    Thanks for your response,
    But i searched in enhancement spot of WD_BADI, but couldnt get the exact way to change the coding,
    My real requirement is, that particular flag should be enable and disable dynamically by checking a condition in my header values.So in that case i dont know how to proceed further to handle in the PO screen.
    Kinly guide me how to get the particular node of field in the Purchase order screen.
    Thanks you in advance,
    Sorry for the inconvenience if any
    Regards,
    sathish

  • Clearing server cache for QaaWS

    I have changed an existing "query as a web service" query and published it on the server. The WSDL is changed and updated for Xcelsius (and tested with Eviware SoapUI 2.5).
    However, the changes are not reflected on the server response XML but it replies with the old XML data. So the server must cache the requests somewhere. Where can I clear the cache or inactivate it alltogether ?
    Using Unix and BOXI 3.1.
    Thanks, Timo

    I found that at Tomcat Manager you can restart the dswsbobje application which clears the cache.

  • Where can I find instruction to clear my cache for Mozilla Firefox?

    I've been trying to submit my return to the IRS through Tax Act. It has been suggested by Tax Act support to find the instructions for my browser to clear cache. I do need help!! All I want to do is file my return.
    Thank you!!............. Bill

    Thanks!! For a rapid reply to my question.
    Your Mozilla Support Team might consider putting the answer to my question in an obvious place on line as this "clearing the cache" is not harmful to you operating system, but it's good to do this once in a while. I've bookmarked the page for expediency.
    Many Thanks!!............Bill

  • One example for edit the grid in oops and provide f4 help for particular field in Grid

    Hi all
    Here is the code for that editable Grid
    *& Report  YVAMC_EDIT_GRID
    REPORT  YVAMC_EDIT_GRID.
    DATA GR_ALVGRID TYPE REF TO CL_GUI_ALV_GRID .
    *--- Name of the custom control added on the screen
    DATA GC_CUSTOM_CONTROL_NAME TYPE SCRFNAME VALUE 'CC1_ALV' .
    *--- Custom container instance reference
    DATA GR_CCONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER .
    *--- Field catalog table
    DATA GT_FIELDCAT TYPE LVC_T_FCAT .
    TYPES: BEGIN OF IT_LIST,
             BANFN TYPE EBAN-BANFN,
             BNFPO TYPE EBAN-BNFPO,
             BSART TYPE EBAN-BSART,
             BSTYP TYPE EBAN-BSTYP,
             BSAKZ TYPE EBAN-BSAKZ,
             LOEKZ TYPE EBAN-LOEKZ,
             STATU TYPE EBAN-STATU,
             ESTKZ TYPE EBAN-ESTKZ,
             FRGKZ TYPE EBAN-FRGKZ,
             FRGZU TYPE EBAN-FRGZU,
           END OF IT_LIST.
    DATA: GT_LIST TYPE STANDARD TABLE OF IT_LIST,
           WA_LIST TYPE IT_LIST.
    DATA GS_LAYOUT TYPE LVC_S_LAYO .
    DATA OK_CODE TYPE SY-UCOMM.
    DATA ZFLAG.
    ** data for event handling
    DATA: GS_F4 TYPE LVC_S_F4,
           GT_F4 TYPE LVC_T_F4.
    START-OF-SELECTION.
       SELECT BANFN
              BNFPO
              BSART
              BSTYP
              BSAKZ
              LOEKZ
              STATU
              ESTKZ
              FRGKZ
              FRGZU
         FROM  EBAN INTO TABLE GT_LIST.
       CALL SCREEN 9000.
    *&      Module  DISPLAY_ALV  OUTPUT
    *       text
    MODULE STATUS_9000 OUTPUT.
       set pf-status 'ZNEW_STS'.
       PERFORM DISPLAY_ALV.
    ENDMODULE.                 " DISPLAY_ALV  OUTPUT
    *&      Module  USER_COMMAND_9000  INPUT
    *       text
    MODULE USER_COMMAND_9000 INPUT.
       OK_CODE = SY-UCOMM.
       CASE OK_CODE.
         WHEN 'BACK'.
           LEAVE TO SCREEN 0.
         WHEN 'EXIT'.
           LEAVE PROGRAM.
         WHEN 'EDIT'.
           ZFLAG = '1'.
           PERFORM UPDATE_FIELD_CATALOG CHANGING GT_FIELDCAT.
           PERFORM REGISTER_EDIT.
         WHEN 'DISPLAY'.
           ZFLAG = '0'.
           PERFORM UPDATE_FIELD_CATALOG CHANGING GT_FIELDCAT.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    *&      Form  DISPLAY_ALV
    *       text
    FORM DISPLAY_ALV.
       IF GR_ALVGRID IS INITIAL.
         CREATE OBJECT GR_CCONTAINER
           EXPORTING
    *        parent                      =
             CONTAINER_NAME              = GC_CUSTOM_CONTROL_NAME  .
         IF SY-SUBRC <> 0.
    *     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
         CREATE OBJECT GR_ALVGRID
           EXPORTING
             I_PARENT = GR_CCONTAINER.
         IF SY-SUBRC <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
    *----Preparing field catalog.
         PERFORM PREPARE_FIELD_CATALOG CHANGING GT_FIELDCAT .
         CALL METHOD GR_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY
       EXPORTING
          IS_LAYOUT                     = GS_LAYOUT
       CHANGING
             IT_OUTTAB                     = GT_LIST[]
             IT_FIELDCATALOG               = GT_FIELDCAT
         IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
       ELSE.
         CALL METHOD GR_ALVGRID->REFRESH_TABLE_DISPLAY
    *    EXPORTING
    *      is_stable      =
    *      i_soft_refresh =
    *    EXCEPTIONS
    *      finished       = 1
    *      others         = 2
         IF SY-SUBRC <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
       ENDIF.
    ENDFORM.                    "DISPLAY_ALV
    *&      Form  prepare_field_catalog
    *       text
    *      -->PT_FIELDCAT  text
    FORM PREPARE_FIELD_CATALOG CHANGING PT_FIELDCAT TYPE LVC_T_FCAT .
       DATA LS_FCAT TYPE LVC_S_FCAT .
       LS_FCAT-FIELDNAME = 'BANFN' .
       LS_FCAT-INTTYPE = 'C' .
    *ls_fcat-outputlen = '10' .
       LS_FCAT-COLTEXT = 'Requisition no' .
    *  LS_FCAT-SELTEXT = 'Requisition no' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'BNFPO' .
       LS_FCAT-INTTYPE = 'N' .
    *ls_fcat-outputlen = '5' .
       LS_FCAT-COLTEXT = 'Item no' .
       LS_FCAT-SELTEXT = 'Item no' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'BSART' .
       LS_FCAT-INTTYPE = 'C' .
    *ls_fcat-outputlen = '5' .
       LS_FCAT-COLTEXT = 'Doc Type' .
       LS_FCAT-SELTEXT = 'Doc Type' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'BSTYP' .
       LS_FCAT-INTTYPE = 'C' .
    *ls_fcat-outputlen = '1' .
       LS_FCAT-COLTEXT = 'Doc Category' .
       LS_FCAT-SELTEXT = 'Doc Category' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'BSAKZ' .
       LS_FCAT-INTTYPE = 'C' .
    *ls_fcat-outputlen = '1' .
       LS_FCAT-COLTEXT = 'Control Indicator' .
       LS_FCAT-SELTEXT = 'Control Indicator' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'LOEKZ' .
       LS_FCAT-INTTYPE = 'C' .
    *ls_fcat-outputlen = '1' .
       LS_FCAT-COLTEXT = 'Deletion Indicator' .
       LS_FCAT-SELTEXT = 'Deletion Indicator' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'STATU' .
       LS_FCAT-INTTYPE = 'C' .
       LS_FCAT-F4AVAILABL = 'X'.
    *ls_fcat-outputlen = '1' .
       LS_FCAT-COLTEXT = 'Processing status' .
       LS_FCAT-SELTEXT = 'Processing Status' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'ESTKZ' .
       LS_FCAT-INTTYPE = 'C' .
    *ls_fcat-outputlen = '1' .
       LS_FCAT-COLTEXT = 'Creation Indicator' .
       LS_FCAT-SELTEXT = 'Creation Indicator' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'FRGKZ' .
       LS_FCAT-INTTYPE = 'C' .
    *  ls_fcat-outputlen = '1' .
       LS_FCAT-COLTEXT = 'Release Indicator' .
       LS_FCAT-SELTEXT = 'Release Indicator' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'FRGZU' .
       LS_FCAT-INTTYPE = 'C' .
    *ls_fcat-outputlen = '8' .
       LS_FCAT-COLTEXT = 'Release Status' .
       LS_FCAT-SELTEXT = 'Release Status' .
       APPEND LS_FCAT TO PT_FIELDCAT .
    ENDFORM.                    "prepare_field_catalog
    *&      Form  update_field_catalog
    *       text
    *      -->PT_FIELDCAT  text
    FORM UPDATE_FIELD_CATALOG CHANGING PT_FIELDCAT TYPE LVC_T_FCAT.
       DATA LS_FCAT TYPE LVC_S_FCAT .
       CALL METHOD GR_ALVGRID->GET_FRONTEND_FIELDCATALOG
         IMPORTING
           ET_FIELDCATALOG = PT_FIELDCAT[].
       LOOP AT PT_FIELDCAT INTO LS_FCAT .
         IF ZFLAG = '1'.
           IF LS_FCAT-FIELDNAME = 'BSART' .
             LS_FCAT-EDIT = 'X' .
             LS_FCAT-F4AVAILABL = 'X'.
             LS_FCAT-REF_TABLE = 'T161T'.
             LS_FCAT-REF_FIELD = 'BSART'.
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'BSTYP' .
             LS_FCAT-EDIT = 'X' .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'BSAKZ' .
             LS_FCAT-EDIT = 'X' .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'LOEKZ' .
             LS_FCAT-EDIT = 'X' .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'STATU' .
             LS_FCAT-EDIT = 'X' .
             LS_FCAT-F4AVAILABL = 'X'.
    *        ls_fcat-drdn_hndl = '1'.
    *        ls_fcat-outputlen = 15.
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'ESTKZ' .
             LS_FCAT-EDIT = 'X' .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'FRGKZ' .
             LS_FCAT-EDIT = 'X' .
    * for laready attcahed search help
             LS_FCAT-F4AVAILABL = 'X'.
             LS_FCAT-REF_TABLE = 'T161U'.
             LS_FCAT-REF_FIELD = 'FRGKZ'.
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF.
           IF LS_FCAT-FIELDNAME = 'FRGZU' .
             LS_FCAT-EDIT = 'X' .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
    * add customise f4 help on feild STATU
           CLEAR GT_F4.
           GS_F4-FIELDNAME  = 'STATU'.
           GS_F4-REGISTER   = 'X'.
    *      gs_f4-getbefore  = check_be.               "§7a
    *      gs_f4-chngeafter = chn_aft.               "§7b
           APPEND GS_F4 TO GT_F4.
           CALL METHOD GR_ALVGRID->REGISTER_F4_FOR_FIELDS
             EXPORTING
               IT_F4 = GT_F4.
         ELSEIF ZFLAG = '2'.
           IF LS_FCAT-FIELDNAME = 'BANFN' .
             LS_FCAT-EDIT = 'X' .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'BNFPO' .
             LS_FCAT-EDIT = 'X' .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
         ELSE.
           IF LS_FCAT-FIELDNAME = 'BSART' .
             LS_FCAT-EDIT = SPACE.
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'BSTYP' .
             LS_FCAT-EDIT = SPACE .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'BSAKZ' .
             LS_FCAT-EDIT = SPACE .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'LOEKZ' .
             LS_FCAT-EDIT = SPACE .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'STATU' .
             LS_FCAT-EDIT = SPACE .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'ESTKZ' .
             LS_FCAT-EDIT = SPACE .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'FRGKZ' .
             LS_FCAT-EDIT = SPACE .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'FRGZU' .
             LS_FCAT-EDIT = SPACE .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
         ENDIF.
       ENDLOOP .
       CALL METHOD GR_ALVGRID->SET_FRONTEND_FIELDCATALOG
         EXPORTING
           IT_FIELDCATALOG = PT_FIELDCAT[].
    ENDFORM.                    "update_field_catalog
    *&      Form  register_edit
    *       text
    FORM REGISTER_EDIT .
       CALL METHOD GR_ALVGRID->REGISTER_EDIT_EVENT
         EXPORTING
           I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.
    ENDFORM.                    "register_edit

    Hi all
    Here is the code for that editable Grid
    *& Report  YVAMC_EDIT_GRID
    REPORT  YVAMC_EDIT_GRID.
    DATA GR_ALVGRID TYPE REF TO CL_GUI_ALV_GRID .
    *--- Name of the custom control added on the screen
    DATA GC_CUSTOM_CONTROL_NAME TYPE SCRFNAME VALUE 'CC1_ALV' .
    *--- Custom container instance reference
    DATA GR_CCONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER .
    *--- Field catalog table
    DATA GT_FIELDCAT TYPE LVC_T_FCAT .
    TYPES: BEGIN OF IT_LIST,
             BANFN TYPE EBAN-BANFN,
             BNFPO TYPE EBAN-BNFPO,
             BSART TYPE EBAN-BSART,
             BSTYP TYPE EBAN-BSTYP,
             BSAKZ TYPE EBAN-BSAKZ,
             LOEKZ TYPE EBAN-LOEKZ,
             STATU TYPE EBAN-STATU,
             ESTKZ TYPE EBAN-ESTKZ,
             FRGKZ TYPE EBAN-FRGKZ,
             FRGZU TYPE EBAN-FRGZU,
           END OF IT_LIST.
    DATA: GT_LIST TYPE STANDARD TABLE OF IT_LIST,
           WA_LIST TYPE IT_LIST.
    DATA GS_LAYOUT TYPE LVC_S_LAYO .
    DATA OK_CODE TYPE SY-UCOMM.
    DATA ZFLAG.
    ** data for event handling
    DATA: GS_F4 TYPE LVC_S_F4,
           GT_F4 TYPE LVC_T_F4.
    START-OF-SELECTION.
       SELECT BANFN
              BNFPO
              BSART
              BSTYP
              BSAKZ
              LOEKZ
              STATU
              ESTKZ
              FRGKZ
              FRGZU
         FROM  EBAN INTO TABLE GT_LIST.
       CALL SCREEN 9000.
    *&      Module  DISPLAY_ALV  OUTPUT
    *       text
    MODULE STATUS_9000 OUTPUT.
       set pf-status 'ZNEW_STS'.
       PERFORM DISPLAY_ALV.
    ENDMODULE.                 " DISPLAY_ALV  OUTPUT
    *&      Module  USER_COMMAND_9000  INPUT
    *       text
    MODULE USER_COMMAND_9000 INPUT.
       OK_CODE = SY-UCOMM.
       CASE OK_CODE.
         WHEN 'BACK'.
           LEAVE TO SCREEN 0.
         WHEN 'EXIT'.
           LEAVE PROGRAM.
         WHEN 'EDIT'.
           ZFLAG = '1'.
           PERFORM UPDATE_FIELD_CATALOG CHANGING GT_FIELDCAT.
           PERFORM REGISTER_EDIT.
         WHEN 'DISPLAY'.
           ZFLAG = '0'.
           PERFORM UPDATE_FIELD_CATALOG CHANGING GT_FIELDCAT.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    *&      Form  DISPLAY_ALV
    *       text
    FORM DISPLAY_ALV.
       IF GR_ALVGRID IS INITIAL.
         CREATE OBJECT GR_CCONTAINER
           EXPORTING
    *        parent                      =
             CONTAINER_NAME              = GC_CUSTOM_CONTROL_NAME  .
         IF SY-SUBRC <> 0.
    *     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
         CREATE OBJECT GR_ALVGRID
           EXPORTING
             I_PARENT = GR_CCONTAINER.
         IF SY-SUBRC <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
    *----Preparing field catalog.
         PERFORM PREPARE_FIELD_CATALOG CHANGING GT_FIELDCAT .
         CALL METHOD GR_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY
       EXPORTING
          IS_LAYOUT                     = GS_LAYOUT
       CHANGING
             IT_OUTTAB                     = GT_LIST[]
             IT_FIELDCATALOG               = GT_FIELDCAT
         IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
       ELSE.
         CALL METHOD GR_ALVGRID->REFRESH_TABLE_DISPLAY
    *    EXPORTING
    *      is_stable      =
    *      i_soft_refresh =
    *    EXCEPTIONS
    *      finished       = 1
    *      others         = 2
         IF SY-SUBRC <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
       ENDIF.
    ENDFORM.                    "DISPLAY_ALV
    *&      Form  prepare_field_catalog
    *       text
    *      -->PT_FIELDCAT  text
    FORM PREPARE_FIELD_CATALOG CHANGING PT_FIELDCAT TYPE LVC_T_FCAT .
       DATA LS_FCAT TYPE LVC_S_FCAT .
       LS_FCAT-FIELDNAME = 'BANFN' .
       LS_FCAT-INTTYPE = 'C' .
    *ls_fcat-outputlen = '10' .
       LS_FCAT-COLTEXT = 'Requisition no' .
    *  LS_FCAT-SELTEXT = 'Requisition no' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'BNFPO' .
       LS_FCAT-INTTYPE = 'N' .
    *ls_fcat-outputlen = '5' .
       LS_FCAT-COLTEXT = 'Item no' .
       LS_FCAT-SELTEXT = 'Item no' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'BSART' .
       LS_FCAT-INTTYPE = 'C' .
    *ls_fcat-outputlen = '5' .
       LS_FCAT-COLTEXT = 'Doc Type' .
       LS_FCAT-SELTEXT = 'Doc Type' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'BSTYP' .
       LS_FCAT-INTTYPE = 'C' .
    *ls_fcat-outputlen = '1' .
       LS_FCAT-COLTEXT = 'Doc Category' .
       LS_FCAT-SELTEXT = 'Doc Category' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'BSAKZ' .
       LS_FCAT-INTTYPE = 'C' .
    *ls_fcat-outputlen = '1' .
       LS_FCAT-COLTEXT = 'Control Indicator' .
       LS_FCAT-SELTEXT = 'Control Indicator' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'LOEKZ' .
       LS_FCAT-INTTYPE = 'C' .
    *ls_fcat-outputlen = '1' .
       LS_FCAT-COLTEXT = 'Deletion Indicator' .
       LS_FCAT-SELTEXT = 'Deletion Indicator' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'STATU' .
       LS_FCAT-INTTYPE = 'C' .
       LS_FCAT-F4AVAILABL = 'X'.
    *ls_fcat-outputlen = '1' .
       LS_FCAT-COLTEXT = 'Processing status' .
       LS_FCAT-SELTEXT = 'Processing Status' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'ESTKZ' .
       LS_FCAT-INTTYPE = 'C' .
    *ls_fcat-outputlen = '1' .
       LS_FCAT-COLTEXT = 'Creation Indicator' .
       LS_FCAT-SELTEXT = 'Creation Indicator' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'FRGKZ' .
       LS_FCAT-INTTYPE = 'C' .
    *  ls_fcat-outputlen = '1' .
       LS_FCAT-COLTEXT = 'Release Indicator' .
       LS_FCAT-SELTEXT = 'Release Indicator' .
       APPEND LS_FCAT TO PT_FIELDCAT .
       LS_FCAT-FIELDNAME = 'FRGZU' .
       LS_FCAT-INTTYPE = 'C' .
    *ls_fcat-outputlen = '8' .
       LS_FCAT-COLTEXT = 'Release Status' .
       LS_FCAT-SELTEXT = 'Release Status' .
       APPEND LS_FCAT TO PT_FIELDCAT .
    ENDFORM.                    "prepare_field_catalog
    *&      Form  update_field_catalog
    *       text
    *      -->PT_FIELDCAT  text
    FORM UPDATE_FIELD_CATALOG CHANGING PT_FIELDCAT TYPE LVC_T_FCAT.
       DATA LS_FCAT TYPE LVC_S_FCAT .
       CALL METHOD GR_ALVGRID->GET_FRONTEND_FIELDCATALOG
         IMPORTING
           ET_FIELDCATALOG = PT_FIELDCAT[].
       LOOP AT PT_FIELDCAT INTO LS_FCAT .
         IF ZFLAG = '1'.
           IF LS_FCAT-FIELDNAME = 'BSART' .
             LS_FCAT-EDIT = 'X' .
             LS_FCAT-F4AVAILABL = 'X'.
             LS_FCAT-REF_TABLE = 'T161T'.
             LS_FCAT-REF_FIELD = 'BSART'.
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'BSTYP' .
             LS_FCAT-EDIT = 'X' .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'BSAKZ' .
             LS_FCAT-EDIT = 'X' .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'LOEKZ' .
             LS_FCAT-EDIT = 'X' .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'STATU' .
             LS_FCAT-EDIT = 'X' .
             LS_FCAT-F4AVAILABL = 'X'.
    *        ls_fcat-drdn_hndl = '1'.
    *        ls_fcat-outputlen = 15.
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'ESTKZ' .
             LS_FCAT-EDIT = 'X' .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'FRGKZ' .
             LS_FCAT-EDIT = 'X' .
    * for laready attcahed search help
             LS_FCAT-F4AVAILABL = 'X'.
             LS_FCAT-REF_TABLE = 'T161U'.
             LS_FCAT-REF_FIELD = 'FRGKZ'.
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF.
           IF LS_FCAT-FIELDNAME = 'FRGZU' .
             LS_FCAT-EDIT = 'X' .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
    * add customise f4 help on feild STATU
           CLEAR GT_F4.
           GS_F4-FIELDNAME  = 'STATU'.
           GS_F4-REGISTER   = 'X'.
    *      gs_f4-getbefore  = check_be.               "§7a
    *      gs_f4-chngeafter = chn_aft.               "§7b
           APPEND GS_F4 TO GT_F4.
           CALL METHOD GR_ALVGRID->REGISTER_F4_FOR_FIELDS
             EXPORTING
               IT_F4 = GT_F4.
         ELSEIF ZFLAG = '2'.
           IF LS_FCAT-FIELDNAME = 'BANFN' .
             LS_FCAT-EDIT = 'X' .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'BNFPO' .
             LS_FCAT-EDIT = 'X' .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
         ELSE.
           IF LS_FCAT-FIELDNAME = 'BSART' .
             LS_FCAT-EDIT = SPACE.
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'BSTYP' .
             LS_FCAT-EDIT = SPACE .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'BSAKZ' .
             LS_FCAT-EDIT = SPACE .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'LOEKZ' .
             LS_FCAT-EDIT = SPACE .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'STATU' .
             LS_FCAT-EDIT = SPACE .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'ESTKZ' .
             LS_FCAT-EDIT = SPACE .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'FRGKZ' .
             LS_FCAT-EDIT = SPACE .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
           IF LS_FCAT-FIELDNAME = 'FRGZU' .
             LS_FCAT-EDIT = SPACE .
             MODIFY PT_FIELDCAT FROM LS_FCAT .
           ENDIF .
         ENDIF.
       ENDLOOP .
       CALL METHOD GR_ALVGRID->SET_FRONTEND_FIELDCATALOG
         EXPORTING
           IT_FIELDCATALOG = PT_FIELDCAT[].
    ENDFORM.                    "update_field_catalog
    *&      Form  register_edit
    *       text
    FORM REGISTER_EDIT .
       CALL METHOD GR_ALVGRID->REGISTER_EDIT_EVENT
         EXPORTING
           I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.
    ENDFORM.                    "register_edit

  • Clear DFS Cache for Windows 7 Machines

    With the past OS's I was able to clear the DFS cache using the DFSUTIL.EXE from the Windows Server 2003 Resource Kit.     This same .exe will not work for Windows 7.    I can clear the DFS cache on a machine but I must
    do the following before I do that:
    Install RSAT on the Win7 machine
    Then turn on the "Distrubited File System Tools"  feature
    After doing this I am able to clear the DFS Cache.    Is there not a way I clear the DFS cache without doing all of this?   If I copy out the DFSUTIL.exe  to another machine it will not work.

    You can get the DFSUTIL.EXE for Windows 7 by downloading the optional Remote Server Administration Tools (RSAT).
    For details, see item 3 at this blog:
    http://blogs.technet.com/b/josebda/archive/2010/05/02/where-to-find-dfsutil-exe-for-windows-server-2008-and-windows-server-2008-r2.aspx
    Jose
    Jose Barreto

  • Validation of data in editable ALV report output for particular field

    Hi Experts,
    I have one input enabled field in ALV output. How to validate the data once user enters  in that field and press enter? Is it possible to capture the value, hit the enter after user enters the data?
    Thanks,
    Surya Prakash

    Halo Prakash,
    1 First you should registeer the ENTER Event.
    call method g_grid->register_edit_event
                   exporting
                      i_event_id = cl_gui_alv_grid=>mc_evt_enter.
    2 Declare event handler method for Event data_changed of cl_gui_alv_grid.
    handle_data_changed
             for event data_changed of cl_gui_alv_grid
                 importing er_data_changed.
    3 Inside the Event handler method , you get the event parameter er_data_changed type ref to CL_ALV_CHANGED_DATA_PROTOCOL.
    loop at er_data_changed->mt_good_cells into ls_good.
          case ls_good-fieldname.
            when 'FIELD1'.
              call method check_FIELD1.
            when 'FIELD2 '.
              call method check_FIELD2
          endcase.
        endloop.
    4 Inside the Method check_FIELD1 and check_FIELD2 you can do the validation check .
    call method er_data_changed->get_cell_value( Passing the row no and field name).
    if the check  fails you can use add_protocol_entry to write the error.
    5 Finally call
    er_data_changed->display_protocol.
    Regards
    Arshad

  • Authorization for particular field

    Dear All,
                          I have one issue about Authorization related..
    My Os is --- IBM AIX
    DB -- oracle
    SAP - ERP 6.0
    I want to restrict one field from all users in tcode KP26. when i execute KP26 tcode it will ask controlling area.
    After putting controlling area. it will show "Change Activity Type/Price Planning: initial Screen
    in that screen there is one field call "Version". we have six version in this filed. i want to give authoirzation for all users only one version from the six version.
    But i could not restrict in the role...
    I tried with new user and new role with zero base authorization. but i can't get the correct authorization object for restrict.
    Can anybody help to resolve this issue...
    Regards,
    Sundar.C

    Hi Sundar,
    Did you check with the authorization objects being checked while calling KP26 . You may get the required auth. obejct there.
    You may also want to run a trace to zero down on the exact authorization object.
    Check if the user is getting the authorization for K_KA09_KVS from some other role?
    Regards,
    Manisha
    Edited by: Manisha Nadir on May 26, 2010 8:50 PM

  • How to create hyperlink in oaf for particular field

    Hi All,
    I have another requirment that one of my item should have hyperlink.
    How to handle this requirment.
    Plz suggest me on this..
    Thanks
    Surya

    Hi Gyan,
    Once i click on hyperlink field it will open new page and should get the value from that new file.
    This is my new requirment.
    Plz help me with the code how to implement it.
    Thanks
    Surya
    Edited by: surya karanam on Nov 29, 2011 10:16 PM

  • How to calculate Cumulative of Daily  for particular field(Actual Meter )

    hi,
          pls help me in this
    thanks

    Hi,
         refer the link it may help you
    https://forums.sdn.sap.com/click.jspa?searchID=4388506&messageID=3350823
    https://forums.sdn.sap.com/click.jspa?searchID=4388506&messageID=3889681
    Regards

  • How away clear cache for User.

    I have a problem with Clear cache.
    1. I create a Group name is Group1 that has 4 Privilenge( ).
    2. I create a User name is User1 belong in Group1.
    User1 has 4 Privilenge of Group1.
    3. When I Edit Group1 and Remove 4 Privilenge of Goup1(Now,Group1 has not any Privilenge).
    4.But User1 has still admin privilege as the old status.
    I think that Websever is cached .Please tell me to sovle the problem.
    Best Regards,
    thangtk

    hi,
    to clear the cache for a particular user go to the portal admin pages - administer - portal - global settings
    navigate to the cache tab
    now you can either clear the entire webcache for portal or you clear the cache settings for a particular user.
    another possibility (or in addition):
    go to the page group settings - access tab - click clear cache.
    regards,
    christian

  • Clear cache for items not working with multiple items

    APEX 4.0, 11g. I've made a session state process that clears cache for items (item_1, item_2, item_3) but I keep getting an error "Unexpected error, unable to find item name at application or page level" I have now created 3 session state processes, each with one page item in it, and it works fine but as soon as I try to put more than one item in the process field, separated by commas, I get this error. Is there some other setting I have to change to make it accept multiple values in this field?

    No, I wasn't using the parenthesis... just the items separated by a comma.
    I don't want to clear the cache for all page items, just these 3. It works okay in 3 separate clear cache for item processes, just thought it was odd that I can't put all three items into one process separated by commas.

  • Clear Cache for Certain Items on Tab Click

    I found this in the forms:
    If you want to clear the cache of the page submitted when the tab is clicked, that should be the job of that page. You can create an after-submit process (before computations and validations) with:
    apex_application.clear_page_cache(:APP_PAGE_ID);
    However, I need to clear certain items not everything on the page. I tried substituting apex_application.clear_item_cache(:APP_ITEM); but that doesn't work. What is the process that clears the apex_application item cache?

    Is the page you're clicking away from executing a submit when you click away? If so, I would try either of these in a page branch.
    Assume you are on page 1 and clicking to page 2. On Page 2, let's say you want to keep the cache on items P2_A, P2_B but clear the cache for P2_C.
    In your page branch (defined on page 1) that fires to take you to page 2, try either of these:
    Clear cache on page: 2
    Set these items: P2_A, P2_B
    With these values: &P2_A., &P2_B.
    That should clear all of 2 but reset A and B back to their current values from the cache before it's cleared.
    Or, try this:
    Clear cache on page: (don't put anything here)
    Set these items: P2_C
    With these values: (don't put anything here)
    That should (I think) only clear P2_C

  • Clear KM Cache using API

    Hi All,
    We have a requirement to clear the KM cache every day in the morning for two of the items in Cache Monitor.  I would like to know if we could clear the cache for the selected items using some API or any and schedule a job so that it runs every day to clear the cache.
    Appreciate any suggestions for the same.
    Regards,
    Aruna.

    check out this one:
    http://help.sap.com/javadocs/NW04S/current/km/com/sapportals/wcm/util/cache/package-summary.html
    something like
    CacheFactory.getCache(id).clearCache()
      should do the trick

Maybe you are looking for