Loosing changed contents when used FM REUSE_ALV_GRID_DISPLAY

Hi,
I have used FM REUSE_ALV_GRID_DISPLAY in my program as below.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program       = g_repid
      i_callback_pf_status_set = c_pf
      i_callback_user_command  = 'USER_COMMAND'
      is_layout                = ist_layout      "I_CALLBACK_TOP_OF_PAGE = C_TOP
      it_fieldcat              = ist_fieldcat
    TABLES
      t_outtab                 = ist_outtab.
and kept one column editable by setting EDIT = 'X' and INPUT = 'X' for one column in ist_fieldcat.
Now if user changes contents of a cell in this editable column and clicks on any toolbar button, then changed contetns are not received in USER_COMMAND routine.
But if user changes the contents of a cell in this editable column and then double-clicks anywhere inside the ALV grid, then changed contents are received in USER_COMMAND routine.
I dont want to loose the changed contents of ALV grid, can anybody help in this.
Thanks in advance.
Regards,
Dhiraj

In your USER_COMMAND form check the SY-UCOMM  for button which you have pressed may be you have used '&IC1'  (for double click)
provide your Form USER_COMMAND code here.
Kanagaraja L

Similar Messages

  • How can forbid changing data when using BAPI  'BAPI_MATERIAL_SAVEREPLICA'?

    I am using BAPI  'BAPI_MATERIAL_SAVEREPLICA' to creat material master data in batch.
    But this BAPI also can be used for change mode.
    How to forbid the change of MAT data when use this BAPI?
    TKS a lot~~
    I am looking foward to your response~~~

    you have to find out what the user did before your program goes ahead and starts the BAPI.

  • How can forbid changging data when using BAPI  'BAPI_MATERIAL_SAVEREPLICA'?

    I am using BAPI  'BAPI_MATERIAL_SAVEREPLICA' to creat material master data in batch.
    But this BAPI also can be used for change mode.
    How to forbid the change of MAT data when use this BAPI?
    TKS a lot~~
    I am looking foward to your response~~~
    Edited by: lorryhappy on Dec 22, 2009 11:35 AM

    Hi
    You can achieve it in another way..
    Before Passing Data to BAPI , Check whether the material is existing or not..
    If material is existing (Present in Material Master Tables e.g. MARA ) using
    data: l_matnr like mara-matnr.
    Select single matnr from mara into l_matnr.
    IF sy-subrc EQ 0.
    " Material is existing ==> Do Not Pass to BAPI
    else.
    " Material is NOT existing ==> Pass to BAPI for creation.
    endif.
    Repeat above logic for every material in batch..
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • Can context menues be altered/enhanced when using FM REUSE_ALV_GRID_DISPLAY

    Dear ABAPers,
    as I understood it I would need to have access to the instance of class CL_CTMENU and its method ADD_FUNCTION in order to enhance the standard context menu that I get when I right-click into an ALV-Grid. Am I right that this is not possible when I'm using the FM REUSE_ALV_GRID_DISPLAY ?
    Or is there a way to add my own functions to the context menu when using the FM ?
    Thanks in advance for your help
    Andreas

    Dear ABAPers,
    as I understood it I would need to have access to the instance of class CL_CTMENU and its method ADD_FUNCTION in order to enhance the standard context menu that I get when I right-click into an ALV-Grid. Am I right that this is not possible when I'm using the FM REUSE_ALV_GRID_DISPLAY ?
    Or is there a way to add my own functions to the context menu when using the FM ?
    Thanks in advance for your help
    Andreas

  • More log writer contention when using JDBC Batch Updates?

    So if I'm already seeing log writer contention when I'm commiting inserts one row at a time.
    Why would I see even more contention of log writer ie. commit waits in Enterprise Manager when I batch these inserts using JDBC updates.
    Today I observed significantly more commit waits when I used JDBC batching vs commit one row at a time.

    Please refer
    http://www.oracle.com/technology/products/oracle9i/daily/jun07.html

  • How do I accurately detect overset contents when using tables?

    Hello, all. I am familiar with how to detect overset contents of a text frame, namely:
    if ( myTextFrame.parentStory.contents.length > myTextFrame.contents.length) {
      alert('There is overset text');
    } else {
      alert('There is no overset text');
    However, the contents of my story are three tables, rather than text. Each table contains dozens of cells filled with text. Yet the "length" property of the frame is only 3! How do I accurately read the length of the content given that most of it is in tables so that I can test for overset text?
    In case it helps anyone, a more detailed description is:
    If there are three tables in the story, and only 2 fit on a page-sized text frame, the length property of that frame will be 2. Kind of weird, but not a problem yet.
    In the same scenario, however, if the third table BEGINS on the page but spills over (creating an overset situation), the length property of that frame will be 3 -- causing the test think there is NO overset text! InDesign simply sees 3 characters in the story, and only 3 characters on that page.
    When I look at the "contents" property of the story, it just reads 3 squarish characters. They're obviously some kind of special character. InDesign apparently takes the concept of "table" and just writes a placeholder character for it in the "contents" property.
    Am I going to have to create some routine to loop through every cell of every table and somehow add it all up to get a proper length? How do I just test for overset-ness?
    Thank you!

    Actually, Harbs, I'd already just burst my own bubble by running additional tests! So I have to revise my whole set of instructions.
    IGNORE EVERYTHING I WROTE ABOVE.
    Here is the revised solution, based on the initial solution proposed by Dirk and then revised to work around Harbs bug discoveries. It is essentially a corrected version of Dirks line. Instead of saying:
    app.activeDocument.stories.item(0).tables.lastItem().cells.lastItem().insertionPoints.last Item().parentTextFrames.length
    you would say:
    app.activeDocument.stories.item(0).tables.lastItem().cells.lastItem().parent.parent.insert ionPoints.lastItem().parentTextFrames.length
    That's just the short version. Here's the full code and explanation:
    Summary of problem:
    InDesign treats a table as a single special character, so it does not accurately report the "overflows" property of a text frame containing a table which spills beyond its margins. A text frame will show as not overflowing (i.e. myTextFrame.overflows will return false) if its final table simply begins within its margins--even if most of the table spills well beyond the text frame. So a ten-page table that starts on page one will only considered by InDesign scripting as being one character long (and therefore shown as fitting completely in first frame even when it doesn't). The solution for this, as discovered by Dirk, is to test whether the final cell of the table is in an overflow area.
    The solution:
    You cannot just test whether the cell is overflowing, or whether the parent text frame is overflowing, because InDesign will misreport them and their contents when they are in an overflow area, making it impossible to distinguish a cell overflow from a containing-text-frame overflow. So we just check the parent text frame of the final insertion point, which is after the last table, and see if its length is zero (meaning has no visible contents). If so, the insertion point is in an overflow area!
    So the test to run is this:
    var finalCell = myTextFrame.parentStory.tables.lastItem().cells.lastItem();
    if(finalCell.parent.parent.insertionPoints.lastItem().parentTextFrames.length==0) {  ...your code here...  }
    Of course you'll replace myTextFrame with the one you're dealing with in your own script.
    Example usage:
    This is how I implemented this in my own script. I have an array of text frames which I pass to this function, and by the time I call the function this array contains only one element, just the first large text frame (with my long table already placed inside it). It also relies on a helper function drawTableFrame which is simple and I'll leave out; it just adds a text frame to the new page and sizes it. And of course myDocument I've long ago set to be the document I'm working in.
    // Takes array of text frames, checks for overflow, and adds pages as needed
    function addOverflowPages(whichFrameArray) {
        var i = 0;
        var finalCell = whichFrameArray[0].parentStory.tables.lastItem().cells.lastItem();
        while (finalCell.parent.parent.insertionPoints.lastItem().parentTextFrames.length==0) {
            i++;
            var newpage = myDocument.pages.add(); // add new page
            whichFrameArray.push(drawTableFrame(newpage)); // draw new frame
            whichFrameArray[i].previousTextFrame = whichFrameArray[i-1]; // link new frame to previous one
    I hope this one is solid at last. I have tested it with empty final cell, full final cell, partially-overflowing final cell, and totally-overflowing final cell, and they all work for me. Thanks again to everyone for pointing me in the right direction!

  • GETWA_NOT_ASSIGNED  error occured when using FM  REUSE_ALV_GRID_DISPLAY

    Hi All,
    I am using the Fm REUSE_ALV_GRID_DISPLAY to display output in the ALV grid.
    I am getting the following error
    "Field symbol has not yet been assigned."
    Error analysis                                                                  
        You attempted to access an unassigned field symbol                          
        (data segment 32820).                                                                               
    This error may occur for any of the following reasons:                      
        - You address a typed field symbol before it is set using ASSIGN            
        - You address a field symbol that points to a line in an internal table     
          that has been deleted                                                     
        - You address a field symbol that had previously been reset using           
          UNASSIGN, or that pointed to a local field that no longer exists          
        - You address a global function interface parameter, even                   
          though the relevant function module is not active,                        
          that is it is not in the list of active calls. You can get the list       
          of active calls from the this short dump.                                                                               
    I used the Fm as :
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
        I_INTERFACE_CHECK                 = ' '
         I_BYPASSING_BUFFER                = 'X'
         I_BUFFER_ACTIVE                   = ' '
         I_CALLBACK_PROGRAM                = sy-repid
        I_CALLBACK_PF_STATUS_SET          = ' '
         I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
         I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'
        I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
        I_CALLBACK_HTML_END_OF_LIST       = ' '
        I_STRUCTURE_NAME                  =
        I_BACKGROUND_ID                   = ' '
        I_GRID_TITLE                      =
        I_GRID_SETTINGS                   =
         IS_LAYOUT                         = t_layout
         IT_FIELDCAT                       = ls_slis_fieldcat
        IT_EXCLUDING                      =
        IT_SPECIAL_GROUPS                 =
        IT_SORT                           =
        IT_FILTER                         =
        IS_SEL_HIDE                       =
         I_DEFAULT                         = 'X'
         I_SAVE                            = 'A'
        IS_VARIANT                        =
        IT_EVENTS                         =
        IT_EVENT_EXIT                     =
        IS_PRINT                          =
        IS_REPREP_ID                      =
        I_SCREEN_START_COLUMN             = 0
        I_SCREEN_START_LINE               = 0
        I_SCREEN_END_COLUMN               = 0
        I_SCREEN_END_LINE                 = 0
        I_HTML_HEIGHT_TOP                 = 0
        I_HTML_HEIGHT_END                 = 0
        IT_ALV_GRAPHICS                   =
        IT_HYPERLINK                      =
        IT_ADD_FIELDCAT                   =
        IT_EXCEPT_QINFO                   =
        IR_SALV_FULLSCREEN_ADAPTER        =
      IMPORTING
        E_EXIT_CAUSED_BY_CALLER           =
        ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = gt_output
       EXCEPTIONS
         PROGRAM_ERROR                     = 1
         OTHERS                            = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Any help on this would be appreciated,
    Thanks in advance.
    Sharat.

    This is the error i get when i try to read the input data entered on the ALV grid. The code shown is from the class cl_gui_alv_grid.
    183           translate ls_cells_temp-value to upper case.   "#EC TRANSLANG
    184           assign ls_cells_temp-value to <l_currency>.
    185         else.
    186           assign ls_cells_temp-value to <l_currency>.
    187           clear <l_currency>.
    188         endif.
    189         if <l_currency> is initial.
    190           assign component ls_fieldcat-qfieldname
    191                            of structure <ls_wa> to <l_currency>.
    192         endif.
    193         if <l_currency> is initial.
    194           assign ls_fieldcat-QUANTITY to <l_currency>.
    195           if sy-subrc ne 0.
    196             assign space to <l_currency>.
    197           endif.
    198         endif.
    199       endif.
    200     else.
    201       if not ls_fieldcat-currency is initial.
    202         assign ls_fieldcat-currency to <l_currency>.
    203       elseif not ls_fieldcat-quantity is initial.
    204         assign ls_fieldcat-quantity to <l_currency>.
    205       else.
    206         assign space to <l_currency>.
    207       endif.
    208     endif.
    209
    210 *   If field has not DDIC referencen
    211     if ls_fieldcat-ref_table is initial.
    212 *--   Formal field check without DDIC reference
    >>>>       call method me->formal_field_check_no_ddic
    214         exporting
    215           i_currency    = <l_currency>
    216           i_value       = ls_cells-value
    217           i_row_id      = ls_cells-row_id
    218           i_tabix       = l_tabix
    219           is_fieldcat   = ls_fieldcat
    220         importing
    221           eflg_invalid  = eflg_invalid
    222         changing
    223           c_field       = <l_field>
    224           ct_good_cells = et_good_cells
    225           ct_mod_cells  = et_mod_cells.
    226     else.
    227 *--   Formal field check with DDIC reference
    228       call method me->formal_field_check_ddic
    229         exporting
    230           i_currency    = <l_currency>
    231           i_value       = ls_cells-value
    232           i_row_id      = ls_cells-row_id

  • Why do arrow heads change ends when using the pen tool?

    1. I create a horizontal line
    2. I change it to a right ended arrow head selected from my own graphic styles
    3. I then want to extend the left side ( non arrow end) with the pen tool
    4. I click the non arrow end to extend the line in a vertical direction
    5. The atrrow head changes to the other end
    Why?

    Illustrator's arrowheads don't know right from left, they only know start from finish. Each open path in Illustrator has a beginning and an end. When you use the pen to extend a path you make the end you work from the end, even if it was once the beginning. Deselect the path, then click on the other end with the pen tool to restore the path direction.
    If all you are doing is making the path longer I'd would be better to just move the end point.

  • Changing Content Database using Powershell

    Hi,
    I have a web application created. I have a another content DB, which I want to associate to the existing web application.
    I mean, the existing content db should be removed and the new Content db attached.
    What are the steps to achieve the same using powershell?
    Thanks

    Hi,
    For your issue, you can
    Dismount-SPContentDatabase and Mount-SPContentDatabase.
    A typical command to detach a database would be:
    Dismount-SPContentDatabase -Identity <contentdb>
    A typical command to attach a content database would be:
    Mount-SPContentDatabase -Name <contentdb> -DatabaseServer <dbserver> -WebApplication <webappname>
    Here is a link about
    Managing SharePoint Content Databases with PowerShell, you can use as a reference:
    http://www.mssqltips.com/sqlservertip/2608/managing-sharepoint-content-databases-with-powershell/
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Loose subversion password when using data modeler on the same svn reposit.

    Hello,
    We are on windows Xp sp3 with tortoire svn. Data modeler 3.0.0 665
    We use data modeler to edit our Data model.
    There is a svn repository for all data and source of our projet.
    Problem :
    When running data modeler and open a model which is on the svn repository, a update on the repository with svn ask always the svn password.
    This problem come also if you make a simple repository refresh on data modeler.
    It seem that data modeler override always the file in directory D:\Documents and Settings\...\Application Data\Subversion\auth\svn.simple which contains subversion authentification for svn.
    It forget the svn password and put the file read only.
    Do you know this problem ?
    is any solution or work arround exist ?
    For exemple, we can do a script which always replace the modified file. I try to make it read only without success.
    Regards.

    Hi,
    some of the Data Modeler svn-functionality is inherited from JDeveloper.
    Unfortunately, working with outer svn tools (as Tortoise) is a well-known issue for JDeveloper, because it encrypts and stores the password in another file, and tries to protect the file that you've mentioned.
    See more here: SVN Credentials and JDeveloper 11g
    Regards
    Ivaylo

  • Subtitles change language when using next button

    Hi,
    I keep having this problem. I frequently create DVDs in DVDSP 3 with multiple languages, multiple tracks, and often stories within the tracks. Everything works fine in simulator and when played back on a computer. However when I play back on DVD player, I get a recurring problem. If I am watching a video with French subtitles, and I hit next button and I happen to be at the end of the video, the DVD jumps to the first story of the next track (which is fine), but subtitles change to English. It's driving me crazy, any ideas? thanks! - Melissa
    G5   Mac OS X (10.4.2)  

    Think I got it, few ways to approach
    (take a look also at
    http://discussions.apple.com/message.jspa?messageID=2069686#2069686,
    http://discussions.apple.com/thread.jspa?threadID=430935&tstart=0
    think I did more explaining there)
    Set up menu/first play - You could just set a GPRM, lets say GPRM 0, to the value of the button pressed (1024 is 1, 2048 is 2 etc.) then at anytime thereafter have the tracks or stories execute a pre script to set the subtitle.
    So the script after the button pressed would include the following (assume button1 is french, button 2, spanish, button 3 english and that subtitle streams the same order, does not have to be)
    mov GPRM 0, SPRM 8 //SPRM 8 is the button that was pressed
    div GPRM 0/1024 // changes 1024, 2048 etc to 1, 2, 3, etc.
    And a prescript for each track would be as follows
    //If button 1 (French) was selected set to stream 1 for
    SET STREAM 1 IF GPRM 0 = 1
    SET STREAM 2 IF GPRM 0 = 2

  • Safari changes font when used latin extended character

    Greetings,
    So this is quite annoying - I whenever I use any characters from extended latin on my website Safari decides to turn them into a completely different font.
    Whereas Chrome shows no intention of doing so.
    Any ideas how one could prevent this from happening?
    Herein I have included some screenshots.
    Safari Version 8.0 (10600.1.25.1):
    Chrome Version 40.0.2214.94 (64-bit):
    Thanks,
    Scott

    SOLUTION
    So I managed to figure out why this happened. This was in fact not a matter of browser interpretation, rather it was due to incomplete import of the extended version of font.
    ANYONES who is using google extended latin fonts has to acquire the FULL link in my case it was
    http://fonts.googleapis.com/css?family=Oswald&subset=latin,latin-ext
    where as initially the link that made the font appear incorrectly was
    http://fonts.googleapis.com/css?family=Oswald
    so the missing part was &subset=latin,latin-ext, in your case it will most likely be different, so you have to go to google fonts or whatever else source you are using and get the specific link for the full version and paste it into you style.css stylesheet file.
    Thanks to everyone who replied,
    Hope this helps many millions of people throughout milleniums.
    Sincerely,
    Scott Agirs

  • Mail 8.0 deleted email content when using mail drop

    Using Mail 8.0 on Yosemite 10.1 I just spent a very long time answering an email. I attached a PDF of 30 MB before sending and the window to say it would be sent via mail drop appeared. I clicked Yes.
    Later I checked sent messages to see the email I wrote and make sure it all went through OK. However, in the email only a link to the mail dropped PDF was there, and all the text I wrote had disappeared.
    Nothing in sent, or saved boxes. It's a Gmail account, so I checked sent messages from the web interface for Gmail  and also there was just the link.
    I did a test and sent another email with said attachement and some random text, and it came out ok, it even had a fancy download button rather than some super long link.
    What is going on? can I get my email back? Please help!

    I've had - and am having -- all kinds of problems with Mail 8.0.  Is there an update yet to fix the many, many ISSUES with 8.0?
    I am ready to ditch the program unless fixes are forthcoming.

  • How do I change filename when using this.maildoc?

    I am using a button and the this.maildoc method to send my form.  The email recipients, subject and body are all dynamic based on the user's field entries.  Is there a way to make the attached filename dynamic as well?  Thanks!

    Not directly, only if you use a folder-level script to first save the file
    under a different name.

  • Change cursor when using open browswer window behavior

    Okay, I give.  I added an "open browser window" behavior to a line of text, which is working.  How do I get the cursor to change to a finger on rollover?  Thanks!!!!  ttt

    You need to give the text a 'null' link, an example of which Nancy has written for your.
    You may want to take a look at David's Smart Link extension:
    http://foundationphp.com/tools/
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates | Tutorials | SEO Articles
    http://www.DreamweaverResources.com
    Web Design & Development
    http://www.perrelink.com.au
    http://twitter.com/nadiap

Maybe you are looking for

  • Visual Studio 2008 Crashes when I click on the [Main Report Preview] button

    I started with Crystal Reports Basic that is bundled with Visual Studio, and then downloaded and installed the free trial of Crystal Reports Developer 2008, and the Visual Studio Integration Manager, the issue has not been affected. After adding a cr

  • Badi or User Exit to close PR in ME59n

    Dear All, I have implemented a enhancement for ME59n(EXIT_SAPLME59_001). Here we club the PR which has same material, vendor, date..... And add the quantity to first PR quantity and create a single PO against all the PR. PR No              Material  

  • ORA-01031: insufficient privileges problem

    Hi all, I am trying to create the below procedure in the BOLMIN schema which in turn selects data from the tables of VALMIN schema. and I get ORA-01031: insufficient privileges error. CREATE OR REPLACE PROCEDURE BOLMIN.prcs_load_data IS BEGIN FOR c I

  • Runtime errors - DYNPRO_FIELD_CONVERSION

    Dear friends, what is the Runtime errors - DYNPRO_FIELD_CONVERSION.It is executing by the transaction code PA30,PA48 & users are ECC user (H ids). How can this error be eliminated.Pls help Rgds Amit

  • Creating New Menus that follow the playing of a movie clip

    I was wondering if it is possible to have iDVD display a new menu after playing a movie clip off of the first menu. Then from that second menu if it would then be possible to play a new movie clip. Essentially I want to create a progressive DVD where