Skip to Content
avatar image
Former Member

screen programming

hi i am doing a module prog in which whenever i go to the screen there are alsready some data in the fields

i want to remove the data.

kindly tell me wat is the syntax when we use refresh with screen and where it should be placed?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Oct 16, 2008 at 06:47 AM

    Hi,

    Your Question is not so clear .Can you expalin to me as briefly as possible with example code what you are using .

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 16, 2008 at 06:48 AM

    you have to check the PBO module of the screen. The fields get their values there. The fields can be initialized with the CLEAR statement, but you have to be carefull, the PBO might run several times, when you work with the screen!

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2008 at 06:49 AM

    Hi,

    In the pbo of your screen say 9001....

    clear the fields ....

    PROCESS BEFORE OUTPUT.
      MODULE status_9001.
    
    

    in MODULE status_9001.

    write..

    CLEAR : <the fields that you have used>.
    
    

    But keep in mind that as every time this screen will be visited via the PBO so it is beter to use counter in PBO.....It will be beter if you try this first and see.....

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 16, 2008 at 06:50 AM

    hi,

    use clear or refresh statement in PBO module.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 16, 2008 at 06:50 AM

    Hi,

    in the PAI ,

    under case sy-ucomm.

    when 'BACK'.

    you can use refresh or clear statements to clear your work areas and internal tables

    OR

    put a new module in your PBO

    you can clear all your work areas and internal tables

    regards

    prasanth

    Add comment
    10|10000 characters needed characters exceeded