Need to Lock Planning Area by using Enque and Deque Technique.

Hi Experts,
My problem is I have to lock the planning area till the Batch program complete and I have to unlock the planning area once the batch job is completed. if any one of the user is login  i.e. accessing planning book while batch job is running then batch job getting Failed.
we can check the lock in SM12
We have a custom program to send message to user to come out of the planning area but it does hit upto the mark.
we are expecting some solution to lock and unlock the plannig area till the job completes.
I was using some functional module to lock the planning area but it does not helped us. Kindly provide some help to acheive this situation
The below functional modules I used to lock the Plannning area ZDP31. I have given the input while executing the Function module  PAREAID = ZDP31 (our Planning area Name)
1) ENQUEUE_/SAPAPO/E_PAREA  
2) /SAPAPO/TS_DM_LOCK
3) /SAPAPO/TS_DM_UNLOCK_NEW
4) /SAPAPO/TS_DM_LOCK_UNLOCK
Please help me its in high prioity for us.

Hello Balaji,
Here are the needful function modules where you can use to lock the PA by enque & deque technique..
a) ENQUEUE_READ Pass Planning Area value as GARG and PAREAID as GNAME to get information about lock entries for selected planning area.  GUNAME corresponding to GNAME = /SAPAPO/DM_PAREA_LOCK and GOBJ = /SAPAPO/E_PAREA entries provides user id (s) locking the planning area displayed in the field GTARG.
b) TH_POPUP to send out popup messages to the users locking the Planning Area.
c) TH_DELETE_USER to kick off users (GUNAME) who have been locking the planning area.
I hope this helps...
Cheers !!
Regards
Rahul Chitte

