sapdev logo background
sapdev logo sapdev logo
Comments

Organisation update program - get server side cookie ( get_server_cookie )




This is the orgupdate.htm page of the example SAP HR org structure BSP, this is being used to demonstrate the use of javascript retrieve the SAP HR org structure and display it to the SAP bsp user. Please note this page will do very little on it own and needs to be implemented as part of the whole SAP HR org structure BSP

*orgupdate.htm


Type Definitions
----------------
TYPES: BEGIN OF t_orgdisplay,
  level(40) TYPE c,
  id        type i,
  parent    type i,
  objid TYPE hrp1001-objid,
  orgtx     type string,
  begda TYPE hrp1001-begda,
  endda TYPE hrp1001-endda,
  display type string,
 END OF t_orgdisplay.
TYPES: tt_orgdisplay TYPE STANDARD TABLE OF t_orgdisplay.


Page Attributes
---------------
gd_id		TYPE	I
gd_update	TYPE	I
it_orgdisplay	TYPE	TT_ORGDISPLAY


On Initialization
---------
* event handler for data retrieval
DATA: a_name          TYPE string VALUE 'NONE',
      a_name_space    TYPE string VALUE 'NONE',
      u_name          TYPE string VALUE 'NONE',
      session_id      TYPE string VALUE 'NONE'.


cl_bsp_server_side_cookie=>get_server_cookie(
  EXPORTING
    name                  = 'ITORGSTRUCT'
    application_name      = a_name
    application_namespace = a_name_space
    username              = u_name
    session_id            = session_id
    data_name             = 'COOKIE_ID_43CASE1'
  CHANGING
    data_value            = it_orgdisplay ).

    navigation->goto_page('orgtest.htm').


Layout
------
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>

<htmlb:content design="design2003">
  <htmlb:page title = " ">
    <htmlb:form>

    </htmlb:form>
  </htmlb:page>
</htmlb:content>




comments powered by Disqus