How to extract in the ALV output the old data using EXTRACT

Dear Friends,
            I have requiremnt where the user executes the report -
using REUSE_ALV_GRID_DISPLAY  FM.  On the output
i have given an option to user to edit values on the output. So user will edit the values and updating  to the data base this
the functionality which we have given to the custom report till now . Now the user came back and asking to provide a SAVE
option on the ALv output so that before updating the total records to the database he can re edit the values which he
has entered previous day . To do this functionality i have read  in ALV documentation using the EXTRACT- INCLUDE vex01top.       
I have added this but iam not getting exactly how to do this option when the user saves on the ALV output how can he retrive back the  saved data on to the output again( i.e on the ouput screen) using the Extract functionality . If any body has done this
do help me . I would like to know should we maintain any custom table for this,for saving the records when user press
save button? .
Thanks & Regards
Madhuri.

> i have read  in ALV documentation using the EXTRACT- INCLUDE vex01top.       
I don't know where you got that. You have to define your own GUI status (first, copy it from standard status STANDARD_FULLSCREEN of function group SLVC_FULLSCREEN) with your button, and define as follows:
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program       = l_repid
      i_callback_pf_status_set = 'SET_PF_STATUS'
      i_callback_user_command  = 'USER_COMMAND'
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
  SET PF-STATUS 'USER_STATUS' EXCLUDING rt_extab.
ENDFORM.                    "set_pf_status
FORM user_command  USING r_ucomm LIKE sy-ucomm
                           rs_selfield TYPE slis_selfield.
IF r_ucomm = 'SAVE'.
ENDIF.
ENDFORM.
> I would like to know should we maintain any custom table
Of course. Create your own custom table. Where else do you want to store data?

