Skip to Content

How to clear the screen cache?

Hi guys.

I want to know if there is a way to clear the screen fields cache via ABAP.

Like I want to remove all previously typed values in a text box field in a module pool screen in subsequent executions.

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Sep 19, 2012 at 05:57 AM

    By ticking the attribute No Input History for the field in the Screen Painter, no history will be maintained.


    t1.jpg (211.9 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 11, 2011 at 09:41 AM

    Hi,

    don't know if I understood it well, anyway; you could try a CLEAN of the text box in the AT SELECTION-SCREEN OUTPUT section of your screen. You should then find a way to identify exactly the condition that should lead to the cleansing (sy-ucomm check?).

    In example;

    AT SELECTION-SCREEN OUTPUT.

    IF <your_condition_is_met> EQ 'X'.

    CLEAN <input_box_parameter>.

    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 13, 2011 at 03:26 AM

    I meant clearing the screen cache.

    Eg : I have a text box for Production Order number .

    1st time, I input 4000028.

    Next time, I execute , the text box will be empty but when I press the space bar, I will have 400028. This is what I want to remove from my screen.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      Hurrah, to disable or enable input history of only ONE field, we can do it programmatically using method cl_gui_frontend_services=>disablehistoryforfield (with flag true or false). It is available since at least release 7.0

      Moreover, user can switch it on or off manually, by CTRL + right click (since at least SAP GUI 7.20).

      BR

      Sandra

  • Posted on Jun 17, 2011 at 05:50 AM

    try this

    in application tool bar

    click customize local layout (alt + f12)

    click options

    go to local data tab.

    select of or on as per your requirement

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 18, 2019 at 05:52 PM

    Hi,

    Maybe it's later...

    With this method it's possible:

    CALL METHOD cl_gui_frontend_services=>disablehistoryforfield

    Regards!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.