Help needed: Cookie Creation to be exchanged between Applications

Hi to all,
I need to create cookies to be exchanged on the same domain between a IBM application and Peoplesoft. This is a temporary solution before Kerberos is implemented.
I would like to create the cookie righ in the signon peoplecode after the user being authenticated. The Signon PeopleCode does not allow cokie creation with the PCode API %Response.CreateCookie. As a workaround I coded the cookie creation on each page that refers to the IBM application. I am not happy with this solution.
Can anyone help me out of this? I have been working on this for 2 weeks and I do not see a solution.
Thanks very much

@Michel to answer your question:
If trying to create cookie in the Signon Pcode
1) The code
I created a new record FuncLIB_OSMXXX in which I add the PCode I found on http://peoplesoft.wikidot.com/cookies
Function S1CreateCookie() Returns boolean
&cookieNew = %Response.CreateCookie("S1_COOKIE");
&cookieNew.Value = "Echange de cookie non chiffré";
&authTokenDomain = (%Request.AuthTokenDomain);
&authTokenDomain = ".xxxx.fr";
If (All(&authTokenDomain) And
&authTokenDomain <> "") Then
REM &cookieNew.Domain = %Request.AuthTokenDomain;
&cookieNew.Domain = &authTokenDomain;
End-If;
&cookieNew.Path = "/";
&cookieNew.Secure = True;
&cookieNew.MaxAge = 3600;
Return True;
End-Function;
2) I set the Sigon PCode up to call the S1CreateCookie
Invoke as user signing in = True
Ebabled = True
Record = FuncLIB_OSMXXX
FieldName = PWDCNTL
EventName = FieldChange
FuncTion_Name = S1CreateCookie
3) I activate the PCode debugger at the App Server Level
The error I got is
First operand of . is NULL, so cannot access member Createcookie (180,136) FUNCLIB_OSMXXX. FiedlChange
Edited by: Meapri on Feb 6, 2013 8:14 AM

