ich habe ein ALV Grid implementiert, und einen Status angelegt, mit dem ich die Toolbar des ALV Grid ersetze.
Im ALV ist die Toolbar mit no_toolbar ausgeblendet.
Im
- Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
- MODULE user_command_0100 INPUT
- GeSHi ©
sende ich den Function Code mittels
- Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
- call method grid_garn->set_function_code changing c_ucomm = ok_code
- GeSHi ©
an das ALV Grid.
Die Funktion wird dann auch ausgeführt, jedoch verwschwindet das Ergebnis der Funktion sofort wieder. D.h. wenn ich eine Summe über eine
Spalte bilde, wird die Summe gebildet, eine halbe Sekunde später verschwindet die Summe aber wieder.
Wenn ich die Funktion 'Sortieren' (&OUP) an das Grid sende, wird zwar sortiert, doch das rote Dreieck, das die aktuell sortierte Spalte anzeigt,
verschwindet ebenfalls sofort wieder.
PBO:
- Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
- MODULE status_0100 OUTPUT.
- SET PF-STATUS 'S101'.
- SET TITLEBAR 'T100'.
- MODULE create_objects OUTPUT.
- CREATE OBJECT g_custom_container
- EXPORTING container_name = 'CCCONTAINER'.
- CREATE OBJECT grid_garn
- EXPORTING i_parent = g_custom_container.
- MODULE transfer_data OUTPUT.
- CALL METHOD grid_garn->set_table_for_first_display
- EXPORTING "i_structure_name = '?'
- is_layout = gt_layout
- CHANGING it_outtab = it_garn "it_garn
- it_fieldcatalog = gt_fieldcat.
- GeSHi ©
PAI:
- Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
- * MOVE ok_code TO save_ok_code.
- * CLEAR ok_code.
- CASE save_ok_code.
- * CALL METHOD g_custom_container->free.
- * CALL SELECTION-SCREEN 1000.
- * CALL METHOD g_custom_container->free.
- * CALL SELECTION-SCREEN 1000.
- LEAVE PROGRAM.
- call method grid_garn->set_function_code changing c_ucomm =
- save_ok_code.
- * call method grid_garn->set_user_command exporting i_ucomm =
- * save_ok_code.
- *
- GeSHi ©