Getting the displayed data from an ALV Grid.

ABAP, Java, BSP, etc.
2 Beiträge • Seite 1 von 1
2 Beiträge Seite 1 von 1

Getting the displayed data from an ALV Grid.

Beitrag von Meurant (ForumUser / 1 / 0 / 0 ) »
The situation is as follows:

I'm doing work in APO, specifically with regards to ?Display Characteristic Combinations? (transaction /SAPAPO/MC62). I must allow a user to delete selected lines for an ALV report and in turn delete the entries from the database.

To display the report a standard program /SAPAPO/TS_PSTRU_SE16 provides the container for the ALV Grid and also initialises a few parameters. The program calls a generated program which actually builds the displayed data table. The generated program also does the SET_TABLE_FOR_FIRST_DISPLAY. The reason a generated program is called is because the structure of the internal table is dynamic based on InfoCubes in APO.

I?ve copy the standard program and can get the copied program to call the correct generated programs. I can manipulate the layout, field catalogue. However the problem is that I cannot get to the data displayed as it does not get passed back to the calling program. I?ve tried copy the ALV grid class, adding a method to it that would provide the data. Then casting the object based on the standard class to an object based on the copied class (MOVE CLASS1 ?TO CLASS2). However this does not work. I get a casting error which in turn causes short dump. I know that the error can be caught but that does fix the problem.

Any help will be most appreciated.
Thanks.

gesponsert
Stellenangebote auf ABAPforum.com schalten
kostenfrei für Ausbildungsberufe und Werksstudenten


Beitrag von Dörk (ForumUser / 75 / 0 / 0 ) »
Hello Meurant.

Here is something that perhaps can help you.

Code: Alles auswählen.


    WHEN
    'SAVE' OR 'SAVE1'.

      CALL METHOD g_1->check_changed_data.

      PERFORM update.

FORM update.
MODIFY t9citi FROM TABLE t_1.
ENDFORM.
This method say your internel table to take the values you edit in your grid.

Regards Dörk.
follow the white rabbit ;)

Seite 1 von 1

Vergleichbare Themen

0
Antw.
2070
Views
DATA-CHANGED-PROTOCOL vom ALV-Grid manipulieren
von Frog » 27.05.2008 21:31 • Verfasst in ABAP Objects®
17
Antw.
4318
Views
DATA OFFSET und DATA TRANSFER
von Littlered » 21.07.2005 16:01 • Verfasst in ABAP® Core
2
Antw.
2363
Views
TYPES und DATA
von bohne » 19.11.2006 23:27 • Verfasst in ABAP® für Anfänger
2
Antw.
1604
Views
Create Data
von asano » 11.08.2004 16:54 • Verfasst in ABAP® Core
1
Antw.
2532
Views
Export Data
von Heikeb » 28.08.2012 12:45 • Verfasst in ABAP® für Anfänger

Über diesen Beitrag


Unterstütze die Community und teile den Beitrag für mehr Leser und Austausch

Aktuelle Forenbeiträge

Zwischensumme Adobe Forms
vor 2 Tagen von Lucyalison 1 / 64
Interne Tabelle
vor 5 Tagen von black_adept 2 / 133
MaLo-Checker in ABAP
vor einer Woche von A6272 6 / 254

Newsletter Anmeldung

Keine Beiträge verpassen! Wöchentlich versenden wir lesenwerte Beiträge aus unserer Community.
Die letzte Ausgabe findest du hier.
Details zum Versandverfahren und zu Ihren Widerrufsmöglichkeiten findest du in unserer Datenschutzerklärung.

Aktuelle Forenbeiträge

Zwischensumme Adobe Forms
vor 2 Tagen von Lucyalison 1 / 64
Interne Tabelle
vor 5 Tagen von black_adept 2 / 133
MaLo-Checker in ABAP
vor einer Woche von A6272 6 / 254

Unbeantwortete Forenbeiträge

Zwischensumme Adobe Forms
vor 2 Tagen von Lucyalison 1 / 64
Group Items auf einer Filterbar
vor einer Woche von Bright4.5 1 / 107
tRFC Transaktionen SM58
vor 4 Wochen von A6272 1 / 140