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: 

EXPORT to memory..

Former Member
0 Kudos

i want to export the vlaue to memory before the selection screen is displayed:

DATA : lv_obtyp TYPE jsto-obtyp.

lv_obtyp = 'QMI'.

EXPORT lv_obtyp TO MEMORY ID 'PM_OBTYP'.

wher can i put this piece of code so tat the value is in memory before the selection screen is displayed

thanks

5 REPLIES 5

Former Member
0 Kudos

Hi,

Write this code at the beginning of the report at the event INITIALIZATION.

This event keyword defines an event block whose event is triggered by the ABAP runtime environment during the flow of an executable program, directly after LOAD-OF-PROGRAM and before the selection screen processing of any existing standard selection screen. This gives you the one-time opportunity to initialize the input fields of the selection screen,

Shruthi

Former Member
0 Kudos

Hi,

write in the initialization if it's a report.

write in PBO if it is Module pool programming.

Regards,

Raj.

vinod_vemuru2
Active Contributor
0 Kudos

Hi Neha,

Put this piece of code in INITIALIZATION event.

INITIALIZATION

lv_obtyp = 'QMI'.

EXPORT lv_obtyp TO MEMORY ID 'PM_OBTYP'.

U can use constant insteead of variable. If u want variable then in data declaration u can assign initial value

DATA: lv_obtyp TYPE jsto-obtyp VALUE ''QMI'.

So nee need of one more assignment.

But what are u going to do with this data by exporting to memory ID?

Thanks,

Vinod.

JozsefSzikszai
Active Contributor
0 Kudos

hi,

put it into the LOAD-OF-PROGRAM event!

hope this helps

ec

former_member212653
Active Contributor
0 Kudos

Write the code in Initialization event.