Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CLASS ... Definition LOAD in Smartforms

Former Member
0 Likes
1,048

Hi all,

does anybody know how to attached definition of class (containing only static methods and constants, so no instance will be created) to smartforms? Statement class ... definition load under section "Initialization" doesn't work (i cant use constants f.e. on condition tabs of text node) i get then always message: "Direct access to components of the global class ZCL_SE_CONST is not possible (CLASS ZCL_SE_CONST DEFINITION LOAD statement is mi" SAP 4.6C

Thank you.

Juzio

Message was edited by:

Juzio Kowlaski

3 REPLIES 3
Read only

Former Member
0 Likes
612

Hi Juzio,

I don't know how you have declared the z class, but i am able to use the static attributes of standard class like CL_ABAP_CHAR_UTILITIES in the conditions.

I have used a global variable of the smartform to compare with the static attribute CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB directly in the conditions tab.

regards,

Ravi

Read only

0 Likes
612

H,

which version of sap do you use? it doesn't work on 4.6C. and i'd be gratefull if anybody could tell me if i can load my own (Z) class definition to smartform

Thank you

J

Read only

0 Likes
612

Hi,

In SAP 4.6C  you need to use the statement 'CLASS ... DEFINITION LOAD' to access to class's static components.

Eg. :

Report ...

TYPE-POOLS abap.

CLASS cl_abap_objectdescr DEFINITION LOAD.

DATA: line     TYPE c LENGTH 80,

...

RG,

Hung.