Similar Messages

  • How to use ENQUE and DEQUE BAPI in Visual Composer

    Hi All,
           We are planning to update employee Address through Portal for that one we did one BAPI which supports ADDRESS Change of an employye, through Visual Composer we developed the application and we integrated into SAP Portal but we are not able to update our records, then we found BAPI_EMPLOYEE_ENQUE and BAPI_EMPLOYEE_DEQUE, but we don't know how to use thease BAPI's in Visual Composer i mean how to make connection between out input form and thease BAPI''s and our custom BAPI's.
    If any one having this experience please let me know.
    Thanks in Advance.
    Thanks and Regards,
    Abhi.

    Hi,
      Nice to see your reply, we got this error in R/3 it self, when we are trying to excuting SAP Standard BAPI we are getting this error "Employee/applicant is not locked yet". I think this is bug from SAP itself, do you have any idea about this one? is there any settings we need to do in R/3 for resolving this one or else is there any data we need to maintaine for our Employee Records.
    Please resolve my issue.
    Thanks in Advance.
    Thanks and Regards,
    Abhi.

  • Lock Planning Area

    Hi,
    I need to lock planning area. I used the FM /SAPAPO/TS_LC_LOCK. It works fine but when I come out of the program  all the locks are released.  Actually this is the standard behaviour of Enqueue functionality.
    Tried this FM also - /SAPAPO/TS_DM_LOCK  but of no use.
    As per my requirement I need to Lock the Planning area and then run all the Jobs and then Unlock the planning area. Please help to achieve this functionality. In short I need to Loack the planning areas until I unlock them explicitly.
    Thanks!

    Hi,
    Try these function modules separately ...
      To lock  planning area *******
    CALL FUNCTION 'ENQUEUE_/SAPAPO/E_PAREA'
    EXPORTING
      MODE_/SAPAPO/DM_PAREA_LOCK       = 'S'
        PAREA                            = PL_AREA
      IOBJNM                           =
      SELECTION                        =
      X_PAREA                          = ' '
      X_IOBJNM                         = ' '
      X_SELECTION                      = ' '
      _SCOPE                           = '2'
      _WAIT                            = ' '
      _COLLECT                         = ' '
    EXCEPTIONS
      FOREIGN_LOCK                     = 1
      SYSTEM_FAILURE                   = 2
      OTHERS                           = 3
    IF sy-subrc <> 0.
       MESSAGE 'Planning area not locked' TYPE 'E' .
    ELSE .
       MESSAGE 'Planning area locked successfully' TYPE 'I' .
    ENDIF.
      To unlock planning area *******
    CALL FUNCTION 'DEQUEUE_/SAPAPO/E_PAREA'
    EXPORTING
      MODE_/SAPAPO/DM_PAREA_LOCK       = 'S'
        PAREA                            =  PL_AREA
      IOBJNM                           =
      SELECTION                        =
      X_PAREA                          = ' '
      X_IOBJNM                         = ' '
      X_SELECTION                      = ' '
      _SCOPE                           = '3'
      _SYNCHRON                        = ' '
      _COLLECT                         = ' '
    IF sy-subrc <> 0.
       MESSAGE 'Planning area not unlocked' TYPE 'E' .
    ELSE .
       MESSAGE 'Planning area unlocked successfully' TYPE 'I' .
    ENDIF.

  • Enque and Deque

    Hi all,
    Can any one explain with example how to use Enque and Deque to lock a database table?

    this editable alv using this to make change in standard table.
    *& Report  ZALVF
    REPORT  ZALVF.
    TYPE-POOLS                                                      *
    TYPE-POOLS: SLIS.
    INTERNAL TABLES/WORK AREAS/VARIABLES     *
    DATA: I_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
          I_INDEX TYPE STANDARD TABLE OF I WITH HEADER LINE,
          W_FIELD TYPE SLIS_FIELDCAT_ALV,
          P_TABLE LIKE DD02L-TABNAME,
          DY_TABLE TYPE REF TO DATA,
          DY_TAB TYPE REF TO DATA,
          DY_LINE TYPE REF TO DATA.
    FIELD-SYMBOLS                                                   *
    FIELD-SYMBOLS: <DYN_TABLE> TYPE STANDARD TABLE,
                   <DYN_WA> TYPE ANY,
                   <DYN_FIELD> TYPE ANY,
                   <DYN_TAB_TEMP> TYPE STANDARD TABLE.
    SELECTION SCREEN                                                *
    PARAMETERS: TABNAME(30) TYPE C,
                LINES(100)  TYPE N.
    START-OF-SELECTION                                              *
    START-OF-SELECTION.
    Storing table name
      P_TABLE = TABNAME.
    Create internal table dynamically with the stucture of table name
    entered in the selection screen
      CREATE DATA DY_TABLE TYPE STANDARD TABLE OF (P_TABLE).
      ASSIGN DY_TABLE->* TO <DYN_TABLE>.
      IF SY-SUBRC <> 0.
        MESSAGE I000(Z_ZZZ_CA_MESSAGES) WITH ' No table found'.
        LEAVE TO LIST-PROCESSING.
      ENDIF.
    Create workarea for the table
      CREATE DATA DY_LINE LIKE LINE OF <DYN_TABLE>.
      ASSIGN DY_LINE->* TO <DYN_WA>.
    Create another temp. table
      CREATE DATA DY_TAB TYPE STANDARD TABLE OF (P_TABLE).
      ASSIGN DY_TAB->* TO <DYN_TAB_TEMP>.
      SORT I_FIELDCAT BY COL_POS.
    Select data from table
      SELECT * FROM (P_TABLE)
      INTO TABLE <DYN_TABLE>
      UP TO LINES ROWS.
      REFRESH <DYN_TAB_TEMP>.
    Display report
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM       = SY-REPID
          I_STRUCTURE_NAME         = P_TABLE
          I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
          I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
        TABLES
          T_OUTTAB                 = <DYN_TABLE>
        EXCEPTIONS
          PROGRAM_ERROR            = 1
          OTHERS                   = 2.
      IF SY-SUBRC <> 0.
      ENDIF.
    *&      Form  SET_PF_STATUS
          Setting custom PF-Status
         -->RT_EXTAB   Excluding table
    FORM SET_PF_STATUS USING RT_EXTAB TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'Z_STANDARD'.
    ENDFORM.                    "SET_PF_STATUS
    *&      Form  user_command
          Handling custom function codes
         -->R_UCOMM      Function code value
         -->RS_SELFIELD  Info. of cursor position in ALV
    FORM USER_COMMAND  USING    R_UCOMM LIKE SY-UCOMM
                      RS_SELFIELD TYPE SLIS_SELFIELD.
    Local data declaration
      DATA: LI_TAB TYPE REF TO DATA,
            L_LINE TYPE REF TO DATA.
    Local field-symbols
      FIELD-SYMBOLS:<L_TAB> TYPE TABLE,
                    <L_WA>  TYPE ANY.
    Create table
      CREATE DATA LI_TAB TYPE STANDARD TABLE OF (P_TABLE).
      ASSIGN LI_TAB->* TO <L_TAB>.
    Create workarea
      CREATE DATA L_LINE LIKE LINE OF <L_TAB>.
      ASSIGN L_LINE->* TO <L_WA>.
      CASE R_UCOMM.
      When a record is selected
        WHEN '&IC1'.
        Read the selected record
          READ TABLE <DYN_TABLE> ASSIGNING <DYN_WA> INDEX
          RS_SELFIELD-TABINDEX.
          IF SY-SUBRC = 0.
          Store the record in an internal table
            APPEND <DYN_WA> TO <L_TAB>.
          Fetch the field catalog info
            CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
              EXPORTING
                I_PROGRAM_NAME         = 'Z_DEMO_PDF_JG'
                I_STRUCTURE_NAME       = P_TABLE
              CHANGING
                CT_FIELDCAT            = I_FIELDCAT
              EXCEPTIONS
                INCONSISTENT_INTERFACE = 1
                PROGRAM_ERROR          = 2
                OTHERS                 = 3.
            IF SY-SUBRC = 0.
            Make all the fields input enabled except key fields
              W_FIELD-INPUT = 'X'.
              MODIFY I_FIELDCAT FROM W_FIELD TRANSPORTING INPUT
              WHERE KEY IS INITIAL.
            ENDIF.
          Display the record for editing purpose
            CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
              EXPORTING
                I_CALLBACK_PROGRAM    = SY-REPID
                I_STRUCTURE_NAME      = P_TABLE
                IT_FIELDCAT           = I_FIELDCAT
                I_SCREEN_START_COLUMN = 10
                I_SCREEN_START_LINE   = 15
                I_SCREEN_END_COLUMN   = 200
                I_SCREEN_END_LINE     = 20
              TABLES
                T_OUTTAB              = <L_TAB>
              EXCEPTIONS
                PROGRAM_ERROR         = 1
                OTHERS                = 2.
            IF SY-SUBRC = 0.
            Read the modified data
              READ TABLE <L_TAB> INDEX 1 INTO <L_WA>.
            If the record is changed then track its index no.
            and populate it in an internal table for future
            action
              IF SY-SUBRC = 0 AND <DYN_WA> <> <L_WA>.
                <DYN_WA> = <L_WA>.
                I_INDEX = RS_SELFIELD-TABINDEX.
                APPEND I_INDEX.
              ENDIF.
            ENDIF.
          ENDIF.
      When save button is pressed
        WHEN 'SAVE'.
        Sort the index table
          SORT I_INDEX.
        Delete all duplicate records
          DELETE ADJACENT DUPLICATES FROM I_INDEX.
          LOOP AT I_INDEX.
          Find out the changes in the internal table
          and populate these changes in another internal table
            READ TABLE <DYN_TABLE> ASSIGNING <DYN_WA> INDEX I_INDEX.
            IF SY-SUBRC = 0.
              APPEND <DYN_WA> TO <DYN_TAB_TEMP>.
            ENDIF.
          ENDLOOP.
        Lock the table
          CALL FUNCTION 'ENQUEUE_E_TABLE'
            EXPORTING
              MODE_RSTABLE   = 'E'
              TABNAME        = P_TABLE
            EXCEPTIONS
              FOREIGN_LOCK   = 1
              SYSTEM_FAILURE = 2
              OTHERS         = 3.
          IF SY-SUBRC = 0.
          Modify the database table with these changes
            MODIFY (P_TABLE) FROM TABLE <DYN_TAB_TEMP>.
            REFRESH <DYN_TAB_TEMP>.
          Unlock the table
            CALL FUNCTION 'DEQUEUE_E_TABLE'
              EXPORTING
                MODE_RSTABLE = 'E'
                TABNAME      = P_TABLE.
          ENDIF.
          RS_SELFIELD-REFRESH = 'X'.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDFORM.                    "user_command

  • Integrated Planning in COPA using KEPM and loading of quantity to SOP

    Hi,
    We are in process of testing integrated planning in COPA using KEPM and loading of quantity to SOP (MC87) or Transfer Qty to SOP - KE1E. I created a planning level with basic information to plan quantity on product with Period/Year, Version, Plant, Product, Record Type (F), Unit Sales Qty.
    Also created Planning Package & Planning Parameter with Planning layout and entered quantity for a material which creates a profitability segment with quantity update. The problem occurs when transferring to SOP the sales quantity either using MC87 or KE1E, it goes into a loop and times out. We tried using different parameters, but ended up with same result.
    Are we missing some Config/steps here, any thoughts will help.
    Satish

    Hi,
    You need to transfer COPA plan to inactive version of SOP through KE1E. Thereafter, in PP, the same is transfered to active version through MC78. Thereafter it is transferred to Demand Management through MC74.
    Please check with your PP consultant.
    Trust this helps. Please assign pts if useful

  • Use of enque and deque function in BADI MB_DOCUMENT_BADI

    Hi All,
    I have implemented one implementation to the BADI MB_DOCUMENT_BADI.I have to use update command in this implementation to update on ZTABLE,In order to update I need to use enqueue and dequeue function before updating the table.
    My concern is that in the documentation to the BADI it specifies that Unlocking the data( DEQUEUE_ALL) will be not used in this implementation.
    Please let me know Can  I use enqueue and deques function for this table to this BADI.
    Thanks,.
    Sandeep.

    Hi,
      I think field GOODSMVT_CODE is not table type, you mension it type table of 'BAPI2017_GM_CODE'.
    Thanks,
    Anmol.

  • My iMessage and Facetime won't activate, says waiting for activation. All photos and contacts are restored, using email and wifi only, no service. Only issue is date and time will not automatically set.

    My iMessage and Facetime won't activate, says waiting for activation. All photos and contacts are restored, using email and wifi only, no service. Only issue is date and time will not automatically set.

    Howdy eewebe13,
    So you have no cellular service but are on Wi-Fi yet iMessage and Facetime are waiting for activation.
    Please step through this article for that scenario.
    If you get an error when trying to activate iMessage or FaceTime - Apple Support
    Thank you for visiting Apple Support Communities.
    Nubz

  • [svn:cairngorm3:] 16673: Removed selectors and [ManagedEvents] tags, We are now using dispatchers and explicit event types to handle commands

    Revision: 16673
    Revision: 16673
    Author:   [email protected]
    Date:     2010-06-25 09:43:24 -0700 (Fri, 25 Jun 2010)
    Log Message:
    Removed selectors and tags, We are now using dispatchers and explicit event types to handle commands
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-basic/src/InsyncContext.mxml
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/RefreshSearchAfterSav eController.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/RemoveContactCommand. as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/RemoveContactIntercep tor.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/SaveContactCommand.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/SearchEvent.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactFormPM.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactsListPM.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactsNavigatorPM. as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ToolbarPM.as
        cairngorm3/trunk/samples/insync/insync-basic/test/insync/application/RefreshSearchAfterSa veControllerTest.as
        cairngorm3/trunk/samples/insync/insync-basic/test/insync/application/RemoveContactCommand Test.as
        cairngorm3/trunk/samples/insync/insync-basic/test/insync/application/SaveContactCommandTe st.as
    Added Paths:
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/AddContactEvent.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/EditContactEvent.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/RemoveContactEvent.as
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/application/SaveContactEvent.as

    bleach wrote:
    i see these
    URxvt*background: #171717
    URxvt*foreground: #B2B2B2
    URxvt*color0: #171717
    URxvt*color1: #3D3D3D
    URxvt*color2: #ffffff
    are not commented out
    3d3d3d is for red but you have a blackish and color2 is for green but you have it white the rest should be the default colors. it uses the same colors only it changes the vairiant of the color you choice there or normally moc uses colors such as green blue and such which will call your console colors for those respective fields I know moc has /user/share/moc/themes/ that you can edit or make your own for instance copy one and edit it. I think htop uses the same color count which is 8 but with so green will be white when you use urxvt. 8 for normal colors 16 for bright dark and urxvt is 256 which is 16 but can use any of the 256 colors for 16.
    just to clarify you have commented out your colors 4-15 and your green and red is weird, and htop aswell as moc is 8 bit. moc theme_yellow_red is default for background so it will use urxvts background
    Haahaha, that is simple. And it works!!!
    I didn't bother with commenting that because i thought they are not applied. Anyway, thanks man. My urxvt terminal si grateful to you and your thorough explanation. SOLVED!

  • DP Planning Area Load using Attributes

    We have an APO DP Planning area that is comprised of two characteristics ("Material"; "Mill").  All the data are attributes of one of these characteristics.  We chose this for the flexibility of attributes as compared to characteristics and was under the impression this was "the best practice".
    I have two questions regarding this:
    1)  We now have a requirement to populate a new key figure in DP from our sales forecast that is done in BI-IP Planning.  The sales forecast is done at the "Brand" level which is above the "Material".  It appears I am unable to load my planning area with a cube that does not have matching characteristics.   Does anyone have an idea of how to load a planning area above the characteristic level?  I think this can be done using SDP94 and the "Save Locally" and "Upload file" options but would like to find a smoother way to do this so I can automate the load via a process chain...
    The error I get when I try to load via TSCUBE is:
    Planning area and InfoCube must have common characteristic
    Message no. /SAPAPO/TSM272
    Diagnosis
    You are trying to load data from an InfoCube into a planning area. The planning area and InfoCube should be similar. This means that they should have at least one common characteristic. If they do not, it is impossible to map the data.
    Procedure
    Check the planning area and InfoCube. Make the necessary changes
    ===
    2) Is using attributes to this level a bad thing from a performance and/or enhancement perspective?  I like the fact that things adjust automatically as attributes change but now I am worried we may have over used them... We do notice some speed issues when accessing data at times...
    Thanks so much for any information or comments on this!

    In TSCUBE transaction use the Characteristic Assignment option to map Brand characteristic of infocube to Brand characteristic in Planning Area.
    Hope this helps.
    somnath

  • I need to pass multiple select options using submit and reutrn

    dear all,
    my requirement is i need to pass multiple values for work center like(biw01,biw02,biw03    etc) for this iam giving as biwl* and biot* for the tcode zpp_hmm ,using this i am going to get total working hours of perticular equiment.
    for this iam using submit and return query but iam unable to pass multiple work centers as input.
    my code is
    DATA : z_budat TYPE  RANGE OF budat,
           wa_budat LIKE LINE OF z_budat.
    wa_budat-low = '20111001'.
    wa_budat-sign = 'I'.
    wa_budat-option = 'BT'.
    wa_budat-high = '20111031'.
    APPEND wa_budat TO z_budat.
    CLEAR wa_budat.
    *wa_budat-High = '20111031'.
    *wa_budat-sign = 'I'.
    *wa_budat-option = 'BT'.
    *append wa_budat to z_budat.
    DATA : z_arbpl TYPE  RANGE OF arbpl,
           wa_arbpl LIKE LINE OF z_arbpl.
    wa_arbpl-low = 'BIWL*'.
    wa_arbpl-sign = 'I'.
    wa_arbpl-option = 'EQ'.
    APPEND wa_arbpl TO z_arbpl.
    CLEAR wa_arbpl.
    wa_arbpl-high = 'BIOT'.
    *wa_arbpl-sign = 'I'.
    *wa_arbpl-option = 'BT'.
    *APPEND wa_arbpl TO z_arbpl.
    SUBMIT   zpp_rep_hemm_perf WITH s_bukrs = '1004'  WITH s_budat IN z_budat WITH      s_werks = 'SMJT'
                   with   S_ARBPL IN Z_ARBPL USING SELECTION-SCREEN '1000' AND RETURN.
    but my doubt is whether it is corect or wrong what ever i am passing inputs for arbpl.
    thanks in advance.

    You can pass all parameter (rsparams-kind = 'P') and select-options (rsparams-kind = 'S') as a single internal table of type RSPARAMS. Go on appending the field names and values as rows and pass using SELECTION-TABLE parameter of SUBMIT command.
    I gave appending one set of selection values for s_budat field but you can go on appending more values for s_budat and other fields.
    DATA: lt_rsparams TYPE TABLE OF rsparams,
          ls_rsparams TYPE rsparams.
    CLEAR ls_rsparams.
    ls_rsparams-selname  = 'S_BUDAT'.
    ls_rsparams-kind = 'S'.
    ls_rsparams-sign = 'I'.
    ls_rsparams-option = 'BT'.
    ls_rsparams-low =  '20111001'.
    ls_rsparams-high = '20111031'.
    APPEND ls_rsparams TO lt_rsparams.
    SUBMIT zpp_rep_hemm_perf WITH SELECTION-TABLE lt_rsparams
                      USING SELECTION-SCREEN '1000'
                      AND RETURN.

  • Does the Apple TV have any purpose if you are only using Bluetooth and cables/cords, not WiFi.

    I have a 5th Gen iPod Touch (32 GB), and a HDTV (with 3 HDMI ports), but very limited internet. Does the Apple TV have any uses without WiFi, can I just use cables and/or Bluetooth. I want to use Airplay without WiFI, how?

    Currently no.
    I believe in iOS 8 Apple may produce a kind of 'peer to peer' wifi without the need for a router - but not sure your Tocuh can run iOS 8...

  • Need Help Badly on Shopping Cart Using JSP And Java Servlet

    Hi All,
    This is the 1st time i am trying to create a shopping cart using JSP and Servlet.
    I have read through a few acticles but i still do not get the whole idea of how it works.
    Please guide me as i need help very badly.
    Thanks.
    This is one of the jsp page which displays the category of products user would like to buy : Products.jsp
    <html>
    <head>
    <title>Purchase Order</title>
    </head>
    <body topmargin="30">
    <table border="0" width="100%" id="table1" cellpadding="2">
         <tr>
              <td bgcolor="#990000" width="96">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">
              Code</font></b></td>
              <td bgcolor="#990000" width="260">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">
              Description </font></b></td>
              <td bgcolor="#990000" width="130">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">Brand
              </font></b></td>
              <td bgcolor="#990000" width="146">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">UOM
              </font></b></td>
              <td bgcolor="#990000" width="57">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">Unit<br>
              Price </font></b></td>
              <td bgcolor="#990000" width="62">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">
              Carton<br>
              Price </font></b></td>
              <td bgcolor="#990000" width="36">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">
              Qty</font></b></td>
              <td bgcolor="#990000" width="65">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">Add<br>
              To Cart</font></b></td>
         </tr>
    <tr>
    <td align="center" width="96" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">123</font>
    </td>
    <td align="center" width="260" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">Tom Yam</font>
    </td>
    <td align="center" width="130" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">Nissin</font>
    </td>
    <td align="center" width="146" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">12 x 10's</font>
    </td>
    <td align="center" width="57" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">$3.85</font>
    </td>
    <td align="center" width="62" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">$46.2</font>
    </td>
    <td align="center" width="36" bgcolor="#CCCCCC">
    <!--webbot bot="Validation" S-Data-Type="Integer" S-Number-Separators="x" -->
    <p align="center"><input type="Integer" name="Q10005" size="1"></p>
    </td>
    <td align="center" width="65" bgcolor="#CCCCCC">
    <p><input type="checkbox" name="checkbox" value="123"></p>
    </tr>
    <tr>
    </table>
    <table border="0" width="100%" id="table2">
         <tr>
              <td>
              <div align="right">          
                   <input type="hidden" name="hAction" value="AddToCart"/> 
              <input type=submit name="submit" value="Add To Cart"/>                     
    </div>
    </td>
         </tr>
    </table>
    </body>
    </html>
    After user has make his selection by entering the qty and ticking on the check box, he would click the "Add To Cart" button ... and this would call my servlet : AddToAddControlSerlvet.java
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.*;
    import java.util.*;
    import java.util.ArrayList;
    public class AddToCartControlServlet extends HttpServlet
         public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException
              String action = req.getParameter("hAction");
              if (action.equals("AddToCart"))
                   addToCart(req,res);
         public void addToCart(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
              try
                   String url = "";
                   String[] addList = req.getParameterValues("checkbox");
                   HttpSession sess = req.getSession(true);
                   //String sessionID = sess.getId();
                   DBClass dbClass = new DBClass();
                   ArrayList cartList = new ArrayList();
                   for (int i = 0; i < addList.length; i++)
                        String productCode = (String)addList;
                        int qty = Integer.parseInt(req.getParameter("Q"+productCode));
                        Products product = dbClass.getProductDetail(productCode);
                        double totalUnitAmt = qty * product.getUnitPrice();
                        double totalCartonAmt = qty * product.getCartonPrice();
                        Order order = new Order(product.getProductCode(),product.getProductDesc(),product.getBrandName(),product.getUom(),qty,product.getUnitPrice(),product.getCartonPrice(),totalUnitAmt,totalCartonAmt);
                        cartList.add(order);
                   sess.setAttribute("cartList", cartList);
                   url = "/Cart/CartDetails.jsp";
                   ServletContext sc = getServletContext();
                   RequestDispatcher rd = sc.getRequestDispatcher(url);
                   rd.forward(req, res);
              catch (Exception e)
                   System.out.println(e);
    From here, i would get the list of items which user has selected and add to the cartList, then i would direct the user to CartDetails.jsp which displayed the items user has selected.
    From there, user would be able to remove or to continue shopping by selecting other category.
    How i do store all the items user has selected ... everytime he would wan to view his cart ...
    As i would be calling from jsp to servlet .. or jsp to servlet ... and i do not know how i should go about in creating the shopping cart.

    Hi !
    Yon can use a data structure as vector and store the items selected by the user into the vector . Keep the vector in session using session object , so the user can access the entire shopping cart from anywhere in the application .
    Then , you can change the cart accordingly .
    Hope this works.
    Cheers ,
    Pranav

  • Need some graphics card advice for using 3D and Adobe

    Below are the specs for the workstation I just bought. I'm planning on upgrading the graphics card to a GeForce GTX 570 (Fermi) 1280MB. The chassis is pretty small, and I'm concerned that it might get too hot. Does anyone have any advice as to whether this machine can handle this card, and whether or not I should by extra fans, or a water cooling system for the card? Thanks in advance!
    Processor & Memory:
    Intel® Core™ i7-2600 Processor (3.40GHz)  
    Intel® H67 Chipset  
    16GB DDR3 Memory (4 slots, 32GB MAX)
      Drives: 
    2TB SATA II Hard Drive  
    12X Blu-ray Rewritable Drive: Read AND Write CDs/DVDs/Blu-Ray Discs  
    Front Panel 19-in-1 digital multimedia card reader
      Graphics: 
    Integrated Intel® HD Graphics (dual monitor capable)
      Communications: 
    10/100/1000 Mb/s Gigabit  LAN
      Audio: 
    Flexible 8-channel audio with jack sensing
      Keyboard & Mouse: 
    USB Keyboard  
    USB Mouse
      Expandability (total bays/slots): 
    2 x 5.25" external (1 occupied)  
    1 x 3.5" external (1 occupied)  
    4 x 3.5" internal (1 occupied)  
    1 x PCI-Ex16   
    2 x PCIe x1
      Ports: 
    1x DVI  
    1x HDMI  
    2 x USB 3.0 ports (rear)  
    6 x USB 2.0 ports (2 Front, 4 Rear)  
    3 x Audio Ports  
    1x S/PDIF out  
    1x RJ45
      Operating System: 
    Genuine Microsoft Windows® 7 Home Premium, 64-bit
      Additional Software: 
    Microsoft® Office Starter (reduced functionality versions of Word and Excel; not the full version of Microsoft® Office 2010)  
    Symantec Norton Internet Security 2011 (60-day trial)
      Additional Information: 
    Dimensions: (HxWxD):  13.9" x 7.1" x 16.9" (approx.)  
    Power supply: 350W  
    Lifetime, 24/7 toll-free phone support  
    1 Year Limited Parts & Labor Warranty  
    Email and fax support M-F from 9am-6pm EST

    Here are the major failings of that "workstation":
    1) The power supply is much too weak to handle an upgrade to a GTX 570. Heck, that PSU might not have been capable of actually handling even its claimed 350W - but more like 200W. As such, it's barely capable of handling even that "workstation"'s base configuration with integrated Intel HD 2000 graphics. You will definitely need a new power supply (at least 550W, but preferably 750W to 850W) right away before you can even upgrade the graphics card at all.
    2) That PC has only one hard disk. Adobe requires a minimum of at least one additional hard disk (preferably two or more additional disks) in order to run Premiere Pro acceptably well.
    3) Change out the H67 motherboard for a Z68 motherboard. H67 cannot overclock the "limited-overclockable" i7-2600 CPU at all. And even with a Z68 motherboard, the fastest that you can run that non-K i7-2600 would be 3.9GHz.
    4) As you stated, that small case will not be enough. You will need a much bigger case to handle the load from Premiere Pro plus all of the hardware upgrades that I'm suggesting.
    Also, keep in mind that the company only offers "lifetime" technical support if you don't tinker with the PC's innards at all - not even a minor hardware upgrade or only for a vendor-approved hardware upgrade such as RAM. Once you open that case for a non-vendor-approved hardware upgrade (e.g. an upgraded power supply, an upgraded GPU or upgraded cooling), you will no longer have technical support from that company that you're getting the PC from.
    As currently equipped, that system will run about 25 to 30 times slower than a fast PC. Look at payal's 622-second result running 5.0.3 on the PPBM5 results list, with the same CPU, chipset and integrated graphics as your system: It is already more than 12 times slower (in terms of the Relative Performance Index) than a fast system - and that system is already running two disks. With only one disk for absolutely everything - the OS, media, projects, previews, cache and exports - it would be much slower than even that because SATA is only a half-duplex interface, not a full-duplex interface. As a half-duplex interface, SATA can only deliver data transfers in one direction at a time. However, video editing programs like PPro require simultaneous reads and writes. This means that the single disk must wait for data transfers in a given direction to be completed before any data starts transferring in the opposite direction.

  • [SOLVED] Do I need to install Codecs if I use VLC and Clementine?

    I realize that this might be a stupid question but I just want to be sure.
    Do I need to install the Codecs listed on the Arch Wiki if I'm using VLC (for video) and Clementine (for audio)? If not, then is there any situation you can think of where I might need those codecs installed even after I have the necessary media apps?
    Last edited by chosentorture (2014-12-06 02:33:36)

    drcouzelis wrote:What codecs and wiki page are you referring to?
    All the relevant codecs needed to play videos and audio files listed on Codecs.
    drcouzelis wrote:Do you have a video or audio file that doesn't play correctly? If not, then you're all set!
    After installing VLC and ALSA, some videos played correctly while others opened with incorrect resolutions and a screeching and tearing sounds.

  • Need help connecting to network printer using xfce and cups

    Hello
    please can someone assist me with setting up a printer.
    I am running arch and xfce desktop.
    I have an Epson Stylus Photo R800 USB printer connected to a wireless Belkin all-in-one Print Server.
    I do not know how to connect to this printer.
    I am not conversant in CUPS or network printing and would very much like to use the printer.
    My arch box is connected through cable to a wireless router.
    The print server is connected to the wireless router and the router confirms the print server is attached to the network.
    The print server IP address is 192.168.0.100.
    The printer server has a web interface which I used to set wireless and TCP settings. I should say that I went into this interface and configured the print server which is totally usable and fine from a Vista laptop using wireless - vista laptop "sees" the print server and prints over wireless, therefore I know the server and printer are working together and all the print server settings are fine. I dont know how Vista connects, it just does!
    I tried installing gutenprint and foomatic, went into the CUPS server page (localhost:631) and found my printer but I'm not sure if my connection string (socket://192.168.0.100:9100) is correct. I've tried several values and several Epson drivers from the CUPS web interface, all to no avail. I just get this message:
    bash-3.2# lpstat -t
    scheduler is running
    system default destination: Epson
    device for Epson: socket://192.168.0.100:9100
    Epson accepting requests since Sat 26 Jul 2008 22:53:35 BST
    printer Epson now printing Epson-0. enabled since Sat 26 Jul 2008 22:53:35 BST
    /usr/lib/cups/filter/pstoraster failed
    I have no desire to be a CUPS expert nor a networking expert - I was rather hoping someone could guide me through the process, I have tried reading web links (google) but do not understand various pages and instructions.
    bash-3.2# cat /etc/cups/printers.conf
    # Printer configuration file for CUPS v1.3.8
    # Written by cupsd on 2008-07-26 22:34
    <DefaultPrinter Epson>
    AuthInfoRequired username,password
    Info Epson
    DeviceURI socket://192.168.0.100:9100
    State Idle
    StateTime 1217108079
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy stop-printer
    </Printer>
    any ideas good folk?
    Last edited by keratos (2008-07-26 22:07:45)

    EDIT:
    SOLVED!
    the problem was that gutenprint needed to be installed.
    I looked at the rastertops file in /usr/lib/cups/filter and it was very small, handfull of lines, but refered to gutenprint (whatever that is).
    "pacman -Q gutenprint" revealed it was not installed.
    All is fine now.
    GREAT!

