Check if session is already used?

Can I check in a BSP application if a session is already in use?
This can for example happen if the user opens multiple windows with the same BSP application. Maybe the application or runtime objects have some methods or attributes that tell me for how many browser windows a session ID has been used....
Thank you and best regards,
Daniel

Hi Daniel,
looks I didn't get your problem right then ...
I was referring to the possibility that within one session a user opens another window, then the server would have problems to differentiate between two requests (unless you use some kind of session counter or the way I mentioned above).
Careful use of terms like application, session is important.
So, after your last reply, you want to know how many windows a user has opened for the same "session", right?
As a session is created when the user does a logon for the application, multiple windows for the same session are only possible if they are opened from within this one session.
And (not having tested this yet), I think that in such a case the session ID does not change if you open another window within a session, as it is passed on like in every other regular request, its just the client using another window to display the results. That's the point where the server doesn't know which window it is from (as it is the same session).
Which leads me back to my first post that you have to take care of this yourself.
If you look at it from a very simple, deep down view, you don't need a browser at all, as you can send HTTP requests via command line. Important information (for our problem) that is usually sent by the browser in this case are maybe the browser type and the session id - but not the window name. And as the browser is a very "loose client", where the user can wreak quite some havoc, there is no guaranteed connection between a specific browser window and a session.
That's a problem a lot of web application are facing, I'm sure if you would surf around the web on sites that run session-based you will probably run into the problem that these applications will not response correctly to your request, if you open another window in the midst of the session and then return to first window afterwards again
unless the application was written to deal with this of course - which is exactly what you want, or?
Phew, got longer than I expected, hope I didn't run in circles too much on this one ...
Let me know if we are talking about the same here
Max

