12-05-2013 12:11 PM
Hi All,
I am developing the BSP Application. I want to move the internal table data from one page to another page. how can I get this data in another page. Please let me Know about it.
Thanks,
Santhosh
01-24-2014 11:14 AM
Hi All,
Thank you all,
I solved the above question.
Thanks,
Santhosh
12-05-2013 12:27 PM
12-06-2013 3:51 AM
Hi Farid,
Thanks farid, Can u send me the example of how to use this?
Thanks,
Santhosh
12-06-2013 4:44 AM
Hi Santhosh,
Try below.
1. first page :- it_table is internal table
call method cl_bsp_server_side_cookie=>set_server_cookie
exporting
name = 'it_table'
application_name = runtime->application_name
application_namespace = runtime->application_namespace
username = sy-uname
session_id = sy-uname " runtime->session_id
data_name = 'it_table'
data_value = it_table
expiry_time_rel = 1800.
2.second page ( oninitialization event)
call method cl_bsp_server_side_cookie=>get_server_cookie
exporting
name = 'it_table'
application_name = runtime->application_name
application_namespace = runtime->application_namespace
username = sy-uname
session_id = sy-uname
data_name = 'it_table'
changing
data_value = it_table.
Regards,
Venkat
12-06-2013 4:56 AM
Use serverside cookies.
data: l_cdata type xstring.
EXPORT itab FROM itab
TO DATA BUFFER l_cdata.
“”store in serverside cookie
CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
EXPORTING
name = 'myItab'
application_name = runtime->application_name
application_namespace = runtime->application_namespace
username = sy-uname
session_id = runtime->session_id
data_value = l_cdata
data_name = 'l_cdata'
expiry_time_rel = 600.
On the following bsp you can get the data back using:
CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
EXPORTING
name = 'myItab'
application_name = runtime->application_name
application_namespace = runtime->application_namespace
username = sy-uname
session_id = runtime->session_id
data_name = 'l_cdata'
CHANGING
data_value = l_cdata.
IF l_cdata IS NOT INITIAL.
IMPORT itab = ltab_itab
FROM DATA BUFFER l_cdata.
12-06-2013 6:14 AM
Hi Farid,
I am not getting the values. Refreshing the data in cookies also when I clicked on button.
Please can u provide me the step by step procedure?
Thanks,
Santhosh
12-06-2013 6:14 AM
Hi Venkat,
I am not getting the values. Refreshing the data in cookies also when I clicked on button.
Please can u provide me the step by step procedure?
Thanks,
Santhosh
01-24-2014 11:14 AM
Hi All,
Thank you all,
I solved the above question.
Thanks,
Santhosh
01-24-2014 11:20 AM
Hi Santosh,
can you please specify how you have solved this,
let people know ,any one can get benifited with this in future.
01-24-2014 11:56 AM
Hi All,
While going to another page with internal table data in that page itself we need to write below code by this code itself holds the previous data.
RUNTIME->KEEP_CONTEXT = 1.
Thanks,
Santhosh