Maybe you are looking for

  • Problem in BAPI_ACTIVITYCRM_CREATEMULTI

    Hi Experts! I am uploading activity in crm throu BAPI_ACTIVITYCRM_CREATEMULTI. When I am inserting data in structures BAPIBUS2000110_HEADER_INS BAPIBUS20001_HEADER_INS BAPIBUS2000110_HEADER_INSX than it is not updating the ACTIVITY . Msg r  shown ie

  • My N73 can't play MP4 file

    Hi, I'm using N73 now,just bought it. When I tried to play a MP4 file by using RealOne, it promted "unable to play media file". However, when I move the memory card to another N73, it played well. My version is V 2.06.... I know there is higher versi

  • Oracle ADF and OC4J

    Dear colleagues, I am witting an internal report for my company trying to put in black and white the advantages and disadvantages of OracleADF and OC4J not only as a framework but as a solution. I am trying to compare OracleADF (using JDeveloper) to

  • Radius authentication for privileged access

    Hello,           I have configured Cisco 6513 for radius authentication with following commands. aaa new-model aaa authentication login authradius group radius line aaa accounting exec acctradius start-stop group radius radius-server host <radius-ip>

  • Question re: Migration Assistant

    Brief question regarding Migration Assistant: We currently have an iMac in the office that's about 3-4 years old (specs associated with this iMac are posted along with this question, of course). We are going to be acquiring one of the brand-new 27 in