Is order in Hashmap guaranteed, if not updated?

Hello,
Lets say I have created a hashmap with 5 records and when first I checked the order of records is: 1,3,2,5,4.
If I don't change this hashmap records and not even add/delete records, can I assume that if I print the records again, I shall get them in the same order?
Regards,
Chintan

But LinkedHashMap will change the order when we
access it. It will store the last accessed recordson
top. So, again the order is changed :-(That's false.Yes, it's false. "This linked list defines the iteration ordering, which is normally the order in which keys were inserted into the map (insertion-order). Note that insertion order is not affected if a key is re-inserted into the map....A special constructor is provided to create a linked hash map whose order of iteration is the order in which its entries were last accessed, from least-recently accessed to most-recently (access-order)."

Similar Messages

  • Sale Order change BAPI - Storage loc not updated

    Hi Everybody,
    Iam using "BAPI_SALESORDER_CHANGE", to change the sale order items.
    First iam calling above bapi with switch B, for new pricing & then second time for material change.
    When i change any material number, it is getting updated correctly.
    But the storage location, even though iam passing in the bapi it is not updated, & is blank - updation flag is also passed.
    When i execute sale order change again it is updated - ie, for any material change for first bapi call, storage loc is not updated - for 2nd bapi call storage loc is updation - for same input in both the cases.
    Is there any way to update the storage loc is first call of sales order change bapi.
    Below is the parameters iam passing in bapi :
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          SALESDOCUMENT      = LS_SALESDOCUMENT
          ORDER_HEADER_IN    = LT_HEADER_IN
          ORDER_HEADER_INX   = LT_HEADER_X
        TABLES
          RETURN                            = LT_RETURN
          ORDER_ITEM_IN               = LT_ITEMS
          ORDER_ITEM_INX             = LT_ITEM_X
          ORDER_CFGS_REF          = LT_CFGS_REF
          ORDER_CFGS_INST         =  LT_PARTS
          ORDER_CFGS_VALUE     = LT_VALUES
          ORDER_CFGS_BLOB        = LT_CUBLOB
          ORDER_CFGS_VK            = LT_CUVK
          ORDER_CFGS_REFINST   = LT_CUREF
          SCHEDULE_LINES            = LT_SCHEDULE_L
          SCHEDULE_LINESX         = LT_SCHEDULE_X
          ORDER_TEXT                   = LT_TEXT
          CONDITIONS_IN                = LT_CONDITION_L
          CONDITIONS_INX              = LT_CONDITION_X.
    Any help is appreciated.
    Regards,
    Nagarajan.J

    Hi,
    Storage location is updated only when same sale order bapi is called another time with required details.
    rgs,
    Nagarajan J

  • Letter of Guarantee Value not Updating with Payments

    Dear Expert
    The requirement from the user is that when a payment is made , the system should deduct the amount paid and refresh the new available value for the customer.
    For Example : A Financial document is created with 1000 value . And Sales order created for 8000 . Therefore now the open value is 2000. This means that the customer can order goods worth 2000 only.
    In the meanwhile the first order is delivered and billed . And the customer has paid 8000 when he received the bill. this means that now he has paid so he can now order more goods worth 8000.
    but in the system it still shows open value as 2000 , although now that the customer has paid, it should be updated with the payments made so the value can be used by the customer that he had paid.
    If any of you has any idea how to tackle this ( it works same way in credit management ) but not in financial documents.
    we were thinking of another work around , i.e by closing the Financial document that has been paid and creating a new one by adding the remaining balance. i.e 2000+ 8000 , this way the customer can again use his value. but then how can we automate the system to alert the sales user that the payment has been made for a certain invoice for a certain LG.
    your idea's and suggestion are highly welcome
    Best regards,

    Dear ATGSD,
    The functionality in GTS is designed for modelling of a single financial document for which the initial value is not updated.
    I understand your user's requirement, but surely that is dealt with simply by setting a credit limit in the SAP ERP system?  There should be no need to use the GTS functionality at all.  In the ERP system, the credit limit is updated by the account payments, exactly as your user requires.
    Please let us know if that would work, or if there are more detailed requirements that are not apparent from your post - thanks.
    Regards,
    Dave

  • Purchase order Notification Summry Notification history not updating

    I created one PO, and sent it for approval, in approval hierarchy, someone person X chose to use request information and sent it to some person Y, now person Y responded and person X gets notification for same, but when person X opens that notification, the history is not updated, i.e. it doesnt have 2 lines saying that Requested information from person Y and then person Y responded to it. but after 20 mins or so, when person opens same notification again then it has all the information, why this lag of 20-30 mins?

    To add to my earlier comment;
    The lag is because of 2 reasons.
    1) The workflow background processor is running every x minutes. So it takes time to process the po approval workflow.
    2) The notification mailer is running every y minutes. So after a notification is created, it takes y minutes to actually send an email out.
    You can avoid the delay caused by step1, you can set PO:Workflow Processing Mode to ONLINE. This will process the approval right away (instead of waiting for the workflow background process to run.)
    However, you will find that users don't like this option because they have to stare at the hour glass for a few seconds while the PO is being processed.
    Hope this helps
    Sandeep Gandhi
    Omkar Technologies Inc.
    Independent Techno-functional Consultant
    513-325-9026

  • Order stuck at post office (not updating for about a week now)

    I've placed an order last week ( Tales of Xillia ) and it was scheduled to be delivered last Wednesday.
    The parcel has been stuck at the status "Parcel being transferred to local post office" since the 16th.
    This has happened to me before once and basically, the CSR just resent the same product to me.
    I was wondering if someone here could do the same in this case as well.
    Thanks!

    Hello karekano126,
    Lost packages are the worst, aren’t they?  While it certainly doesn’t happen very often, it can definitely ruin someone’s day, and I'm sorry for the disappointment this caused.
    If an online order is reported to us as missing, we reach out to UPS on your behalf to start an investigation to determine where your package may be. This process may take a few days to conclude. I would hate for this to cause further frustration for you than it already has though, and I have sent you a private message so that we may discuss this further. To view it, please make sure you are logged into the forum and click on the envelope in the upper right-hand corner.
    Thank you for posting,
    Alex|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Open orders should not update in MD04

    Hi, SD gurus,
    I have the below requirement,
    My business scenario is
    when  total open sales order quantity crosses a particular number(Ex:1000 Pcs) in a month, after that whatever the sales order we create it should not update in MD04.
    Our Business process,
    1. Creating a sales order
    2. Allocation run (here system will execute Credit check, availability check, and listing an Exclusion etc. here we need to enter sales order no, plant, allocation type)
    3. Creating a delivery
    4. Invoicing the customer
    Note:
    Usually when we de check MRP type and allocation in Scheduline category system should not update in MD04, but if we de check this as for our business process system should  not execute Allocation run
    Thanks in Advance
    Yuvaraj.

    Respected Lakshmipathiji,
    Thanks for your clarification but i have query here..
    ""if the users are ready to do this manually once a line item exceeds 1000 pcs a month, well and good""
    How users will check material wise?(suppose if sales order contains more than 100 line items and each line item will have its own requirement updates--will they do this material wise?)
    Is there any report which give the Status on Requirements for group of materials(MD04 status) in Standard SAP??
    Phanikumar

  • Price and Tax info is not update in the Order Repository

    Hi All,
    I just try to complete a check out flow with all details and submit the order .
    But It's not updating  few details like Price and Tax information in the Order repository.That's reason my order shows Incomplete status.
    Can any help me to complete this flow.?
    Regards,
    Raj Jaiswal

    Hi,
    Yes I am extending CreateCreditFormHandler and adding this code getPaymentGroupManager().addPaymentGroupToOrder(order, creditCardPaymentGroup); As you said previously.
    This is the code I have written In my template.
    User is filling credit card details from the UI.
    Please validate the following approach.
    <br>FirstName:<dsp:input bean="CreateCreditCardFormHandler.creditCard.billingAddress.firstName" beanvalue="Profile.billingAddress.firstName" size="30" type="text"/>
    <br>MiddleName:<dsp:input bean="CreateCreditCardFormHandler.creditCard.billingAddress.middleName" beanvalue="Profile.billingAddress.middleName" size="30" type="text"/>
    <br>LastName:<dsp:input bean="CreateCreditCardFormHandler.creditCard.billingAddress.lastName" beanvalue="Profile.billingAddress.lastName" size="30" type="text"/>
    <br>EmailAddress:<dsp:input bean="CreateCreditCardFormHandler.creditCard.billingAddress.email" beanvalue="Profile.email" size="30" type="text"/>
    <br>PhoneNumber:<dsp:input bean="CreateCreditCardFormHandler.creditCard.billingAddress.phoneNumber" beanvalue="Profile.billingAddress.phoneNumber" size="30" type="text"/>
    <br>Address:<dsp:input bean="CreateCreditCardFormHandler.creditCard.billingAddress.address1" beanvalue="Profile.billingAddress.address1" size="30" type="text"/>
    <br>Address (line 2):<dsp:input bean="CreateCreditCardFormHandler.creditCard.billingAddress.address2" beanvalue="Profile.billingAddress.address2" size="30" type="text"/>
                 <dsp:input bean="CreateCreditCardFormHandler.newCreditCardSuccessURL" type="hidden" value="co_confirm.jsp"/>
                <dsp:input bean="CreateCreditCardFormHandler.newCreditCardErrorURL" type="hidden" value="co_confirm.jsp"/>
                <dsp:input bean="CreateCreditCardFormHandler.newCreditCard" type="hidden" value="Enter Credit Card"/>
                  <dsp:input bean="AuctionPaymentGroup.order1" type="hidden" beanvalue="ShoppingCart.current.Id"/>
                <dsp:input bean="AuctionPaymentGroup.AddPaymentDetailsToOrder" type="submit" value=" Continue -->"/>
                <dsp:input bean="AuctionPaymentGroup.paymentGroupSuccessURL" type="hidden" value="co_confirm.jsp"/>
                <dsp:input bean="AuctionPaymentGroup.paymentGroupErrorURL" type="hidden" value="error.jsp"/>
    I have customized CreateCreditCardFormHandler and added below code.
    public boolean handleAddPaymentDetailsToOrder(DynamoHttpServletRequest pRequest,DynamoHttpServletResponse pResponse) throws ServletException,
                IOException {
             String pOrder=getOrder1();
            try{
                OrderManager orderManager=(OrderManager)pRequest.resolveName("/atg/commerce/order/OrderManager");
                Order order = orderManager.loadOrder(pOrder);
                System.out.println("orderManager----"+order.getId());
                PaymentGroupManager paymentGroupManager=(PaymentGroupManager)pRequest.resolveName("/atg/commerce/order/PaymentGroupManager");
                System.out.println("paymentGroupManager----"+paymentGroupManager.getAbsoluteName());
                //Create the PaymentGroup
                PaymentGroup paymentGroup = paymentGroupManager.createPaymentGroup();
                //Add the PaymentGroup to the Order
                paymentGroupManager.addPaymentGroupToOrder(order, paymentGroup);
            }catch(Exception ex)
                ex.printStackTrace();
            return true;
    In the next templates I just want to display  billing details which added by the user .
    regards,
    Raj jaiswal

  • In Sales Order form  Freight Charges  form is not updating Freight

    Hi,
    In SAP BusinessOne(8.82) sales order form -> freight charges form  not updating(filling)  the  freight  in amount field.
    It is working on 2007 version .  can  any one  tell which tables to use to update the  Feight .
    Thanks,
    Y.

    Hi Yugandar.....
    Update Freight means what?
    Are you not able to put the freight charges manually?
    Or you are trying to fill it programatically?
    Regards,
    Rahul

  • 'BAPI_ALM_ORDER_MAINTAIN' Not Updating Fields

    Hi,
    We are using BAPI_ALM_ORDER_MAINTAIN to update Special Stock indicator
    (RESB-SOBKZ) at component level for a service order (IW32).
    BAPI is not updating the value which we are passing for this field but
    intrestingly BAPI is updating rest of the fields at component level,
    like Component Quntity, Componen Plant etc. Only Special Stock
    Indicator field is an exception.
    We are passing value in "BAPI_ALM_ORDER_COMPONENT-SPECIAL_STOCK" field
    and updating BAPI Update table with X for this field.
    Can somebody provide help on this.
    Steps for the Reconstruction 
    Below is the source code which i am using to update Srvice order via
    this BAPI
    REPORT zbapi .
    DATA t_meth TYPE TABLE OF bapi_alm_order_method.
    **Internal table for Operation (BAPI)
    DATA t_oper TYPE TABLE OF bapi_alm_order_operation.
    DATA t_comp TYPE TABLE OF bapi_alm_order_component.
    **Internal Table for Opertaions UP (BAPI)
    DATA t_comp_up TYPE TABLE OF bapi_alm_order_component_up.
    **Internal table for BAPI Return code
    DATA t_ret TYPE TABLE OF bapiret2.
    ***WORK AREA DECLARATIONS
    **Work Area for Hedaer
    DATA:wa_header TYPE caufvdb,
    wa_meth TYPE bapi_alm_order_method,
    wa_op TYPE afvgb,
    wa_comp TYPE resbb,
    wa_comp1 TYPE bapi_alm_order_component,
    wa_comp_up TYPE bapi_alm_order_component_up,
    wa_oper TYPE bapi_alm_order_operation.
    PARAMETERS:TEST.
    ****Fill Method Internal table
    CLEAR wa_meth.
    wa_meth-method = 'SAVE'.
    APPEND wa_meth TO t_meth.
    wa_meth-refnumber = sy-tabix.
    wa_meth-objecttype = 'COMPONENT'.
    wa_meth-method = 'CHANGE'.
    wa_meth-objectkey(12) = '000004000104'.
    wa_meth-objectkey+12(4) = '0010'.
    wa_meth-objectkey+16(4) = '0010'.
    APPEND wa_meth TO t_meth.
    **Component Internal table
    wa_comp1-reserv_no = '0000001072'.
    wa_comp1-res_item = '0001'.
    wa_comp1-activity = '0010'.
    wa_comp1-item_number = '0010'.
    wa_comp1-special_stock = 'B'.
    wa_comp1-requirement_quantity = '15'.
    wa_comp1-stge_loc = '0001'.
    wa_comp1-backflush = 'X'.
    APPEND wa_comp1 TO t_comp.
    **Component Update Internal table
    wa_comp_up-special_stock = 'X'.
    wa_comp_up-backflush = 'X'.
    wa_comp_up-requirement_quantity = 'X'.
    wa_comp_up-stge_loc = 'X'.
    APPEND wa_comp_up TO t_comp_up.
    **Call Bapi
    BREAK-POINT.
    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
    TABLES
    it_methods = t_meth
    it_component = t_comp
    it_component_up = t_comp_up
    return = t_ret.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

    Hi Ferry,
    1. I have also tried ur given code before BAPI_TRANSACTION_COMMIT.
        l_fname = 'SOBKZ'.
        l_fvalue = 'U'.
        CALL FUNCTION 'CO_BH_MOD_SINGLE_FIELDS'
          EXPORTING
            aufnr_imp = wa_meth-objectkey(12)
            field1    = l_fname
            value1    = l_fvalue.
    but this program is giving dump for only this particular Value saying that This is PROTECTED field.
    Can anyone help me out on How to Update Special Stock Indicator on Components Tab of Maintenance Order (IW32).
    If anyone has faced such type of problem & solved it then please let me also.
    2. Which BADI to use for Updating Special Stock Indicator when we press enter on Components tab in Transaction IW32 ?..
    Thanks in advance,
    Hope to get the solution soon from all SAP gurus.
    and help will be appriciated .
    Gaurav.

  • Release Value not Updated to Value Contract

    Hi,
    I'm trying to set up a value contract and subsequent sales order (release or call off orders).
    My document flow and copying control have been set up such that after I have created a value contract, I can create a sales order with reference to the contract. The contract data and items get copied over to the sales order. But after I have saved the sales order, the release value is not updated. Also the reference status in the contract item is 'Not reference'.
    Did I miss out any important configuration?
    Help would be greatly appreciated.
    Thanks,
    HweeLing Tay

    Hi,
    Yes the update document flow indicator has already been checked 'X'.
    The contract item category completion rule has already been set as 'E'. I have tried with C or D but still doesnt work.
    Any suggestion?
    Thanks,
    HweeLing Tay

  • QRFC not updating after TO processed in LX47

    We have delayed update configured in the system. During transfer order confirmation, the TO does not update due to user locking and we use LX47 to process the delayed updates for TOs. But the subsequent TO_LATE entry for that TO in SMQ1 qRFC monitor still shows as failed. This does not happen all the time but for some TOs only.
    Any suggestions on why this is happening and how to have the qRFC monitor also updated once the TO is processed in LX47?

    A few things I would suggest you do to determine where the problem lies.
    1) Create an Essbase pull sheet in Excel that mimics the form and verify you see the data in Essbase -- you should see it just after your form is saved.
    2) Compare the dimensions on your report with those on the Form. I would guess your report has an upper level member that is not dynamically calculated -- if this is true then if you really want the report to show the exact data as the form then update the report appropriately.
    Good Luck,
    -John

  • Skype credit not updated.

    Skype Id (removed) parchased credit online recieved confirmation from my bank as well as skype but the amt not updated in my skype ID. Appreciate your early response.

    I'm not sure if I have posted this in the correct section and I'm not sure if anybody is concerned with my issue. I've been looking for a customer service number such that I can talk to someone, but there's none available. My credit card has been charged, the email says order delivered, but balance is not updated. Anybody please point me to the right direction? Need to resolve this ASAP.

  • Work order should not update the fields in PR

    Hi  Gurus
    My requirements is that workorder should not updates the purchasing data fields in PR  do not go to the shoping cart. How can make it possible.
    Thanks in Advance

    Hi,
          I am not sure of your requirement clearly but check up the below user exits :-
    COZF0001 Change purchase req. for externally processed operation
    COZF0002 Change purchase req. for externally procured component
    or BADI :- IWO1_PREQ_BADI BAdI for Manipulation of P.Reqs from Orders + Networks ,SE18
    regrds
    pushpa

  • Payment documents / Payment orders were not updated in RFFOEDI1 Program

    Hi,
    With F110 transaction i'm  printing Payment summary and Remittance form by using YDFI_RFFOEDI1 ( Copy of RFFOEDI1)
    Program variant.
    Spool is generating Payment summary and Remittance form along with Error log as below.
    Program YDFI_RFFOEDI1: No records selected
    The following payment documents/payment orders were not updated
    (Result of the payment document update)
        CoCd Payment document/Payment order
        1019 F110000001
    The accompanying payment media have not been generated
    YDFI_RFFOEDI1 Program variant is having Generate SAP Idoc check box as unchecked under Print control tab.
    Thanks
    Bhuvana

    Please help me on this issue

  • GR Cost not updating as Target Cost for process orders

    Dear SAPians,
    We are facing an issue in Target Vs Actual cost reporting for process orders. We are creating a process order after cost estimate of that material and doing the confirmations for activity cost. After that, GR has been done for the finished goods of that process order. That GR entry is updating the Actuals values but not updating the Target cost. When I am checking the standard report KKBC_ORD, I am getting the following figures.
    Cost Elemnt Text     |     Target Cost     |     Actual Cost     |     Target Vs Act
    Inventory Chnge FG     |     0     |     1,472,205.60-     |     1,472,205.60-
    Packing Matrl Cons.     |     1,148,142.37     |     1,252,752.68     |     104,610.31
    Raw Material Cons.     |     60,463.91     |     50,688.29     |     224.38
    Semi-Fin Matrl Cns.     |     181,934.68     |     367,959.56     |     186,024.88
    Labour Cost Activity     |     39,735.36     |     39,862.80     |     127.44
    Machine Cst Activty     |     41,611.75     |     43,153.01     |     1,541.26
    That 'Inventory Change FG' entry is showing the GR posting updating actuals and not target cost. This is causing huge difference in target vs actual cost that will affect the profit and loss figures ultimately.
    What am I missing here? What should I do to update the GR amount in Target cost as well.
    Shirazi

    Dear,
    Target Cost on Production Order or Process Order is shown only when Variance is Calculated.
    So please calculate the Variance, system will show the Total Target Cost.
    Br,Vivek

Maybe you are looking for