cancel
Showing results for 
Search instead for 
Did you mean: 

Module pool

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

I think you must put your post in ABAP Programming Forum....

In order to your question ...i think you must use an ALV

Former Member
0 Kudos

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

former_member666940
Participant
0 Kudos

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

Former Member
0 Kudos

HI,

check this system defined program..

se 38 - BCALV_EDIT_03 Modification of cellss

Hope this help.. award points

Regards,

raj