Code: Alles auswählen.
DATA:
lv_xml TYPE string,
lv_username TYPE string.
model ?= get_model( model_id = 'main' ).
lv_username = sy-uname.
Call TRANSFORMATION id SOURCE o = model RESULT XML lv_xml.
cl_bsp_server_side_cookie=>set_server_cookie(
name = 'MODEL'
application_name = runtime->application_name
application_namespace = runtime->application_namespace
username = lv_username
session_id = runtime->session_id
data_value = lv_xml
data_name = 'MODEL'
expiry_time_rel = 3600 ).
Code: Alles auswählen.
<?xml version="1.0" encoding="iso-8859-1"?>#<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"><asx:values><O href="#o19"/></asx:values><asx:heap xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:abap="http://www.sap.com/abapxml/types/built-in" xmlns:cls="http://www.sap.com/abapxml/classes/global" xmlns:dic="http://www.sap.com/abapxml/types/dictionary"> <cls:ZCL_M_ESS_TRV_OVW id="o19"/
></asx:heap></asx:abap>