‎2008 May 21 9:07 AM
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
‎2008 May 21 9:11 AM
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
‎2008 May 21 9:11 AM
Hi,
write in the initialization if it's a report.
write in PBO if it is Module pool programming.
Regards,
Raj.
‎2008 May 21 9:11 AM
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.
‎2008 May 21 9:12 AM
‎2008 May 21 9:13 AM