Skip to Content
avatar image
Former Member

Access Session variable inside Transaction

Hi All,

Is it possible to access session variables inside Transaction.

Create session variable.

Update session variable value

acccess Session variable.

(user session)

Regards,

Sachin

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 01, 2010 at 09:28 AM

    Hi,

    you cannot change session variables in a BLT, but you can configure access to it.

    Switch on the autobind in the [XacuteConnector|http://help.sap.com/saphelp_mii121/helpdata/en/43/e80b59ad40719ae10000000a1553f6/frameset.htm] in the Data Servers. Then create transaction properties with the same name as the session variable, e.g. IllumLoginName. If you call you transaction using a Xacute query inside a HTML / IRPT page, MII will then automatically transfer the session variable value to the called transaction.

    Michael

    Edited by: Michael Otto on Oct 1, 2010 11:36 AM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 01, 2010 at 09:45 AM

    I requirement is to update session varaible inside one transaction and use that in other transaction / html page.

    Is it possible in MII 11.5

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 01, 2010 at 10:03 AM

    Thanks for reply Michael.

    I can set session variables inside html page using JavaScript with the getPropertyValue and SetPropertyValue.

    but I want to update session variable value inside one transaction and access that value inside other transaction.

    it is possible?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Inside a BLT you have only read access to a session variable.

      How about this idea:

      - call the BLT with a XacuteQuery, using the autobind mechanism

      - update the value

      - output the value to the calling HTML

      - change the session variable with JavaScript using the setPropertyValue

      - in the next HTML, call your second BLT via XacuteQuery

      - access the session property using autobind

      Michael