Skip to Content
0
Former Member
Feb 10, 2007 at 04:47 PM

Issue faced while passing variable between 2 different applications

19 Views

Hi i need some help.--

Issue is the window.open is always picking up an old value of V_TARGET_URL ( 1 run old).

Code attached below

<htmlb:button id = "b_edit"

text = "Edit"

onClick = "onInputProcessing(b_edit)"

onClientClick = "setEdit();" />

function setEdit()

{

window.open("<%= V_TARGET_URL%>");

}

WHEN 'b_edit'.

  • Construct the Target URL

call method runtime->construct_bsp_url

exporting

in_protocol = 'http'

in_application_ns = runtime->application_namespace

in_application = runtime->application_name

in_page = '**/targetapplicationname/maintainrole.htm'

importing

out_abs_url = v_target_url.

CONCATENATE runtime->application_name '/**/' INTO w_app_name.

REPLACE w_app_name IN v_target_url WITH space.

  • Set Server side cookie to store the source BSP appl detail

v_cookie = 'srcappname/listresult.htm'.

CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie

EXPORTING

name = 'source_bsp'

application_name = 'NONE'

application_namespace = 'NONE'

username = sy-uname

session_id = 'NONE'

data_value = v_cookie

data_name = 'sbsp'

expiry_time_rel = 36.

  • Pass the User ID via URL

CONCATENATE v_target_url '?w_uniqueid_enter=' w_uniqueid_enter INTO v_target_url.

Regards

Bhavana