Similar Messages

  • Dear experts help needed in creation of report in hr

    Please check the below code.
    There is one Transaction code PA20 from these i need the fields in my report.
    I tried writing the report but the fields are from structure so please help in creating the report.
    I am a beginner so i donno how to find the below fields are coming from which table.
    when i do F1 on the fields in PA20 i found the fields but they are from structure.
    type-POOLS: SLIS.
    TYPES : BEGIN OF TY_P0001,
            PERNR TYPE PERNR_D,      "Personnel Number
            BEGDA TYPE BEGDA,        "Start Date
            BUKRS TYPE BUKRS,        "Company Code
            ENAME TYPE EMNAM,        "Formatted Name of Employee or Applicant
            END OF TY_P0001.
    TYPES : BEGIN OF TY_P0016,
            PERNR TYPE PERNR_D,      "Personnel Number
            PRBZT TYPE PRBZT,        "Probationary Period
            CTTYP TYPE CTTYP,        "Contract Type
            END OF TY_P0016.
    TYPES: BEGIN OF TY_P9210,
             PERNR TYPE PERNR_D,
            ZTICKET_AMT TYPE ZTICKET_AMT,  "Ticket Amount
            END OF TY_P9210.
    TYPES : BEGIN OF TY_OUTPUT,
             PERNR TYPE PERNR_D,      "Personnel Number
             BEGDA TYPE BEGDA,        "Start Date
             BUKRS TYPE BUKRS,        "Company Code
             ENAME TYPE EMNAM,        "Formatted Name of Employee or Applicant
             PRBZT TYPE PRBZT,        "Probationary Period
             CTTYP TYPE CTTYP,        "Contract Type
             ZTICKET_AMT TYPE ZTICKET_AMT,  "Ticket Amount
            END OF TY_OUTPUT.
    DATA:  T_P0001 TYPE TY_P0001 OCCURS 1,
           W_P0001 TYPE TY_P0001,
           T_P0016 TYPE TY_P0016 OCCURS 1,
           W_P0016 TYPE TY_P0016,
           T_P9210 TYPE TY_P9210 OCCURS 1,
           W_P9210 TYPE TY_P9210,
           T_OUTPUT TYPE TY_OUTPUT OCCURS 1,
           W_OUTPUT TYPE TY_OUTPUT.
        START-OF-SELECTION.
            SELECT PERNR
                   BEGDA
                   BUKRS
                   ENAME FROM P0001 INTO TABLE T_P0001
                   WHERE
                    AND  BUKRS IN S_BUKRS
                    AND  BEGDA < '31032007'.
              SELECT PERNR
                     PRBZT
                     CTTYP
                     FROM P0016 INTO TABLE T_P0016
                     FOR ALL ENTRIES IN T_P0001
                     WHERE PERNR = T_P0001-PERNR
              SELECT PERNR
                     ZTICKET_AMT
                     FROM P920 INTO TABLE T_P920
                     FOR ALL ENTRIES IN T_P920
                     WHERE PERNR = T_P0001-PERNR.

    use logical data base PNP.
    tables: pernr.
    infotypes: 0001, 0016, ....
    start-of-selection.
    get pernr.
    here all tables Pxxxx defined as INFOTYPES are filled for the selected PERNR.

  • Urgent help needed in creation of planning application

    Hi,
    Iam new to planning. I installed planning and configured(Created planning instance, Datasource). When i login into workspace and want to create new planning application. The wizard opens correctly. After giving application name, calender,currency type, Plan type, etc... when i click finish to create a new planning application, it says *"An error occured while processing this page. Check the log for detail".* But i observed one thing the application was created in Essbase without Databases and outline. So can anyone explain me wats the exact prob. where I can see the Log details. Help me.
    Thanks in advance.

    Hi,
    Databases will not be created until you created until you refresh to essbase from within planning, you are not up to that stage yet. Only an essbase application will be created.
    What I suggest you do, is delete the essbase application. Then run planning from the start menu and not as a service, this will mean you will get any error messages displayed in the window.
    Then try and perform the application creation again and see what errors are produced.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Help needed regarding creation of report

    Hi all
    I am using apex 4.0 and oracle 10g
    I am creating a classic report and I have columns to display in the report.
    ex col A, Col B and Col C
    I am getting the values of Col A and Col B values from the table. I need to get the value of Col C from a different table based on Col A and Col B.
    Ex:
    Col A Col B Col C()
    5 4 AAA
    1 3 BBB
    7 3 CCC
    Can anyone please let me know how we can do this in apex or write a sql to generate this kind of report
    to get the value for Col C based on col A and B/
    Thanks
    Rik
    Edited by: Rik281 on Aug 4, 2011 7:46 AM
    Edited by: Rik281 on Aug 4, 2011 7:49 AM

    Thomas thanks for the quick reply,
    I am sorry that I have given the question wrong...
    I need to get the value of col C from a different table based on Col A and B Values. can you please let me know about that?

  • Help need in creation of auth object

    Hi all,
    can anyone assist me in creating an auth object to restrict users based on plant.
    I would appreciate i anyone of you could send me screen shots of the procedure.
    My email id is
    <b><removed by moderator></b>
    Thanks
    Venki

    Hi,
    Basically you can use derived role and restric users based on plant...
    Other than standard objects do you want to create auth objects.
    For more information on you can follow link. info on objects
    http://help.sap.com/saphelp_47x200/helpdata/en/ea/e9b0054c7211d189520000e829fbbd/frameset.htm
    Cheers
    Soma

  • URGENT !! Help Needed: Context creation in iPlanet 5.1

    Can some one tell me why this piece of code failed on iPlanet Directory Server5.1 where as it works fine on IBM Secureway?
    Hashtable env = new Hashtable(11);
    env.put(Context.INITIAL_CONTEXT_FACTORY,
         "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, "ldap://"+args[0]+":389");
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, args[1]);
    env.put(Context.SECURITY_CREDENTIALS, args[2]);
    DirContext ctx = new InitialDirContext(env);
    Attributes attrs = new BasicAttributes(true);
    Attribute objclass = new BasicAttribute("objectclass");
    objclass.add("top");
    objclass.add("domain");
    attrs.put(objclass);
    // This line failed with the exception below
    Context result = ctx.createSubcontext("dc=mydomain", attrs);
    The exception is:
    javax.naming.NameNotFoundException: [LDAP: error code 32 - No Suc
    h Object]; remaining name 'dc=mydomain'

    Thanks for the reply.
    We need to have dc=mydomain.com created under top level for this to work.
    But what actuallyu I am doing here is that I am trying to create this subcontext under top level.

  • Urgent help needed on writing errors in to windows application logs

    Hi all,
    we have web based application. Whenever there is critical errors encounters in our application we need to write that errors in to windows
    event viewer, application logs. Please help me on how to do this.
    do we have any specific API for this ?
    thanks in advance
    Shivakumar

    You should use WinAPI and followed functions: RegisterEventSource(), ReportEvent() and may be some more. It was some time ago as I deal with...

  • Help Needed with Data-modeling to build an application on

    Hi would anyone be able to help me in creating a data model  cause im really stuck with this one .Basically if been asked to create a survey application in oracle apex that use to excel based . So the info i was given was in a form of  excel sheet which looks like this
    NAME
    E-MAIL
    TSSA
    ORACLE
    HP
    IBM
    MS
    SAP
    INTERGRAPH
    CISCO
    Relationship
    Contracting
    Performance
    Architecture
    Supplier Feedback
    comments
    Jxxxxxx yyyyyyf
    [email protected]
    Yes
    Yes
    Yes
    Yes
    x
    requested to be added
    nnnitha iiiiiah
    [email protected]
    Yes
    Yes
    Yes
    x
    x
    Knnnn kkkikot
    [email protected]
    Yes
    x
    x
    is not payed
    Gggrt Louuuue
    [email protected]
    Yes
    Yes
    Yes
    Yes
    Yes
    Yes
    Yes
    Yes
    x
    x
    x
    x
    jeiiiha ad
    [email protected]
    Yes
    x
    to meet with
    John Rat
    [email protected]
    Yes
    x
    x
    So where it says yes thous are the vendors that people associated with them have to asses and where there's an X thous are the topics that the vendors have to be rated on . So if for example the first guy on the list Jxxxxxx yyyyyyf will asses TSSA , ORACLE, HP , IBM , MS , SAP  on the topic of Architecture and if you look at the second user nnnitha iiiiiah he would rate TSSA , ORACLE , INTERGRAPH on the topics of Relationship and performance  . Any idea how i could data model this to get my table structures right .so that features like completion status could be displayed to the user through APEX which can only be done by a correct data-model i have tried normalization but  i did go anywhere becauce there are so many variations any idea on how you would go about data modeling this would be greatly appreciated thank you    

    Not really an APEX specific question..  Maybe you should try posting this in the data modeler forum : SQL Developer Data Modeler
    Thank you,
    Tony Miller
    LuvMuffin Software

  • Help need in drag drop operation in AIR application

    I would like to know if there is a way to drag and drop an attachment file from an desktop mail client application(similar to MSoutlook)  into an AIR application and make it accessible to the AIR application.
    I did experiments with this the drag operation and its giving AIR a File Promise List format as its file type.
    But I'm not exactly sure how to make use of it once it is dropped. The examples in web explains how to manupilate File Promises list format from an AIR application to the desktop.
    There is not much explainations about droping a file promise list format into an AIR app. your valuable help will be greatly appreciated.

    Dear all,
    Is the above mentioned task feasible or not?.If not do mention any other way for implementing this functionality or close to it.
    Thanks

  • Urgent Help needed - Users not able to access webdynpro application in VPN

    Dear Team,
    I've deployed WD application in Portal. users who are in intranet are able to access but users who are accessing through VP, internet and ODC's are getting 404 error not found issue.
    Please help me.
    Best Regards,
    Prasad P.M.V

    Issue is with reverse proxy i was able to resolve

  • MySQL has run out of memory ::Help needed::

    ::Help needed::
    I've created a PHP web application in Dreamweaver, which uses a MySQL database, containing 14 tables.
    On one page, I use a an SQL query to select data from 10 of the tables in the database.
    However, when I try to preview the page in a browser, a PHP warning stating that the MySQL engine has run out of memory.
    Is there a way of increasing the Memory Cache of the engine, or a way to optimize the performance?

    Is this happening locally?
    If it is, try rebooting your system and see if this fixes the problem. If not then you have a problem with your code. If it works locally but not on the server, then you know it's not something in your code causing the issue, so you can confidently go to your host support and have them sort it out.
    With any such situation, testing locally first is a vital debugging step.
    Hope this gives you a path to follow.
    Lawrence   *Adobe Community Expert*
    www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF
    www.twitter.com/LawrenceCramer

  • Wireless application for files exchange between two computers,pls Help

    Hi everyone,
    I need your help,pls.I have to make a wireless application for files exchange between two computers,but I don't know where to start from.I guess that this should be a client/server and after establishing a connection I have to be able to exchange files between each others.Please help me

    the wireless connection does not matter.
    This is a socket (client server as you said) same way.
    look out:
    http://java.sun.com/docs/books/tutorial/networking/index.html
    cya

  • HT5631 how do I verify my apple id? I can't sign in to it in mail and I can't make a new one because it just will not process I'm trying to set up iCloud between iPad and iPhone and having ALOT of difficulty pleAse help need it done by later on today!!!!!

    how do I verify my apple id? I can't sign in to it in mail and I can't make a new one because it just will not process I'm trying to set up iCloud between iPad and iPhone and having ALOT of difficulty pleAse help need it done by later on today!!!!!

    In order to use your Apple ID to create an iCloud account, the primary email address associated with the ID must first be verified.  To do this, Apple will send a verification email to your account and you must respond to the email by clicking the Verify Now link.  Make sure you are check the spam/junk folder as well as the inbox.  If it isn't there, go to https://appleid.apple.com, click Manage your Apple ID, sign in, click on Name, ID and Email addresses on the left, then to the right click Resend under your Primary Email Address to resend the verification email.

  • Need  Bookmark creation script for Paragraph style. Anybody can help me pl?

    Need  Bookmark creation script for Paragraph style. Anybody can help me pl?

    Hi hasvi,
    I wrote a similar script which creates a bookmark on each page in the "main" text frame at the begining of the frame (the 1st insertion point). Here I attached the script and a couple of sample documents: before and after. It's more complex than what you want but you can use it as a starting point. In fact, you have to find a certain paragraph style, loop through every found item and insert a bookmark, say, at the beginning of the found text.
    The dialog box
    Bookmarks added
    Regards,
    Kas

  • User Creation in EP 7 - Help Needed.

    Hi Guys,
    We have installed an EP 7, I would like create users in EP 7 Database. My Data Source configuration file dataSourceConfiguration_abap.xml. I have installed a WAS 6.40 JAVA + ABAP
    This means I have to create the user in ABAP, I would like to know how I can create a User in EP 7 Only and not in ABAP System, I have seen other posts where they mention that you have to create the User in ABAP First, is there a way where I can create users in EP 7 so that they remain in the EP System only.
    Please do let me know.
    Thanks,
    John.
    Message was edited by: John Bray

    Hi John,
    See my last answer in this thread: Changing DataSource Configuration using ConfigTool - Help Needed.
    The xml I have referred to probably doesn't exist on EP7 any more?! Anyhow, the change from your to another xml isn't supported in general. Check out the corresponding notes.
    Hope it helps
    Detlev

Maybe you are looking for