Refreshing of a screen....

hi all...
i have a main screen.
From here i move on to the next screen.
after performing manipulatons in ttable control and tree controlls in the screen, i get back to the main screen again. from there without getting totally out if i come back to the next screen, all the manipulations i had done previously still remain without refreshing to initial state.
how do i refresh the screens.
please do help me out with this issue...
Krithika V

It depends on what is on the screens... the responses above won't work as the screens will display whatever is still in the global memory of the module pool / report / function group (wherever your screen is call from) e.g. if the field on the screen is called "GS_9999-DATE" and this field gets set before the first display of screen 9999, then the next time you display screen 9999 the same value will display again, unless you (a) change it or (b) clear it.  With controls, e.g. text editors, HTML display etc, you may want to "free" the control after you exit the screen it is on, and create the object again when / if the screen is displayed again.
Jonathan

Similar Messages

  • How to Refresh a Variable screen in Webtemplet

    Hi Experts,
    When i execute a WEB Templet giving Variable Selection Inputs , the Variable input values gets stored in the Variable Tab and will not change untill i Change it.
    Example
    Variable input 0PLANT 5030(this 5030 is the input where i give in the variable selection screen)
    when i click back on the intrenet Explorer , this 5030 will be there stored in the 0PLANT tab.
    can any one give me solution how can i refresh the variable screen in the WAD
    Santosh Nagaraj

    This should solve your problem :
    Variable Refresh button in WAD

  • How can i Refresh my Variable Screen In WAD templet?

    Hi Experts,
    When i execute a WEB Templet giving Variable Selection Inputs , the Variable input values gets stored in the Variable Tab and will not change untill i Change it.
    Example
    Variable input 0PLANT     5030(this 5030 is the input where i give in the variable selection screen)
    when i  click back on the intrenet Explorer , this 5030 will be there stored in the 0PLANT tab.
    can any one give me solution how can i refresh the variable screen in the WAD
    Santosh Nagaraj

    Tis might be a browser feature - the variable values tend to get stored - you could look at implementing DSM ( through portal ) or try making your template stateless and see if the value changes...

  • Refreshing to black screen every 3 seconds

    refreshing to black screen with the power wheel every 3-5 seconds and won't boot down unless.
    I reset and continue to hold down the home and up button. then it shuts down
    It does boot up and I can log in but again every 3-5 seconds it goes the the power wheel black screen

    - Try a reset.
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Then connect to your computer and try to restore again. I would restore to factory defaults/new iPod
    - If you can't restore and the iPod is acting the same. let the battery fully drain. After charging for at least an hour try the above again.

  • Refreshing Sales Order Screens with new BP data

    My customer service department is entering sales orders and have to create new "ship to" addresses on a regular basis.  They open a new sales order, enter the BP Code for the bill to customer and then use teh golden arrow to enter BP Master data and enter a new ship to address.  After they save and close the new information, it is not available for them on the old sales order screen until they close and start a new sales order.
    Is there a way to refresh a screen that you are currently in in order to import the new information that has been entered into the BP Master Data?

    I appreciate the information, but the sarcasm is not necessary.
    It is not hard to add the data beforehand but these orders are for a sales agency we contract with.  One bill to customer and unlimited ship to addresses.  Some are repeat shipments, some are not.  So when the order is taken, they open the bill to customer account and if the ship to address is not there, they must then add it and cancel out the order and start over.  For one transaction it is not a significant amount of time but over the course of 1000 a day, it becomes significant.
    I was looking for a way to facilitate the process.

  • Changing refresh rate blanks screen indefinitely

    Hi all,
    I'm new to the mac world and I was exploring OSX upon bringing my new Mac Pro home.
    I have an old 17" Benq LCD monitor (upgrading soon) that I had hooked up using the analog to DVI adapter. I've heard that LCD's usually always are set at 60Hz but stupid me had to try other refresh rates. I set the refresh rate to 80Hz and the screen went blank and a box came up stating the refresh rate was "out of range".
    I thought that it would automatically revert a la XP but after 5 minutes nothing. So in the meantime I just swapped to a different video output on the video card.
    Could someone please tell me how I can revert the refresh rate to 60Hz so that DVI output can be utilized.
    Thanks for reading!
    Cheerz,
    Flu
    Mac Pro Quad   Mac OS X (10.4.10)  

    Use the "Gather Windows" button in the "Display" pane of "Displays" System Preference. You can change setting for both displays from one display. You can also check "Show displays in menu bar" to get control of both displays.
    Resetting PRAM, or a Safe Boot might help.
    <http://docs.info.apple.com/article.html?artnum=107393>

  • Why does Firefox display a screen, then several (8-10) seconds later refresh that same screen ?

    I am using Windows XP, and connect to Internet via slow AT&T DSL. When switching sites on the WEB, the screen from the site is displayed, then shortly afterward the screen gets refreshed automatically. Also of note, at the bottom of the screen, I can see verbiage explaining what is happening, EG; "Waiting for google", "Updating", "Transferring" etc, and the site name.

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • Portal content/iview refresh in the screen

    Hi SDNs,
    I have created some transaction iviews, like a group of transactions, one is for Purchase related and one is travel related.
    Once i logged into portal, i create a purchase order using the transaction iview and then i am navigation trip transaction iview and completing my action.
    And again i am coming back to po creation transaction iview, it is showing the <b>Start SAP Easy Access</b> screen instead of <b>me21n</b> screen. again if i navigate to travel transactions like trip, it is also showing the Start SAP Easy Access Screen.
    Not only for transaciton iviews, this i am facing for UWL iview and some other iview.
    What i found here is, the content is not refreshing, everytime i need to logoff and login if i do any action in portal and to take affect of that action.
    Can you please guide me, what might be the problem here and some inputs to resolve this.
    Thanks &Regards,
    Sireesha.B

    Hi Murthy,
        Have you modified or customized any element like masthead, desktop, framework page or master rule collection ?
    Regards,
    Vidit

  • Refresh WebDynpro Output Screen

    i want to refresh the webdynpro -abap output screen(not through F5) but through rest button.
    could any body tell me how to achieve this.
    Thanks

    Hello ,
    Here i am not going to previous screen.
    here i have only one screnn with multi functinality.
    thats why i designed one Button. and in the button i want to write some logic.
    so that whil e i will click on the button the whole application will get refreshed. so that no need to press F5 also.
    i need some relevant logic for this so that , i wil put in my Button in Ui screen
    For this could you please provide me some appriate logic.
    thanks..  in adv..
    Rakshar

  • Enkitec Modal LOV refresh value on screen when updated programmatically

    Apex version 4.2.0.00.27
    Firefox version 20.0.1
    I am using the Enkitec Modal LOV. I have a region button which, when pressed, calls a PLSQL procedure to copy values (including the Modal LOV item) from a previous record into the current one. The Modal LOV item is not showing the new value on screen - it is blank. Looking at the session info, the value is being copied to the item, so does anyone know how I can make the Modal LOV refresh itself to show the new value on screen?
    Thanks,
    Nick.

    Hi,
    I am facing the same problem. I used the Modal LOV on modal region. There was the standard popup LOV before - everything went correct. Even if i replaced existing standard LOV with LOV plugin.
    I use this plugin in normal forms and it works good. But i have a empty item only in here.
    1) In my previous assignation for the item i use (no plugin):
    $s('#ITEM_NAME', 'value')
    after modal region is opened. (it works OK)
    2) If i use the plugin: the item value is null (value="").
    3) If i use for value assignation jQuery:
    $('#ITEM_NAME').val('value');
      assignation is done (value is shown) but the item seem like empty if validation of item occur. (if i press the submit button on modal window it throws "Empty item value")
    It is strange...
    EDIT: I used jQuery selector for set and get value (when compare to existing records in AJAX call)
    $('#ITEM_NAME').val('value'); or $('#ITEM_NAME').val();
    It works now.
    It will help to you, maybe.
    Regards
    J

  • Refreshing the monitor screen

    Hi all,
    I have an application built using
    CVI 5.5 where some where
    at the middle of the operation the
    program will call another program to lauch. After the called program has
    exit, my application will continue.
    My problem is that when the called program has exit, the whole monitor
    screen become white and I can't anything.
    Is there some way I can refresh the
    screen in CVI ?
    Thankz in advance.
    MK. Tan

    Hello Tan,
    The screen should not turn white when your called application exits. I would be suspicious that the called application is not terminating properly. Check to see if the OS has become unstable or locked up (move the mouse, press ALT-TAB, press Num Lock, press Ctrl-Alt-Del, and see if the system responds). I assume that you are using system() to execute this program synchronously. You could call fprintf() then fflush() directly after system() to write to a file to check if your program continues to run after the called program exits. If you restart and the file does not contain the marker, then you can be sure that the called application is not exiting cleanly. If you can give us more details on the application you are calling and the state of your syste
    m after it exits, we might be able to help you further. Also, does this behavior occur when the program is being debugged, a release executable, or both?
    Jeremiah Cox
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Automatic Refresh of calling screen after closing Webdynpro Appl

    Hi All,
    We are on SRM 5.0 and we are launching a custom webdynpro application from the Sourcing Cockpit. We added a custom button on the sourcing cockpit and that button would launch the custom webdynpro application as shown below in the PAI event.
    DATA : lv_url TYPE string,
                l_obj type SMENSAPNEW-REPORT,
                l_rep type SMENSAPNEW-REPORTTYPE,
                l_url type SMEN_BUFFI-URL.
        CALL METHOD cl_wd_utilities=>construct_wd_url
          EXPORTING
            application_name = 'Z_SC_UPD'
          IMPORTING
            out_absolute_url = lv_url.
    l_obj = 'URL'.
    l_rep = 'OT'.
    l_url = lv_url.
    CALL FUNCTION 'MENU_START_OBJECT_VIA_INDX'
    EXPORTING
       OBJECT_NAME         = l_obj
       REPORTTYPE          = l_rep
       URL                 = l_url.
    The webdynpro Z_SC_UPD will update the custom fields in the shopping cart. Upon closing of this webdynpro application, we need to refresh the screen of Sourcing cockpit to reflect the changes that Webdynpro just made. Is it possible. Please advise?
    Thanks
    Abapinator.

    Hi
    In this case you would probably require to restructure your application. The webdynpro application thats launched in the new window. Need to call a method in the event handler , that finally calls the  exit plug. You can  from this  method  call your associated ASSISTANCE CLASS method.
    ASSISTANCE class should expose method to refresh you original Application, this may be a simple matter of reexecuting the transaction associated with you MAIN Application
    This in effect you call a method before exitiing that would end up reseting/ Refreshing your main app.
    Greetings
    Prashant

  • Press Backspace key does not refresh the softkeyboard screen

    Hi,
    I'm finding a very weird issue in Adobe Air 3.7 and 3.8 (haven't tried in older versions).
    When the user clicks on the textfield and the softkeyboard is displayed the key "backspace" doesn't seem to work, nothing seems to be deleted. But when the user hides the soft keyboard the text appears deleted.
    It's a refresh problem with the softkeyboard's text screen. I've seen it in "Android keyboard" (Nexus 4). Doesn't happen in Samsung default keyboards.
    It only happens when the character to delete is not the last one. In that case everything works fine.
    Do you know any sort of workaround? It's extrange because it should be a very popular Adobe Air bug but I can't find it in the bug's database.
    Thanks

    Sounds like you don't have all update installed. Use menu Help>About Photoshop should show 14.1.1 if all update are installed.

  • Help with Refreshing and Calling Screens

    Hi everyone.  I have somewhat of a simple ABAP program in which the user will enter data on Selection-Screen 1000.  This will then be loaded into an Object Oriented ALV Grid for display purposes only (screen 0100).  At any time, the user may use the back button on the ALV Grid Screen; which will take them from screen 0100 to screen 1000(Selection Screen).  Lets assume the user does not want to go back to the original selection screen from the ALV Grid Screen; they entered the information correctly and want to continue processing using a custom button I've created which will continue to process the record of data into a BW ODS.  This process works, but now I would like to use the write statement once the custom button is clicked to show a summary of the data I am inserting into the ODS after the data has been inserted.  The problem is, the title of the ALV Grid still shows and the Write statement is processed, but not shown on the screen.  I've been trying to refresh the screen with set screen and call screen combinations, but no luck.  Any Help would be appreciated.  Thanks!
    Here is a sample of the code below:
    *& Report  ZINC_DSP_SALES_INCRASE
    REPORT  ZINC_DSP_SALES_INCREASE MESSAGE-ID zsm.
    INCLUDE <icon>.
    DATA: credit_itab type standard table of /bic/azincosvi00,
          wa_credit like line of credit_itab,
          alv_itab type standard table of /bic/azincosvi00,
          wa_alv like line of alv_itab.
    DATA: ok_code LIKE sy-ucomm,
          save_ok LIKE sy-ucomm,
          incent type table of /bic/azincosvi00,
          g_container TYPE scrfname VALUE 'Increase DSP Sales',
          grid1 TYPE REF TO cl_gui_alv_grid,
          gs_layout TYPE lvc_s_layo,
          g_custom_container TYPE REF TO cl_gui_docking_container.
    DATA: active_guid like /bic/mzguid_dsr,
          UNIQUEKEY LIKE /BIC/AZINCOSVI00-/BIC/ZRCRDKEY,
          rpt_per_rec like  /BIC/MZRPTPRDCR,
          dsrcode like /bic/mzdsrcode-/bic/zdsrcode,
          payrec like /bic/mzsubcode.
    CLASS lcl_event_receiver DEFINITION DEFERRED.
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS:
        handle_toolbar
            FOR EVENT toolbar OF cl_gui_alv_grid
                IMPORTING e_object e_interactive,
        handle_user_command
            FOR EVENT user_command OF cl_gui_alv_grid
                IMPORTING e_ucomm.
        PRIVATE SECTION.
    ENDCLASS.
    CLASS lcl_event_receiver IMPLEMENTATION.
    This will create the toolbar
      METHOD handle_toolbar.
       DATA: ls_toolbar  TYPE stb_button.
       CLEAR ls_toolbar.
       MOVE 3 TO ls_toolbar-butn_type.
       APPEND ls_toolbar TO e_object->mt_toolbar.
    append an icon to show booking table
       CLEAR ls_toolbar.
       MOVE 'CREATE' TO ls_toolbar-function.
       MOVE ICON_OKAY TO ls_toolbar-icon.
       MOVE ' ' TO ls_toolbar-disabled.
       APPEND ls_toolbar TO e_object->mt_toolbar.
      ENDMETHOD.
    METHOD handle_user_command.
      CASE e_ucomm.
      WHEN 'CREATE'.
      Insert /bic/azincosvi00 from wa_credit.
      CALL METHOD grid1->free.
      SET SCREEN '200'.
      WHEN 'OTHERS'.
      " DO NOTHING
      ENDCASE.
      ENDMETHOD.
    ENDCLASS.
    Data: event_receiver TYPE REF TO lcl_event_receiver.
    START-OF-SELECTION.
    Selection-Screen BEGIN OF BLOCK 1 with frame title text-001.
    Parameters:  start   like /bic/azincosvi00-BILL_DATE.
    Selection-Screen END OF BLOCK 1.
    Selection-Screen BEGIN OF BLOCK 3 with frame title text-003.
    Parameters: guid         type /BIC/OIZGUID_DSR,
                pcode        type /BIC/OIZPGMCODE,
                scode        type /BIC/OIZSUBCODE,
                reason       type /BIC/OIZEXCPTC,
                quantity(5)  type n,
                discount     type /BI0/OISUBTOTAL_4.
    Selection-Screen END OF BLOCK 3.
    END-OF-SELECTION.
    IF quantity <> '00000'.
       if pcode <> 'SCTMS'.
          message e000 with 'Quantity can only be used with seating spiff'.
       endif.
    ENDIF.
    GET REPORT PERIOD INFO using today's date.
      select single * from /bic/mzrptprdcr INTO rpt_per_rec
          where calyear  = sy-datum(4)
            and /bic/zpgmcode  = pcode
            and ( /BIC/ZRPPRDSTR <= start
                  and /BIC/ZRPPRDEND >= start ) .
      if sy-subrc <> 0.
        message e000 with
        'Report Period NOT FOUND for' pcode ' ' sy-datum(4).
      endif.
    Select Active Guid based upon user entry on selection-screen
    Select single * from /bic/mzguid_dsr into active_guid
                                      where /bic/zguid_dsr = guid
                                      and   /bic/zdsrstat = 'A'.
        If sy-subrc <> 0.
        MESSAGE e000 WITH 'Please enter a valid GUID'.
        ENDIF.
    Select DSR Code based upon a valid guid entered
    Select single /bic/zdsrcode from /bic/mzdsrcode into dsrcode
                                     where /BIC/ZGUID_DSR = guid
                                     and   /BIC/ZDSRCDST = 'A'.
        If sy-subrc <> 0.
        MESSAGE e000 WITH 'GUID entered does not have an active dsr code.'.
        ENDIF.
    Select MAX( /BIC/ZRCRDKEY ) FROM /BIC/AZINCOSVI00 INTO WA_CREDIT-/BIC/ZRCRDKEY.
    UNIQUEKEY = WA_CREDIT-/BIC/ZRCRDKEY + 1.
    WA_CREDIT-/BIC/ZRCRDKEY = UNIQUEKEY.
    WA_CREDIT-PO_NUMBER = UNIQUEKEY.
    WA_CREDIT-/BIC/ZERDAT = SY-DATUM.
    WA_CREDIT-BILL_DATE = SY-DATUM.
    WA_CREDIT-/BIC/ZRPPRDSTR = rpt_per_rec-/BIC/ZRPPRDSTR.
    WA_CREDIT-/BIC/ZRPPRDEND = rpt_per_rec-/BIC/ZRPPRDEND.
    WA_CREDIT-/BIC/ZCUBPRCDT = SY-DATUM.
    WA_CREDIT-/BIC/ZRPTPRDCR = rpt_per_rec-/BIC/ZRPTPRDCR.
    WA_CREDIT-/BIC/ZINCPYPRC = '00000000'.
    WA_CREDIT-/BIC/ZGUID_DSR = ACTIVE_GUID-/bic/zguid_dsr.
    WA_CREDIT-/BIC/ZDSRCODE = dsrcode.
    WA_CREDIT-/BIC/ZPGMCODE = PCODE.
    WA_CREDIT-/BIC/ZUNASSIGN = 'N'.
    WA_CREDIT-/BIC/ZSUBCODE = SCODE.
    WA_CREDIT-/BIC/ZSITE_ICR = ACTIVE_GUID-/BIC/ZSITE_IRG.
    WA_CREDIT-/BIC/ZSUSPEND = 'N'.
    WA_CREDIT-/BIC/ZSUSPNDR = ' '.
    WA_CREDIT-/BIC/ZSITE_IRG = ACTIVE_GUID-/BIC/ZSITE_IRG.
    WA_CREDIT-/BIC/ZSITE_CST = ' '.
    WA_CREDIT-/BIC/ZINCBONUS = '0.00'.
    WA_CREDIT-STAT_CURR = 'USD'.
    WA_CREDIT-DOC_CURRCY = 'USD'.
    WA_CREDIT-SALES_UNIT = 'ST'.
    WA_CREDIT-CALYEAR =  SY-DATUM(4).
    WA_CREDIT-/bic/ZCASEID = SY-UNAME.
    WA_CREDIT-/bic/ZSLSRSN = REASON.
    WA_CREDIT-RECORDMODE = ' '.
    *Depending on Program Code, populate the amounts to be paid.
    Data: fivepercent type p.
          fivepercent = '0.05'.
    If pcode = 'SCW5S' or pcode = 'SCTMS'.
    Select single * from /bic/mzsubcode into payrec
                         where /bic/zpgmcode = pcode
                         and /bic/zsubcode = scode
                         and CALYEAR = sy-datum(4).
          if sy-subrc <> 0.
            write: / '**************  ERROR  ***********************',
                   / '** Missing Program Information for ',
                   /  pcode,
                      scode,
                      sy-datum(4),
            exit.
            endif.
    ENDIF.
    If pcode = 'SCW5S'.
    WA_CREDIT-/BIC/ZINCUSDDS = discount.
    WA_CREDIT-/BIC/ZPAYAMTUS = WA_CREDIT-/BIC/ZINCUSDDS * payrec-/bic/zpayper / 100.
    WA_CREDIT-SUBTOTAL_4 = discount.
    WA_CREDIT-/BIC/ZINC_QTY = ' '.
    Endif.
    If pcode = 'SCTMS'.
    WA_CREDIT-/BIC/ZPAYAMTUS = quantity * payrec-/bic/zpayper / 100.
    WA_CREDIT-/BIC/ZINCUSDDS = '0.00'.
    WA_CREDIT-SUBTOTAL_4     = '0.00'.
    WA_CREDIT-/BIC/ZINC_QTY = quantity.
    Endif.
    If pcode = 'SCTB'.
    WA_CREDIT-/BIC/ZPAYAMTUS = '0.00'.
    WA_CREDIT-/BIC/ZINCUSDDS =  DISCOUNT.
    WA_CREDIT-SUBTOTAL_4 =  DISCOUNT.
    WA_CREDIT-/BIC/ZINC_QTY = ' '.
    Endif.
    *Create ALV Grid to show the user what the record will look like in which they are creating.
    Append wa_credit to alv_itab.
    CALL SCREEN 100.
    *&      Module  PBO  OUTPUT
          text
    MODULE alv_pbo OUTPUT.
      SET PF-STATUS 'MAIN100'.
      SET TITLEBAR  'MAIN100'.
      IF g_custom_container IS INITIAL.
    CREATE OBJECT grid1
    EXPORTING i_parent = g_custom_container.
        CALL METHOD grid1->set_table_for_first_display
          EXPORTING
            i_structure_name = '/bic/azincosvi00'
           CHANGING
            it_outtab        = alv_itab.
        CREATE OBJECT event_receiver.
        SET HANDLER event_receiver->handle_user_command FOR grid1.
        SET HANDLER event_receiver->handle_toolbar FOR grid1.
        CALL METHOD grid1->set_toolbar_interactive.
      ENDIF.
    ENDMODULE.                 " PBO  OUTPUT
    *&      Module  PAI  INPUT
          text
    MODULE alv_pai INPUT.
      save_ok = ok_code.
      CLEAR ok_code.
      CASE save_ok.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'CANCEL'.
          LEAVE PROGRAM.
        WHEN 'BACK'.
          CALL METHOD grid1->free.
          CALL SELECTION-SCREEN '1000'.
        WHEN OTHERS.
        " DO NOTHING.
      ENDCASE.
    ENDMODULE.                " PAI  INPUT
    *&      Module  200_PBO  OUTPUT
          text
    MODULE 200_PBO OUTPUT.
      Write at 5: 'Increase DSP Sales'.
      Skip 1.
      Write at 5: 'USER'.
      Write at 15:'PROGRAM CODE'.
      WRITE AT 25:'SUB CODE'.
      WRITE AT 37:'DISCOUNTED SALES'.
      WRITE AT 67:'PAY AMOUNT US'.
      WRITE AT 80:'REASON'.
    ENDMODULE.                 " 200_PBO  OUTPUT

    There are some problems with ok_code, you need to assign sy-ucomm at each module.  Also the main problem was that you needed leave to list-processing and suppress dialog before writing.  However, when you do this the screens calls change a little. You also needed to use the container correctly.  Apply the correctons below and you'll be all set. Unfortunaley you will have to play around with calling the sel. screen (1000) from screen 100, I don't think call sel. screen 1000 will work properly there (you might need a custome screen instead).  The user may be okay with kicking back out to sa38 after the alv display, however.  Good luck and don't listen to the clowns' comments above. I once worked in that circus,    Hey Guys.
    Instead of this:
    METHOD handle_user_command.
    CASE e_ucomm.
    WHEN 'CREATE'.
    Insert /bic/azincosvi00 from wa_credit.
    CALL METHOD grid1->free.
    SET SCREEN '200'.
    WHEN 'OTHERS'.
    " DO NOTHING
    ENDCASE.
    ENDMETHOD.
    <b>DO THIS:</b>
      METHOD handle_user_command.
        CASE e_ucomm.
          WHEN 'CREATE'.
            Insert /bic/azincosvi00 from wa_credit.
            CALL SCREEN 200.
          WHEN 'OTHERS'.
            " DO NOTHING
        ENDCASE.
      ENDMETHOD.                    "handle_user_command
    <b>Instead of this:</b>
    *Create ALV Grid to show the user what the record will look like in which they are creating.
    Append wa_credit to alv_itab.
    CALL SCREEN 100.
    <b>DO THIS:</b>
      IF g_custom_container IS INITIAL.
        CREATE OBJECT g_custom_container EXPORTING dynnr = '100'
                                          repid = sy-cprog
                                          ratio = '95'.
      ENDIF.
      IF grid1 IS INITIAL.
        CREATE OBJECT grid1 EXPORTING i_parent = g_custom_container.
      ENDIF.
      CREATE OBJECT event_receiver.
      SET HANDLER event_receiver->handle_user_command FOR grid1.
      SET HANDLER event_receiver->handle_toolbar FOR grid1.
      SET SCREEN 100.
      CALL SCREEN 100.
    <b>Instead of this:</b>
    MODULE alv_pbo OUTPUT.
    SET PF-STATUS 'MAIN100'.
    SET TITLEBAR 'MAIN100'.
    IF g_custom_container IS INITIAL.
    CREATE OBJECT grid1
    EXPORTING i_parent = g_custom_container.
    CALL METHOD grid1->set_table_for_first_display
    EXPORTING
    i_structure_name = '/bic/azincosvi00'
    CHANGING
    it_outtab = alv_itab.
    CREATE OBJECT event_receiver.
    SET HANDLER event_receiver->handle_user_command FOR grid1.
    SET HANDLER event_receiver->handle_toolbar FOR grid1.
    CALL METHOD grid1->set_toolbar_interactive.
    ENDIF.
    ENDMODULE. " PBO OUTPUT
    <b>DO THIS:</b>
    MODULE alv_pbo OUTPUT.
      SET PF-STATUS 'MAIN100'.
      SET TITLEBAR  'MAIN100'.
    CALL METHOD grid1->set_table_for_first_display
      EXPORTING
         i_structure_name = '/bic/azincosvi00'
      CHANGING
         it_outtab = alv_itab.
      CALL METHOD grid1->set_toolbar_interactive.
    ENDMODULE.                 " PBO  OUTPUT
    <b>Instead of this:</b>
    MODULE alv_pai INPUT.
    save_ok = ok_code.
    CLEAR ok_code.
    CASE save_ok.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    WHEN 'CANCEL'.
    LEAVE PROGRAM.
    WHEN 'BACK'.
    CALL METHOD grid1->free.
    CALL SELECTION-SCREEN '1000'.
    WHEN OTHERS.
    " DO NOTHING.
    ENDCASE.
    ENDMODULE. " PAI INPUT
    <b>DO THIS:</b>
    MODULE alv_pai INPUT.
      ok_code = sy-ucomm.
      CASE ok_code.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'CANCEL'.
          LEAVE PROGRAM.
        WHEN 'BACK'.
          CALL METHOD grid1->free.
          LEAVE PROGRAM.
    *       CALL SELECTION-SCREEN '1000'.
        WHEN OTHERS.
          " DO NOTHING.
      ENDCASE.
    ENDMODULE.                " PAI  INPUT
    <b>Instead of this:</b>
    MODULE 200_PBO OUTPUT.
    Write at 5: 'Increase DSP Sales'.
    Skip 1.
    Write at 5: 'USER'.
    Write at 15:'PROGRAM CODE'.
    WRITE AT 25:'SUB CODE'.
    WRITE AT 37:'DISCOUNTED SALES'.
    WRITE AT 67:'PAY AMOUNT US'.
    WRITE AT 80:'REASON'.
    ENDMODULE. " 200_PBO OUTPUT
    <b>DO THIS:</b>
    *Take care of all your list output here
      LEAVE TO LIST-PROCESSING.
      SET PF-STATUS 'MAIN200'.
      SET TITLEBAR  'MAIN200'.
      SUPPRESS DIALOG.
      WRITE AT 5: 'Increase DSP Sales'.
      SKIP 1.
      WRITE AT 5: 'USER'.
      WRITE AT 15:'PROGRAM CODE'.
      WRITE AT 25:'SUB CODE'.
      WRITE AT 37:'DISCOUNTED SALES'.
      WRITE AT 67:'PAY AMOUNT US'.
      WRITE AT 80:'REASON'.
    ENDMODULE.                 " 200_PBO  OUTPUT
    <b>Add Moule:</b>
    MODULE 200_pai INPUT.
      ok_code = sy-ucomm.
      CASE ok_code.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'CANCEL'.
          LEAVE PROGRAM.
        WHEN 'BACK'.
          CALL SCREEN 100.
        WHEN OTHERS.
          " DO NOTHING.
      ENDCASE.
    ENDMODULE.                 " 200_PAI  INPUT

  • ALV not getting refreshed when call screen is executed second time

    I have 2 screens 9001 and 9002. In 9001 , I am displaying the fields of a database table in a Table Control. The user has to select some of those fields and click on a button 'Generate ALV'. After clicking , the control navigates to 9002 where I am displaying ALV with data in the selected fields(the other fields remain empty). (using custom container)
    Now there is BACK button in 9002 where i have written LEAVE TO SCREEN  9001. After this if the user again make changes in column selection and click on 'Generate ALV' , then still the old alv data is displayed. (Mind you the structure of alv is same , only the selected fields should show data).
    I am using REFRESH_ALV_DISPLAY also and when i tested this function independently , its working fine (although for interactive alv in the same screen).
    I am making use of <fs> for dynamic internal table and i checked it using breakpoints , during the 2nd time , it contains the correctly updated data so i think the problem lies with alv
    Kindly check this code
    MODULE STATUS_9002 OUTPUT.
      SET PF-STATUS 'ZALV'.
    *  SET TITLEBAR 'xxx'.
      CREATE OBJECT C_CONT
        EXPORTING
          CONTAINER_NAME               = 'CUST_CONT'
      IF SY-SUBRC <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    IF OBJ_ALV IS INITIAL.
      CREATE OBJECT OBJ_ALV
        EXPORTING
          I_PARENT           = C_CONT
      CALL METHOD OBJ_ALV->SET_TABLE_FOR_FIRST_DISPLAY
         EXPORTING
           I_STRUCTURE_NAME              = INP_TABLE
         CHANGING
          IT_OUTTAB                      = <itab>
    ELSE.
       CALL METHOD OBJ_ALV->REFRESH_TABLE_DISPLAY
      ENDIF.
    ENDMODULE.                 " STATUS_9002  OUTPUT
    Edited by: amber22 on Sep 16, 2011 6:45 PM

    Amber,
    Something like:
    *&      Module  STATUS_9001  OUTPUT
    MODULE status_9001 OUTPUT.
      SET PF-STATUS 'ST9001'.
    ENDMODULE.                 " STATUS_9001  OUTPUT
    *&      Module  USER_COMMAND_9001  INPUT
    MODULE user_command_9001 INPUT.
      CASE sy-ucomm.
        WHEN 'GEN'.
          SELECT * FROM spfli INTO TABLE gt_outtab.
          CALL SCREEN 9002.
        WHEN 'BACK'.
          LEAVE.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9001  INPUT
    *&      Module  STATUS_9002  OUTPUT
    MODULE status_9002 OUTPUT.
      SET PF-STATUS 'ST9002'.
      IF obj_alv IS INITIAL.
        CREATE OBJECT c_cont
          EXPORTING
            container_name = 'CUST_CONT'.
        CREATE OBJECT obj_alv
          EXPORTING
            i_parent = c_cont.
        CALL METHOD obj_alv->set_table_for_first_display
          EXPORTING
            i_structure_name = 'SPFLI'
          CHANGING
            it_outtab        = gt_outtab.
      ELSE.
        CALL METHOD obj_alv->refresh_table_display.
      ENDIF.
    ENDMODULE.                 " STATUS_9002  OUTPUT
    *&      Module  USER_COMMAND_9002  INPUT
    MODULE user_command_9002 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          CALL METHOD: obj_alv->free, c_cont->free.
          CLEAR: obj_alv, c_cont.
          CALL METHOD cl_gui_cfw=>flush.
          LEAVE TO SCREEN 9001.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9002  INPUT
    Altough it's not a really nice solution... Why using 2 screens for example? you could use two containers instead...
    Also I would recommand playing with the new salv class for your grids.
    Anyway don't hesitate to give feed-back.
    Kr,
    m.

Maybe you are looking for

  • Extract flat file

    how to extract data  or flat file  from BW into BCS Edited by: psycho on Feb 9, 2011 2:09 PM

  • Service entry sheet - GR quantity is more than confirmed quantity

    We have a service based PO with Acct assignment F and Item category D. We have ticked Goods receipt in delievery tab. We have ticked 1) invoivce receipt and 2) GR-based IV. ( S-based IV is not ticked) There is no purchase order history. While making

  • Cant add new contacts to Address Book Server

    I would like to have a Global Address Book Server where all the user can add/delete contacts. I have done all the setups but in the iMacs (the users) I can see the Address Book Server but NOT the + button to add a new contact. Why ? In the group name

  • Error msg. Changing Modules

    I just downloaded Lightroom 2.6 and when it opens I get "an error occurred when attempting to change modules".  I'm running LR on a MacBook Pro running OS 10.6 I tried shutting down and restarting but to no avail. Any suggestions? Thanks.

  • S_P00_07000134 Generic Withholding Tax Report help needed!!!

    Hi, We have made all the required settings for country Thailand & we are running the report S_P00_07000134 - Withholding Tax -> General -> Generic Withholding Tax Reporting. The process type is STD & Output group is CER. Process followed: 1. Posted a