How to clear a buffer memory in a report program?

Hi Gurus,
How to clear a buffer memory in a report program?
Regards,
Amit Kumar Singh

Yes i am using USER__COMMAND like this
      FORM USER_COMMAND                                             *
FORM user_command USING u_ucomm     TYPE sy-ucomm
                        us_selfield TYPE slis_selfield.     "#EC CALLED
data : l_memory_id(20) type c value 'BSVA_BUFFER'.
free memory ID l_memory_id.
  CASE u_ucomm.
    WHEN gc_refresh.
      PERFORM clear_data.
     CONCATENATE '-' p_months INTO p_months.
      PERFORM populate_z01.    "List of Plants and Materials
      PERFORM populate_z02.    "List of Periods and dates
      PERFORM populate_z03.    "Report Contents
      PERFORM add_data.
      us_selfield-refresh    = c_x.
      us_selfield-col_stable = c_x.
      us_selfield-row_stable = c_x.
  ENDCASE.
ENDFORM.                    "user_command
      FORM PF_STATUS_SET                                            *
FORM pf_status_set USING ut_extab TYPE slis_t_extab.        "#EC CALLED
  DELETE ut_extab WHERE fcode = gc_refresh.
  SET PF-STATUS 'STANDARD_FULLSCREEN' OF PROGRAM 'SAPLKKBL'
      EXCLUDING ut_extab.
ENDFORM.                    "pf_status_set
Where   gc_refresh is defined as
constants : gc_refresh TYPE syucomm VALUE '&REFRESH'.

