Skip to Content
author's profile photo Former Member
Former Member

Editable Blocked ALV

HI,

I have created a Blocked ALV with 2 blocks..

first block is editable by the user , I want to store the editted date into my Internal table for further processing..

Kindly guide me how to do..

Plz dont give any links... all sites are blocked here except SDN

With Rgds,

S.barani

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 20, 2008 at 10:48 AM

    hi

    good

    there are two types of areas of queries : local and gobal. Now your queries are local, therefor you cannot transport them, copy to them to global area and you'll be able to transport.

    You can do it with program: RSAQR3TR

    reward point if helpful.

    thanks

    mrutyun^

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 20, 2008 at 10:21 AM

    Hi,

    keep the button in the alv toolbar such save then modify

    ----


    • CLASS L_CL_EVENTS DEFINITION *

    ----


    • Class for inserting buttons on the toolbar *

    ----


    CLASS l_cl_events DEFINITION.

    PUBLIC SECTION.

    METHODS:

    toolbar FOR EVENT toolbar

    OF cl_gui_alv_grid

    IMPORTING e_object

    e_interactive,

    user_command FOR EVENT user_command

    OF cl_gui_alv_grid

    IMPORTING e_ucomm .

    ENDCLASS. " L_CL_EVENTS DEFINITION

    ----


    • CLASS L_CL_EVENTS IMPLEMENTATION *

    ----


    • Implementation of class L_CL_EVENTS *

    ----


    CLASS l_cl_events IMPLEMENTATION.

    METHOD toolbar.

    PERFORM event_toolbar USING e_object.

    ENDMETHOD. " TOOLBAR

    METHOD user_command.

    PERFORM event_ucomm USING e_ucomm.

    ENDMETHOD. " USER_COMMAND

    ENDCLASS. " L_CL_EVENTS IMPLEMENTATION

    ----


    • FORM EVENT_TOOLBAR *

    ----


    • Setting toolbar in the alv grid *

    ----


    • -->E_OBJECT TYPE REF TO CL_ALV_EVENT_TOOLBAR_SET *

    ----


    FORM event_toolbar USING e_object

    TYPE REF TO cl_alv_event_toolbar_set.

    • Local declaration for the button.

    DATA: ls_toolbar TYPE stb_button.

    • To add Approve button

    ls_toolbar-function = 'approve'.

    ls_toolbar-butn_type = 0.

    ls_toolbar-text = 'APPROVE'.

    APPEND ls_toolbar TO e_object->mt_toolbar.

    ENDFORM. " EVENT_TOOLBAR

    ----


    • FORM EVENT_UCOMM *

    ----


    • After Input in the ALV grid,if user select record and press *

    • approve or reject then the record will get updated *

    ----


    • --> PR_ucomm type sy-ucomm *

    ----


    FORM event_ucomm USING pr_ucomm LIKE sy-ucomm.

    CASE pr_ucomm.

    • If e_ucomm contains 'APP' i.e.function code for Approve button

    WHEN 'APPROVE'. " To approve selected record

    PERFORM app_timesheet USING c_approve_status.

    ENDCASE. " CASE E_UCOMM

    ENDFORM. " EVENT_UCOMM

    In pai of the screen call this method.

    • To change the data.

    CALL METHOD g_alv->check_changed_data.

    then ur data will get modified and the data will be modified in ur output table then from ur out put table u can get the changed dates .

    If u have any queries post me again.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.