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

EXPORT to memory..

Former Member
0 Likes
823

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
Read only

Former Member
0 Likes
755

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

Read only

Former Member
0 Likes
755

Hi,

write in the initialization if it's a report.

write in PBO if it is Module pool programming.

Regards,

Raj.

Read only

vinod_vemuru2
Active Contributor
0 Likes
755

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.

Read only

JozsefSzikszai
Active Contributor
0 Likes
755

hi,

put it into the LOAD-OF-PROGRAM event!

hope this helps

ec

Read only

Former Member
0 Likes
755

Write the code in Initialization event.