Application Development 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: 

How to get global value

former_member302911
Active Participant
0 Kudos

Hi gurus,

I'm working for an user exit and i don't have the possibilities to declare a variable "ref to" class because this class isn't in the global data.

In debug, in the user-exit, i have the value at this reference :

-MY_TABLE[1]-BNFPO = 00010

I need to get this value, but i don't know how get it.

The Object number (O:94*) is variable and change at every new debug session.

The actual solution is an Export/Import with an enhancement.

There is a procedure to get the BNFPO or MY_TABLE in the User-Exit that not have a direct access to the class ?

Thank's.

Angelo.

1 REPLY 1

Former Member
0 Kudos

Hi,

you can assign global variables to field symbols using statements like (PROGRAM_NAME)VARIABLE_NAME


FIELD-SYMBOLS <fs>.
ASSIGN ('(SAPLMDR1)G_FCODE') TO <fs>.

I did not try to assign class reference, but it should be in the same way.

Regards,

--

Przemysław