Similar Messages

  • HT1338 Hi, does anyone know how to clear a icon saying Microsoft Error Report?

    Hi, Does anyone know how to clear an icon saying Microsoft Error Reporting?

    Where do you see this icon?
    What are you doing when the icon appears?

  • How to print page no/total pges in report programing?

    how to print page no/total pges in report programing?

    Hi
    This is an example:
    In TOP-OF-PAGE you can write:
    WRITE: SY-PAGNO, '/', '-----'.
    When the program has finished to print all data, run a routine like this:
    Declare a variable
    DATA: L_PAGE_COUNT(5) TYPE C,
          V_LINE TYPE I. "The line where page number is written
    * In my example I suppose the page number is always
    * written in the first row of the page.
    V_LINE = 1.
    *  Copy this code to the end of program
    *  Page count will be printed on each page here
      WRITE sy-pagno TO l_page_count LEFT-JUSTIFIED.
      DO sy-pagno TIMES.
        READ LINE V_LINE OF PAGE sy-index.
        REPLACE '-----' WITH l_page_count INTO sy-lisel.
        MODIFY CURRENT LINE.
        ADD 1 TO sy-index.
      ENDDO.
    Max

  • How to clear/free SAP memory

    Hi All,
    How can i make sap memory free.
    Actually i am doing a BDC program where i am generating personnel no through PA40.
    My requrirement is to clear personnel no in each loop pass of the BDC transaction so
    that a fresh personnel no gets generated automatically in each loop pass. Pls help me
    resolving this issue.
    Pls reply asap as it is very urgent.
    Thanks,
    Rupesh

    Hey,
    if you dont mind can you please explain me in detail what effect this will have.
    i am attaching a snippet of my code, where i am performing call BDC.
    FORM sub_bdc_sessions .
    *> Local Constants
      DATA: l_ctumode LIKE ctu_params-dismode VALUE 'A',
             l_cupdate LIKE ctu_params-updmode VALUE 'S',
             l_tcode(4) TYPE c VALUE 'PA40',
             l_sdate(10) TYPE c,
             l_edate(10) TYPE c.
      LOOP AT i_itab INTO wa_itab.
    **> change the start date format to mm/dd/yyyy
        CONCATENATE wa_itab-begda0(2) '/' wa_itab-begda3(2) '/'
         wa_itab-begda+6(4) INTO l_sdate.
    **> change the start date format to mm/dd/yyyy
        CONCATENATE wa_itab-endda0(2) '/' wa_itab-endda3(2) '/'
         wa_itab-endda+6(4) INTO l_edate.
    **> change the start date format to mm/dd/yyyy
        CONCATENATE wa_itab-gbdat0(2) '/' wa_itab-gbdat3(2) '/'
         wa_itab-gbdat+6(4) INTO wa_itab-gbdat.
        PERFORM bdc_dynpro      USING 'SAPMP50A' '2000'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RP50G-EINDA'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'RP50G-PERNR'
        PERFORM bdc_field       USING 'RP50G-EINDA' l_sdate.
        PERFORM bdc_dynpro      USING 'SAPMP50A' '2000'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'T529T-MNTXT(12)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=PICK'.
        PERFORM bdc_field       USING 'RP50G-EINDA' l_sdate.
        PERFORM bdc_field       USING 'RP50G-SELEC(12)'
                                      'X'.
        PERFORM bdc_dynpro      USING 'MP000000' '2000'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'PSPAR-WERKS'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'P0000-BEGDA' l_sdate.
        PERFORM bdc_field       USING 'P0000-ENDDA' l_edate.
        PERFORM bdc_field       USING 'P0000-MASSN'
                                      'CA'.
        PERFORM bdc_field       USING 'P0000-MASSG' wa_itab-massg.
        PERFORM bdc_field       USING 'PSPAR-PLANS' wa_itab-plans.
        PERFORM bdc_field       USING 'PSPAR-WERKS' wa_itab-werks.
        PERFORM bdc_field       USING 'PSPAR-PERSG' wa_itab-persg.
        PERFORM bdc_field       USING 'PSPAR-PERSK' wa_itab-persk.
        PERFORM bdc_dynpro      USING 'MP000000' '2000'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'PSPAR-PERNR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=UPD'.
        PERFORM bdc_field       USING 'PSPAR-PERNR'
        PERFORM bdc_field       USING 'P0000-BEGDA' l_sdate.
        PERFORM bdc_field       USING 'P0000-ENDDA' l_edate.
        PERFORM bdc_field       USING 'P0000-MASSN'
                                      'CA'.
        PERFORM bdc_field       USING 'P0000-MASSG' wa_itab-massg.
        PERFORM bdc_field       USING 'PSPAR-PLANS' wa_itab-plans.
        PERFORM bdc_field       USING 'PSPAR-WERKS' wa_itab-werks.
        PERFORM bdc_field       USING 'PSPAR-PERSG' wa_itab-persg.
        PERFORM bdc_field       USING 'PSPAR-PERSK' wa_itab-persk.
        PERFORM bdc_dynpro      USING 'MP000100' '2000'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'P0001-BTRTL'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'P0001-BEGDA' l_sdate.
        PERFORM bdc_field       USING 'P0001-ENDDA' l_edate.
        PERFORM bdc_field       USING 'P0001-BTRTL' wa_itab-btrtl.
        PERFORM bdc_field       USING 'P0001-ABKRS' wa_itab-abkrs.
        PERFORM bdc_field       USING 'P0001-PLANS' wa_itab-plans.
        PERFORM bdc_dynpro      USING 'MP000100' '2000'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'P0001-BEGDA'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=UPD'.
        PERFORM bdc_field       USING 'P0001-BEGDA' l_sdate.
        PERFORM bdc_field       USING 'P0001-ENDDA' l_edate.
        PERFORM bdc_field       USING 'P0001-BTRTL' wa_itab-btrtl.
        PERFORM bdc_field       USING 'P0001-ABKRS' wa_itab-abkrs.
        PERFORM bdc_field       USING 'P0001-PLANS' wa_itab-plans.
        PERFORM bdc_field       USING 'P0001-VDSK1'
                                      '2001'.
        PERFORM bdc_dynpro      USING 'MP000200' '2025'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'P0002-ANZKD'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'P0002-BEGDA' l_sdate.
        PERFORM bdc_field       USING 'P0002-ENDDA' l_edate.
        PERFORM bdc_field       USING 'Q0002-ANREX' wa_itab-anrex.
        PERFORM bdc_field       USING 'P0002-VORNA' wa_itab-vorna.
        PERFORM bdc_field       USING 'P0002-NACHN' wa_itab-nachn.
        PERFORM bdc_field       USING 'Q0002-GESC2' wa_itab-gesc2.
        PERFORM bdc_field       USING 'Q0002-GESC1'
                                      'X'.
        PERFORM bdc_field       USING 'P0002-GBDAT' wa_itab-gbdat.
        PERFORM bdc_field       USING 'P0002-SPRSL'
                                      'EN'.
        PERFORM bdc_field       USING 'P0002-NATIO' wa_itab-natio.
        PERFORM bdc_field       USING 'Q0002-FATXT' wa_itab-fatxt.
        PERFORM bdc_field       USING 'P0002-ANZKD' wa_itab-anzkd.
        PERFORM bdc_dynpro      USING 'MP000200' '2025'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'P0002-BEGDA'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=UPD'.
        PERFORM bdc_field       USING 'P0002-BEGDA' wa_itab-gbdat.
        PERFORM bdc_field       USING 'P0002-ENDDA' l_edate.
        PERFORM bdc_field       USING 'Q0002-ANREX' wa_itab-anrex.
        PERFORM bdc_field       USING 'P0002-VORNA' wa_itab-vorna.
        PERFORM bdc_field       USING 'P0002-NACHN' wa_itab-nachn.
        PERFORM bdc_field       USING 'Q0002-GESC1' wa_itab-gesc2.
        PERFORM bdc_field       USING 'P0002-GBDAT' wa_itab-gbdat.
        PERFORM bdc_field       USING 'P0002-SPRSL'
                                      'EN'.
        PERFORM bdc_field       USING 'P0002-NATIO' wa_itab-natio.
        PERFORM bdc_field       USING 'Q0002-FATXT' wa_itab-fatxt.
        PERFORM bdc_dynpro      USING 'MP010500' '2000'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'P0105-USRID'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      'UPD'.
        PERFORM bdc_field       USING 'P0105-BEGDA' l_sdate.
        PERFORM bdc_field       USING 'P0105-ENDDA' l_edate.
        PERFORM bdc_field       USING 'P0105-USRID' wa_itab-usrid.
        PERFORM bdc_dynpro      USING 'SAPMP50A' '2000'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/EBCK'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RP50G-PERNR'.
      REFRESH i_bdcmsgcoll.
        CALL TRANSACTION l_tcode USING i_bdcitab
                         MODE   l_ctumode
                         UPDATE l_cupdate
                         MESSAGES INTO i_bdcmsgcoll.
    *>  refresh the bdc data tab
        REFRESH i_bdcitab.

  • How to clear CAN buffer

    Hai
       How to clear the CAN buffer.
    i use CANwrite & CANread in sequence, after every read & write operation i am getting the
    previous write operations CAN data with the consequtive write & read function.
    i want only the responce of respective write operation
    thanks
    sk
    I am using LabVIEW 7.1 & PCMCIA CAN card
    Attachments:
    a.JPG ‏44 KB

    Hi
    All messages received in sequence step 1, should be removed from the queue and no longer available for sequence step 2.
    It seems you receive still data after your Read call in sequence Step 1.
    The only chance is to read all old messages, short before you write the second request in sequence step 2.
    To check whether this is not our fault, please create a Spy logfile using NI Spy from Start>>Programs>> national Instruments>>NI-Spy.
    First run the NI Spy, second your application, single run, stop Spy and save the log file .
    That could help us to see what is going on.
    DirkW

  • How to clear paste buffer

    Does anyone know how to clear the paste buffer on an iphone?

    A Restart or Reset should do it.  Maybe there's an app to clear it?
    BTW, it's called a clipboard if you're going to search for an app.

  • How to clear the OTHER memory cache

    Hi there fire fox help,
    I have read the page on 'How to clear the cache' but this does not seam to clear everything.
    When I am editing a website on my computer and viewing the changes through fire fox everything works great, I just hit refresh.
    But when testing the websites changes online (after unloading it) I can not see any changes, using the refresh button is of no help and clear the cache is not helping either.
    I get quite frustrated with this as I then have to change the name of the web page just to get fire fox to refresh it properly and then change it back again.
    Thanks for your time, Max

    I've tried all these and Firefox still won't load the current image. I know it's there because Internet Explorer does load it. Is there anything else I can try or look at?

  • How to increase maximum buffer memory on MSI Z87-G45 Gaming,s1150?

    good day,
    is there a way to increase the maximum buffer memory for PCI-E X16 ports? e.g. a bios setting that allows this?
    here are my specs:
    -   2 x XFX HD7950 Double Dissipation (FX-795A-TDFC)
    -   MSI Z87-G45 Gaming,s1150   
    -   Intel Core i3-4130,s1150
    -   1 x TNAV6R00 Corsair RM1000 (Gold standard)
    -   ICIDU Value DDR3 1333 (2x4GB)
    -   Windows 7 Home Premium 64Bit

    perhaps I can be a bit more specific regarding my problem
    I am using above described rig for mining purposes. One of the related performance variables is 'thread concurrency' (CGMINER). it is currently set to value 8192, corresponding to about 512mb of buffer memory for the PCI-E ports. I can not increase it, as i get the error that the system is out of buffer memory. Thing is, the system should have a lot more. The PCI-E cards hav 3GB each and my system ram is 2x4GB.
    one relate variable I am already using is the following command line
    setx GPU_MAX_ALLOC_PERCENT 100
    this usually solves above problem, but not in this case...
    anybody got any ideas?

  • How to do Role and Authorization check in report program

    Hi Friends,
    Please provide me your guidance on how to add or give coding to check role authorisation of a particular field, input from selection screen.
    My requirement is,
    If the Fund center filed in my select option parameter has been filled, then I have to check the role authoriszation(which was created already) in the At selection-screen event to check and give access to the user to run the process further.
    Say my Fund center is "SH'
    and my Role authorisation to be settled to all users 'ZMM_BXI'.
    How to implement in report program, Please advise.
    Thanks & Regards
    Babu.

    Sorry SDN,
    Posted in a wrong Forum page.
    Please excuse.

  • How to create 2 transaction codes for same report program with diff title

    Hi All -
      I have created report program and create 2 transaction codes with different short description. I want to display the Tcodes decriptions instead of program attributes title.
    Can anyone pls tell me how to do this?
    Thanks,
    Kannan

    Hi Kannan,
    define 2 titlebars t1 and t2 for the report. In report initialization,
    IF sy-tcode = 't1'
      SET TITLE t1.
    ELSE.
      SET TITLE t2.
    ENDIF.
    Regards,
    Clemens

  • How to open a Promotion from an ABAP report/program?

    Hello SDN,
    I have a normal ABAP report and would like to open a specific promotion (markteing project) after a PAI event.
    I know it is the OBJTYPE=BUS2010030 (the businesspartner is objtype BUS1006), but how can I open it?
    Regards from Germany,
    Friederike

    The solution:
    DATA: lt_time   TYPE crmt_mktpl_cldr_time_ranges,
          lo_tpm    TYPE REF TO cl_crm_mktpl_cldr_data,
         prom_guid TYPE cgpl_guid16.
      CREATE OBJECT lo_tpm
      EXPORTING
        im_add_periods = lt_time.
    Jump to the Marketing Planner
      CALL METHOD lo_tpm->navigate_to_object
        EXPORTING
          im_data_object = promotion_guid.

  • How to reverse the changes made in a report program

    Hi Friends,
        I want to change a report program,but this report program is locked under one tp which is not yet released and it is in development only .I want to change the same report program but don't want to keep the changes done in the existing tp.I want to keep only changes which i will do.
    Please help me to achieve this task.
    Thanks in advance.
    Regards,
    Rajesh

    hi
    if u have done<b> Version Management</b> then u can retrieve the previous version of ur report
    <b>Version Management is done in utilities -> versions ->Version Management</b>
    otherwise its not possible.
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • Clearing Buffer memory.

    Hi All,
    How to clear the buffer memory when the program has been executed. I want to remove this buffer for that program. Any suggestions.
    Thanks in Advance.
    RK.

    Hi Ravi
    The transaction "$sync" will clean all the system buffer. I do not know something cleaning the ABAP buffer.
    *--Serdar

  • Fiori Enhancment - BSP how to clear buffer/cache?

    Hi All,
    So I'm trying to make some enhancmenets to a Fiori app. I have downloaded it and reuploaded is as a new BSP application.
    I wanted to make some changes to the BSP, so I changed the code directly, in SAP.
    I thought I must be doing something wrong, but my changes weren't having any effect.
    To further test this I wrote some nonsense which should ahve broken it... but it still ran fine!
    To test further again I went to SICF and deactivated the node!! ANd it STILL worked fine!
    I opened new sessions in my browser, and new incognito windows, and closed it all and reopened it all, but it STILL works fine!
    There is clearly some kind of caching/buffering going on here, I've found the tables: O2PAGDIR and O2PAGDIRT have buffered values (found out this from ST02)
    But how do I clear it?! I turned buffering off in these tables, to see if that worked, and made another change, and tried to reload the table... but STILL the page loads with no changes.
    Please, can anyone tell me how to clear the buffer/cache that means that when I make UI chanegs in a BSP it doesn't show them?!
    Thank you
    Lindsay

    Hi Mauro,
    I overcame this issue in a variety of ways:
    Firstly, I do all the customisation of the BSP applications locally on my machine.
    Then I upload the whole BSP using the program /UI5/UI5_REPOSITORY_LOAD.
    In order to make sure the display you see in your browser is the up-to-date version, there are various cache clearing things you can do:
    Program /UI5/RESET_CACHEBUSTER - this has no UI, and takes only a second to run
    Transaction /UI5/THEME_TOOL : double click on "Invalidate Cache" to refresh the theme cache (if you have made theme changes)
    Then you have the two model caches mentioned above by Ashish - if you changes the Gateway service but aren't seeing these changes you should run these to ensure the model is up-to-date.
    Browser caches: make sure you browser cache is cleared: for Chrome this is easy: hit F12 (to get Dev toold open), clickk on the cog icon, and tick the box "Disable cache (while DevTootls is open)" - then keep devtools open while refreshing the page.
    The best way to enhance the BSP applications is locally on your machine, and do all your testing locally before uploading.
    I hope this helps, let me know how you get on.
    Lindsay

  • E-Recruiting - BSP application - How to clear buffer?

    Hi,
    I’m debugging one of BSP application (I set an external break point at method of model class).
    Very first time program flow stops at break point but after that it is not stopping there b/c records being fetched from buffer. May I know how to clear the buffer?
    Regards,
    ...Naddy

    Well,
    E-Recruiting Infotypes are buffered within the application as internal tables.
    The buffer is filled, when first time opening an subapplication. It's also filled, when those infotype records have not been read before.
    Refreshing the buffer is only triggered by the application. This is done by "Refresh"-Buttons or Buttons like "Start selection".
    You cannot refresh it yourself, while debugging. It's a global event called by button events.

Maybe you are looking for