OO ALV validation check without event DATA_CHANGED and results via popup

Hi Gurus,
I'm working on SAP ECC 6.0 and I'm facing a problem during the ALV validation check. My requirement is to show an ALV with one editable field. In addition I have to pre-initialize this field in order to give a reference value to the user, but this is not always correct, or better, this field represent the maximum amount available, but, because of other validation checks, this field is not always correct (and it's ok, it's not a problem), and if it is greater than another amount I have to display an error.
I was thinking about catching the event DATA_CHANGED and do the checks inside of it. It works but not completely, because if the user do not change anything the event is not raised and I cannot do my checks.
My solution is to do the checks without catching the DATA_CHANGED event and display the errors in a separate popup window.
The checks are ok, but I have problems during the displaying of the results: I would like to use the class CL_ALV_CHANGED_DATA_PROTOCOL in order to display the errors, I tried creating the Object:
  Data: go_Error Type Ref To CL_ALV_CHANGED_DATA_PROTOCOL.
  Create Object go_Error
    Exporting
*      i_container =
      i_calling_alv = go_0200_Alv
giving it a reference to the ALV (the go_0200_Alv is my CL_GUI_ALV_GRID object).
Then I did many Call Methods to the Add_Protocol_Entry to add the message in the protocol and then display them calling the Display_Protocol Method of my "go_Error".
The Popup is shown and the "links" to the ALV are correct (if I double click a message it selects the corresponding row of the ALV, but (and it's my problem) I cannot see the Description of the Column with the error: the popup window is an ALV grid itself with 3 columns ("Message Type", "Name of the Column" and "Message Text") where I can see correctly the Message Type and the Message Text but not the name of the column.
Debugging the code I found that If I catch the event, the parameter er_Data_Changed (the class CL_ALV_CHANGED_DATA_PROTOCOL) is filled with some other informations like Modified Rows and other attributes like FieldCatalog, Row-ID, so I thought the problem was related to that, and that's why I replicated the whole case in my processing, filling every table I would see if I use the "standard way" for validation. Bu it didn't correct the error. I still don't see the name of the Column.
This is my code, it's only the part interested, If you need other informations, please ask me and I will copy them.
form CHECK_ALV_0200_0110 Changing pc_Error Type Char01.
  Data: lt_MatchK1 Type tp_Matches1_Key_t,
        l_Message  Type Char100,
        l_MessX    Type String,
        l_QtaRes   Type ZDM_AMT_ASSIGNED,
        l_QtaAcc   Type ZDM_AMT_ACCRUED,
        l_QtaStep  Type ZDM_AMT_ASSIGNED.
  Field-Symbols: <fs_Table>    Type Standard Table,
                 <fs_Master>   Type Standard Table,
                 <fs_Mod_Cell> Type LVC_S_MODI,
                 <fs_Line>     Type Any,
                 <fs_Field>    Type Any,
                 <fs_Any>      Type Any.
  Data lt_Matches_Alv_Mod Type tp_Matches1_Alv_t.
  Data ls_Modi Type LVC_S_MODI.
  Data: l_Row_ID Type I,
        l_Tabix  Type I.
  Field-Symbols: <fs_Match_ALV> Type tp_Matches1_Alv_s.
  Free go_Error.
  CREATE OBJECT go_Error
    EXPORTING
*      i_container =
      i_calling_alv = go_0200_Alv
* Validation Checks
  Clear pc_Error.
  Clear ls_Modi.
  Loop At gt_Matches1_Alv Assigning <fs_Match_ALV>.
    l_Tabix = Sy-Tabix.
    Check <fs_Match_ALV>-Status Eq con_Status_Temp.
*   Set the Modified Row for the CL_ALV_CHANGED_DATA_PROTOCOL object
      Append <fs_Match_ALV> To lt_Matches_Alv_Mod.
      Add 1 To ls_Modi-Row_Id.
      ls_Modi-FieldName = 'AMT_DEDUCTED'.
      Write <fs_Match_ALV>-Amt_Deducted To ls_Modi-Value Currency <fs_Match_ALV>-Waers.
      Condense ls_Modi-Value No-Gaps.
      ls_Modi-Tabix = l_Tabix.
      Append ls_Modi To: go_Error->mt_Mod_Cells,
                         go_Error->mt_Good_Cells.
      l_Row_ID = ls_Modi-Row_Id.
    Clear l_Message.
    If <fs_Match_ALV>-Amt_Deducted Eq 0.
      pc_Error = con_X.
      CALL METHOD go_Error->Add_Protocol_Entry
        EXPORTING
          i_msgid     = 'ZDMV'
          i_msgty     = 'E'
          i_msgno     = '005'
*          i_msgv1     =
*          i_msgv2     =
*          i_msgv3     =
*          i_msgv4     =
          i_fieldname = 'AMT_DEDUCTED'
          i_row_id    = l_Row_ID
*          i_tabix     =
      Continue.
    EndIf.
    Case g_Dynnr.
      When '0110'.
        Perform Get_ResQtaDispute1 Using lt_MatchK1
                                         <fs_Match_ALV>
                                   Changing l_QtaRes.
        Perform Get_ResQtaAccrued1 Using <fs_Match_ALV>
                                   Changing l_QtaAcc.
*      When '0111'.
*        Perform Get_ResQtaDispute2 Using lt_MatchK2
*                                         <fs_Match_ALV>
*                                   Changing l_QtaRes.
*        Perform Get_ResQtaAccrued2 Using <fs_Match_ALV>
*                                   Changing l_QtaAcc.
    EndCase.
    Add <fs_Match_ALV>-Amt_Deducted To l_QtaStep.
    If l_QtaStep > l_QtaRes.
*     Store the Error
      pc_Error = con_X.
      Write l_QtaRes To l_Message Currency <fs_Match_ALV>-Waers.
      Condense l_Message No-Gaps.
      CALL METHOD go_Error->Add_Protocol_Entry
        EXPORTING
          i_msgid     = 'ZDMV'
          i_msgty     = 'E'
          i_msgno     = '002'
          i_msgv1     = l_Message
*          i_msgv2     =
*          i_msgv3     =
*          i_msgv4     =
          i_fieldname = 'AMT_DEDUCTED'
          i_row_id    = l_Row_ID
*          i_tabix     =
    EndIf.
    If l_QtaStep > l_QtaAcc.
*     Store the Error
      pc_Error = con_X.
      Write l_QtaAcc To l_Message Currency <fs_Match_ALV>-Waers.
      Condense l_Message No-Gaps.
      CALL METHOD go_Error->Add_Protocol_Entry
        EXPORTING
          i_msgid     = 'ZDMV'
          i_msgty     = 'E'
          i_msgno     = '002'
          i_msgv1     = l_Message
*          i_msgv2     =
*          i_msgv3     =
*          i_msgv4     =
          i_fieldname = 'AMT_DEDUCTED'
          i_row_id    = l_Row_ID
*          i_tabix     =
    EndIf.
  EndLoop.
  If pc_Error Eq con_X.
*   If there was at least one error, Display the Popup
    go_Error->mt_FieldCatalog[]   = gt_0200_FCat[].
    go_Error->ms_Layout-Zebra     = con_X.
    Get Reference Of lt_Matches_Alv_Mod[] Into go_Error->Mp_Mod_Rows.
    CALL METHOD go_error->display_protocol
*      EXPORTING
*        i_container        =
*        i_display_toolbar  =
*        i_optimize_columns =
  EndIf.
EndForm.
Do you know if there is a particular issue about that? Or, maybe, I'm doing something wrong...
Please help me
Regards,
Claudio
Edited by: Claudio Distrutti on Oct 31, 2008 12:38 PM

Hello Claudio
Nobody prevents you from calling your event handler method go_grid->HANDLE_DATA_CHANGED directly!
What do I mean with that?
I assume you are calling method go_grid->CHECK_CHANGED_DATA at the beginning of the PAI module to catch any changes from the editable ALV grid. Within the event handler method you do your validation and send the error popup if necessary.
Now when the user closes the error popup and pushes e.g. the SAVE button then I can happen that method HANDLE_DATA_CHANGED does not trigger event DATA_CHANGED because nothing was indeed changed on the ALV grid. Yet the invalid value is still there.
However within the FORM routine for saving the data you can just call your event handler method directly:
FORM save_data.
CALL METHOD go_grid->handle_data_changed
    EXPORTING
*      er_data_changed =
      e_ucomm = 'SAVE'.
ENDFORM.
Now within your event handler method you always know when the method was called because if method CHECK_CHANGED_DATA triggers event DATA_CHANGED the IMPORTING parameter ER_DATA_CHANGED is bound whereas it is empty when the method is called from your SAVE routine.
METHOD handle_data_changed.
  DATA: lo_log   TYPE REF TO CL_ALV_CHANGED_DATA_PROTOCOL.
    IF ( er_data_changed IS BOUND ).
      lo_log = er_data_changed.
    ELSE.
      CREATE OBJECT lo_log.
    ENDIF.
" Do the validations and send error log if necessary
  lo_log->DISPLAY_PROTOCOL( ).
ENDMETHOD.
Regards
  Uwe

Similar Messages

  • Validation check for Tcode FB10 and FB60 - FICO.

    I have an issue in validation check for Tcode 'FB60' and  'FB10'.
    there are two exits coded for these transactions through transaction 'GGB0'.
    details for the two exits.
    exit 1.
      when posting a vendor invoice, the network status is checked whether it is completed or not - if status is completed error message is raised.
    exit 2.
      when posting vendor invoice - for G/L Account in 60000 - 69999 series network should not be posted. if posted error message is raised.
    when these two exits are entered via a prerequisites in code 'KGB' a code is generated automatically to call these exits- when transaction 'FB10' 'FB60' is executed.
    Issue:
    for  code 'FB10' is executed with network with status completed and with G/LP account in 60000 - 69999 series -
    error message is raised in sequence i.e. exit 1 is raised and then exit 2 is raised.
    but for code 'FB60' if condition for exit 2 is  not satisfied then exit 1 message is raised.
    but it should be in sequence in raising the error message i.e. exit 1 and then exit.
    Even though for both the transaction the auto generated code is similar and even exits are similar - but it is execution in raising the error message is diffrent.
    - Since it is auto generated code i am able to figure out the issue.
    i would appreciate if any one could help me out in this issue.
    thank you,
    with dregs,
    Karthik.

    Hi,
    I have tried what you have suggested. But still validation is not working
    I have done the following validation based on your inputs.
    Prerequisite
    Company Code = '1265' AND Transaction code = 'FB60' AND
    Account Type = 'K' OR
    Transaction code = 'F-43' AND Account Type = 'K' OR
    Transaction code = 'F-48' AND Account Type = 'K'
    Check
    Business Place > '' AND Business Place = Section Code
    Message
    E - Error Message
    Still it is not working.
    Please suggest.
    Best Regards
    Shashikanth.M

  • Validation Check for business place and section code.

    Hi Gurus
    Please provide me the prequisite check for creating a validation check for business place and section code.
    Regards,
    Vikas Malhotra

    Hii..
    Goto T.Code Ob28 write the following validation.
    Prerequisite
    BKPF-BUKRS = 'XXXX' AND BSEG-KOART = 'K' AND
    BSEG-QSSKZ = 'XX' AND BSEG-BSCHL <> '35' AND
    BSEG-BSCHL <> '25'
    Check
    BSEG-BUPLA = 'XXXX' AND BSEG-SECCO = 'XXXX'
    Message
    Message number ZFI    002
    Regards,
    Aakash

  • AbapOO-event data_changed and F4- not in correct sequence (unwanted popup)

    Hi,
    I have a splitter screen as a docking container to screen 100.
    This splitter has a tree and an alv.
    The alv part is editable and has the event data_changed is defined for the editable field.
    The fieldcatalog on the alv (which has a dynamic field symbol as the data table) had the flag F4AVAILABE=X on the editable field.
    The problem:
    when I change the value on the editable field from invalid value to valid value, I still get the automatic SAP popup that says that my old value is not found in the check table.
    WHY DO I GET THIS POPUP?
    OR
    HOW TO CONTROL THAT THE POPUP WILL BE AFTER THE VALUE CHANGE IS CAUGHT?
    I checked the field symbol table and the value is being changed in the table before I get the message (for some reason on the data_changed event, the table er_data_changed->mt_good_cells is initial but the table er_data_changed->mt_mod_cells is filled with my changed data).
    The ugly solution:
    I put 'leave to screen 100' command after the update and I do not get the popup message anymore. but I would like to do so without refreshing the whole screen with this trip to the server.
    I tried to put dispatch and flush (doesn't make sense to put them here but it can't damage) but this didn't help.
    any ideas?
    Thanks guys.

    Thanks for your reply.
    I did several programs with this method and the data always appears. you can also examine the SAP program I mentioned down.
    I think that will not work but I may be wrong.
    do you have any exape using this handler?
    This event does not have a reference to the changed data so you would not know what field was changed.
    if you look at the SAP example program BCALV_GRID_EDIT you will see that they use the same thing:
    class lcl_event_receiver definition.
      public section.
        methods handle_data_changed
          for event data_changed of cl_gui_alv_grid
          importing er_data_changed.
    class lcl_event_receiver implementation.
      method handle_data_changed.
        perform data_changed using er_data_changed.
      endmethod.
    form data_changed using  rr_data_changed type ref to
                                             cl_alv_changed_data_protocol.
      data: ls_mod_cells type lvc_s_modi.
      loop at rr_data_changed->mt_good_cells into ls_mod_cells.
        case ls_mod_cells-fieldname.
          when  'CARRID'.
    Itay

  • Set ALV cell, use of event DATA_CHANGED

    Hi experts,
    I want to set some ALV input fields using abap.
    That's easy, I can modify the table as I need and call the refresh of the ALV table ( refresh_table_display).
    But how can I "fill" the fields that the event DATA_CHANGED is called?
    When I fill manually in ALV, this event is raised...I need the event also when filling with ABAP...
    Thanks in advance
    Michael

    Hello Michael,
    This link shows you the right way to do:
    Get Changed Value In ALV Grid Dynamically - ABAP Development - SCN Wiki
    Inside HANDLE_DATA_CHANGED method, you can change the value of a cell in this way:
    CALL METHOD PR_DATA_CHANGED->MODIFY_CELL
        EXPORTING
          I_ROW_ID    = IT_TABLE-ROW_ID
          I_FIELDNAME = 'FIELD'
          I_VALUE     = IT_FLIGHT-FIELD.
    I hope you help.

  • Captivate 3 send Quiz and Results via email

    I created a Quiz in Captivate 3. Upon completion of the quiz I would like to have all the questions which were answered and the results emailed to me in PDF (or word if possible). In Captivate 3 I can receive an email with the pass/fail completion scores etc. This is not enough information. I need to know which questionss were answered in order to get back to the person who took the quiz and give them further assistance. We have Adobe Connect Pro, but did not purchase the LMS. Can this be done without an LMS? Can this be done in Captivate 4?

    Short answer: no
    Longer: Search and read through these forums for all the issues surrounding email. Not only is it not terribly reliable but it's also not terribly customizable.
    You could possibly do what you need if you've got some Javascript folks there who can parse through the Captivate HTML/JS files and modify them to output interaction data to the email... To do that, I suspect you'd have to setup the lesson to work with SCORM, but then modify the resulting published HTML/JS files to redirect all SCORM API calls to some other functionality that would instead insert the desired information into an email.
    It may be better to just get an LMS. ;-)
    I think I've seen an article somewhere on Adobe's site, likely by Andrew Chemey, that discussed modifying the published files to send data to a standard database instead of an LMS...so maybe that would be an option, or that could be a base article for modifying the code to work with email. Worth a search of Adobe's site, I suspect.
    HTH!
    Erik

  • Event 940 and 945 Check

    Hi
    I need to put a check at event 940 and or 945. I need to check the Business area wise total should be Zero. If BA sum not Zero than exclude from transfer. This check is at reconciliation key level.
    Events 945: This event calling record by record and pass on.
    Regards
    Srini

    Hello. I'm not sure these 2 events will help you achieve the requirement. Event 940 is used to change the text and "assignment" filed of transferred document. Not sure you can actually stop the transfer in there. Same in event 945 where you can change CO account assignments.
    Have you considered implementing the logic on the creation of the FI-CA document? Explore event 0040 for example.
    I don't see why you're creating a document that does not need to be transferred to GL.
    Jean-Marie

  • Payment method and cost center validation check in MIRO while save or simul

    Hi,
    I want to put a validation check between payment method and cost center while posting MIRO against PO (MIGO done) . If my payment method and cost center matches then system should allow that entry otherwise should popup a message .
    We tried this with user_exit - EXIT_SAPLMRMP_010 enhancement LMR1M001 .
    But thing is it is not getting triggered at all either at the time of simulation or at the time of saving . We are also looking into BADI - update_invoice .
    Any body having any idea on this please share.
    Thanks

    Hi,
    Please don't open multiple threads for the same question..Please close this one..
    THanks,
    Naren

  • ALV Grid Handle Edit Event (Lost Focus)

    Hi all,
    I have some problems with the ALV Grid.
    Target:
    I have an ALV Grid with editable Column. If the user insert, update or delete the content of the column and leave the column (column lost focus) i'd like to do somthing - this means I need a event for this action. Can anybody help me to solve this problem?
    Thanks Stefan

    Use Event data_changed and data_changed_finished of the cl_gui_alv_grid.Then all you have to do is registering your event to the ALV and fill the methods with what you want to do.In ALV Grid, There is no event to capture the lost focus of a column if you don't modify it.
    CLASS lcl_event_receiver DEFINITION.
        METHODS:
    *$ Check the change
           handle_data_changed FOR EVENT data_changed
                                   OF cl_gui_alv_grid
                               IMPORTING er_data_changed
                                         e_ucomm
                                         e_onf4
                                         e_onf4_before
                                         e_onf4_after,
           handle_data_changed_finished
                               FOR EVENT data_changed_finished
                                   OF cl_gui_alv_grid
                                IMPORTING e_modified
                                         et_good_cells
                                         sender,
    ENDCLASS.                    "LCL_EVENT_RECEIVER DEFINITION

  • How to use spell checker without mouse?

    Hi,
    how to use spell checker without mouse?
    And how to quickly change between languages related to documents, and be able to quickly get back to the main language setting that should be the default for the system?

    And how to quickly change between languages related to documents
    If you are talking about input keyboards, this is controlled by shortcuts that are explained at the top right of system prefs/language & text/input sources.

  • ALV, event DATA_CHANGED, avoid insert of duplicate key

    Hello,
    I would like to implement edit functionality of an internal table with ALV based on class CL_GUI_ALV_GRID. Some fields of internal table are key fields and the combination of them should be unique. The user has a possibility to add a new record (all fields in new record are editable) or change values in an existing record (only non-key fields are editable). So far so good, it works.
    I'm doing a validation of entered data in the event DATA_CHANGED. In this event I'm checking if the new record is a duplicate combination of existing key fields. If yes, then all fields of the new record are reported as error with ADD_PROTOCOL_ENTRY method. This removes all entries related to this row from MT_GOOD_CELLS table and this is ok for me.
    My problem: after validation ALV inserts such empty row in my internal table and next time, when the user makes a correction, this record is an update and not a new record (there is no entry in MT_INSERTED_ROWS).
    Question: Is there a possibility to avoid ALV inserting a new record when all its cells are bad?
    Regards,
    Annie

    Hi,
    As far as i have understood your problem,you can try the following to avoid the insertion of an empty row:
    When you must be creating an empty row,just set a flag say flag_create = 'X'.
    Then when you are performing the validation then if there is an error then check for this flag that is :
    if flag_create = 'X'.
    then delete from the internal table based on sy-tabix.
    endif.
    This way the new row that got appended with wrong values will get deleted and the code will not consider this as an updated row.
    Kindly <<deleted> if useful.:)
    Follow the rules of engagement
    Edited by: Vijay Babu Dudla on Jan 9, 2012 7:07 AM

  • Problem in raising the event DATA_CHANGED in OOP ALV

    Hi experts,
    I am currently having trouble in raising the event 'data_changed' in my OOP ALV . The event is triggered everytime I make changes to my editable cells but when it comes to clicking on the save button, it only calls 'data_changed_finished' and bypasses 'data_changed'.
    I need to call 'data_changed' before the data is saved to do some verification.
    My code is shown below.
    CALL METHOD gr_alvgrid->register_edit_event
         EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_modified.
    *--functions
        CALL METHOD gr_alvgrid->set_table_for_first_display
        EXPORTING
        is_variant           = s_variant
        i_save               = 'A'
        i_default            = gc_true
        is_layout            = gs_layout
        it_toolbar_excluding = gt_exclude
        CHANGING
        it_outtab            = gt_list
        it_fieldcatalog      = gt_fieldcat
        EXCEPTIONS
        invalid_parameter_combination = 1
        program_error = 2
        too_many_lines = 3
        OTHERS = 4 .
        IF sy-subrc <> 0.
    "raise message
        ENDIF.
    CREATE OBJECT gr_event.
    SET HANDLER gr_event->handle_data_changed FOR gr_alvgrid.
    SET HANDLER gr_event->handle_data_changed_finished FOR gr_alvgrid.
    CALL METHOD gr_alvgrid->set_toolbar_interactive.
    CALL METHOD gr_alvgrid->set_ready_for_input
                  EXPORTING i_ready_for_input = 1.
    In my PAI
    CASE ok_code.
        WHEN 'SAVE'.
    *--->this calls the event 'data_changed_finished' and bypasses  'data_changed'.*                                                     
    *Check if there's data changed.
          CALL METHOD gr_alvgrid->check_changed_data
            IMPORTING
              e_valid = l_valid.
      ENDCASE.
    I checked the sap sample program BCALV_EDIT_04 and I don't see any difference except for register_edit_event but I don't think that I can leave this out in my code . Is there any points i'm missing here?
    Thanks,
    Patrick

    Hi, Spin
    do like below,
    DATA: gr_alvgrid TYPE REF TO cl_gui_alv_grid,
          cc_alv TYPE REF TO cl_gui_custom_container.
    IF cc_alv IS INITIAL. " USE This Condition
      CREATE OBJECT cc_alv
        EXPORTING
          container_name = 'CC_ALV'.
      CREATE OBJECT gr_alvgrid
        EXPORTING
          i_parent = cc_alv.
      CALL METHOD gr_alvgrid->set_table_for_first_display
        EXPORTING
          is_variant                    = s_variant
          i_save                        = 'A'
          i_default                     = gc_true
          is_layout                     = gs_layout
          it_toolbar_excluding          = gt_exclude
        CHANGING
          it_outtab                     = gt_list
          it_fieldcatalog               = gt_fieldcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc = 0.
        "raise message
      ENDIF.
    ENDIF.
    Please reply if any Issue,
    Thanks and Regard,
    Faisal

  • ALV event  data_changed error

    Hello everybody,
    I have a one  editable field in ALV. After 'ENTER'  I want do some actions ( check input , save data into DB table...).
    CLASS lcl_gui DEFINITION CREATE PROTECTED.
      PUBLIC SECTION.
        DATA: mor_alv    TYPE REF TO cl_gui_alv_grid,
    METHODS:   alv_init,
                        alv_changed FOR EVENT data_changed
                                             OF cl_gui_alv_grid
                                             IMPORTING er_data_changed,
                        register_events,
    METHOD register_events .
       CALL METHOD mor_alv->register_edit_event
         EXPORTING
         i_event_id = cl_gui_alv_grid=>mc_evt_enter.
        SET HANDLER me->alv_changed FOR mor_alv.
      ENDMETHOD.
    After  I change field and pres 'ENTER' I get popup with message "Programs error" and program exits.
    (On the screen in other container I  also have  ALV Tree-CL_GUI_ALV_TREE , maybe it is impotrant to mention...)
    Please help.

    Hi Sandeep,
    as I said I just get popup wit error message "Program errors" with just "Exit" button, when I press the button program exits.
    I get no runtime error, just this popup.
    Regards
    Jan.

  • ALV cell attributes CHANGE during DATA_CHANGED event

    Hi,
    I am working with CL_GUI_ALV_GRID in a splitter control. I am trying to make separate cells (non)editable depending on user input in the ALV. In event DATA_CHANGED (refefined) I change the cellstyle-table and then use method REFRESH_TABLE_DISPLAY.
    My problem is: I can change contents of fields perfectly, but when I change a cell's editability, the cell is being showns as editable, but when I press F4 f.i. and look in debug, the cellstyles-table hasn't been updated and still reflects the old values.
    Could anybody help me out?
    Kind regards,
    Roy
    P.S. Obviously I will reward points to useful answers.

    Hi Nithya,
    I am not making the field edit or no-edit using fieldcatalog-edit. This makes an emtire column editable. I only want to make individual cells editable.
    I do this using a table that I have attached to the ALV's structure and linked using layout-stylefname. You gave me an idea though: I might have to use SET_SELECTED_CELLS or an equivalent.
    Any other ideas that might be helpful?
    Kind regards,
    Roy

  • ALV-Event data_changed after searchhelp with userdefined searchhelpexit

    Hi there ...
    I'm using an OO alv grid with an elementary searchhelp at defined fields.
    the search help uses an searchhelpexit, that simply filters data, to show the right stuff
    everything works fine!
    dependent on the returned value of the searchhelp, I need to trigger a recalculation of values.
    the alv-event "data_changed" looks interesting for that issue ... especially the flag "e_onf4_after" ...
    BUT: I don't know, when the flag is set :$
    the event is raised (with marked flags "e_onf4" and "e_onf4_before") before the Searchhelplist is displayed .... but I need to react AFTER the searchhelp is closed and the selected value is returned ...
    all I want to do is:
    trigger the recalculation after the user selected a value at the searchhelp
    can anybody help me in that case?!
    thanks a lot  & enjoy your weekend
    Markus

    Hi,
    You can call elementary search help like any popup screen
    with function F4IF_FIELD_VALUE_REQUEST.
    - Call f4 help manually in the event DATA_CHANGED
    - Process your recalculation
    - set values on cells..
    I hope it helps.