Similar Messages

  • Try to check whether a file already exists on disk by using fileExists

    Hy all,
    i try to check whether a file already exists on disk in my
    Action scirpt.
    I found this link about fileExists:
    link
    So i tried somethink like this in my code, but without
    success...
    if(fl.fileExists("file:///C|/toto.txt"))
    {gotoAndPlay(2);}
    else
    {gotoAndPlay(3);}
    Is it not the right syntax?
    Thank you for your help.

    Did you build and application from the swf with mProjector?
    The only
    way this and other mProjector functions will get called is to
    post
    process your swf into and application (exe / app) using
    mProjector.
    you can get a free trial here
    http://www.screentime.com/software/mprojector/demo.html
    On 2007-01-08 16:02:42 -0500, "Alexis Schneider"
    <[email protected]> said:
    John Pattenden
    Screentime Media - Flash Tools since 1997
    http://www.screentime.com

  • How to check if the file already exists in the client directory

    Hi all.
    I'm on devsuite 10g. I'm using webutil to download files from DB using webutil function db_to_client.
    What I need is to check if the file already exists in the client directory and if yes to display a message to ask the user if he wants to overwrite or no. How can I make this???
    Here is the code that I'm using to download the file.
    Thanks all for the collaboration.
    Fabrizio
    declare
    file_path varchar2(2000) := null;
    BEGIN
    /** I ask where saving the file on the client machine **/
    file_path:= webutil_file.file_selection_dialog
    (directory_name => null,
    file_name => :bin_docs.name,
    file_filter => '',
    title => 'Saving file',
    dialog_type => save_file, --save_file
    select_file => TRUE);
    /** I download the file from DB to client **/
    if webutil_file_transfer.DB_To_Client_With_Progress
    ( file_path ,
    'BIN_DOCS',
    'DOC' ,
    'doc_id = '||:bin_docs.doc_id,
    'Downloading file',
    ' '||:bin_docs.name) then
    msg_alert('Download del file avvenuto con successo','I',false);
    else
    msg_alert('Si è verificato il seguente errore in fase di download '||SQLERRM,'I',false);
    end if;
    end;

    How about something like the below:
    Note: I have a yes/no alert to asking if they want to over-write the existing file.
    DECLARE
    file_path VARCHAR2(2000) := null;
    over_write BOOLEAN := TRUE;
    BEGIN
    /** I ask where saving the file on the client machine **/
    file_path:= webutil_file.file_selection_dialog
    (directory_name => null,
    file_name => :bin_docs.name,
    file_filter => '',
    title => 'Saving file',
    dialog_type => save_file, --save_file
    select_file => TRUE);
    IF webutil.file_exists(file_path) THEN
    /** check a file by the same name exists in the selected directory **/
    IF show_alert('Ask_overright') != alert_button1 THEN
    /** If we say no then set over_write value to false **/
    over_write := FALSE;
    END IF;
    END IF;
    IF over_write THEN
    /** I download the file from DB to client **/
    IF webutil_file_transfer.DB_To_Client_With_Progress
    ( file_path ,
    'BIN_DOCS',
    'DOC' ,
    'doc_id = '||:bin_docs.doc_id,
    'Downloading file',
    ' '||:bin_docs.name) then
    msg_alert('Download del file avvenuto con successo','I',false);
    ELSE
    msg_alert('Si è verificato il seguente errore in fase di'
    ||' download '||SQLERRM,'I',false);
    END IF
    END IF;
    END;
    cheers
    Q

  • Need user message  when trying to run report when report session is already open.

    HI !!
    I have GUI application bulid in C++ and we call reports from
    there.
    My user ran a report and minimized the sceen display of the
    report. He then clicked Task/Reports and selected a differnet
    report from the selection list. After he clicked OK nothing
    happened. He believes a message box should appear at this point
    to notify the user that a report session is already opened and
    must be closed before generation of another report can be
    started. This has happened to him several times where he
    minimized a report that he ran and then worked on something else
    for a while and forgot that he had a report open. He then went
    back and tried to run another report and nothing would happen.
    Can we fix this isuue, I mean is there any way to run a differnt
    report if report session is already open.
    Please advise.
    Kind Regards
    SP

    HI,
    Is this qury is running fine in SQL?? Have you checked this query in Sql server(Management studio) whether working or not??.
    I feel there is some mismatch with relations in query.. Cross check your query once in SQL itself. once it is running well, we will take a look.
    Regards,
    Salah.

  • OBYC Error - Account 8201100 already used in transaction BSX

    Hi Experts,
    I want to change the GL Accounts of Transaction Key "FRN- Incidental costs of external activities " in Tcode OBYC with same as GL Account of Transaction Key "BSX - Inventory Posting".
    When trying to change GL accounts for "FRN" Transaction Key, I am getting the below error.
    Account 8201100 already used in transaction BSX
    Message no. F4803
    Diagnosis
    Accounts used in transaction BSX (posting to asset balance sheet account) cannot be used in any other account determination. Account 8201100 (chart of accounts OSEL) is already being used in transaction BSX.
    System Response
    You cannot use account 8201100 here.
    Please guide...

    Hi,
    This is the Inventory GL account (assigned in BSX)
    You can not assign this GL account to FRN
    FRN use for ncidental costs of external activities, how can this be the Inventory account.
    Check the nature of Account.
    Create separate GL account for Expenses and assign in FRN
    Regards
    Shayam
    Edited by: Shayam_210 on Sep 27, 2011 9:22 AM

  • Controlling area already used for org. unit problem

    Hi people,
    can you please help me with one problem, my customer is upgrading SAP HR from 4.6 to 6.0 and now we are testing QAS system.
    When I create new or. unit in PPOME, I have Cost-centre inherited from the org.unit above, but when I want to put another Cost-centre it gives me the next error "Controlling area HR01 already used for organizational unit XXXXXXXX".
    The same procedure worksin PRD system which is on version 4. 6. Could you please help me what is wrong because i am not able to change cost centre in the QAS system.
    Thank you.
    Romano
    Edited by: Romano Cinotti on Oct 13, 2009 11:25 AM

    Hi,
    To which object u are going to change the cost center i.e, position, job, org.unit.
    If you are changing the cost center to position, If it is not allowing to change the cost center then u have to check the parameters:
    May be u already assigned cost center
    May be u already assigned cost center to ur org, unit, which u assigned to ur position. If u already assigned diffrent cost center to ur org.unit, you may not change the cost center to ur position or job.
    Regards
    Devi.

  • Checking for session expiration

    We're using JSPs and Servlets in our application. Looking for a way in code to check if the session has expired. We will need to do this from a jsp as well as a servlet (sometimes a jsp is pointed to by a link and sometimes a servlet). Can someone point me in the right direction?
    Thanks all.
    jl

    I like the idea of a session verifier. We have about 25 jsps, 15 servlets, and at least 80 components (beans) in the app. How would the verifier component work? How could we intagrate it with all the other existing components? Ideally it would be integrated with minimal modifications...
    Is the following what you had in mind with your suggestion to check for session data:
    HttpSession session = request.getSession();
    //or could this be used too: HttpSession session = pageContext.getSession();
    String valid = session.getAttribute( KEY );
    if ( null != valid ) {
    //then the session is still active
    jl
    >
    If the session has expired and you current have a new
    session, then use the isNew() method to check the
    session object. Or, you could check the session
    object for the data you are looking for. If it is
    missing, then the session expired and has been newly
    created. You should build into your design a session
    verifier so that you don't expierence NullPointers or
    missing data.

  • Function module in Infotyp which checks if identical data already exists

    I want to create a new hr master data (tcode pa30) for Hans Müller in e.g Company X and fill out the necessary fields in Infotype 0001,0002 (Name, Birthdate, etc. ) u2013 done !
    After  creating the new hr master data for Hans Müller Iu2019d like to fill out a special Infotyp (0032) namely Internal Data.
    PROBLEM:
    While filling out the IT 0032 I do not know if the person - Iu2019ve created a new master data for - is already existing in the system ( but in other e.g Company Z) .
    So what I need is a function modul in the Infotype 0032 which checks if there is already a person with the same data existing in any company (the whole data bank) using 3 characters from Infotype 0002 (Personal Data) namely ,   First name, Last name, Birthd. . 
    And if a person with the same first name ,last name and birthday is already existing the function module should link to that one or just show me a information.
    Also tried to show you my problem on a graphic,
    Function_Module_Infotyp0032.png
    I hope you can help me. I would be very thankful for any hints , information or programming approach.
    Regards
    Sean

    the problem with your solution approach is that there could be different pers. no. for the same person in my issue.
    If I understood you well, that won't be a problem, since you already know which PERNR to use (The one you are using to update IT0032) In that case you only have to check if for that PERNR more than one record in PA0001 with different Company Code is present.
    If your problem is that another person with the same name and same date of birth is active in the system with different Company Codes it would be similar.
    For instance: Let's say that you find 2 different PERNRs for a given Name and Date of Birth in PA0002, then you can check IT0001 and look for the BUKRS value for those 2 Personel Numbers. If the values found are different you can raise the error message or whatever you need.

  • Repository A2 is already used for document area DATAARCH (Data Archiving].

    Dear ALL,
    Actually I am getting probelem Photo configuration in back end.
    I am using Transaction SM31 maitaining the table TOAAR_C, here I am getting probelem  'Content Repository Identification' (A2), here i am getting below error.
    Repository A2 is already used for document area DATAARCH (Data Archiving].
    Please look in to issue.
    Regards,
    venkat

    Jürgen - your answer was very helpful and I'm sure I'm now in the right direction!
    However I still have an issue:
    When the write job is finished and before deleting and storage, the archive file is not accessible - and then I am not able to continue with deletion and storage.
    An example:
    Filename: RMM_EKKO11180104855_CLL
    Logical path: ARCHIVE_GLOBAL_PATH_WITH_ARCHIVE_LINK
    Physical file name: E:SAPContRepZ5RMM_EKKO11180104855_CLL
    E:SAPContRepZ5 is the root of the content repository and should according to the documentation contain the file during the delete phase and until final storage in the repository. But there is no file there.
    In the log of the write job there are the following entries:
    Job started
    Step 001 started (program RM06EW70, variant Z_DEMO_7, user ID CLL)
    Reading purchasing documents
    Archiving session 000913 is being created
    Path:
    Name for new archive file: RMM_EKKO11180104855_CLL
    1 of 1 purchasing documents processed
    Job finished
    I am a little concern about that no path is written to the job log - could maybe mean something.
    Any ideas?
    Thanks,
    Claus.

  • PHPCART A session had already been started

    Hi,
    I doing a cart for a client, that just requeried, that his
    cart send by e-mail all products that the users choice in the
    catalog. that's works fine...
    but I have a session error every new item select, and display
    in the cart. any one can help me to fix this?.
    I based all with this tuturial..
    http://www.adobe.com/devnet/dreamweaver/articles/php_cart.html
    The error is this..
    Notice: A session had already been started - ignoring
    session_start() in D:\www\peachpit\php_cart\db.php on line 41
    Warning: Cannot modify header information - headers already
    sent by (output started at D:\www\shopcorp\php_cart\db.php:41) in
    D:\www\shopcorp\php_cart\db.php on line 42
    thanks for any help with this?
    this is the code..
    <?php
    // This page contains the connection routine for the
    // database as well as getting the ID of the cart, etc
    $dbServer = "localhost";
    $dbUser = "root";
    $dbPass = "";
    $dbName = "cart";
    function ConnectToDb($server, $user, $pass, $database)
    // Connect to the database and return
    // true/false depending on whether or
    // not a connection could be made.
    $s = @mysql_connect($server, $user, $pass);
    $d = @mysql_select_db($database, $s);
    if(!$s || !$d)
    return false;
    else
    return true;
    function GetCartId()
    // This function will generate an encrypted string and
    // will set it as a cookie using set_cookie. This will
    // also be used as the cookieId field in the cart table
    if(isset($_COOKIE["cartId"]))
    return $_COOKIE["cartId"];
    else
    // There is no cookie set. We will set the cookie
    // and return the value of the users session ID
    session_start();
    setcookie("cartId", session_id(), time() + ((3600 * 24) *
    30));
    return session_id();
    ?>

    I sorry, I doble click the send button, that is why that
    appears doble this post..
    Sorry sorry, please some body know about this session
    problem?
    carolina

  • ORA-19511: A backup or restore session is already in progress. (100:17:0)

    Hi,
    I am duplicating a database as document explains. Legato support says that there's no session, neither can be seen in the target or catalog.
    ORA-19870: error reading backup piece full_open_IEBDPR01_h7k7ccrn_1575
    ORA-19507: failed to retrieve sequential file, handle="full_open_IEBDPR01_h7k7ccrn_1575", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
    A backup or restore session is already in progress. (100:17:0)
    failover to previous backup
    Rman log doesn't report any error with the backup.
    Thanks.

    My code:
    RMAN> connect target sys/s1s@IEBDPR01
    connected to target database: IEBDPR01 (DBID=1649906189)
    RMAN> connect catalog rman/orarmandb@RMANDB
    connected to recovery catalog database
    RMAN>
    RMAN> connect auxiliary /
    connected to auxiliary database (not started)
    RMAN> RUN
    2> {
    3> ALLOCATE AUXILIARY CHANNEL ch1 DEVICE TYPE sbt;
    4> DUPLICATE TARGET DATABASE TO RECOIEBD;
    5> }
    Using RMAN with Legato. Errors are:
    channel ch1: specifying datafile(s) to restore from backup set
    restoring datafile 00005 to /ctirss/nuevo/bddapsua/index/dapsuaidx01.dbf
    restoring datafile 00007 to /ctirss/nuevo/bddapsua/index/gefideidx01.dbf
    restoring datafile 00015 to /ctirss/nuevo/bdsime/index/accesoidx01.dbf
    restoring datafile 00017 to /ctirss/nuevo/bdsicetec/index/nasegidx01.dbf
    restoring datafile 00019 to /ctirss/nuevo/bdsicetec/index/sicetecidx01.dbf
    restoring datafile 00020 to /ctirss/nuevo/bdsicetec/undo/undotbs03.dbf
    restoring datafile 00021 to /ctirss/nuevo/bddapsua/undo/undotbs02.dbf
    restoring datafile 00023 to /ctirss/nuevo/bdsime/index/homoniindex01.dbf
    restoring datafile 00028 to /ctirss/nuevo/bdsime/index/tbs_pdii_index_01.dbf
    channel ch1: reading from backup piece full_open_IEBDPR01_f3k5l2qk_1507
    ORA-19870: error reading backup piece full_open_IEBDPR01_f3k5l2qk_1507
    ORA-19507: failed to retrieve sequential file, handle="full_open_IEBDPR01_f3k5l2qk_1507", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
    A backup or restore session is already in progress. (100:17:0)
    Hope this is enough. Thanks!

  • BDC  in  user exit CONFPP05 - Material  already used by User

    I have requirement to  create  551 movement Scrap from CO11N  tcode whener user enters value for  'Yield'  and 'Reason for variance'   and press save button( Post).
    I am unable to use BAPI  because BAPI_GOODSMVT_CREATE (GMCODE 03= MB1A) since 551 mvmt can be done only through  custom Tcode  ZMB1A due to customization.  Only option left was calling BDC  for ZMB1A  ( Call trasnaction been used) .
    Problem:
    BDC works outside as report program , but hen  I call FM ( BDC) within userexit , it says Material lock by the user( Which is Me).
    Calling from UserEXIT  CONFPP05
    CALL FUNCTION 'Z_POST_SCRAP_GI'  ( Nothing but BDC  call tran)
      EXPORTING
       MODE          = 'N'
       UPDATE        = 'L'
        bwart         = mseg-bwart
        werks         = mseg-werks
        grund         = mseg-grund
        lgort         =  afpo-lgort
        matnr         = mseg-matnr
        erfmg         = mseg-erfmg
        erfme         = mseg-erfme
        aufnr         = afpo-aufnr
    TABLES
       MESSTAB       = MESSTAB .
    This one works as  report and not inside Userexit ( Returs errmsg already used by User which is myself).

    Here is the Dump,  I am taking about after calling FM with Update Task
    Category               ABAP Programming Error
    Runtime Errors         POSTING_ILLEGAL_STATEMENT
    ABAP Program           SAPLY_FGRP
    Application Component  Not Assigned
    Date and Time          03/06/2012 11:55:13
    Short text                                                                               
    Statement "CALL TRANSACTION" is not allowed in this form.                                   
    |What happened?                                                                               
    Error in the ABAP Application Program                                                                               
    The current ABAP program "SAPLY_FGRP" had to be terminated because it has                   
        come across a statement that unfortunately cannot be executed.                            
    What can you do?                                                                               
    Note down which actions and inputs caused the error.                                                                               
    To process the problem further, contact you SAP system 
        administrator.                                                                               
    Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also           
        keep them for a long time.                                                           
    Error analysis                                                                               
    There is probably an error in the program                                                    
        "SAPLY_FGRP".                                                                               
    This program is triggered in the update task. There, the            
        following ABAP/4 statements are not allowed:                                                                               
    -  CALL SCREEN                                                                 
        -  CALL DIALOG                                                                 
        -  CALL TRANSACTION
    -  SUBMIT
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "POSTING_ILLEGAL_STATEMENT" " "
    "SAPLY_FGRP" or "Y_ZMB1A_BDCREXCY"
    "BDC_TRANSACTION"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    Source Code Extract
    Line
    SourceCde
    27
                       HOLDDATE = P_HOLDDATE.
    28
      ENDIF.
    29
    *ENDFORM.
    30
    31
    32
      end batchinput session                                             *
    33
    34
    *FORM CLOSE_GROUP USING P_CTU LIKE APQI-PUTACTIVE.
    35
    IF P_CTU <> 'X'.
    36
    close batchinput group
    37
       CALL FUNCTION 'BDC_CLOSE_GROUP'.
    38
    ENDIF.
    39
    *ENDFORM.
    40
    41
    42
           Start new transaction according to parameters                 *
    43
    44
    FORM BDC_TRANSACTION TABLES P_MESSTAB
    45
    USING  P_TCODE
    46
                               P_CTU
    47
    P_MODE
    48
    P_UPDATE.
    49
    DATA: L_SUBRC LIKE SY-SUBRC.
    50
    51
    IF P_CTU <> 'X'.
    52
       CALL FUNCTION 'BDC_INSERT'
    53
            EXPORTING  TCODE     = P_TCODE
    54
            TABLES     DYNPROTAB = BDCDATA
    55
            EXCEPTIONS OTHERS    = 1.
    56
    ELSE.
    >>>>>
    CALL TRANSACTION P_TCODE USING BDCDATA
    58
    MODE   P_MODE
    59
    UPDATE CUPDATE
    60
    MESSAGES INTO P_MESSTAB.
    61
    ENDIF.
    62
    L_SUBRC = SY-SUBRC.
    63
    REFRESH BDCDATA.
    64
    SY-SUBRC = L_SUBRC.
    65
    ENDFORM.
    66
    67
    68
           Start new screen                                              *
    69
    70
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
    71
    CLEAR BDCDATA.
    72
    BDCDATA-PROGRAM  = PROGRAM.
    73
    BDCDATA-DYNPRO   = DYNPRO.
    74
    BDCDATA-DYNBEGIN = 'X'.
    75
    APPEND BDCDATA.
    76
    ENDFORM.
    Active Calls/Events
    No.   Ty.          Program                             Include                             Line
    Name
    7 FORM         SAPLY_FGRP                          Y_ZMB1A_BDCREXCY                       57
    BDC_TRANSACTION
    6 FUNCTION     SAPLY_FGRP                          LY_FGRPU02                             81
    Y_POST_SCRAP_GI
    5 FORM         SAPLY_FGRP                          LY_FGRPU02                              1
    Y_POST_SCRAP_GI
    4 FORM         RSM13000                            RSM13000                             5513
    VB_CALL_FUNC
    3 FORM         RSM13000                            RSM13000                             5219
    VB_V1_EXEC
    2 FORM         RSM13000                            RSM13000                             3952
    VB_V1_NORMAL
    1 MODULE (PBO) RSM13000                            RSM13000                             3801
    VBEXEC
    Chosen variables

  • What is availability check concept  how it is used in SAP

    hi friends,
    i don't know what is availity check,how is it used and how it should be configured,please help me.

    Availability Check in Sales and Distribution Processing 
    There are three types of availability check:
    •     Check on the basis of the ATP quantities
    •     Check against product allocation
    •     Check against planning
    In Customizing, you determine whether an availability check is to be carried out against the ATP quanitity or against planning. The check against product allocations is controlled in the material master and elsewhere in the system.
    Check on the Basis of the ATP Quantities
    The ATP quantity (ATP = Available To Promise) is calculated from the warehouse stock, the planned inward movements of stock (production orders, purchase orders, planned orders) and the planned outward movements of stock (sales orders, deliveries, reservations). This type of check is performed dynamically for each transaction, taking into account the relevant stock and planned goods movements with or without replenishment lead time. Planned independent requirements are not taken into account here.
    Check against Product Allocation
    Product allocation facilitates period-based distribution of products for certain customers or regions. As of Release 3.0F, you can carry out an availability check against product allocation. This ensures, for example, that when production is low, the first customer does not get the full amount, resulting in following sales orders not being confirmed or being confirmed far too late.
    Check against planning
    The check against planning is performed against independent requirements which are usually created for an ‘anonymous’ market rather than being customer-specific (for example, in the strategy ‘Planning without assembly’, when production occurs only up to the stocking level). The planned independent requirements result from demand program planning and are used for planning expected sales quantities independent of orders
    Controlling the Availability Check in Sales and Distribution Processing 
    You control the availability check using general and SD-specific control features.
    General Control Features
    The following control elements need to be maintained in Customizing and in the material master record:
    •     Strategy group
    The allowed planning strategies (main strategy and further possible strategies) are combined in the strategy group. As of Release 3.0, the strategy group is specified in the material master record in the MRP 1 Screen. In Customizing, strategy groups are assigned, dependent on plant, to MRP groups. If the strategy group is missing in the material master record, it is determined on the basis of the MRP group, if it has been maintained.
    Up to Release 3.0, the strategy group is determined on the basis of the MRP group
    •     MRP group
    The MRP group combines materials from the point of view of material requirements planning. This enables you to control planning for these materials in a particular way using, for example, the strategy group, consumption mode and planning period. You enter the MRP group in the material master in the MRP 1 screen. The strategy group is determined from the MRP group.
    •     Planning Strategy
    The planning strategy specifies the requirements type for planning and customer requirements. This represents the decisive control feature for the interaction between Production Planning and Sales and Distribution.
    •     MRP type and item category
    If no requirements type is found using the planning strategy, the system tries to determine a corresponding requirements type on the basis of the MRP type and the item category.
    Until 3.0C, determination of the requirements type via planning strategy has taken priority. This is not always the best option, however, as the following example will show. A requirements type is determined for a material, which causes availability to be checked against planning. In consignment stock processing, however, availability should be checked against stock. Until 3.0C the availability check had to be deactivated in these cases. As of Release 3.0C, you can determine how the requirements type is to be determined for each transaction by maintaining the Source field in Determination of requirement types using transaction in Customizing.
    •     Requirements type
    The various requirements are identified by their requirements type. The requirements type refers to the requirements class and its control features.
    •     Requirements Class
    The requirements class contains all control features for planning such as relevance for planning, requirements planning strategy and requirements consumption strategy. In addition, it is specified at a global level whether an availability check is to take place for the material in the sales and distribution documents on the basis of the ATP quantity (ATP = available to promise) and whether requirements are to be passed on. A finer degree of control can be obtained for sales documents using the schedule line category.
    Control Features Specific to Sales and Distribution
    The following SD-specific control features need to be maintained in Customizing:
    •     Checking group
    The checking group controls whether the system is to create indivdual or collective requirements in sales and shipping processing. In addition, a material block for the availability check with transfer of requirements can be set here. The checking group can also be used to deactivate the availability check. This option was created especially for the assembly order so that when the bill of material is exploded in the assembly order, the individual components, if necessary, can be classified as non-critical parts as far as procurement is concerned.
    The checking group specifies in combination with the checking rule the scope of the availability check. It is proposed in the material master record on the basis of the material type and the plant, and copied into the sales and distribution documents.
    •     Checking Rule
    You use the checking rule to control the scope of the availability check for each transaction in sales and distribution. You also specify whether the check should be carried out including or excluding replenishment lead time. The individual checking rules define by transaction, which stock and inward and outward movement of goods should be taken into account for the availability check.
    •     Schedule line category
    You can control with the schedule line category whether an availability check and transfer of requirements should be carried out in the sales documents. The possible settings for this at schedule line level are dependent on the settings in the requirements class which is determined from the requirements type of the material.
    •     Delivery item category
    The delivery item category can be used to control whether an availability check takes place in deliveries.
    Prerequisites
    An availability check can only be carried out if the following prerequisites have been fulfilled:
    •     The control elements described above for the availability check must be maintained in Customizing for Sales and the relevant assignments made to the sales transactions
    •     The availability check must be switched on at requirements class level and - for the availability check in the sales documents - at schedule line category level
    •     A requirements type must exist by which the requirements class can be found
    •     A plant must be defined. It can either be proposed from the customer or material master record or can be entered manually in the document.
    •     A checking group must be defined in the material master record on the Sales/plant data screen in the Availability check field
    Timing of the Availability Check in Sales and Distribution Processing 
    When you create an order, the system determines the required materail availability date on the basis of the customer’s requested delivery date. On this date, you must begin picking, packing, labeling, and loading the goods. Therefore, this is the date of significance for requirements planning on which the availability should be checked.
    The following data is required for determining this date:
    •     Route from the shipping point to the ship-to party location
    •     Shipping point from which the goods are issued
    •     Loading group from the material master record
    •     Weight group determined from the order using the order quantity
    Scheduling
    This data, which you have already entered in the system, means that scheduling can occur automatically. Since scheduling is carried out backwards from the requested delivery date, it is also called backward scheduling. If backward scheduling determines that the preparation for the shipping activities should have been started already to meet the customer's requested delivery date, the system then starts forward scheduling automatically from the current date.
    Scope of the Availability Check in Sales and Distribution Processing 
    The following elements can be included in the availability check:
    •     Stock
    o     safety stock
    o     stock in transfer
    o     quality inspection
    o     blocked stock
    •     Inward/Outward movement of goods
    o     purchase orders
    o     purchase requisitions
    o     planned orders
    o     production orders
    o     reservations
    o     dependent reservations
    o     dependent requirements
    o     sales requirements
    o     delivery requirements
    Requirements in sales and distribution (sales requirements and delivery requirements) result from all transactions which forward a requirement to Materials Management (MM) or to Production Planning (PP). For example, this could include sales orders or deliveries and quotations as well. Sales and distribution requirements reduce existing stock or inward movements of stock on the material availability date to ensure that other outward movement of stock elements cannot access the quantity reserved in this way.
    Requirements relevant for Sales and distribution are created in Sales and Distribution, whereas other elements in this list are created in Materials Management or in Production Planning.
    Defining the Elements to be Included in Check
    A checking rule is assigned to each transaction. This rule in combination with the checking group controls the scope of the availability check. You can use the checking rules in Customizing for Sales to specify for the various transactions which of the elements listed above should be included in the availability check.
    For trading goods it does not make sense to include planned or production orders, for example, in the availability check. However, for products manufactured by your company these orders should be included in the check.
    For transactions such as make-to-order production, consignment or returnable packaging processing that create special stock, the availability check is performed against special stock.
    If it is defined by the checking rules that both sales and delivery requirements are taken into account in the availability check in sales documents but only delivery requirements are taken into account in the availability check in deliveries, there is a danger that quantities reserved in the sales documents are considered to be available by the availability check in the deliveries. This can lead to sales documents becoming backlogged.
    Reactions to the Availability Check in Sales Documents 
    If the goods ordered by the customer are not available on the requested date, the system branches automatically during sales document processing to a further screen where delivery proposals are offered for selection. The system determines these proposals on the basis of the availability situation. This screen also provides you with information on the scope of the check, the current ATP quantity, and the availability situation across all plants.
    Availability Control
    On the Availability Control screen, you can choose between the following delivery proposals:
    •     One-time delivery on the requested delivery date
    In this section, the system checks whether the requested delivery date can be kept to. If stock of the material is available to make a delivery on the requested delivery date, the stock quantity is confirmed here. If there is no stock available, confirmed quantity zero is displayed.
    To copy this data into the sales document, select Edit &#61614;&#61472;One-time delivery.
    •     Complete delivery
    In this section, the system checks whether there will be sufficient stock for complete delivery at a later date:
    o     If there is sufficient stock available at a later date to cover the required quantity in the sales document, the system proposes the date here.
    o     If the system determines that complete delivery cannot be made at a later date, no date is proposed in this section.
    When availability is checked including replenishment lead time, the date which is proposed in this section is the date on which the replenishment lead time period ends if the stock before the end of replenishment lead time does not cover the order quantity.
    When availability is checked excluding replenishment lead time, the system bases its calculations on the stock and the planned inward movements of stock.
    To copy this data into the sales document, select Edit &#61614;&#61472;Complete delivery
    •     Delivery proposal
    In this section, the system checks whether and for which dates partial deliveries can be made. Partial deliveries are displayed for different dates. These dates are based on the planned inward and outward movements of stock.
    During an availability check which takes replenishment lead time into account, the date on which replenishment lead time ends is displayed if insufficient stock means that no partial deliveries can be made before replenishment lead time ends.
    During an availability check which does not take replenishment lead time into account, the system displays the dates on which partial deliveries can be made with the available stock.
    To copy this proposal into the sales document, select Edit &#61614;&#61472;Delivery proposal
    The dates displayed in the sections complete delivery and delivery proposal are determined from the material availability date using forward scheduling and represent actual delivery dates.
    Availability Across Plants
    You can display the availability situation in the various plants for which a material is maintained. To do this, proceed as follows:
    1.     Select Goto &#61614;&#61472;Other plants on the availability control screen.
    The dialog box Plant Selection appears. All plants for which the material is maintained are displayed.
    2.     Mark the plants in which you want to check availability and select Check plants.
    You reach the Availability Check: Overview screen. The requirements quantity and the quantity which could be confirmed as well as some additional information is displayed in a separate line for each plant you selected.
    3.     If you require detailed information on the availability check for a particular line, select the relevant line and select Edit &#61614;&#61472;Check availability.
    You reach the Date proposals dialog box where the detailed data is displayed.
    4.     You can select a plant with sufficient quantity for confirmation to be copied automatically into the Overview screen. Select the appropriate line and select Edit &#61614;&#61472;Copy plant.
    Using the user exit USEREXIT_PLANT_SELECTION in the Include LV03VFZZ you can make a preselection of the allowed plants. If you use this option, the Plant selection dialog box does not appear and the availability check is performed immediately for the allowed plants. If, on the basis of information resulting from the availability check, you want to deliver from a plant other than the one specified in the item, you must at present enter this plant manually in the item. In a later release, however, you will be able to select the plant directly from the list of plants.
    Displaying the ATP Quantities
    If you want to display the current ATP situation on the availability control screen, select Goto &#61614;&#61472;Availability overview.
    Displaying the Scope of the Check
    If you want to display the scope of the check (stock and inward/outward movements of goods taken into account during the availability check) from the availability control screen, select Goto &#61614;&#61472;Scope of check.
    Delivery Agreements in the Customer Master Record
    A customer may react in different ways to the fact that a complete delivery can not be provided for the required delivery date. You can define in the customer master record, the way a customer reacts to the inability to meet the requirements represented by the key data.
    •     The customer wants complete delivery of all items by the requested delivery date or at a later date.
    The complete delivery indicator is copied into the sales document from the customer master record. To find it, select Header &#61614;&#61472;Business data on an overview screen or a header screen. You find the indicator in the Shipping section.
    If the complete delivery indicator is set in the sales document, the individual items are automatically correlated when the document is saved if the schedule lines exist for various dates (that is, a delivery group is automatically created for the sales document items and the latest delivery date within this group becomes the group delivery date). For further information on delivery groups, see  Combining Sales Document Items for Delivery.
    •     The customer only allows a certain number of partial deliveries for each item.
    The partial delivery indicator and the number of partial deliveries are copied into the sales document item from the customer master record. To find the indicators:
    1.     Go to the Business Data screen for this item.
    2.     Select Edit &#61614;&#61472;Shipping details.
    The indicators are found in the Shipping section.
    Performing the Availability Check Again
    Usually, an availability check is only performed when a sales document is created. If quantities or dates are changed in the document and availability needs to be checked again, the check is performed again automatically . However, you can also initiate an availability check manually.
    Automatic Checks
    In the following situations, a new availability check is automatically carried out:
    •     Quantity change
    •     Date change (requested delivery date, material availability date)
    •     Change to the fixed data
    •     After new delivery scheduling (for example, the route or shipping point has been changed)
    •     Change of plant
    •     Change of storage location or batch
    •     Removal of blocks which affect requirements
    •     Removal of reasons for rejection
    Initiating a Check Manually
    In the sales document, you can initiate a new availability check manually. If you want to perform an availability check for all items in a sales document, select Sales document &#61614;&#61472;Check availability on the header screen. If you want to check availability for an individual item, select Edit &#61614;&#61472;Item availability.
    Fixing Quantities and Dates in Sales Documents 
    If the availability check for an item determines that the item cannot be delivered fully on the requested delivery date, and, as a result one or more schedule lines have to be created for later delivery dates, the customer can decide whether to accept these delivery dates and quantities.
    You can record the customer's decision either by setting an indicator in the Fixed date and qty field or by leaving this field blank. The field is displayed both on the schedule line overview screen and on the availability screen.
    Customer Accepts the Schedule Line Proposal
    If the customer accepts the schedule lines which are proposed by the system, mark the Fixed date and qty field. The system then transfers the requirements for the schedule lines to material requirements planning.
    Customer Requires Goods Earlier
    If the customer requires the goods earlier than the date that the system can confirm after the availability check, leave the Fixed date and qty field blank. The system then only passes on the requirements for the requested delivery date and does not take the quantities and dates confirmed by the system after the availability check into account. In this case, it is assumed that the requested delivery date can be kept to because, for example, additional production capacity may become free. The system only confirms the sales order once the entire order quantity can be delivered on the requested delivery date. In the subsequent delivery processing, the sales order is only considered to be completed when the entire order quantity has been delivered or when all partial delivery agreements have been fulfilled.
    A fixed item is considered to be completed once the entire confirmed quantity (which can be smaller than the originally requested order quantity)has been delivered. Therefore, it does not make sense to fix the confirmed quantity to 0 as the item is considered to be completed from the start.
    During rescheduling, the fixed quantities and dates are no longer taken into account.
    Blocking Confirmation of Quantities in Sales Documents 
    In Customizing, using Block transfer of requirements by delivery block, you can specify that certain delivery blocks in the sales document header also block the confirmation of order quantities.
    If you enter such a delivery block in a sales order header, the system confirms the available quantity to show you the delivery options. If you save the document, however, the confirmed quantities are not saved. Your company could block confirmation for a customer if this customer's credit worthiness was questionable. The sales order in this case is not only classed as unconfirmed, it is also blocked for delivery.
    Thus, no stock is reserved. The stock is still available for other customers. Although the order quantities are not confirmed, the system still transfers the requirements to material requirements planning. It is assumed that the delivery block will be removed at some point. The automatic transfer of requirements means that the order quantity can be confirmed at a later point in time
    Source: SAP Library
    Hope this is of some help.

  • Maximum number of sessions has already been reached...

    I have a web application which is made up of a servlet and some jsps. I run a test which puts a load on the webserver which sends multiple requests to the webserver so we can monitor the load.
    The problem is, my application is not handling anything gracefully when the webserver reaches it's max # of sessions. I don't want to change the default 1000 sessions, but I want to direct users to a friendly error page if this situation ever occurs.
    This is the beginning of my doGet method:
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    try {
    java.sql.Date fromDate = null;
    java.sql.Date toDate = null;
    String storySection = null;
    int history = 0;
    int numberOfRecords = 0;;
    HttpSession session = request.getSession(true);
    System.out.println("Checking if session is null***");
    if(session == null) throw new SQLException("SESSION IS NULL!");
    if(request.isRequestedSessionIdValid() == false) throw new SQLException("SESSION NOT VALID!");
    System.out.println("Session passed fine!!!!!!!!!!!!!!");
    This is the output from iPlanet 4.1SP5 errors log file:
    --- (messages before this point were just loading jsp + servlets; i.e. no errors before this point) ---
    [28/Feb/2002:09:44:21] info (21849): Internal Info: loading servlet /mmd/SquawkMessage.jsp
    [28/Feb/2002:09:48:09] warning (21849): SimpleSessionManager: cannot create a new session as the limit on maximum number of sessions has already been reached: (1000)
    [28/Feb/2002:09:48:09] failure (21849): Internal error: exception thrown from the servlet service function (uri=/mmd/SquawkHeadlines.jsp): java.lang.NullPointer
    Exception, Stack: java.lang.NullPointerException
    at jsps.mmd._SquawkHeadlines_jsp._jspService(Compiled Code)
    at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at com.netscape.server.http.servlet.NSServletRunner.Service(Compiled Code)
    --- (messages after this point were more of the same until I killed the load test) ---
    Any advice? I need to find out how to handle this problem gracefully.
    Thank you,
    Karen
    [email protected]

    Hi,
    You can have an application variable that increments by one, when each new session is started. That way you can check whether the total no.of sessions have reached 1000, if yes, u can redirect the user to an error page.
    Please get back to me if u still can't get the problem solved.
    SURESH B
    [email protected]

  • HT1539 unable to access i-tune store after submitting digital code, then code said already used

    Tryed downlloading digital copy, after entering code, unable to connect to i-tunes store, said try again.  Tryed later & said code was already used.
    Any ideas..  Help.
    Thanks.
    Rob

    Well try upgrading the firmware of the router & keep on holding tightly the reset button in such a way that power light is blinking on the router & then do a complete network power cycle i.e., unplug the power cables from the modem & from the router & then plug in the power cable to the modem first once all the lights are solid green you could plug in the power cable to the router & check out it will definately work!!
    Open the setup page of router using 192.168.1.1 then put in the
    password as admin...all you need to do is do the wireless settings such
    as Radio Band Frequency to Standard 20 MHZ frequency,channel to 11.
    Also,the advanced wireless settings to Beacon Interval=50,Frag
    thres=2306 & Rts thres=2307 & then uncheck a Block Anonymous Internet
    Requests & it will definately work!!!

Maybe you are looking for