02-20-2008 10:09 AM
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
02-20-2008 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^
02-20-2008 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.
02-20-2008 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^