Maybe you are looking for

  • Idocs and rfcs not found!!

    Hi, Check whether you can find these Idocs in the R/3 System if you goto the tcode we05/we07 and try to check whether this idoc has already been executed, and also try to import those idocs in the SWCV. I could not find the RFC name which u have ment

  • Authorisation group and document type

    Dear Experts I want our users who are using transaction F.14 to be able to process document type ZF only. I have created a role and in the authorisation object F_BKPF_BLA i can see field authorisation group and activity. What value i should put in th

  • SOAP Web Services in JDeveloper

    Hello! As you helped me with my other problems, I hope you can help another time: A SOAP web service that was already running, won't do that anymore, but shows up the following two error messages: [SOAPException: faultCode=SOAP-ENV:IOException; msg=R

  • Db13 Error BR0981W During CheckDB

    Hi Experts, I' running ECC5.0 with Oracle. While CheckDB in db13 I'm recieveign following error from few days. BR0981W Not enough disk space for the total maximum size 90000.000 MB of 9 files of tablespace PSAP<SID> on disk device 5578786, missing at

  • Deployment BOXI R2 on WebSphere 6.0.2.17

    <p>Hi All,</p><p>I have a question regarding the deployment BOXI R2 on WebSphere. What is the effect if i force to deploy BOXI R2 on WebSphere 6.0.0.2, in Sun Solaris 9 platform? I know that BOXI R2 only support WebSphere 6.0.0.2.</p><p>Thanks.</p><p