definition load for a global class (6.20 SP25) required?

Die Frage ist als "gelöst" markiert. Den entsprechend Beitrag findest du hier.

Die Objektorientierung mit ABAP®: Vererbung, Dynamische Programmierung, GUI Controls (u.a. ALV im OO).
5 Beiträge • Seite 1 von 1
5 Beiträge Seite 1 von 1

definition load for a global class (6.20 SP25) required?

Beitrag von Guest_OO ( / / 0 / 3 ) »
Does anyone know if there is a setting for allowing or not allowing the direct access to components of global classes in ABAP OO?

The same source code on one machine (WAS 6.20 SP25) works without any problems and generates syntax error on another one with the same release and SP. We have just got a new test environment which for soem reason doesn't accept the source code form DEV system.

The error message:
Direct access to components of the global class /SAPDII/CL_VMS_ACTION
is not possible (CLASS /SAPDII/CL_VMS_ACTION DEFINITION LOAD statement is missing).

P.S. Selbstverstaendlich jede Antwort in DE oder EN ist gern gesehen :)

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


Beitrag von Steff (Site Admin / 386 / 0 / 1 ) »
Hi,

It seems that in your sourcecode where you try to use the mentioned class the following statement is missing:

Code: Alles auswählen.


CLASS CL_VMS_ACTION DEFINITION LOAD.

Insert above statement before creating instance of this class.

Regards,
Steff

Re: Titel: definition load for a global class (6.20 SP25) re

Beitrag von Guest_OO ( / / 0 / 3 ) »
Hi,

adding this statement is an obvious solution ... but, the whole application in DEV is written without it and it works. Now after transporting the development to TST wthe problem occured.
We would have to trace every possible place in DEV, where we would have to add it, whiche is a considerable effort.

I would rather try to find out WHY it happens?

thanks

Beitrag von Frank Dittrich (Expert / 674 / 0 / 15 ) »
I'm sure the CLASS /SAPDII/CL_VMS_ACTION DEFINITION LOAD statement exists in the DEV system. May be it's in an include, and the other system still uses an older version of this include.
I suggest you do a global search for CL_VMS_ACTION (just in case the / in the prefix is causing trouble) in the source code of your main program.
I'm sure there's a CLASS /SAPDII/CL_VMS_ACTION DEFINITION LOAD statement somewhere.
(If the text search doesn't find this statement, may be it's included in a macro definition ...)

Frank

Beitrag von Guest_OO ( / / 0 / 3 ) »
Hi Frank,

It can't be, because the TST is build on transports from DEV. So the source code should be the same.
It's not only CL_VMS_ACTION which caused this problem. In any place where we used parameters from global classes in DEV we had the same problem. We have already solved it by analyzing the code and adjusting it accordingly (adding the DEFINITION LOAD) in DEV and transporting to TST. We had like 30 occurences for about 10 classes (SAP standard and Custom ones).

I still don't know why TST behaves different, but at least we have a working application.

thanks, Jan

Seite 1 von 1

Vergleichbare Themen

6
Antw.
4253
Views
class definition.
von LittleT » 11.09.2006 08:48 • Verfasst in ABAP Objects®
0
Antw.
5649
Views
Fehlerhafte interne Währung in Zahlungsdatei nach Upgrade auf EHP7 SP25
von Doobie » 29.11.2023 15:45 • Verfasst in Financials
6
Antw.
31511
Views
ALV OO Set_table_for_first_display Load Layout YES/Change NO
von RIG » 29.01.2018 14:36 • Verfasst in ABAP® für Anfänger
2
Antw.
1322
Views
PDF Dokument im SAP global abspeichern
von ABAPlerv » 15.06.2022 13:05 • Verfasst in ABAP® für Anfänger
1
Antw.
417
Views
lokal und global im Report
von HH_ABAP » 02.06.2023 12:14 • Verfasst in ABAP® für Anfänger

Über diesen Beitrag


Die Frage ist als "gelöst" markiert. Den entsprechend Beitrag findest du hier.

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

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.