Save entry in dropdown ALV

Dear Friends,
I made a colum in my Container based ALV as editable and given a drop down using METHOD GRID->SET_DROP_DOWN_TABLE.
I am able to get the values in dropdown.
But i want to capture these selected values on save and save it back to database.
I checked the internal table in PAI these changes are not captured?
How to capture these dropdown selections?
Appreciate your help.
Regards,
Simha
Edited by: Simha on Jun 23, 2008 6:30 AM

Dear Boobalan Suburaj,
Thanks for the update.
I have added the code suggested by you.
CALL METHOD G_GRID->REGISTER_EDIT_EVENT
    EXPORTING
        I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.
and its working.
Did u mean to have a local class to be defined and then handle this as event?
I can use as is right!
Let me know. Thanks for your timely help.
Regards,
Simha

Similar Messages

  • SAVE Layout Option in ALV list Report

    Hi Experts,
    Is it possible to SAVE the layout option for Block ALV list Reports?
    Thanks in Advance,
    Sivak.

    Hi,
    It is not possible to save layout in BLock ALV display but possible to change layout. There is no parameter to save. It is not possible to store the layout as it has several structure.
    Thanks & Regards
    Rocky

  • Create standard sap "SAVE" button along with ALV grid buttons

    I need to create a standard SAP "Save" button  in my ALV GRID display in the application tool bard
    I copied the PF-Status 'standard' from a SAP program and assinged it here.
    When i try to add the SAP save buttion by using this standard pf-status , its not getting displayed in the application tool bar.
    But in STandard TOOl bar (in menu painter ) , when i assign save its displayed in the screen .
    I need this to be displayed in the application tool ba
    Please suggest me how to do this.
    Thanks in advance.

    Hello,
      Application of ALV means the place where the buttons(standard for ALV) like sort,add,delete,copy etc are dipslayed.IF u need need to add a save button on the same toolbar/same place u need to copy the standard GUI status of standard ALV program .For that go to SE80 , give the program name as SAPLSLVC_FULLSCREEN
    In the GUI status u'll find the status named as STANDARD_FULLSCREEN ....Right click on it and give the "TO Program " as your program.Now once u activate ur program u'll find the same status there.
    add ur save button in the status by edidting it. Now u need to write the FORM ENDFORM for user command and assign the form name in caps to the USER_COMMAND parameter in the func module REUSE_ALV_GRID_DISPLAY.
    Hope this help.
    Regards,
    Neeraj

  • How to save entries in Cash Journal with status 'Posted'?

    Hi all,
    I has been asked to create entries in a Cash Journal with status 'POSTED'. Obviously, FM 'BAPI_CASHJOURNALDOC_CREATE' only saves entry (status 'SAVED'), but didn't change its status to 'POSTED'.
    After some investigation of different FM in a CJ area, I found the only way to change status via CALL TRANSACTION 'FBCJ' -> 'POST ALL' (for receipts, for example). This is not a decition I'm searching for.
    My question is: how can I change status of a Cash Journal single entry to 'Posted'?
    Any help would be highly appreciated.
    Thanks in advance.
    Regards,
    Ivaylo Mutafchiev
    Senior SAP ABAP Consultant
    VBS EOOD
    Varna, Bulgaria

    I'm facing the same  issue . have you been able to solve it ???

  • Calendar said if I wanted to save entries for more than a month to click 'all events' in settings.   Now all events except birthdays have disappeared!  Have tried to reverse request with no luck.  HELP!

    Calendar message said if I wanted to save entries for more than a month I should go to settings and change to sync for 'all events'.  I did this and all but repeating birthday entries disappeared.   I have tried to reverse but nothing has reappeared.  HELP!

    Welcome to the discussions,
    WHY does it claim to be 8G but my capacity now says its just 6.83
    The size of you HD is calculated binary when it comes to use it, instead of decimal when companies want to advertise there products. 1 KB=1024Byte instead of 1000KB as advertised by the manufacturer. In your case this reduces the actual available space by the factor of 0.93 or approx. 7,4GB.
    If you have an "other" section in your color bar showing the different types of data on your ipod, which is bigger than 500MB, this could be a sign of corrupt data caused by a sync that did not complete or copied damaged data. A restore will reduce the size to normal again.
    Restoring: http://support.apple.com/kb/HT1414
    If you restore your ipod, iTunes will install the newest firmware first and then add back your data and settings from your last backup if you choose to "restore from backup". Every backup is replaced by the following one, so make sure to include this folder in your backup routine in case you'll have to go back.
    You can check the location and size of the backup folder for your ipod here:
    Windows Vista and Windows 7: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    copied from: About backups http://support.apple.com/kb/HT1766
    Sorry, I can't answer your payment question, I have never used your kind of setup, maybe you can find something useful here: http://www.apple.com/support/itunes/

  • Delete the entry from dropdown list in the pop up window in ALV report

    Hi All,
    I have a requirement in the ALV interactive report ZMM_IMPL .If we enter selection screen parameters its displaying the first screen.If we click on 'Goods Issue' tab ,it display the pop up window for Requirement Pick list with Batch number ,Storage location and Quantity.Here we have F4 option for batch number(MCH1-CHARG) and we could see all batches (with stock and without stock) in the drop down.
    Now my requirement is i would need to delete the non stock batches from drop down values.
    Ex:we clich F4 in batch number field(CHARG) ,could see 4 batches Test1 ,Test2 ,Test3 and Test4 .Here Test1 ,Test2 are Batch stock and other two are Non stock batches. We could see all these batches (with and without stock) in MCHB table.Now i would need to delete non stock batches(Batch with zero qty (MCHB-CLABS = 0) from drop down.
    Any idea on this.
    Regards,
    Rpn

    Hi,
    User wants to appear only batches with stock value in the drop down .Here Batches test1, test2 , test3 have stock but  test4  has no stock value. Now the requirement is  if stock does not exist in any of those batches it should not appear in the drop down and propose batches based on quantity.
    Batch stock value can be seen through transaction MB52  and could see only Test1.Test2 and Test3.
    They have arleady code in the program for F4 help to Batch number as following,
      CLEAR: lips.
      REFRESH: gt_lips.
      lips-vbeln = f_vbeln.
      lips-posnr = f_posnr.
      lips-matnr = f_matnr.
      lips-werks = f_werks.
      lips-lfimg = f_bdmng.  "store the requirement quantity for display
      lips-pstyv = f_res_del.  "use to store RES or DEL      "DV1K919143
      CALL SCREEN '0100' STARTING AT 10 2.
    for the ok code to be BT_SAVE all the validation are complete
      IF g_ok_code NE 'BT_SAVE'.
        f_answer = 'A'.
      ENDIF.
    The logic for screen '0100' as follows
    PROCESS BEFORE OUTPUT.
    *&spwizard: pbo flow logic for tablecontrol 'TC_LIPS'
      module TC_LIPS_change_tc_attr.
    *&spwizard: module TC_LIPS_change_col_attr.
      loop at   GT_LIPS
           into GS_LIPS
           with control TC_LIPS
           cursor TC_LIPS-current_line.
        module TC_LIPS_get_lines.
    *&spwizard:   module TC_LIPS_change_field_attr
      endloop.
      MODULE STATUS_0100.
    PROCESS AFTER INPUT.
    *&spwizard: pai flow logic for tablecontrol 'TC_LIPS'
      loop at GT_LIPS.
        chain.
          field GS_LIPS-CHARG.
          field GS_LIPS-LGORT.
          field GS_LIPS-LFIMG.
          module TC_LIPS_modify on chain-request.
        endchain.
        field GS_LIPS-SELKZ
          module TC_LIPS_mark on request.
      endloop.
      module TC_LIPS_user_command.
    *&spwizard: module TC_LIPS_change_tc_attr.
    *&spwizard: module TC_LIPS_change_col_attr.
    MODULE USER_COMMAND_0100.
    MODULE USER_COMMAND_EXIT_0100 AT EXIT-COMMAND.
    process on value-request.
      field gs_lips-charg module lips-charg_values.
    Logic for F4 help as following
    DATA: mc_object LIKE dd23l-mconame,
             help_lips LIKE lips.
       DATA: dseltab LIKE dselc OCCURS 10 WITH HEADER LINE.
       DATA: lf_shlpname LIKE dd30v-shlpname,
             lx_shlp TYPE shlp_descr_t,
             ls_interface LIKE ddshiface,
             lf_rc LIKE sy-subrc,
             lt_retvalues LIKE ddshretval OCCURS 0,
             ls_retvalue LIKE ddshretval.
       help_lips = lips.
       IF NOT help_lips-matnr IS INITIAL.
         CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
           EXPORTING
             input        = help_lips-matnr
           IMPORTING
             output       = help_lips-matnr
           EXCEPTIONS
             length_error = 1
             OTHERS       = 2.
         IF sy-subrc <> 0.
        exit.                        "Ignore conversion errors "50A
         ENDIF.
       ELSE.
         EXIT.
       ENDIF.
       SET PARAMETER ID 'MAT' FIELD help_lips-matnr.
       SET PARAMETER ID 'WRK' FIELD help_lips-werks.
      Export parameters to memory to enable search help via classes
       CLEAR dseltab.
       REFRESH dseltab.
       dseltab-fldname = 'MANDT'.
       MOVE sy-mandt TO dseltab-fldinh.
       APPEND dseltab.
       dseltab-fldname = 'MATNR'.
       MOVE help_lips-matnr TO dseltab-fldinh.
       APPEND dseltab.
       dseltab-fldname = 'WERKS'.
       MOVE help_lips-werks TO dseltab-fldinh.
       APPEND dseltab.
       dseltab-fldname = 'CHARG'.
       MOVE help_lips-charg TO dseltab-fldinh.
       APPEND dseltab.
       EXPORT dseltab TO MEMORY ID 'DSELTAB'.
      Get description for search help
       mc_object = 'MCH1'.
       lf_shlpname = mc_object.
       CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
         EXPORTING
           shlpname = lf_shlpname
           shlptype = 'SH'
         IMPORTING
           shlp     = lx_shlp
         EXCEPTIONS
           OTHERS   = 1.
      Enable value copy from search help to dynpro field
       READ TABLE lx_shlp-interface INTO ls_interface
                                    WITH KEY shlpfield = 'CHARG'.
       ls_interface-valfield = 'X'.
       MODIFY lx_shlp-interface FROM ls_interface INDEX sy-tabix.
      Start search help dialog
       CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
         EXPORTING
           shlp          = lx_shlp
         TABLES
           return_values = lt_retvalues
         EXCEPTIONS
           OTHERS        = 1.
       IF sy-subrc EQ 0.
         READ TABLE lt_retvalues INTO ls_retvalue
                                 WITH KEY fieldname = 'CHARG'.
         IF sy-subrc EQ 0.
           lips-charg = ls_retvalue-fieldval.
           gs_lips-charg = ls_retvalue-fieldval.
         ENDIF.
       ENDIF.
    How to delete entry from F4 help.Any idea?
    Regards,
    Reddy

  • Determining Duplicate Entries in Editable ALV Grid

    Hopefully this question is not as obvious as it may seem at first. Thanks for any input or ideas...read carefully, it is not just a simple duplicate check with which I'm having a problem.
    I have an editable ALV grid and I need to ensure that the user doesn't try to enter the same material number twice. I used the program BCALV_EDIT_03 and 04 as a model. I can tell if in my session a user is trying to put in the material number twice. Not a problem. I can also tell if the user is trying to add a material to the ones already on the grid that is a duplicate. That is not a problem either. Here is the catch...and I'd like to point out that BCALV_EDIT_04 has the same problem.
    The user enters line 10 with material 0245 and line 20 with 0345. There is no duplicate. Then they say, 'Oooops, I got them backward' and then move 0345 to line 10 and 0245 to line 20.  When you hit enter, the change handler says that line 10 and 20 were changed and the field MATNR was changed. It then compares the new fields to what is already in the grid...low and behold the grid already has these two entries and the protocol adds the error for both lines.
    I will add the code here, but it is pretty much exactly as in BCALV_EDIT_04. If you want to see the error in that program execute it, put in two new lines with the same airline and two different dates and hit save. Everything is fine. Then swap the dates and hit Save again...it will say these are duplicates, which they are not...this program is not saving to the database. The only difference between mine and bcalv_edit_04 is that mine uses an 'ENTER' event and not a 'SAVE'.
    I'm looking for good ideas on how to compare the two...the mt_good_cells (session active) and the grid itself to know when a user has 'moved' data. The current workaround is for the user to copy the line and then reapply it...but that seems a bit glitchy.
    Thanks in advance, I appreciate any sage advice. : )
    METHOD check_double_entries.
        DATA: lt_good_cells TYPE lvc_t_modi,
              ls_good TYPE lvc_s_modi,
              l_matnr TYPE matnr,
              l_del_row TYPE lvc_s_moce,
              ls_rosi LIKE LINE OF i_rosi,
              l_reentered TYPE c.
        LOOP AT pr_data_changed->mt_good_cells INTO ls_good.
          CASE ls_good-fieldname.
            WHEN 'MATNR'.
              CALL METHOD pr_data_changed->get_cell_value
                EXPORTING
                  i_row_id    = ls_good-row_id
                  i_fieldname = ls_good-fieldname
                IMPORTING
                  e_value     = l_matnr.
              READ TABLE lt_good_cells WITH KEY
                                value = l_matnr
                                TRANSPORTING NO FIELDS.
              IF sy-subrc = 0.
                CALL METHOD pr_data_changed->add_protocol_entry
                  EXPORTING
                    i_msgid     = '0K'
                    i_msgno     = '000'
                    i_msgty     = 'E'
                    i_msgv1     = text-m01
                    i_fieldname = ls_good-fieldname
                    i_row_id    = ls_good-row_id.
                error_in_data = 'X'.
              ELSE.
                ls_good-value = l_matnr.
                APPEND ls_good TO lt_good_cells.
              ENDIF.
          ENDCASE.
        ENDLOOP.
        LOOP AT lt_good_cells INTO ls_good.
          l_matnr = ls_good-value.
          READ TABLE i_rosi WITH KEY matnr = l_matnr
                        TRANSPORTING NO FIELDS.
          IF sy-subrc = 0.
            l_reentered = space.
            LOOP AT pr_data_changed->mt_deleted_rows INTO l_del_row.
              READ TABLE i_rosi INTO ls_rosi INDEX l_del_row-row_id.
              IF sy-subrc NE 0.
                MESSAGE i000(0k) WITH text-e01.
              ELSEIF ls_rosi-matnr EQ ls_good-value.
                l_reentered = 'X'.
              ENDIF.
            ENDLOOP.
            IF l_reentered NE 'X'.
              CALL METHOD pr_data_changed->add_protocol_entry
                EXPORTING
                  i_msgid     = '0K'
                  i_msgno     = '000'
                  i_msgty     = 'E'
                  i_msgv1     = text-m01
                  i_fieldname = ls_good-fieldname
                  i_row_id    = ls_good-row_id.
              error_in_data = 'X'.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDMETHOD.                    "check_double_entries

    Hi Greg,
    please check your posting in the prview tab. If the code is not formatted, you posted too much. Reduce and try again, then somebody may be willing to read.
    Regards,
    Clemens

  • How to save entries in a fillable form

    I have created a fillable form using Adobe Acrobat X Pro (I uploaded a form created in Word 2010, and modified it slightly using Adobe X), but users I send the form to are unable to save their entries.How do I allow users to save the information they have entered in the fillable form?
    Do recipients of the form have to have a specific version of Adobe in order to save their entries in the fillable form I created using Acrobat X Pro?
    Any help would be much appreciated!

    Ok! I think I've got the hang of how to edit and distribute the form. I see that Adobe records user responses, is there some way to block this feature?
    For my purposes, I really just need to send the fillable form as an email attachment to users, have the users enter and save their responses into the form, and then have them send the modified form back to me as an email attachment.

  • How to get the SAVE Layout  ICON on ALV Grid display report

    Hi,
      I am using the standard ALV Layout, and I do not get the SAVE LAYOUT Icon on the Menubar, where I could save the report Layout.I am using the layout routine as,
    FORM layout_build USING   u_lf_layout TYPE slis_layout_alv.
      u_lf_layout-box_fieldname       = 'SELK'.  " Checkbox
      u_lf_layout-zebra               =  'X'.
      u_lf_layout-colwidth_optimize   =  'X'.
      u_lf_layout-confirmation_prompt =  'X'.
      u_lf_layout-get_selinfos        =  'X'.
      u_lf_layout-f2code              =  '&ETA' .
      u_lf_layout-detail_titlebar     =  'Delivery Due List'.
      u_lf_layout-key_hotspot         =  'X'.
      u_lf_layout-info_fieldname      =  'COL'.
    ENDFORM.                    " layout_build
    Is there anything that I am missing. Please suggest.Many thanks for your help.
    Regards,
    Mira

    Hi,
    i think you've forgotten param. <b>i_save</b>
      x_save = 'X'.
      gs_variant-report     = sy-repid.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
           EXPORTING
                I_STRUCTURE_NAME = 'ZTAB01'
                IS_VARIANT       = gs_variant
                IS_layout        = lay
                I_SAVE           = x_save
           TABLES
                T_OUTTAB         = gridtab
           EXCEPTIONS
                OTHERS           = 1.
    regards Andreas

  • Save Changed layout of ALV

    Hello All,
    I am using the class 'cl_salv_table' to create an ALV. In the application toolbar I have the option to change the layout displayed in tha ALV but I am not able to save my changed layout. Please suggest how do I enable the save layout button in the toolbar.
    Thanks,
    Anju

    This demo example creates a PF status for displaying the buttons, Can  I not get the buttons using the standard functions available with the ALV. I am getting the change layout on its own I am not reqd to create a PF status for it. Can I not enable the button save layout also. Also if I create the PF status I would have to add all the buttons reqd in the ALV in the PF status manually
    thanks,
    Anju

  • How to save the data from alv output

    My ALV output is editable one.I want that user can edit the output and  save the output details into database.How to do it?
    Moderator Message: Basic Question. This site is not an alternative for your Consultancy work. Put some effort of your own before turning to the forums for help. This is your LAST warning. One more violation will lead to Account deletion.
    Edited by: kishan P on Dec 6, 2010 6:45 PM

    Hi
    U need to implement an user_command and manage the functionality SAVE: when the user press SAVE you'll store the data into db.
    There are several programs demo in SAP and many solution in SCN forum: try to search it
    Max
    Moderator message: please think twice before replying. By now you should know which type of questions will be locked, so no point in replying, in a double sense.
    Edited by: Thomas Zloch on Dec 6, 2010 2:49 PM

  • Popup variable entry with dropdown

    Hello,
    I have a web template (WAD in 2004s) and I need that when the template was executed the popup for variable entry values appears as a dropdown box instead of the tipical selection popup.
    I have found a how to (How tou2026Use a dropdown box to set variable values 3.x) but I need that the dropdown appears from the beguiner of execution for introduce the values of filters.
    Thanks.
    Isabel Bautista.

    Hello Isabel ,
    Modify your web template with the dropdown box you want.
    You can drag the drop down web element into the web report. Assign a appropriate infoprovider  for this drop down and select the characteristics you want for drop down.
    If you want to filter the results with the selection of dropdown value, then choose appropriate command for this dropdown to filter the result.
    Regards,
    Pratap Sone

  • Save data in editable ALV

    Hi all,
    I am using an editable ALV in webdynpro using which I would like to save some data to a table. In the list of standard functions, I see only options like 'Insert row', 'Delete row' etc. There is no option to Save the edited data.
    Even if I declare a user defined function, how do I specify the action it would trigger? Any help would be greatly appreciated. Thanks in advance.
    Regards,
    Nithya

    Hi Nithya,
    Once you edit an ALV, the data is automatically updated to the context node, you map in the DATA field of controller usage (of the component usage).
    If you want to trigger event for change in ALV, see the below tutorial.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8">Using Events with ALV Tables
    in Web Dynpro for ABAP</a>
    If you want to trigger a event for user defined function,
    Create a event handler method in the view. Specify event,  
       ON_FUNCTION of the interface controller of ALV for the event handler method.
    The importing parameter r_param of the method contains unique ID of the
       function for which the UI element is assigned.
    For reference see the below tutorial. It will be useful.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/101df93f-4b5c-2910-14aa-9eb0338c2110">Generating Self-Defined Functions for ALV in Web Dynpro for ABAP</a>
    Hope it Helps
    Rakesh

  • Save contents of editable alv into dbtable

    Hi All,
    I have an alv output with editable fields. This output has the contents some from an itab and some are hardcoded in the program. Now I have edited the contents in the alv o/p.
    Now I want to save the contents of the alv o/p fully into the dbtable.
    Please suggest how to do this.

    Hi,
    STEP :1.
    In the PBO of the Screen in Which you are  designed your container for output - SET the PF-STATUS.
    Example : SET PF-STATUS '1500'.
    In this PF Status you activate the SAVE Button.
    I think for SAVE Button the sy-ucomm = 'SPOS'.
    STEP 2:
    In the PAI of the Screen in Which you are  designed your container for output.
    Write the below code.
    IF SY-UCOMM = 'SPOS'.
        CALL METHOD G_GRID->CHECK_CHANGED_DATA
          IMPORTING
            E_VALID = L_VALID.
        IF L_VALID EQ 'X'.
          CALL METHOD G_GRID->GET_SELECTED_ROWS
            IMPORTING
              ET_ROW_NO = LT_ROW_NO[].
        ENDIF.
    At this Point your output table will have the modified values.
    Now you can proceed it to update the database table.
    ENDIF.
    Regards
    Amir

  • Function module to save the data from ALV list to MS Excel file

    Hi,
    I am displaying an ALV list.
    I am assigning a pushbutton in the GUI status to save the list as a MS Excel file.
    Can you please let me know the function module to achieve this task.
    I tried 'SAP_CONVERT_TO_XLS_FORMAT'  FM but it is giving some type confict error.
    Thanks & Regards,
    Balaji.R

    ALV has this option built in, you may also find FM like [ALV_XXL_CALL|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=alv_xxl_call&adv=false&sortby=cm_rnd_rankvalue].
    Can you elaborate a little more on your need, why adding an option that already exits?
    Regards

Maybe you are looking for

  • Problem in counting ramks

    Hi, I'm facing a problem in calculating ranks. First let me explain you the scenario. I've an InfoCube where I stores information regarding calls made to stores by sales rep. They assign rank to each store and it my change call to call. In InfoCube w

  • Nokia 6280 Theme & Profile (PICK ONE ONLY)

    I bought the phone for less than couple months, and I always found that the ringtone change back to default one. Definitely, not the one I saved within the profile. Nokia TRIED to fix mentioned problem twice for me (reinstall the firmware and change

  • Tabs, and Templates

    I'm having some real problems managing Templates and Tabs. I've created a template with 3 tabs (A,B,C). I then created a navigation page with links to the pages for each tab. This was then added to the template. I then created my various pages for th

  • SMD Diagnostics Agent Backup Strategy?

    Posting this question here as well as the Solution Manager forum since we're running SAP on the iSeries. My organization has just started deploying SMD agents across our SAP landscape and we're considering how this new component (the agent) fits in o

  • Last Played Date is wrong ...Ipod keeps changing date

    I own a 3rd gen iPod nano and the date and time keeps changing everytime I connect it to my PC ...can anyone help me figure out how to fix this please...? Thanks in Advance