Hello Abapers,
How to create a global variable (in main program) and use on the PBO?
In the main prpgram i create a class and implement it.
I declared this variable:
Data: Event_receiver TYPE REF TO lcl_event_receiver.
In the pbo need use(create) a global variable:
Create object Event_receiver.
And get this error message:
Field "Event_receiver" is unknown. It is neither in one of the specifies tables nor defined by "DATA" statement.
Any advice? Thanks
You declared variable in class attribute so it only accessible within class... Simply create another method and write all code related to pbo and call method in pbo... Else declare variable in top include(outside the class) it will become global variable.