Similar Messages

  • How we can populate the form data from 2D barcode

    Hi All,
    Can anyone tell me how we can populate the form data from 2D barcode, will this can be done through script(javascript)?.
    Thanks & Regards,
    Faisal Afzal

    I was hoping someone could put me in the right direction here. I am basically doing the same . I am decodeing the information stored in a 2D Bar code and sending this information to an XML file, then I am trying to combine that xml file with a blank PDF template but the process is failing beacuse there are some additional tag fields the XML data from the  Decode->Extract XML process.
    The XML file from the decode process gives the structure below..notice therer some extra tags (lines 2- 4)
    <?xml version="1.0" encoding="UTF-8"?>
    <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
    <xfa:datasets>
    <xfa:data>
    <form1>
    The XML structure that is expected by the PDF template is as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <form1>
    So the xml output of the Decode barcode + Extract XML process has three extra lines of tag. Is there a way I could use a process within liveCycle to clean out those three lines in real-time before sending the xml to be recombined with the PDF template.
    Thanks

  • ALV refresh with the Old Data

    Hi All,
    I have a question with OO ALV. I have an Editable ALV output which contains around 10 fields. In the output the User can Edit/Insert/Delete the Records, and on the application tool bar I have a button (CHANGE)by which the user can swtich between the change and display mode of ALV.
    Once the ALV list is displayed, when the user click on change the output is open for Editing. Lets say the user deletes the record, and again clicks on the change(which should take to display) by giving the message "Changes made will be lost" and the old data should get displayed.
    The logic i followed is,
    1. displayed the ALV.
      CALL METHOD gr_grid->set_table_for_first_display
        EXPORTING
          it_toolbar_excluding = gt_exclude
          is_layout            = gs_layout
        CHANGING
          it_fieldcatalog      = pt_fieldcat
          it_outtab            = pt_outtab[].
    2. when I click on the change button, the ALV is set for Edit using
            CALL METHOD gr_grid->set_ready_for_input
              EXPORTING
                i_ready_for_input = 1.
    lets say, now the record in the output is deleted, and I clicked on Change again, which should take me to display with the old data.
    can you help me in displaying the old data.

    It works good for me.
    I copied the program BCALV_EDIT_01 to Z program and add the required logic. Backup of the table after the ALV display
        gt_backup = gt_outtab.
    Refreshing the ALV table display in the perform SWITCH_EDIT_MODE
    *§3.Use IS_READY_FOR_INPUT to fetch current substate of editable cells.
      IF g_grid->is_ready_for_input( ) EQ 0.
    *§4.Use SET_READY_FOR_INPUT to switch between the substates.
        CALL METHOD g_grid->set_ready_for_input
                         EXPORTING i_ready_for_input = 1.
      ELSE.
    *------ ADD Begin
        message I398(00) with 'Data not saved.!'.
        gt_outtab = gt_backup.
        g_grid->refresh_table_display( ).
    *------- ADD end
        CALL METHOD g_grid->set_ready_for_input
                         EXPORTING i_ready_for_input = 0.
      ENDIF.
    Regards,
    Naimesh Patel

  • How we will display the header data and item data seperately in lists

    how we will display the header data and item data seperately in lists

    REPORT z_alv_list_block.
    TYPE-POOLS: slis. " ALV Global types
    SELECTION-SCREEN :
    SKIP,
    BEGIN OF LINE,
    COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED
    PARAMETERS p_max(2) TYPE n DEFAULT '02' OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    DATA:
    1st Table
    BEGIN OF gt_kna1 OCCURS 0, " Data displayed
    kunnr LIKE kna1-kunnr, " Customer number
    ernam LIKE kna1-ernam, " Name of Person who Created
    erdat LIKE kna1-erdat, " Creation date
    name1 LIKE kna1-name1, " Name 1
    END OF gt_kna1,
    2nd Table
    BEGIN OF gt_mara OCCURS 0,
    ernam LIKE mara-ernam, " Name of Person who Created
    matnr LIKE mara-matnr, " Material number
    ersda LIKE mara-e rsda, " Creation date
    brgew LIKE mara-brgew, " Gross weight
    END OF gt_mara,
    3rd Table
    BEGIN OF gt_vbak OCCURS 0,
    vkorg LIKE vbak-vkorg, " Sales organization
    kunnr LIKE vbak-kunnr, " Sold-to party
    vbeln LIKE vbak-vbeln, " Sales document
    netwr LIKE vbak-netwr, " Net Value of the Sales Order
    waerk LIKE vbak-waerk, " SD document currency
    END OF gt_vbak.
    INITIALIZATION.
    v_1 = 'Maximum of records to read'.
    START-OF-SELECTION.
    Read data
    SELECT * FROM kna1
    UP TO p_max ROWS
    INTO CORRESPONDING FIELDS OF TABLE gt_kna1.
    SELECT * FROM mara
    UP TO p_max ROWS
    INTO CORRESPONDING FIELDS OF TABLE gt_mara.
    SELECT * FROM vbak
    UP TO p_max ROWS
    INTO CORRESPONDING FIELDS OF TABLE gt_vbak.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
    i_callback_program = sy-cprog
    i_callback_user_command = 'USER_COMMAND'.
    PERFORM list_append TABLES gt_kna1
    USING '1'
    'GT_KNA1'.
    PERFORM list_append TABLES gt_mara
    USING '2'
    'GT_MARA'.
    PERFORM list_append TABLES gt_vbak
    USING '3'
    'GT_VBAK'.
    PERFORM f_list_display.
    FORM USER_COMMAND *
    FORM user_command USING i_ucomm LIKE sy-ucomm
    is_selfield TYPE slis_selfield. "#EC CALLED
    CASE i_ucomm.
    WHEN '&IC1'. " Pick
    CASE is_selfield-tabname.
    WHEN 'GT_MARA'.
    WHEN 'GT_KNA1'.
    WHEN 'GT_VBAK'.
    READ TABLE gt_vbak INDEX is_selfield-tabindex.
    IF sy-subrc EQ 0.
    Sales order number
    SET PARAMETER ID 'AUN' FIELD gt_vbak-vbeln.
    Display Sales Order
    CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
    ENDIF.
    ENDCASE.
    ENDCASE.
    ENDFORM. " USER_COMMAND
    ----< /div>
    Form list_append
    FORM list_append TABLES ut_table
    USING u_no TYPE char1
    u_tabname TYPE slis_tabname.
    Macro definition
    DEFINE m_fieldcat.
    ls_fieldcat-fieldname = &1.
    ls_fieldcat-ref_tabname = &2.
    append ls_fieldcat to lt_fieldcat.
    END-OF-DEFINITION.
    DEFINE m_sort.
    ls_sort-fieldname = &1.
    ls_sort-up = 'X'.
    append ls_sort to lt_sort.
    END-OF-DEFINITION.
    DATA :
    ls_fieldcat TYPE slis_fieldcat_alv,
    lt_fieldcat TYPE slis_t_fieldcat_alv, " Field catalog
    ls_sort TYPE slis_sortinfo_alv,
    lt_sort TYPE slis_t_sortinfo_alv. " Sort table
    DATA:
    lt_events TYPE slis_t_event,
    ls_event TYPE slis_alv_event,
    ls_layout TYPE slis_layout_alv.
    ls_layout-group_change_edit = 'X'.
    ls_layout-colwidth_optimize = 'X'.
    ls_layout-zebra = 'X'.
    ls_layout-detail_popup = 'X'.
    ls_layout-get_selinfos = 'X'.
    ls_layout-max_linesize = '200'.
    CASE u_no.
    WHEN '1'.
    Build field catalog and sort table
    m_fieldcat 'KUNNR' 'KNA1'.
    m_fieldcat 'ERNAM' 'KNA1'.
    m_fieldcat 'ERDAT' 'KNA1'.
    m_fieldcat 'NAME1' 'KNA1'.
    m_sort 'KUNNR'.
    WHEN '2'.
    m_fieldcat 'MATNR' 'MARA'.
    m_fieldcat 'ERNAM' 'MARA'.
    m_fieldcat 'ERSDA' 'MARA'.
    m_fieldcat 'BRGEW' 'MARA'.
    m_sort 'MATNR'.
    WHEN '3'.
    m_fieldcat 'VBELN' 'VBAK'.
    m_fieldcat 'VKORG' 'VBAK'.
    m_fieldcat 'KUNNR' 'VBAK'.
    m_fieldcat 'NETWR' 'VBAK'.
    m_fieldcat 'WAERK' 'VBAK'.
    m_sort 'VBELN'.
    ENDCASE.
    IF u_no CA '13'.
    MOVE 'TOP_OF_PAGE' TO ls_event-name.
    CONCATENATE 'TOP_OF_PAGE' u_no INTO ls_event-form.
    APPEND ls_event TO lt_events.
    ELSE.
    MOVE 'TOP_OF_LIST' TO ls_event-name.
    CONCATENATE 'TOP_OF_LIST' u_no INTO ls_event-form.
    APPEND ls_event TO lt_events.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    it_fieldcat = lt_fieldcat
    is_layout = ls_layout
    i_tabname = u_tabname
    it_events = lt_events
    it_sort = lt_sort
    i_text =
    TABLES
    t_outtab = ut_table
    EXCEPTIONS
    program_error = 1
    maximum_of_appends_reached = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " LIST_APPEND
    Form f_list_display
    FORM f_list_display.
    DATA ls_print TYPE slis_print_alv.
    ls_print-no_print_selinfos = 'X'. " Display no selection infos
    ls_print-no_print_listinfos = 'X'. " Display no listinfos
    ls_print-reserve_lines = 2. " Lines reserved for end of page
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    EXPORTING
    i_interface_check = ' '
    is_print = ls_print
    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.
    ENDFORM. " F_LIST_DISPLAY
    FORM top_of_page1 *
    FORM top_of_page1. "#EC CALLED
    PERFORM top_of_page.
    ENDFORM.
    FORM top_of_page3 *
    FORM top_of_page3. "#EC CALLED
    PERFORM top_of_page.
    ENDFORM.
    FORM top_of_page *
    FORM top_of_page.
    ULINE.
    WRITE : sy-uname, sy-title(56) CENTERED, sy-datum.
    ULINE.
    ENDFORM.
    FORM top_of_list2 *
    FORM top_of_list2. "#EC CALLED
    WRITE 'TOP OF LIST2'.
    ENDFORM.
    END OF PROGRAM Z_ALV_LIST_BLOCK ***********************

  • How can we tell the printer to use a different paper cartridge

    Hello all,
    We are using t.code MN05 to assign a printer to each Purchase group. How can we tell the printer to use a different paper cartridge so that purchase orders ( output type ZNEU, ZEU, ZEN) can be printed on a paper with company logotype. Local team are removing most of the printers an we have only one multifunction printer availabel for a large number of employees.
    Thank you for your suggestions

    Hi,
    I can help you about how to use different Paper Tray's but different cartridge case I am not sure...

  • FAQ: Revel Transition basics: How does this affect the way I use my Adobe software?

    Q: How will this change the way I use my Elements software?
    A: Once you have migrated your files from Photoshop.com to Revel, it will be no longer be possible to sync your photo and video files between your Photoshop Elements Organizer and Photoshop.com.
    If you're using Photoshop Elements 11, you can share your JPEGs from the Elements Organizer to AdobeRevel.com.
    If you’re using Photoshop Elements 10 or earlier version, you won’t be able to directly import from Revel or export to Revel.
    Q: How will this change the way I use Photoshop.com?
    A: Photoshop.com accounts will be remain accessible until the end of the transition period CLICK HERE to see dates and details, but once we begin moving your photos to Revel you will no longer be able to upload photos to your Photoshop.com account.
    After the transition period CLICK HERE to see dates and details, all Photoshop.com accounts will be closed. The Photoshop.com website will remain live and continue to offer product information, trial software downloads, photo editing functionality, customer spotlights, tutorials, and other resources.

    very_nice wrote:
    The suggested advice in this support article http://support.apple.com/kb/HT1478 wasn't a help at all, because the option "enable disc use" in the summary window of itunes doesn't appear.
    *From the article*:
    Products Affected
    iTunes 7 for Mac, iTunes 7 for Windows, iPod nano, iPod shuffle, iPod mini, iPod, iTunes 8 for >Windows, iTunes 8 for Mac
    No mention of the Touch, it works differently from other iPods and has no "disk mode" as such.
    I think it can be used as a storage device by using a 3rd party App, search the the App Store for such items.
    Photos transferred to your Touch via iTunes will be of severely compromised quality i.e 640x480 pixel resolution and file size around 600-700 kb. These can be retrieved, again using a 3rd party application on your computer, such as [Touch Copy|http://www.wideanglesoftware.com/touchcopy> but you will not get back original quality images.
    Good luck,
    Dud.

  • How can i get the meta data from database?

    Hi, all java and db experts,
    I need to write a tool to generate java file which will be used to hold the resultset of a stored procedure of Oracle. Is there any API call or tools to connect to db and then get the meta data of the return cursor instead of reading stored procedure definition on my own?
    Please help, thanks a lot.
    Hanna

    if i execute a Oracle stored procedure, the resultset of a cursor is returned. It's easy to know the meta data at the runtime.
    However, could i get the meta data about the resultset of a cursor before runtime? Such as by connecting to the database and ask it about meta data of a specified stored procedure?
    Is it feasible?
    DatabaseMetaData dbmd = conn.getMetaData();
    ResultSet rs = dbmd.getProcedureColumns("", "%", "SP_NAME", "%");
    while (rs.next()) {
    String colName = rs.getString(4);
    int colType = rs.getInt(5);
    int colDataType = rs.getInt(6);
    int colPrecision = rs.getInt(8);
    int colLen = rs.getInt(9);
    int colScale = rs.getInt(10);
    long defaultValue = rs.getLong(11);
    But what i get is a list of stored procedure parameters. In oracle, cursor is IN OUT parameter . How can i get the meta data about the resultset of cursor?

  • I ended up having two id's, one being my original when first getting into itunes and the other came when I opened a me account.  I have purchases under the original id.  How do I merge the old account into the new account

    I ended up having two id's, one being my original when first getting into itunes and the other came when I opened a me account.  I have purchases under the original id.  How do I merge the old account into the new account

    Sorry, but it is not possible to merge two Apple IDs/iTunes Store accounts.
    Regards.

  • ICloud accidentally set-up with erroneous email acct. How do I reset the email originally used to start the Apple ID? I'm stuck in a loop...

    Hi Apple friends! Here's my frustrating situation. When I got the new computer (2012 Macbook Pro), I tried to set up iCloud but accidentally input an erroneous email acct. I cannot access iClod because the email was accidentally input as "[email protected]", not "[email protected]". How do I reset the email originally used to start the Apple ID? I'm stuck in a loop, and not only cannot use iCloud, but I keep getting messages popping up to register my iCloud with a non-existent email...
    Help?
    Sincerely,
    Cole
    [email protected]

    Have you tried to go into System Preferences > iCloud and entering the correct information there? You will first have to "sign out" of the wrong account and then log in with the correct information.
    If that does not work you should direct follow up to the iCloud for Mac forum.

  • How can I restore the game data from an old ipod touch to a new one?

    How can I restore the game data from an old ipod touch to a new one?

    Restore it from the backup of the old ipod.

  • How can I see the old backups of my previous Macbook done by Time machine in a Time capsule with my new iMac?

    How can I see the old backups of my previous Macbook done by Time machine in a Time capsule with my new iMac? I've changed from a Macbook to a iMac because that one stopped working and I cannot use it anymore. I've been able to import all the data of the last backup of the Macbook when setting the new iMac, but I cannot access now to the old backups of the Macbook and there are information that wasn't in the last backup and I would like to recover. Thank you very much.

    Yes, you can ..
    Read Q17 here.
    http://pondini.org/TM/FAQ.html
    Strongly recommend his whole section.. 14-17 and read it carefully to understand the ways you can make TM work for you.

  • How do I get the old Apple ID off of my iPhone and the new one installed?

    I got a MacBook Pro and decided to create a new Apple ID different from the one I previously had. How do I get the old Apple ID off my iPhone and the new one installed?

    When I tried this, my music stayed the same whereas my new iTunes has only about half the music it used to.  How can I get all the music to clear out so that it can sync my new music to it.  Simply connecting it to the MacBook Pro and pressing Sync has not worked.

  • I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    You can't merge accounts or copy content to a different account, so anything that you bought or downloaded via the old account is tied to that account - so any updates that those apps get you will only be able to download via that account. You can change which account is logged in on the iPad via Settings > Store

  • HT1918 I have 2 Apple ID's, how do I delete the old one as its interferring with my new account and the music I have already purchased through ITunes does not want to play.  Any suggestions?

    I have 2 Apple ID's, how do I delete the old one as its interferring with my new account and the music I have already purchased through ITunes does not want to play.  Any suggestions?

    Why would you create a new account?
    All purchases will be tied to the account from which they were purchased.
    You will have to authorize your computer for all the accounts from which music is purchased.

  • I had an iphone.  I have a new iphone and no longer use the old one.  How to do remove the old one from my icloud account?

    I had an iphone 4 on Sprint.  I switched to Verizon and purchased a 5S.  Kept the same phone number and affiliated the new phone to my existing icloud ID.  How do I remove the old device from my icloud ID? 

    and this if not already done
    iCloud: Remove your device from Find My iPhone

Maybe you are looking for