Clear ALV Data

Hi All,
I am very new to Webdynpro (ABAP) and have run into an issue, I have a main screen from which I am calling the ALV report screen. First time data coming fine, but when I go back and change the selection parameters and then execute the report again I am still getting the old data. If I run the same report, for the first time with the new parameters then also the data comes fine. Basically the issue seems to be clearing the Context node which provides data to the alv.
If I use the invalidate() on the outbound plug of alv report, it clears the data but doesn't bring the data next time.
Kindly let me know how should I do this, if you can provide some code that will be great.
Your immediate help will be greatly appreciated and rewarded.
Thanks,
Barjinder Singh.

Hi Barjinder,
"In the init method of the report view I am calling the FM and getting its data into the context."
the problem is right here....
The WDDOINIT method runs only once....when you run your application....just move this FM call into your action button code....which your press to fire the plug to your result button...
so something like this:
your action method() for the button
your FM call to get data
than fire the plug to the result view....
end of your action method....
that is all...
take care...
J.

Similar Messages

  • WD ABAP - ALV data into Xstring

    Hello,
      In a WD ABAP application, there is a ALV table and on the ALV tool bar I have a new push button, when it is pressed, I need to extract the ALV data(along with column names) into XSTRING, which is similar to the data that comes into PDF when 'Printversion' button is pressed. Is there any way to do this?
    Thanks.
    Nagendra

    Solved the problem. The requirement was to convert ALV into PDF xstring. The sample code is .
      DATA: lo_interfacecontroller1 TYPE REF TO iwci_salv_wd_table ,
            lo_component            TYPE REF TO cl_salv_wd_c_table,
            lo_result               TYPE REF TO cl_salv_wd_result_data_table,
            lo_pdf                  TYPE REF TO cl_salv_wd_export_pdf,
            lv_pdf_content          TYPE xstring.
      lo_interfacecontroller1 =   wd_this->wd_cpifc_alv( ).
      lo_component ?= lo_interfacecontroller1->get_services( ).
      lo_result = lo_component->r_result_data.
      CREATE OBJECT lo_pdf.
      CLEAR: lv_pdf_content.
    Call the following method to generate the xstring for PDF.
      lo_pdf->execute(
        EXPORTING
           result_data = lo_result
           r_component = lo_component
        IMPORTING
           resultstring = lv_pdf_content ).

  • How Long will it take to reset the 16gb ipad with clear all data in it.

    How Long will it take to reset the 16gb ipad with clear all data in it.

    I have the same problem. I try to reset my ipad / iphone 3g using the reset and delete all content on general. It is almost 2 days now but my ipad / iphone 3g are not yet finish. Only apple logo / looping circle appears on the screen. What will i do? thanks... iOS 5.0.1

  • May I clear all data in my cloud and start over

    I have had a joint Apple account with my wife. I want to get a separate Apple account for her and then clear my data on the could and use the current account as only mine. How may I do that?

    Click here and follow the instructions. If the computer originally shipped with Mac OS X 10.6.8 or earlier, when you reach step 5, insert its original disk, restart with the C or Option key held down, use the Disk Utility to erase the internal drive, and install a fresh OS.
    (120133)

  • Some music files do not show up in google play music app library.  I did clear cache/data and restarted phone.  The music is stored on the SD card.  Most of the music in the library is in the same folder on the sd card.  I can play the song from file mana

    some music files do not show up in google play music app library.  I did clear cache/data and restarted phone.  The music is stored on the SD card.  Most of the music in the library is in the same folder on the sd card.  I can play the song from file manager, but it still is not in the music library in play music.

    Cyndi6858, help is here! We'd be happy to help figure this out. Just to be sure though, the Droid Maxx should not have an SD card. Is this the Droid Razr Maxx? How did you add the music to the device? Are you able to see the files and folders located on the SD card or device when plugged in?
    Thanks,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • How to clear the data in my page after user enter submit button

    hi......
    how to clear the data's in my page after user enter submit button. Actually while pressing first time itself the data is uploaded in database.

    Hi Nazeer,
    Instead of doing it on the same button better create a separate button for this functionality, As per my understanding you want to clear these fields to create new record so that you can enter a new record so for this you just need to insert a new row in VO.
    Still if you want to do it on the same button then you need to put the check that particular record is not dirty if it is not then create new record else create new record.
    One more thing if you will clear on the second click of a button how will you update your record??
    Regards,
    Reetesh Sharma

  • Problem in ALV Data Exported to Excel

    Dear all,
    When an ALV data is exported to Excel i see that the data is shown in 2 lines
    and a blank line is inserted between each data.
    Can any body please help.
    with rgds
    Ranjith Singh

    Hi Ranjith,
    How many columns that you extracted to excel from ALV?
    Would you give more specific to your case?
    As I remember, ALV has its limits for extracting number length of column to excel.
    Regards,
    Dondi.

  • Clearing Document Date do not follow the define clearing date in F-03.

    Hi,
    Clearing Document Date do not follow the define clearing date  BKPF-BUDAT in F-03.
    My user received the unpresented check statement from the bank on 31 Dec 2010. As 1 Jan 2011 is holiday and he came back to the office on 5 jan 2011. He post manual upload (Debit : Bank Outgoing and Credit : Unpresented Cheque) posting date 31.12.2010 (period 12/2010 and 01/2011 still open) . Hence the next step (same date on 5 Jan 2011) is to clear the Bank outgoing using F-03. He put 31.12.2010 as his Clearing date BKPF-BUDAT but when the system post the clearing date is 04/01/2011.
    Please help

    Hello,
    Hope it helps.
    But i can recall for the EBS bank statement upload into a previous fiscal year, ie, 31.12.2010.  I had to close the current fiscal year temporarily.
    See what happens in your system when it tries to clear with F-03.  Though as mentioned re-check as F-03 will default to the system date --- today.
    Regards
    Waza

  • Clearing the data buffer from the input fields

    Hi,
    I am using an user exit CONFPP02 for the Tcode: co11n. I have written a program such that the confirmation numbers having the status CNF will not be allowed to be processed. The whole confirmation is terminated when the system checks the confirmation number and its status as CNF. If the status of the confirmation number is PCNF, the program allows the further processing of the Tcode Co11n.
    The problem starts when the user enters the PCNF status confirmation number and enters, the system stores the values in the various input fields. Now without exiting the initial confirmation screen, if the user replaces the Confirmation number of the PCNF status to the Confirmation number of the CNF status , the system issues a warning message:"  Confirmation no. or order/sequence/operation has been changed
    However, the input fields still contain default values from thepreceding confirmation". if the user says yes, the program written is bypassed , thus allowing the reconfirmation of the CNF confirmation number  into PCNF confirmation number .
    Can anybody suggest a suitable method to clear the data stored defultly in the input fields so that the program can be made to work.
    With regards,
    Avinash.S
    Mobile no:09996192456

    Hi Gilad,
    I never use Preview and did not use Preview at all before sending the document over to my most recent client either.
    I only opened Preview up this morning after I discovered that all of the form data had disappeared on his end! And the only reason I opened up Preview was because I already knew it looked fine in Acrobat so wanted so wanted to view the form in a different application.
    My client would not even have notified me about it had he not sent the signed form back to me and I saw there was no data there! I then called him and asked him about the missing data and he said that he thought I had simply sent over the form purposely with blank fields:(
    I have just emailed him to ask him what application he opened it up in. My understanding is that he is on Windows because ne mentioned to me his company was using Windows when we last spoke. Perhaps he has a personal Macbook where he opened it? I just don't know and can hopefully soon find out:)
    But THANK YOU for letting me know about that script! I appreciate it:) I have now downloaded and installed it and will just have to use it on ALL of my forms before sending them out:)

  • How to clear GPS data?

    I have some shots that have been tagged with incorrect GPS data, and imported to LR. Is there a way to clear this data in LR's database?
    Micke

    No. Your only solution is to use a third party utility like ExifTool to clear GPS data or GeoSetter to correct it, then read back the metadata. Don't forget to save metadata before doing this, to make sure your files are in sync with your Lightroom catalog.

  • Clear the data region using Maxl

    Hi,
    I am trying to clear the data region using Maxl query, I am getting error like: Dynamic members not allowed in data clear region specificaion.
    +alter database 'PGSASO'.'ASOPGS' clear data in region 'CrossJoin(CrossJoin({[Actual]},{[FY11]}),{[Inputs].Levels( 0 ).Members})';+
    (Inputs( not a dynamic member, parent of this meber is a dynamic) comes under Account dim).
    I have tried the below code also(Syntax error in input MDX queryon line 1 at token ',').
    alter database 'PGSASO'.'ASOPGS' clear data in region 'CrossJoin([Inputs].Levels(0), CrossJoin({[ACT]},{[FY11]}))';
    Can anyone do let me know if there is any syntax error or alternate function would be available for clearing level-0 members/descendants under Dynamic parent...
    Thanks,
    Bharathi

    There is no syntax error in your statement. The problem is you input dimension(I guess) has some members with formulas on them and the clear statement does not allow those members to be in the clear. Ther ware a couple of ways around it. seperate out the members with formulas under a different parent and then modify the crossjoin to only pick up the level zero members that are not in that parent or you could put a UDA on formula members and use the exclude command to exclude anything with that UDA

  • Clearing the data on logout

    Hi all,
    Flex newbie here.. I just want to know how to clear the data
    that i fetched from server on logout. My application have multiple
    components and each component have different states. Once i logout
    and login, am getting the previous state before i logout. How to
    solve this problem? please help me out.

    I'd start with the "loginResultHandler" function and use it
    to direct the user to a specific component within a ViewStack
    whenever they login or log back in.
    For example:
    [Bindable]
    private var currentUser:User = new User();
    private var currentFunction:Function;
    private function loginResultHandler(event:ResultEvent):void {
    currentUser = event.result as User;
    if (currentUser.loggedIn)
    if (currentUser.roles == "admin")
    Application.application.myViewStack.selectedIndex=0;
    else
    Application.application.myViewStack.selectedIndex=1;
    loginForm.visible=false;
    currentFunction.call();
    else
    Alert.show("Login unsuccessful", "Server Authentication");
    This may or may not be the answer you are looking for but it
    should get you going in the right direction. Check out some of the
    great Flex tutorials at Lynda.com (
    http://movielibrary.lynda.com/html/modListing.asp?pid=205)
    Good luck!

  • Any way to clear application data in b2g/Firefox OS?

    Is there any way to clear application data without uninstalling the whole app?
    Say an app signs someone into Google, there is no way to clear that account data without directing them to a Google logout page. It would be nice to just be able to clear all the login/cookie data that gets stored in the app. This is useful with OAuth - the tokens can be cleared but the Google account can't be logged off (easily).

    There doesn't seen to be a way to clear data at this moment for apps, you can have a look into app permissions or try deleting the app and reinstalling.

  • Problem in refreshing ALV data in container (OOALV)

    Hello Experts, Good Day.
    I am developing a Modulepool program which is having two screens, one (101) is for Entering data (used TC with wizard) then saves it in database table and another screen (102) is to display saved data. Now I am facing problem in second screen (102).
    The problem I am facing is when I am displaying/calling 102 screen for multiple times, the internal table is getting updated but the previous ALV data is not getting updated/modified.
    I have searched the forum and found some methods/procedures for refreshing the data but I am not able to achieve this.
    Methods I found and Problems with them:
    1. FREE the Container and Grid objects usng FREE( ) method.
    If I free boht the Container and Grid objects data getting updated but another all the columns are getting displayed twice for second time, thrice for third time and so on... I have coded for this in PBO of 102 Screen.
    If I Free only Grid object, totally the table is getting disappeared when I display ALV Second time.
    2. When I use Refresh the table using CALL METHOD LR_GRID->REFRESH_TABLE_DISPLAY( ) then only second time the ALV is getting refreshed but if I display further it is displaying 2nd ALV data from 3rd time onwards (not getting updated from 3rd time).
    Coded as below in PBO OF 102 Screen:
    IF LR_GRID IS BOUND.
       CALL METHOD LR_GRID->REFRESH_TABLE_DISPLAY( ).
    ENDIF.
       CREATE OBJECT LR_GRID
         EXPORTING
           I_PARENT          =  LR_CONT
         EXCEPTIONS
           ERROR_CNTL_CREATE = 1
           ERROR_CNTL_INIT   = 2
           ERROR_CNTL_LINK   = 3
           ERROR_DP_CREATE   = 4
           OTHERS            = 5.
       IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    3. When I use FLUSH method: this is not at all working out, I have called this after displaying ALV in PBO.
        CALL METHOD CL_GUI_CFW=>FLUSH( ).
        CALL METHOD CL_GUI_CFW=>DISPATCH( ).
    My code to display ALV which is written in PBO of 102 is attached, please find the attachment.
    Experts, please let me know where I am going wrong. I wish to know the solution in all the above ways. Please help me.
    Thanks & Regards,
    Vijay

      LR_GRID->SET_TABLE_FOR_FIRST_DISPLAY(
    *    EXPORTING
    *      I_BUFFER_ACTIVE               =
    *      I_BYPASSING_BUFFER            = 'X'
    *      I_CONSISTENCY_CHECK           =
    *      I_STRUCTURE_NAME              = 'ZGVK_MP_DEMO'
    *      IS_VARIANT                    =
    *      I_SAVE                        = 'X'
    *      I_DEFAULT                     = 'X'
    *      IS_LAYOUT                     =
        CHANGING
          IT_OUTTAB                     = GT_DATA[]
          IT_FIELDCATALOG               = LT_FCAT
    *      IT_SORT                       =
    *      IT_FILTER                     =
        EXCEPTIONS
          INVALID_PARAMETER_COMBINATION = 1
          PROGRAM_ERROR                 = 2
          TOO_MANY_LINES                = 3
          OTHERS                        = 4 ).
      IF SY-SUBRC <> 0.
       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

  • Error SOURCE IS the same as the target Task name Clear Cube Data

    Hi,
    When I am trying to use the Clear Package I am getting an error -
    "Source is the same as the Target"
    Any help with how to resolve this ?
    thx

    Hi,
    Please check if the Clear DM package is linked with the Process chain for Clearing the Data.
    We usually get the error you are mentioning in Copy Function when we have same source and Destination members.
    Hope this helps,
    Regards,
    G.Vijaya Kumar

Maybe you are looking for