OnInitialization bestellen4.htmusername = sy-uname.
CALL METHOD CL_BSP_SERVER_SIDE_COOKIE=>SET_SERVER_COOKIE
EXPORTING
NAME = ?
APPLICATION_NAME = runtime->application_name
APPLICATION_NAMESPACE = runtime->application_namespace
USERNAME = username
SESSION_ID = runtime->session_id
DATA_NAME = ?
DATA_VALUE = ?
expiry_time_rel = 3600.
Würde mich freuen, wenn jemand mir helfen kann.DATA: username TYPE STRING.
username = sy-uname.
CALL METHOD CL_BSP_SERVER_SIDE_COOKIE=>GET_SERVER_COOKIE
EXPORTING
NAME = ?
APPLICATION_NAME = runtime> application_name
APPLICATION_NAMESPACE = runtime->application_namespace
USERNAME = username
SESSION_ID = runtime->session_id
DATA_NAME = ?
CHANGING
DATA_VALUE = ?
Data: username type string.
username = sy-uname.
call method cl_bsp_server_side_cookie=>set_server_cookie
EXPORTING
name = 'booking'
application_namespace = runtime->application_namespace
application_name = runtime->application_name
username = username
session_id = runtime->session_id
data_name = 'buchung'
data_value = test
expiry_time_rel = 3600.
Code: Alles auswählen.
* set seversite cookie
cl_bsp_server_side_cookie=>set_server_cookie(
EXPORTING
name = 'cookiename'
application_namespace = 'NONE'
application_name = 'NONE'
username = 'NONE'
session_id = 'NONE'
data_value = itab "name der zu übergebenden tabelle
data_name = 'NONE'
expiry_time_rel = 3600 ). "laufzeit (in sekunden) des cookies
Code: Alles auswählen.
* get cookie
cl_bsp_server_side_cookie=>get_server_cookie(
EXPORTING
name = 'cookiename'
application_namespace = 'NONE'
application_name = 'NONE'
username = 'NONE'
session_id = 'NONE'
data_name = 'NONE'
"IMPORTING
"expiry_date = date
"expiry_time = time
CHANGING
data_value = itab ).