Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ABAP OO --> Tabelle Zurückgeben

Empfohlene Antworten

Moin,

arbeite mich gerade in Abap OO ein.

Hab jetzt ein prob:

Hab ne Klasse Z_ABC und ne methode GET_LIST

Die Methode auch Importparameter BEGDA,PLVAR,OTYPE

und ne Tabelle als Return Parameter

Ich ruf die methode wie folgt auf:

DATA ZHR123 TYPE REF TO Z_ABC.

CREATE OBJECT ZHR123.

CALL METHOD ZHR123->GET_LIST

EXPORTING ZI_BEGDA = SY-DATUM

ZI_PLVAR = '01'

ZI_OTYPE = 'E'

RECEIVING ZT_RES = ZT_RESULT.

Ich bekomm folgende Fehlermeldung:

"Der Typ von "ZT_RESULT" ist nicht in den Typ von "ZT_RES" konvertierbar"

Beide sind aber vom selben Typ.

Wie schaffe ich es die Tabelle zu übergeben!?

und wenn du es statt return mit export machst?

und wenn du es statt return mit export machst?

dann auch

dann auch

was für eine struktur willst du denn dann zurückgeben? (also der genaue datentyp)

edit: bzw. wenn du tabellen hast, sind dann auch beide strukturen ohne header definiert?

habs geht jetzt.

hab in dem FuBa die Tabelle nicht über die lokale Schnittstelle sonder mit DATA ZT_TTT TYPE TABLE OF HRP1000.

deklariert dann hats gefunzt :-)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.