Editable alv using OO ALV(newly edited row values are not updating )

Hi friends,
i am facing a problem. i am displaying an output alv  using OO ALV.
i am creating a new row and validating the newly created row values and changing if it is not according to the criteria. but the newly edited values are not capturing in method
pr_data_changed->mt_inserted_rows as it contains values only entries entered for the first time .
i am not getting the newly edited values in it.
please do the needful.
Thanks and Regards,
srinivas

Hi!
to rectify the problem in the Code.....
You can Go through this program....for changed values....
https://wiki.sdn.sap.com/wiki/x/AwBIBQ
Regards.

Similar Messages

  • Return the column names for which the row values are not null.

    Hi i m a new guy to db admin, and i need a sql script which should return column names of the particular table. and the returned column should have value (fyi - if the column has null value column name should not come in the sql o/p).
    Exmple:
    table name - A
    s.no name mark status fee
    1 aa 45 p null
    2 bb 30 null paid
    3 cc 35 p paid
    fyi -1) if i give the table name(A) and s.no (2) the o/p should be -- name,mark.
    2) if i give the tablename(A) and s.no (1) the o/p should be --- name,mark,status.
    Thanks
    Krishna.
    Edited by: user13294228 on Jun 14, 2010 10:54 PM

    BTW,
    The previous solution is for all values of the column, if you want a specific row, you can add it in where clause.
    I mean in your example, it you look like:
    SET serveroutput on;
    DECLARE
       l_cnt          NUMBER;
       l_str          VARCHAR2 (255) := '';
       l_table_name   VARCHAR2 (255) := 'YOUR_TABLE_NAME';
       l_col_cond     VARCHAR2 (255) := 'S_NO';
       l_val          NUMBER         := 1;
       CURSOR c_col
       IS
          SELECT column_name
            FROM user_tab_columns
           WHERE table_name = l_table_name;
    BEGIN
       FOR i IN c_col
       LOOP
          EXECUTE IMMEDIATE    'SELECT COUNT ('
                            || i.column_name
                            || ') FROM '
                            || l_table_name
                            || ' WHERE '
                            || l_col_cond
                            || ' = '
                            || l_val
                       INTO l_cnt;
          l_str := l_str || CASE
                      WHEN l_cnt = 0
                         THEN ''
                      ELSE i.column_name
                   END || ',';
       END LOOP;
       l_str := SUBSTR (l_str, 1, LENGTH (l_str) - 1);
       DBMS_OUTPUT.put_line (l_str);
    END;Saad,
    Edited by: S.Nayef on Jun 15, 2010 11:54 AM

  • Subtotal text in ALV using OO ALV

    HI All,
    How to display subtotal text in ALV using OO ALV?
    My output of ALV should be as follows
    COL1    COL2   COL3
    ABC      900       M1
    PQR      100       M1
    M1 Subtotal 1000
    XYZ      2100    M2    
    M2 Subtotal 2100
    I could put the subtotal, but couldnu2019t add subtotal text.
    My code
      TRY.
          CALL METHOD cl_salv_table=>factory
            IMPORTING
              r_salv_table   = g_alv
            CHANGING
              t_table        = gt_report
        CATCH cx_salv_msg .
      ENDTRY.
    u2026u2026
    *Display the table.
      g_alv->display( ).

    Hi
    REPORT  z_alv_demo_total_text.
    Type declaration for final table to display the output
    TYPES: BEGIN OF ty_mara,
            srno TYPE char40, " Storing the total text
            matnr TYPE matnr, " Material
            ersda TYPE ersda, " Creation date
            ernam TYPE ernam, " Created by
            laeda TYPE laeda, " Last change date
            aenam TYPE aenam, " Last change by
            vpsta TYPE vpsta, " Maintenance status
            brgew TYPE brgew, " Gross weight
            ntgew TYPE ntgew, " Net weight
            gewei TYPE gewei, " Weight Unit
           END OF ty_mara.
    Type declaration for table storing temp. data
    TYPES: BEGIN OF ty_mara_tmp,
            matnr TYPE matnr, " Material
            ersda TYPE ersda, " Creation date
            ernam TYPE ernam, " Created by
            laeda TYPE laeda, " Last change date
            aenam TYPE aenam, " Last change by
            vpsta TYPE vpsta, " Maintenance status
            brgew TYPE brgew, " Gross weight
            ntgew TYPE ntgew, " Net weight
            gewei TYPE gewei, " Weight Unit
          END OF ty_mara_tmp.
    Internal table for storing final data
    DATA: i_mara TYPE STANDARD TABLE OF ty_mara INITIAL SIZE 0.
    Work area for final table
    DATA: w_mara TYPE ty_mara.
    Internal table for storing temp. data
    DATA: i_mara_tmp TYPE STANDARD TABLE OF ty_mara_tmp INITIAL SIZE 0.
    Work area for temp. table
    DATA: w_mara_tmp TYPE ty_mara_tmp.
    Object variable for ALV grid
    DATA: oref1 TYPE REF TO cl_gui_alv_grid.
    Field catalog table for ALV grid
    DATA: fieldcat TYPE  lvc_t_fcat.
    Workarea for field catalog table
    DATA: w_field TYPE lvc_s_fcat.
    Internal table for storing info. for ALV grid
    data: i_sort2 TYPE STANDARD TABLE OF lvc_s_sort INITIAL SIZE 0.
    Workarea for sort table
    DATA: wa_sort2      TYPE  lvc_s_sort.
    Workarea for ALV layout
    data: wa_layout     TYPE  lvc_s_layo.
    START-OF-SELECTION.
    Fetch data
    SELECT  matnr   " Material
            ersda   " Creation date
            ernam   " Created by
            laeda   " Last change date
            aenam   " Last change by
            vpsta   " Maintenance status
            brgew   " Gross weight
            ntgew   " Net weight
            gewei   " Weight Unit
      FROM mara
      INTO TABLE i_mara_tmp
      UP TO 100 ROWS.
      CHECK sy-subrc = 0.
    Populate final table
      LOOP AT i_mara_tmp INTO w_mara_tmp.
      Storing the Total text need to be displayed in
      ALV
        w_mara-srno = 'Total weight (Gross & Net)'.
        w_mara-matnr = w_mara_tmp-matnr.
        w_mara-ersda = w_mara_tmp-ersda.
        w_mara-ernam  = w_mara_tmp-ernam .
        w_mara-laeda = w_mara_tmp-laeda.
        w_mara-aenam = w_mara_tmp-aenam.
        w_mara-vpsta = w_mara_tmp-vpsta.
        w_mara-brgew = w_mara_tmp-brgew.
        w_mara-ntgew = w_mara_tmp-ntgew.
        w_mara-gewei = w_mara_tmp-gewei.
        APPEND w_mara TO i_mara.
      ENDLOOP.
    Calling the screen to display ALV
      CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
          Display ALV report
    MODULE status_0100 OUTPUT.
      IF oref1 IS INITIAL.
      Create ALV grid object
      In this case we have not created any custom container in the screen,
      Instead of that dummy container name is passed
      ADVANTAGE: we can run this report in background without any problem
        CREATE OBJECT oref1
          EXPORTING
            i_parent          = cl_gui_custom_container=>screen0
          EXCEPTIONS
            error_cntl_create = 1
            error_cntl_init   = 2
            error_cntl_link   = 3
            error_dp_create   = 4
            OTHERS            = 5
        CHECK sy-subrc = 0.
      Preparing the field catalog
      ZDEMO: Defined in DDIC, it's structure is same as TYPE ty_mara
      defined in the program
        CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
          EXPORTING
            i_structure_name       = 'ZDEMO'
          CHANGING
            ct_fieldcat            = fieldcat
          EXCEPTIONS
            inconsistent_interface = 1
            program_error          = 2
            OTHERS                 = 3.
        IF sy-subrc = 0.
          LOOP AT fieldcat INTO w_field.
            IF w_field-fieldname = 'BRGEW' OR
              w_field-fieldname = 'NTGEW'.
            Summation for Gross & Net weight
              w_field-do_sum = 'X'.
              MODIFY fieldcat FROM w_field TRANSPORTING do_sum.
            ENDIF.
            IF w_field-fieldname = 'SRNO'.
            Hide this field so that it can display it's content i.e.
            Total text in Subtotal level
              w_field-tech = 'X'.
              w_field-no_out = 'X'.
              MODIFY fieldcat FROM w_field TRANSPORTING tech no_out.
            ENDIF.
            CLEAR w_field.
          ENDLOOP.
        ENDIF.
      Populate Sort table with SRNO field so that we can display the total
      text in it's subtotal level
        wa_sort2-spos = 1.
        wa_sort2-fieldname = 'SRNO'.
        wa_sort2-up = 'X'.
        wa_sort2-subtot = 'X'.
        APPEND wa_sort2 TO i_sort2.
      Hide the total line
        wa_layout-no_totline = 'X'.
      Display the ALV grid
        CALL METHOD oref1->set_table_for_first_display
          EXPORTING
            is_layout                     = wa_layout
          CHANGING
            it_outtab                     = i_mara[]
            it_fieldcatalog               = fieldcat
            it_sort                       = i_sort2
          EXCEPTIONS
            invalid_parameter_combination = 1
            program_error                 = 2
            too_many_lines                = 3
            OTHERS                        = 4.
        IF sy-subrc <> 0.
        ENDIF.
      Set the focus on the grid
        CALL METHOD cl_gui_alv_grid=>set_focus
          EXPORTING
            control           = oref1
          EXCEPTIONS
            cntl_error        = 1
            cntl_system_error = 2
            OTHERS            = 3.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    These will defintely help  in u displaying subtotal text check it
    thanks

  • After editing file in ACR 8.6 (Mac) , the file (NEF and XMP) modification dates are not updated

    With both my Mac's, reset Photoshop C  (2014) to previous version 2014.0. Now find that after editing file in ACR 8.6 (Mac) , the file (NEF and XMP) modification dates are not updated. Reloaded camera raw, etc., but still find modification dates are not updated, either using Finder or using Bridge to view dates. Editing other files, PSD, DNG, TIFF, etc., are updated and the information is correctly displayed.

    Ok, not entirely sure what I did but it's now working (Bizarre!). The only thing I did was 'eject' the ACR 8.6 .dmg file from the finder side bar and restart PS CC, so that may have been where I was going wrong all along!
    However, I now have another issue in that there is no preview of the shot in Finder on my iMac when I highlight the NEF file. I assume this is simply because Apple haven't yet released an update for the new D810 NEF files and so the computer doesn't know what it's looking at?!?
    If anyone has any other ideas though, then I'm more than willing to listen.
    Thanks again.

  • HT5181 iPhoto for iOS: Photos in iphoto's Camera Roll folder are not updated automatically with edits from other programs

    How can I solve the problem în the subject?

    How can I solve the problem în the subject?
    What exactly are you trying to do?
    Have you been editing photos in iPhoto and want to add them to your camera rool or photo stream?
    Then do exactly as the article describes, that you lonked to:
    iPhoto for iOS: Photos in Camera Roll are not updated automatically with edits from iPhoto
    Use iPhoto's Sharing to save a copy of the edited photo to the Caera Roll, or explain on mor e detail, what you want to do.
    Regards
    Léonie

  • In iTunes on my windows 7 PC, the Edit/Preferences dropdown window,some of the tab windows are not large enough to see all options that are available.  The borders of the window cannot be draged larger.  As a result, I can not uncheck or check some box's.

    In iTunes on my windows 7 PC, in the Edit/Preferences dropdown window,some of the tab windows are not large enough to see all options that are available.  The borders of the window cannot be draged larger.  As a result, I can not uncheck or check some box's on several of the preferences pages.  The Apple people at the store did not help.  I have lownloaded the latest version of iTunes and this is still an issue.  HELP.

    Is there really nobody else with this problem? Really?

  • Help! Error "...'[Filename].indd' uses one or more plug-ins which are not currently available..." Wh

    Hello guys,
    I called Adobe for help on this, but they said my version of InDesign was too old for them to help me, which was really discouraging. I am getting an error when I try to open my InDesign files, which up until a couple weeks ago, opened fine. I am getting the error below:
    Error "...'[Filename].indd' uses one or more plug-ins which are not  currently available..." When Opening an InDesign 2.0.x Document
    And it lists the following unfound plugins:
    WorldReady.InDesignPlugin
    LILO.InDesignPlugin
    CellStyles.rpIn.InDesignPlugin
    Conditional Text.InDesignPlugin
    If I click okay to try to go past it anyway, I get the following error:
    Error "...Cannot open '[Filename].indd'. Please upgrade your plug-ins to their latest versions, or upgrade to the latest version of Adobe InDesign.
    And it lists the following unfound items:
    AppFramework.framework
    Image.framework
    Table Model.framework
    Spread.framework
    Transparency.framework
    CJKGrid.framework
    Links.framework
    Workgroup.framework
    Assignments.framework
    Print.framework
    Graphics.framework
    Linguistics.framework
    Indexing.framework
    Tet Attributes.framework
    Open Place.framework
    Layer.framework
    Generic Page.framework
    Hyperlinks.framework
    XML.framework
    Path Type.framework
    Master Page.framework
    BNCore.framework
    Text.framework
    Text Wrap.framework
    Package and Preflight.framework
    Document Framework.framework
    CJK Text Attributes.framework
    TOC.framework
    XMedia UI.framework
    Image Filters.framework
    Utilities.framework
    Color Management.framework
    I tried to follow the post http://kb2.adobe.com/cps/327/327956.html, but I'm told I am "not authorized to view the content" on the partners page, so can't complete the instructions.
    I've tried deleting and reinstalling CS2. I've tried removing my preferences. Neither have worked.  I am close to just resorting to Apple's Pages for my layout design.  If anyone can give some fixes here, I would really appreciate it.
    Thank you!

    function(){return A.apply(null,[this].concat($A(arguments)))}
    bryanmcclure12 wrote:
    I've tried deleting and reinstalling CS2. I've tried removing my preferences.
    Verify that you are running ID CS2, InDesign version 4.x.  What level are you patched to from the InDesign>About InDesign drop down splash screen?
    The message alerts to files being version 2.0.x? that is 2 versions back, are these old files?
    Can you create, open, edit, save new files?

  • HT201269 My iphone contacts are not updating to Icloud, I can create a contact in Icloud and it will update to my phone but I cannot create a contact on my phone to have it update in the cloud, I am using Itunes as the bridge

    My iphone contacts are not updating to Icloud or Outlook, I can create a contact in Icloud/Outlook and it will update to my Iphone but I cannot create a contact on my Iphone to have it update in the Cloud/Outlook, I am using Itunes as the bridge. I originally installed the Icloud manager to sync my contacts to Cloud/Outlook, but I did not like the functionality, when I uninstalled the Cloud manager and and installed Itunes I noticed that the none of my contacts in the phone updated to Outlook.
    Thanks in advance.

    Hi Cyclops12,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    iCloud: Troubleshooting iCloud Contacts
    http://support.apple.com/kb/ts3998
    Cheers,
    - Judy

  • HT5622 My apps are not updating as I have no longer access to my eariler apple Id and now I am using a new apple Id which is allowing to download  apps but while updating those apps my iPod wants eariler apple Id password to update what should I do ?

    My apps are not updating as I have no longer access to my eariler apple Id and now I am using a new apple Id which is allowing to download  apps but while updating those apps my iPod wants eariler apple Id password to update what should I do ?

    Hi Kanishk,
    Those apps are forever tied to the Apple ID they were purchased under. You can either delete them and re-purchase them, or you can go to Manage your Apple ID and reset the password on the old Apple ID so you can use it to update your apps: Apple - My Apple ID
    If you decide to continue to use them under the old ID password, I would suggest that when you reset that password, you change it to be the same password as the one you are currently using. That way when apps need to be updated you will only need to know one password and you won't have to be concerned with which Apple ID is displaying.
    Cheers,
    GB

  • We are using SAP SRM to punch out external catalogs. Firefox version 3.5 and below works fine and the items from the catalogs are brought back to SRM .But when we use version 3.6.12 the items are not getting transferred back to SRM from the Catalogs.

    SRM is a procurement system from SAP which we use to purchase goods and service. We have external catalogs like officemax, cdw etc which we punchout the items and bring it to SRM for ordering.
    When we use firefox version 3.5 and below the items which we add from the Catalogs are correctly brought back to SRM for us to order. But when we use versions 3.6.12 the items are not brought back to SRM.
    Internet Explorer 7 and 8 works fine. Is there anyway you can help us.
    Thanks
    Jayant

    Hi,
    Firstly I would suggest you to upgrade your database from Oracle Release 11.2.0.1.0 to Oracle Release 11.2.0.2 . This is the recommended Oracle 11g database version  for SAP solutions. Many of your problem will get resolved with it.
    Question 1:
    So my first question would be is there any other suggestions besides adjusting the mentioned parameter above in order to ensure that no work processors going into hang state due to RFCs' occupying it as this issue always happens at the end of the month only when there are massive users accessing it.
    For immediate resolution the approach you have followed is correct viz limiting number of dialog processes for RFC. Secondly you need to analyze why RFC processing takes so much time. You need check which programs are getting executed by those RFC.
    Generate EarlyWatch report for more detailed view
    Question 2:
    My second question is what went wrong with the libttsh11.so file. How could it be 0 size in PRD when no signs of changes had happen to the PRD system. Is this a proven Oracle Bug or something else since I have never encountered anything like this before.
    The libttsh11.so library cannot be found in the related directory.
    Cause
    The file system is mounted using CIO option, but per Note 257338.1 Direct I/O (DIO) and Concurrent I/O (CIO) on AIX 5L, an ORACLE_HOME on a filesystem mounted with "cio" option is not supported.
    Such a configuration will cause, installation, relinking and other unexpected problems.
    Solution
    Disable the CIO option on the filesystem.
    References
    NOTE:257338.1 - Direct I/O (DIO) and Concurrent I/O (CIO) on AIX 5L
    Hope this helps.
    Regards,
    Deepak Kori

  • HT201441 this is bullshite again, i just updated the phone my partner gave me and now is locked and he doesn't remember ever using icloud and all my icloud accounts are not working, *** what's this now Apple ? good idea to secure us but seriously many wil

    this is bullshite again, i just updated the phone my partner gave me and now is locked and he doesn't remember ever using icloud and all my icloud accounts are not working, *** what's this now Apple ? good idea to secure us but seriously many will have t

    If your device is disabled...
    Connect to your computer in recovery mode per the instructions in http://support.apple.com/kb/HT1212
    You may need to do this more than once.

  • HT204053 My devices, iPad and iPhone, are not updating automatically with pages.  Any suggestions. They use to about one week ago.

    My devices, iPad and iPhone, are not updating automatically with pages.  Any suggestions. They use to update beautifully about one week ago.  I took my MacBook Pro to the Apple store for software issues, and I been having updating issues.  Little help please.....

    Welcome to the Apple community.
    Check all your devices still have documents and data syncing turned on in settings > iCloud and that iCloud is enabled at settings > Pages. If this doesn't help, reset documents & Data from a computer at...
    iCloud.com

  • Hi, I am new to Mac and i managed to install and configure all the services. Now my issue is when i sending mail using the local server to internal, mail are not receiving. Mail queue showing Connection refused error. Please help me

    I am new to Mac and i managed to install and configure all the services. Now my issue is when i sending mail using the local server to internal, mails are not receiving. Mail queue showing Connection refused error. Please help me
    Thanks
    GIRI

    Try this -> http://support.apple.com/kb/TA38632?viewlocale=en_US

  • ALV using methods. Capturing editable cell data.

    Hi, I have created ALV grid using container. I have made one of the cells as editable. Now how can i capture the edited data.

    Hi Vishnu,
    try the below options..
    Have u used
    DATA gr_event_handler TYPE REF TO lcl_event_handler .
    *--Creating an instance for the event handler
    CREATE OBJECT gr_event_handler .
    *--Registering handler methods to handle ALV Grid events
    SET HANDLER gr_event_handler->handle_data_changed FOR gr_alvgrid .
    SET HANDLER gr_event_handler->handle_data_changed_finished FOR gr_alvgrid .
    CASE sy-ucomm.
      WHEN 'SAVE'.
    to reflect the data changed into internal table
          DATA : ref_grid TYPE REF TO cl_gui_alv_grid. "new
          IF ref_grid IS INITIAL.
            CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
              IMPORTING
                e_grid = ref_grid.
          ENDIF.
          IF NOT ref_grid IS INITIAL.
            CALL METHOD ref_grid->check_changed_data.
          ENDIF.
    ENDCASE.
    "User command module at PAI:
    CASE gd_okcde. WHEN 'SWITCH'.
    " switch editable / non-editable PERFORM switch. ...
    FORM switch. "(1) Read current fieldcatalog
    go_grid->get_frontend_layout( ). "(2) Mark / Unmark EDIT flag in fieldcatalog
    LOOP AT gt_fcat INTO ls_fcat WHERE ( fieldname = '<name of column>' ). " which you want to edit
    IF ( ls_fcat-edit = 'X' ).
    ls_fcat-edit = space.
    ELSE.
    ls_fcat-edit = 'X'.
    ENDIF.
    MODIFY gt_fcat FROM ls_fcat INDEX syst-tabix. ENDLOOP. "(3) Set modified fieldcatalog:
    go_grid->set_frontend_layout( ).
    ENDFORM.
    also have a look on the below programs
    BCALV_EDIT_01
    BCALV_EDIT_02
    BCALV_EDIT_03
    BCALV_EDIT_04
    BCALV_EDIT_05
    BCALV_EDIT_06
    BCALV_EDIT_07
    BCALV_EDIT_08
    Use attribute CL_GUI_ALV_GRID=>MC_STYLE_ENABLED to set a cell to status "editable".
    Use attribute CL_GUI_ALV_GRID=>MC_STYLE_DISABLED to set a cell to status "non-editable".

  • Editable ALV: Entered Values are not Converted to Upper Case

    Hi Experts,
    I'm getting stuck with this one...
    Fieldcat-lowercase is initial
    Associated domain is NOT "lower case"
    New values entered by user are not converted automatically to upper case and - in result - chek result of lower case value is "invalid"
    Must conversion be done manually?
    Thanks for your help!
    carsten

    1. You may not press enter key after the input data,
    2. You may get it field's fieldcat references different type. For exam x field like abc-f1. f1 type char 10.But your fieldcat dont use abc-f1 field.
      DEFINE BFCAT.
        CLEAR SFCAT.
        SFCAT-FIELDNAME = &1.
        SFCAT-TABNAME   = 'GT_ITAB_BUF'.    SFCAT-SELTEXT_S = &2.
        SFCAT-SELTEXT_M = &2.
        SFCAT-SELTEXT_L = &2.
        SFCAT-COL_POS   = COLPOS.
        SFCAT-REF_FIELDNAME = &3.
        SFCAT-REF_TABNAME = &4.   
        SFCAT-OUTPUTLEN = &5.
        SFCAT-NO_OUT = &6.
        COLPOS = COLPOS + 1.
        APPEND SFCAT TO TFCAT.
      END-OF-DEFINITION.
      COLPOS = 0.
      BFCAT 'ONRNO'       ''  'ONRNO'       'ZONR_DATA01_S01' '' ''.

Maybe you are looking for

  • Restoring after disconnection from PC and cannot s...

    This is my first post, and I hope I can explain my problem clearly... Have tried to find solution on site without success, so appreciate any help out there! I accidentally disconnected my phone from PC during a PC Suite data transfer (it was automati

  • Search for user role but help poppup display

    Anyone ever trying to search for user role from search action bar or user admin page? Whenever select role and clicked on the magnifying glass icon, help content displays instead of role selection. At first I think this is a bug. But when I asked Cus

  • IPhone 4S sprint issues

    4s

  • TS2634 my ipad will not play auxillary microphone

    I have an ipad 3rd gen and i am running ios6. I just bought an auxiliary lavalier microphone audio technicha atr-3350.  I have purchased two different adapters for ipad for the audio jack trying to get the ipad to recognize it.  I replaced batteries

  • Business connector on Virtual Server

    Hi All, I need a urgent help to know, if there are any disadvantages if we setup a Business connector environment in Virtual Server rather than a Physical server? The situation is, currently I have business connector working on Physical server, for w