on 03-26-2007 5:47 PM
Hi friends,
I was created one Ztable and similar fields i was designed one screen layout in SE51, I need to display the ztable records in my screen layout, After that i will modify each record and i will click the SAVE button, it should be update in the Ztable.
Please suggest to how to do.
Thanks,
Gourisankar
I think you must put your post in ABAP Programming Forum....
In order to your question ...i think you must use an ALV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check for this code..
CLASS LCL_APPLICATION1 DEFINITION DEFERRED.
DATA: G_APPLICATION1 TYPE REF TO LCL_APPLICATION1,
CLASS LCL_APPLICATION1 DEFINITION.
DEFINITION
PUBLIC SECTION.
METHODS:
HANDLE_TOOLBAR
FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID
IMPORTING E_OBJECT E_INTERACTIVE,
HANDLE_USER_COMMAND
FOR EVENT USER_COMMAND OF CL_GUI_ALV_GRID
IMPORTING E_UCOMM.
ENDCLASS.
CLASS LCL_APPLICATION1 IMPLEMENTATION.
METHOD HANDLE_TOOLBAR.
DATA: LS_TOOLBAR TYPE STB_BUTTON.
append SAVE icon
CLEAR LS_TOOLBAR.
MOVE 'UPDA' TO LS_TOOLBAR-FUNCTION.
MOVE ICON_SYSTEM_SAVE TO LS_TOOLBAR-ICON.
MOVE 'Save' TO LS_TOOLBAR-QUICKINFO.
MOVE ' ' TO LS_TOOLBAR-DISABLED.
APPEND LS_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
CLEAR LS_TOOLBAR.
ENDMETHOD.
METHOD HANDLE_USER_COMMAND.
CASE E_UCOMM.
WHEN 'UPDA'.
PERFORM UPDATE.
ENDCASE.
ENDMETHOD.
ENDCLASS.
this statements u have to write after CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
CREATE OBJECT G_APPLICATION1.
SET HANDLER G_APPLICATION1->HANDLE_USER_COMMAND FOR GRID1.
SET HANDLER G_APPLICATION1->HANDLE_TOOLBAR FOR GRID1.
CALL METHOD grid1->set_toolbar_interactive
Hope this help.. award points...
Regards,
raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Shankar,
For this updations you have to write small coding for update button of (event) that you can write through trxn. You have to include this coding in PAO/PBO depends on the requirements.
This is as per my knowledge ask Any ABAPers in you team they will guide you properly
Cheers
SRS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
check this system defined program..
se 38 - BCALV_EDIT_03 Modification of cellss
Hope this help.. award points
Regards,
raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.