How to create a logon ticket in WAS ABAP ?

Hi,
Create a logon Ticket in a WAS Java is quite easy, but How create a logon ticket in a WAS ABAP ?
If anyone have an answer for this question, I'm glad to ear it.
Thanks in advance for your help.

Thanks Eddy, for this link.
In fact, I do not want to handle logon Error, but write a logon ticket for the connected user in a BSP page.
In my case the user connect with a login + PWd in the URL. So the session stay open while timeout is not reached, or browser's window is not closed.
When timeout is reached the user will no longer be able to browse to an other page without having to logon again. That why I would like, in the logon page, to write a logon ticket with 8 hours validity.
In such case, if user's session timesout, next navigation will create a new session because having a valid logon ticket in browser session.
It's quite easy to do this in WAS Java, but I do not know how to do this in WAS ABAP...
I hope this description of my need will be more explicit.
Taryck.

Similar Messages

  • How to create a logon ticket via Java?

    Hi all,
    I need to create a SAP logon ticket programmatically. Do you have some useful documntations or links?
    Thanks.
    Vito

    try this, may be it will help you.
    Example1.java - call the rfc module 'STFC_CONNECTION' with custom definition
    of function metadata. Please notice, the communication with static
    metadata interface definitions is dangerous. The inconsistencies in the
    interface definitions may cause corrupted data, errors while communication or
    even application crashes. In Example2 you can see, how to avoid these problems.
    Property of SAP AG, Walldorf
    (c) Copyright SAP AG, Walldorf, 2000-2003.
    All rights reserved.
    import com.sap.mw.jco.*;
    Example1 - start a simple call with static metadata definition
    @version 1.0
    @author  SAP AG, Walldorf
    public class Example1 {
      public static void main(String[] argv)
        JCO.Client client = null;
        try {
          // Print the version of the underlying JCO library
          System.out.println("\n\nVersion of the JCO-library:\n" +
    \n" + JCO.getMiddlewareVersion());
          // Create a client connection to a dedicated R/3 system
          client = JCO.createClient( "clientnum",       // SAP client
                                         "JOHN",   // userid
                                         "SMITH",     // password
                                         "EN",        // language
                                         "111.111.11.51", // host name
                                         "00" );      // system number
          // Open the connection
          client.connect();
          // Get the attributes of the connection and print them
          JCO.Attributes attributes = client.getAttributes();
          System.out.println("Connection attributes:\n" +
    \n" + attributes);
          boolean is_backend_unicode = attributes.getPartnerCodepage().equals("4102") ||
                                       attributes.getPartnerCodepage().equals("4103");
          // Create metadata definition of the input parameter list
          JCO.MetaData input_md = new JCO.MetaData("INPUT");
          input_md.addInfo("REQUTEXT", JCO.TYPE_CHAR, 255, 255 * (is_backend_unicode? 2 : 1 ),
                            -1, 0, null, null, 0, null, null);
          // Create the input parameter list from the metadata object
          JCO.ParameterList input = JCO.createParameterList(input_md);
          // Set the first (and only) input parameter
          input.setValue("This is my first JCo example.", "REQUTEXT");
          // Create metadata definition of the output parameter list
          JCO.MetaData output_md = new JCO.MetaData("OUTPUT");
          // Specify the parameters types of the function will be returned
          output_md.addInfo("ECHOTEXT", JCO.TYPE_CHAR, 255, 255 * (is_backend_unicode? 2 : 1 ),
                             -1, 0, null, null, 0, null, null);
          output_md.addInfo("RESPTEXT", JCO.TYPE_CHAR, 255, 255 * (is_backend_unicode? 2 : 1 ),
                             -1, 0, null, null, 0, null, null);
          // Create the output parameter list from the metadata object
          JCO.ParameterList output = JCO.createParameterList(output_md);
          // Call the function
          client.execute("STFC_CONNECTION", input, output);
          // Print the result
          System.out.println("The function 'STFC_CONNECTION' returned the following parameters:\n" +
          for (int i = 0; i < output.getFieldCount(); i++) {
              System.out.println("Name: " +  output.getName(i) + " Value: " + output.getString(i));
          }//for
          // All done
          System.out.println("\n\nCongratulations! It worked.");
        catch (Exception ex) {
          System.out.println("Caught an exception: \n" + ex);
        finally {
            // do not forget to close the client connection
            if (client != null) client.disconnect();

  • Evaluate Authentication Scheme from Logon Ticket in WAS ABAP

    Hello,
    we've got the following problem: we have a corporate intranet portal. The portal is connected to several backend-systems. Between the portal and the backend-systems is a trust relationsship to enable single sign on. On Web-AS-Java-based systems we can configure the logon stacks that the authentication scheme in the logon ticket is evaluated (authschemes.xml).
    We want to use this function of the sso2-Logon-Ticket in the business warehouse system as well. It is very important that only users authenticated with a specific authentication scheme on the portal (strong) are given access to the business warehouse.
    Does anybody know if its possible to evaluate the authentication scheme in Web AS ABAP?
    Thx,
    Norbert

    Hi Nobert
    The easy solution is to only create the userid in the BW system that needs access to it , and only assign your BW portal Role to the users who need access to the BW system
    Theo

  • How to create generic search help in wd abap

    Hi experts,
          How to create generic search help in wd abap.
    Regards...
    Arun.

    Hi Arun,
    Following links have step by step procedures for creating search helps and other related topics.
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm">ABAP Dictionary Search Help for WD</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/9b/c51c42735b5133e10000000a155106/content.htm">Input Help in WD ABAP</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm">Search Helps</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm">Creating Elementary Search Help</a>
    Regards,
    Neha
    <i><b>PS:Reward if helpful</b></i>

  • How to create internal table storing instances of ABAP class

    Hi experts, any one knows how to create internal table storing instances of ABAP class or alternative to implement such function?

    Hi
    Please see below example from ABAPDOCU, this might help you.
    Internal Table cnt_tab is used to store class objects.
    Regards,
    Vishal
    REPORT demo_objects_references.
    CLASS counter DEFINITION.
      PUBLIC SECTION.
        METHODS: set IMPORTING value(set_value) TYPE i,
                 increment,
                 get EXPORTING value(get_value) TYPE i.
      PRIVATE SECTION.
        DATA count TYPE i.
    ENDCLASS.
    CLASS counter IMPLEMENTATION.
      METHOD set.
        count = set_value.
      ENDMETHOD.
      METHOD increment.
        ADD 1 TO count.
      ENDMETHOD.
      METHOD get.
        get_value = count.
      ENDMETHOD.
    ENDCLASS.
    DATA: cnt_1 TYPE REF TO counter,
          cnt_2 TYPE REF TO counter,
          cnt_3 TYPE REF TO counter,
          cnt_tab TYPE TABLE OF REF TO counter.
    DATA number TYPE i.
    START-OF-SELECTION.
      CREATE OBJECT: cnt_1,
                     cnt_2.
      MOVE cnt_2 TO cnt_3.
      CLEAR cnt_2.
      cnt_3 = cnt_1.
      CLEAR cnt_3.
      APPEND cnt_1 TO cnt_tab.
      CREATE OBJECT: cnt_2,
                     cnt_3.
      APPEND: cnt_2 TO cnt_tab,
              cnt_3 TO cnt_tab.
      CALL METHOD cnt_1->set EXPORTING set_value = 1.
      CALL METHOD cnt_2->set EXPORTING set_value = 10.
      CALL METHOD cnt_3->set EXPORTING set_value = 100.
      DO 3 TIMES.
        CALL METHOD: cnt_1->increment,
                     cnt_2->increment,
                     cnt_3->increment.
      ENDDO.
      LOOP AT cnt_tab INTO cnt_1.
        CALL METHOD cnt_1->get IMPORTING get_value = number.
        WRITE / number.
      ENDLOOP.

  • How to create the SWF file which was included surrogate pairs.

    I would like to make sure how to create the SWF file which are included surrogate pairs.
    The error of outside the scope of unicode occurred when I compiled(mxmlc) the as file which was set surrogate pairs to 'Unicoderange'.
    Ex, I set the '  '(UTF-16 is '20B9F') to 'Unicoderange'.
    However, I cannot add the surrogate pairs.
    The error of outside the scope of Unicode occurred when I compiled the AS file.
    The reason of error was that the Unicode(UTF-16) of surrogate pairs is invalid.
    Then, I read the following pages.
    These pages are written that unicode-range supported surrogate pairs.
    http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_07.html
    http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode -range
    So please let me know how to create the SWF file which are included surrogate pairs.
    Environment
    - Flex3.5a
    - TTC: meiryo(ver6.02), msgothic(ver2.50), mspgothic(ver2.50)
    Thanks,
    Takeshi Ishihara.

    I've been able to create project jar files in Eclipse by selecting Export from the File menu, then choose Java - Jar file - and provide the required information, name, destination folder etc. But when I do this, I do not export other jars on the build path this way nor do I expect to do this. I am only concerned with creating a jar file of my own work. A jar file does not "contain" other jar files. If the jar file contains the main method, and requires other jars for it's execution, then you may wish to include a reference to required jars on the class path entry of the Manifest file of the jar file you create. I'm not sure how to create a Manifest file in eclipse though..

  • How to create DataSource  and ConnectionPooling in WAS

    hi,
    can u please tell me how to create connectionpool and data source in WAS.pls send me step by step procedure
    regards
    Guru

    Hi,
    Here is the steps to creat a JNDI lookup using Datasource for MSSQL Server. Follow this and use necessary oracle parameters (in bold) as gives by me in the help link above.
    Click DataSources in the same path i.e. server > services > JDBC connector
    Click “new driver or datasource”.
    Enter/ Set the following properties:
    Main Tab
    DataSource Name : KAAR_DS
    Add Alias : KAAR
    SRI
    Driver Name : KaarSQLDriver
    JDBC version :2.0 (with XA support)
    <b>Object factory : com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
    DataSource Type : ConnectionPoolDataSource
    CPDS classname : com.microsoft.jdbcx.sqlserver.SQLServerDataSource</b>
    Additional tab
    Add the following properties (key-value):
    serverName = localhost
    databaseName = KA4
    portNumber = 1433
    user = CV
    password =<password>
    Save and restart J2EE. The datasource is now ready to use.
    Connection Pooling
    Initial connection : 0
    Maximum connection : 100
    Maximum time to wait for connection : 60
    Default connection isolation : DEFAULT
    SQL Engine
    Select, Vendor SQL
    DB Initialization Tab
    Add a valid sql statement, and execute. If it is successfully executed, a popup window comes up saying Executing “<sql query>” . OK.
    It is done. Now you can use the JNDI look up name in your coding to access the database. Get connection and use the queries to fetch data from db.
    Regards,
    Srinivasan T
    <b>Helpful answer=>points</b>

  • How to create a logon script to delete folder, subfolders and contents when a user logs on ?

    I need to create a logon script which will delete a folder, subfolder and contents when a user logs on. I have no experience with scripting so any pointers you can give would be much appreciated.
    Thanks

    depending on how you have thing set up, it might be easier to make a LaunchAgent to handle this.  do this:
    copy the text below into a text editor
    save it as a plain text file in /Library/LaunchAgents with the file name "user.startup.folderDeleter.plist" (the name doesn't matter so much, but the 'plist' extension is required)
    load the plist into launchd by restarting the machine or by opening terminal and running the command launchctl load /Library/LaunchAgents/user.startup.folderDeleter.plist
    This will delete the folder any time any user logs in.  You could also expand this to delete the folder periodically (once a day, for instance) if that would be helpful.
    Note, this file must be saved as plain text. apps like TextEdit sometimes default to making rich text files which will not work.  Either download a programmer's text editor like TextWrangler, or make sure that TextEdit is using plain text (if the window has a formatting toolbar it's using rich text;  select "Make Plain Text" from the Format menu).
    copy the text below:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>Label</key>
              <string>user.startup.folderDeleter</string>
              <key>RunAtLoad</key>
              <true/>
              <key>ProgramArguments</key>
              <array>
                        <string>osascript</string>
                        <string>-e</string>
                        <string>tell application "Finder" to delete folder "Final Cut Express Data" of folder (path to preferences from user domain)</string>
                        <string>-e</string>
                        <string>tell application "Finder" to empty trash</string>
              </array>
    </dict>
    </plist>

  • How to create ALV as a POPUP in abap web dynpro?

    I have a requirement to display an ALV report as a popup for ESS application in HR module. Data fetching and binding is done in component controller
    WDINIT method and it is displaying ALV in ESS. Now my requirement is to show this alv as a popup in ESS, I have used the method "Generate_Popup" using wizard however it is showing error that "Instance is already used for window".
    Please let me know how to create POPUP alv where data fetching is done in "Component controller" hence I have only 1 view and 1 window in my web dynpro program.
    Below is the logic for data fetching and data binding in WDINIT method of "Component controller":
    method WDDOINIT .
      DATA: lv_pernr type p0105-PERNR,
            lv_user  TYPE P0105-USRID.
      lv_user = sy-uname.
       CALL FUNCTION 'RP_GET_PERNR_FROM_USERID'
         EXPORTING
           begda           = sy-datum
           endda           = sy-datum
           usrid           = lv_user
           usrty           = '0001'
        IMPORTING
          USR_PERNR        = lv_pernr
        EXCEPTIONS
          RETCD            = 1
          OTHERS           = 2.
    IF sy-subrc = 0.
    TYPES: BEGIN OF ty_pa2001,
                 PERNR TYPE PERSNO,
                 SUBTY TYPE SUBTY,
                 ENDDA TYPE ENDDA,
                 BEGDA TYPE BEGDA,
                 END OF   ty_pa2001.
          DATA: lt_pa2001 TYPE TABLE OF ty_pa2001.
    "Changes by shiromani
          DATA lo_nd_node_pernr TYPE REF TO if_wd_context_node.
          DATA lo_el_node_pernr TYPE REF TO if_wd_context_element.
          DATA ls_node_pernr TYPE wd_this->element_node_pernr.
    *    navigate from <CONTEXT> to <NODE_PERNR> via lead selection
          lo_nd_node_pernr = wd_context->get_child_node( name = wd_this->wdctx_node_pernr ).
    *    get element via lead selection
          lo_el_node_pernr = lo_nd_node_pernr->get_element( ).
    *    @TODO handle not set lead selection
          IF lo_el_node_pernr IS INITIAL.
          ENDIF.
    *    get all declared attributes
          lo_el_node_pernr->get_static_attributes(
            IMPORTING
              static_attributes = ls_node_pernr ).
    SELECT PERNR
            SUBTY
            ENDDA
            BEGDA FROM pa2001
    INTO CORRESPONDING FIELDS OF TABLE lt_pa2001
    WHERE pernr = lv_pernr AND subty = 'ITEL'.
    if sy-subrc = 0.
       DATA lo_nd_node_details TYPE REF TO if_wd_context_node.
       DATA lo_el_node_details TYPE REF TO if_wd_context_element.
       DATA ls_node_details TYPE wd_this->element_node_details.
    * navigate from <CONTEXT> to <NODE_DETAILS> via lead selection
       lo_nd_node_details = wd_context->get_child_node( name = wd_this->wdctx_node_details ).
    * get element via lead selection
       lo_el_node_details = lo_nd_node_details->get_element( ).
       lo_nd_node_details->bind_table( lt_pa2001 ).
    * alternative access  via index
    ENDIF.
    ENDIF.
    endmethod.

    Hi
    You ca use this function to Create a new window..
      CALL METHOD wd_window->create_window
          EXPORTING
            modal             = abap_true
            window_name       = 'MMPUR_CPPR_RFQ_WDW'
            title             = lv_otr_text
            close_button      = abap_true
            button_kind       = 3
            close_in_any_case = abap_true
          RECEIVING
            window            = wd_comp_controller->window.
        wd_comp_controller->window->open( ).
    here you acn impliment buttons, if you want to subcribe window button please use this window subcribe method.
        CALL METHOD wd_comp_controller->window->subscribe_to_button_event
          EXPORTING
            button            = if_wd_window=>co_button_ok
            action_name       = 'RFQ_WT_VENDOR'
            action_view       = l_api
            is_default_button = abap_false
            button_text       = lv_otr_text
            tooltip           = lv_otr_text.
        wd_comp_controller->window->open( ).
    Please let me know if you have any issue. Please reword if its solve your problem.
    Regards
    Satrajit

  • How to create relationship to call PO13 in ABAP program.

    Hi,
    Could anybody help me how to create relationship (like PO13) in abap program. Do we have any Function modules or any other way?
    Regards,
    Ram.

    Hi,
    You can use function module RH_INSERT_INFTY. There are plenty of threads of the forum on how to use it.
    Donnie

  • How to create an xml from xsd in abap

    HI Experts,
       i want to create an xml file from xsd and i want to validate an xml file against an xds.is this possible in abap.if it is possible can any one give me an sample code
    for this one.
    how to create an xml file in abap.i have seen so many blogs which parses the xml file but i didn't get blog for creating an xml file.how can we do that one.
    any suggestions will be appriciated
    thanks in advance
    With Regards
    Naidu

    HI
    GOOD
    IT IS POSSIBLE IN ABAP
    Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML (ISO 8879). Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere.
    XSD->
    XML Schemas express shared vocabularies and allow machines to carry out rules made by people. They provide a means for defining the structure, content and semantics of XML documents. in more detail.
    XDS->
    XDS can process data images from CCD-, imaging-plate, and multiwire-detectors in a variety of formats. Detector specific Input file templates greatly simplify the use of XDS; they are provided as part of the documentation.
    XDS runs under Unix or Linux on a single server or a grid of up to 99 machines of the same type managed by the MOSIX system; in addition, by using OpenMP, it can be executed in parallel on up to 32 processors at each node that share the same address space.
    http://www2.stylusstudio.com/SSDN/default.asp?action=9&fid=23&read=2926
    /people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping
    THANKS
    MRUTYUN

  • How To Create A Technical  For Web AS ABAP ???

    Hi experts,
    How to Create a Technical System For Web AS ABAP  in SLD, Using "SLDAPICUST" And RZ70 Transaction Codes.
    Please Give me Complete Steps And Support to Create TS in SLD Successfully
    <b>If Ur Answers Are Help full Means Points will be Rewarded</b>
    Regards
    Khanna

    Hi Prateek,
    I Did the Things Which is Presented By Michal in This Blog.
    But When I Executed RZ70 With My Gateway Service as "sapgw01" And the Gateway Host As "Server Host Name".
    I Got the Error When I Click on "<b>start Data Collection"</b> After Execution of the Program As Follows
    <b>"Used RFC destination :SLD_NUC"</b>
    <b>"RFC call failed : Error opening an RFC connection"</b>
    <b>"Batch job not scheduled"</b>
    All Other Are Success Like Data Collection ......
    Please let me Know What to Do Now...
    Regards
    Khanna

  • How to create Variants in Web Dynpro using ABAP

    Can anyone please tell how to create and save variants in a Web DynPro application using ABAP.
    Also state the steps involved in saving and loading the variants.

    hi,
    For calender control, there is Date Navigator under "complex tab". You can just click and drag it and provide calender control.
    One more easy way is to create a input field. In the context, create a node and attribute of type "D"(which means DATE). And bind the context to your input field under "values" in property window. While running the program, you will see an calender attached to lt on the input field.
    Regards,
    Jithin

  • How to create value help in web-dynpro-abap

    Hi ,
         can anybody tell me detailed step for creating value help in web-dynpro-abap .

    Hi,
    Web Dynpro provides two types of pre-implemented search helps :
    1. ABAP Dictionary Search help
    2. OVS
    Input Help for WDA
    http://help.sap.com/saphelp_nw04s/helpdata/en/b3/4d3642eca5033be10000000a1550b0/frameset.htm
    There is  a blog on implementing OVS help in WDA. You can refer below link for sample code.
    /people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
    In addition, you can also provide help through Drop Downs and Select options.
    Working with Select options in WDA
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e
    Plz reward if helpful.
    Thanks.
    Raj.

  • How to create a logon process in iWeb

    My version of iWeb does not appear to have the universal password protect of the webpage function [even thought the Apple documentation says you can].
    Has anyone created a iWeb page which requires a user to logon with a user name and password [it can be the same/universal user name and password] before they can access the website.
    Help is always appreciated.. Ant..

    Password protection was only available via iWeb when the site was published to the, now redundant, MobileMe.
    Username and password need to be set on the server and how you go about it will depend on what facilities your host offers. If you have WebShell, the process is fairly easy since the wizard will do the thinking for you. Otherwise you will need to create the .htaccess and .passwd files and add the appropriate content to them...
    http://www.iwebformusicians.com/iWeb/Comments-Password-Protect.html
    Here's a good tutorial by Chris Coyier...
    http://css-tricks.com/easily-password-protect-a-website-or-subdirectory/

Maybe you are looking for

  • Can I connect multiple displays using a mac mini

    Can I connect 2 displays using the mac mini? If so, are there any accessories that I need? Are there certain monitors or connections that I should use?

  • Sliding window sanario in PTF vs Availability of recently loaded data in the staging table for reporting purpose

    Hello everybody, I am a SQL server DBA and I am planning to implement table partitioning on some of our large tables in our data warehouse. I am thinking to design it using the sliding window scenario. I do have one concern though; I think the stagin

  • Good 2-way video but audio clear only 1-way

    The problem is with audio during Mac-to-PC AV chats. I'm using an iSight on a 15" PowerBook (10.3.9) with cable ISP (tested 356kbps up / 3mbps down). The PC is newer Dell running Windows XP with Quickcam Fusion and similar cable ISP performance. The

  • 6500 Slide Problems

    Hello, I brought a Nokia 6500 Slide about a month ago, about a week ago all the buttons stopped working except for the End Call (red button), so i could only turn it on and off. Couple days ago they started to work again, but then i came across anoth

  • Java / Linux - why ??? instead of non-ascii symbols

    Hi All, I've run into the problem during creating a new file from Java program on Linux gentoo. All non-ascii characters in the file name are converted into ??? symbols. I've tried to run the program with -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-