Committing specific items

Hey all !
In my model i have a Post entity and a Tag entity; and posts have tags. Simple !
In my form, when the user creates a tag that is not existing in the DB, I do:
- tagService.serviceControl.createItem(t:Tag)
- keep the returned ItemReference in memory;
- add the tag object to the tags list of my post.
Then when i want to save the post, I want to use my saved ItemReference to be sure of what will be committed. But when i do that i get the exception that says items are not managed by the dataStore:
Commit called with an item at array location: 0 which is not a managed item in this dataStore
I am a bit confused, because the help explicitly says that we can call commit with ItemReferences coming from serviceControl.getItem() or serviceControl.createItem().
// Create a tag
    var tag:Tag = new Tag();
    tag.name = name
    var it:ItemReference = tagService.createTag(tag);
    pendingNewTags[name] = it;
    post.tags.addItem(tag);
// Update post
    var a:Array = [];
    for each (var k:ItemReference in pendingNewTags)
        a.push(k);
    tagService.serviceControl.commit(a);
What should i pass instead of my ItemReferences ??
Thanks !

You can achieve this with AUTONOMOUS_TRANSACTION.
You create a seperate procedure for your Logging. Define it as AUTONOMOUS_TRANSACTION. And do a COMMIT inside that procedure.
Now you call the procedure in your main code and do your logging. So now the COMMIT inside the procedure for Logging is carried as a seperate transaction. So the calling transaction will not affect the Logging procedure.

Similar Messages

  • Change item value when a specific item has changed... how can i do that?

    Hi guys, i need to ask something...
    Is it possible to have a process or a computation, that gives value to an item, only when one specific item has changed.
    I have other items on my page too, but this two are related, and i need to give a specific value to the first one, only when the value of the second has changed...
    Help please
    tsveti:)

    Hey Farhan, i guess i need some help on that easy javascript...
    i havent done much thing with it so i have almost none experience with js....
    So in 'HTML Form Element Attributes' for the second item I m trying this :
    onchange="javascript:{document.getElementById('P1_SUBPROJECT').value = '-1';}"
    but when i change the value of this second item, the first one (P1_SUBPROJECT) dont get -1
    what am i doing wrong?

  • Can you select a specific item from a listbox via scripting?

    This seems like it should be easy, but I've spent quite a few hours trying to figure this out, to no avail.  I'm trying to create a button that would automatically select a specific item on a listbox.  I though "selectedIndex" would do the trick, but this seems to only work if the user actually selects a specific item on a listbox.  I'm looking for the opposite effect, where a person will push a button where a specific item on the listbox gets selected.
    Any help would be much appreciated...thanks!

    You can use the setItemState method for this purpose.
    To select the third item use:
    ListBox.setItemState(2, 1);

  • Unable to trace out the Reference Document number in commitment line item.

    Dear All,
          Kindly help me in bellow problem
    When I click the reference document no. in the line item wise display the commitment in t-code S_ALR_87013558 at that time the system open the display PR screen and the massage is displayed in the below, the Purchase document does not exist.
    Due to this reason the price capture in commitment line item is not traceable and I am not able to delete the commitment line item.
    Kindly suggest how to trace out the reference document number and delete it and release the commitment price.
    Thanks,
    Asu.

    >
    Asutosh Mahapatra wrote:
    > Dear All,
    >
    >       Kindly help me in bellow problem
    >
    >
    > When I click the reference document no. in the line item wise display the commitment in t-code S_ALR_87013558 at that time the system open the display PR screen and the massage is displayed in the below, the Purchase document does not exist.
    >
    > Due to this reason the price capture in commitment line item is not traceable and I am not able to delete the commitment line item.
    >
    > Kindly suggest how to trace out the reference document number and delete it and release the commitment price.
    >
    > Thanks,
    > Asu.
    Can you explain what is your requirement..?
    Do you want to correct the data in the report..?
    Or  it is effecting your availability control and you want to correct it..?
    Or you want to trace a deleted document..? Which is not possible...

  • Commitment line items

    Hi gurus,
    I am facing the problem please help
    When viewing When viewing commitment line items and actual/plan/commitment reports in CO, there appears to be a difference between the two.
    I have executed transaction KSB2 with the following parameters:
    Cost centre group – CSAW-01001
    Expected debit date – 01.04.1998 to 25.05.2007
    Open items only selected
    Layout - /RCSYSADM
    Maximum no of hits – 100,000
    If this report is sorted by value there are some rather large credits e.g. purchase order 4500121042 is showing a credit of 3.4m.
    Firstly I don’t understand why there is such a large credit commitment for this purchase order and why when I execute S_ALR_87013620 for cost centre THETST90 in this financial year does the commitment not show up?
    Does this imply that the commitments have not been rolled over correctly every year?
    Thanks

    Hi,
    Check reports S_ALR_87013018 (List Total Plan /Actual / Commitment) and S_ALR_87013019 (List Budget/ Actual / Commitments).
    KOB2 report lists Commitment line items and KOB1 gives actual line items for Internal Orders.
    Thanks
    Murali.

  • Problem in Commitment line items & Budget check

    Hi Experts,
    I am facing a problem in my system for Commitment line items & budget check.
    I followed the below steps:
    1. Created Project & structured the same.
    2. Allocated the Budjet for WBS Elements.
    3. Released the project.
    4. The PRs are created for material and external services.
    5. When I check in the report S_ALR_87013558 the commitments are not showing in the report.
    6. After I performed the PO & GR (the PO value is more than the budget), still it is not producing any error message.
    7. I have even consumed the material, for which the cost is more than the budget, still there is no error message from the system.
    8 . I tried to perform transfer posting of the material from other plant or initial posting of the goods using 561 Q, at that time the system is producing the error message.
    9. When I check the above report after GR & GI the actual line items are showing.
    The problem is that why system is not creating the commitment line items.
    In customization I have maintained as below:
    1. Budget profile
    2. Assigned the Budget profile to Project profile.
    3. Maintained the tolerance limits for the controlling area and budget profile combination.
    4. I have created the B/S G/L accounts as cost elements with category 90 (statistical).
    5. AVAC for the WBS elements is active for the WBS elements
    My doubt is:
    Why system is not writing commitment line items?
    Even after writing the Actual line items why the error message is not produced?
    I am understanding that since the GR from PO is being done, probably this GR is not producing the error message as it is linked with the PO commitment. But at the time of GI the error message should be produced.
    Can any one help me for solving this issue?
    I tried searching the forum before posing, but couldnot get a relevant one.
    Regards,
    Praveen

    Dear Nitin,
    Yes I have checked it and the commitment management is active.
    I also checked the table RPSCO table as well, there is no entried with the value key 21 or 22, the entires are available with 41  only for my project.
    Also, I was maitaining the WBS element in a maintenance order. When I am trying to enter the materials in componenet tab, if the value is exceeding the budget value it is producing the error message.
    Praveen

  • No commitment line item in Purchase requestion after deletion .

    Hi SAP FICO experts
    Please provide solution for the issue .
    User created a line item 20 in the  purchase requestion with account assignment u2018Fu2019 (orders ) and  deleted this Item 20, usually when deleted ,the line item will be there with deleted symbol, but the line item was not there in the PR
    But commitment values for item 20 are shown in PR menu (Environment -> AC Commitment documents ) and in T.code KOB2 (Commitment  line items for orders )and in report S_ALR_87013019 (budget/actual commitments)
    So user was not able to process new PR with reference to their own budget.so i want to make the commitment value to zero .
    one more thing our client has upgraded to ECC6.0 ,will it be the problem for this .

    In most of the cases Problem with Commitments are expected for no valid reason. I suggest you to run Program RKANBU01 to fix incorrect commitment. If this is not solved check If you have program ZKAOIDE0 in your system. You can run this program to solve the issue.
    You can check Note [152571|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=152571]

  • CJI5 commitment line item report not showing po gross value

    Dear All,
    system is showing only net value in CJI5 report, actaully gross value of po must be reflected in CJI5 report and this happening in all po's like material, service's etc. example is as follows.
    Example:
    po net value: 1000
    st 10%: 100
    po gross value : 1100 (inclusive of all taxes, ed, disc. etc)
    what could be the reason for not showing po gross value in commitment line item report.
    Thanks & Regards,
    Sandeep

    Hi,
    As far as i know the commitment report will never show you the value that is inclusive of taxes. It will only show the net value of the PO.
    I just tried a scenario in my system by creating a PO for a net value of 3000 GBP and based on the tax code i entered system calculated a tax of 525 GBP. However when i check CJI5 report it shows only 3000 GBP as commitment and not 3525 GBP. This is how the standard system behaves, i believe. You can cross check this in the table COOI. The COOI table also shows the net value of the PO and does not include the tax amount in commitment.
    Regards,
    Gokul

  • Commitment Line Item report - BE and Settlement Unit issue

    Dear experts,
    Request your kind help.
    This is with respect to viewing the commitment line item report in ECC 6 for RE-FX master data objects. There are two scenarios.
    Scenario 1
    Purchase requisition (PR) is created with a business entity (BE) as an Account Assignment object. After the PR is released the same is used to create a Purchase Order (PO). After the PO has been successfully created, I am running the Commitment Line Item report (REISCOLIBD) giving the BE number as a search parameter. The report shows perfectly the PO and the amount of commitment.
    Scenario 2
    Purchase requisition (PR) is created with a BE as a Account Assignment object. Further to that under the Settlement section, inside the RE Obj box I am also specifying the Service Charge Key, the Settlement Unit and the Ref Date. After the PR is released the same is used to create a Purchase Order (PO). After the PO has been successfully created, I am running the Commitment Line Item report (REISCOLIBD), again by mentioning only the BE number as the input parameter. This time the report does not show the PO at all under commitment line items and instead gives the message "no line items were selected". But here is the catch. When I am running the transaction KSB2 and I am clickng on 'further selection criteria' and then 'Ref Doc num' and then typing the PO number and then running the report, it shows the result perfectly.
    Can someone please tell me why in the second scenario, the transaction REISCOLIBD is failing to capture the data related to commitment line items?
    Please refer to Note 1271310 to see how to adapt the transaction REISCOLIBD to suit the needs for Commitment Line Item report.
    Regards,
    Suvarghya Dutta

    Hello all,
    I have been able to find the answer. As of now Commitment Line Item report for any master data for service charge settlement does not exist and and as such wont be available.
    Kind regards,
    Suvarghya Dutta

  • Focus on a specific item on JSF page

    How we can focus on a specific item on JSF page in Jdev 11g.
    In our use case user chose something from a radio button Then he want to focus on specific item on page.
    Thanks.

    I don't think so. One other thing is to insert javascript to the page from the code (backing bean):
                    FacesContext facesContext = FacesContext.getCurrentInstance();
                    ExtendedRenderKitService service = (ExtendedRenderKitService)
                    Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
                    service.addScript(facesContext, "alert(\"Hello!\");");Pedja

  • Get the index of a specific item in a Datagrid

    Is their an easy way to get the index of specific item in a datagrid.  So say my DG holds ten items of type foo.  I need to find the index of foo #8. Remember the foo's may not be in orde 1-8 because of sorting or something. 
    Do I just need to run iterate through the rows and find, which matches the object I am looking for?

    Thats it thanks. DG is getting refreshed so old objects don't match up to new objects so have to do it manually.
    Thx.

  • How do I removing a specific item from an Array?

    Hi there.
    I am having an array of movieclips and when my circle(controlled with the keyboard) hitTests true with one of the movieclips inside that array i want to remove that movieclip from the array so when i hitTest it again it returns false (I hitTest using a "for in" with that array).
    How do i remove a specific item from within an array?
    Can someone help me? Thanks a lot.

    i haven't noticed anyone showing deference because of the points.  in fact, i've seen some people (a minority, to be sure) be just obnoxious about it.  i never encountered that before:  some people feel they have power because they can dole out points.
    but overall i agree with you:  the loss of the list of threads i am participating in, along with the most recent posters name, is a significant drawback of the new forums.  and there's nothing new in these forums that offsets that drawback.
    in addition, i think we've lost way more than 1/2 the older threads.  that's a lot of information that's no longer available.

  • New PO from specific item of old PO doc

    Hello ,
    I have one qeustion about PO.
    when I can not find PO on the left pane (PO overview )
    I have to find that...(it is ok ) but when i try to copy specific item(lines) of PO
    document.. to New PO
    I coundn't.
    Could you pls kindly let me know?

    Hi,
    Your requirement is possible to adopted for the particular PO line item copied to new purchase order using T-code ME21N document overview option are as follows.
    Step 1 -  Type ME21N - Create Purchase order
    Step 2  - Select PO document type, Vendor & PO date.
    Step 3  -  Click Document Overview button and open new window menu in PO screen left side
    Step 4 -  Click Selection Variant button in the left side window menu and then select Purchase Order option.
    Step 5 -  Now next screen open and give OLD Purchase Order document number in Purchasing Document ______ input field &
                  other input data filed is empty.
    Step 6 -  Now Execute the screen and shown old PO number with 5 times ( if old PO 5 line items are available) 
    Step 7 -  In the OLD PO first 3 line items to create new PO, Select 1st line using mouse and then adopt button click   
                  (Selection variant next button), 2nd line select & adopted and finally 3rd line select and then adopted.  After adopted 3
                   lines are come to new purchase order line item.
    Step 8  - Click Document overview button, the left side window menu closed.
    Step 9 -  Adopted 3 line item rate, qty and tax details to be provide and then SAVE as new Purchase Order.
    Hope, the steps are very useful to you.
    Regards,
    K.Rajendran

  • Commitment line items for cost centers - KSB2

    Hi all,
    -     PO#450118888
    -     Client is working in transaction code KSB2 (Commitment line items for cost centers)
    -     Client states that PO shows a different amount or that line item 2 does not show at all in KSB2.
    Please guide me what is the solution for this and where I need to check
    Thanks and Regards,
    Kumar

    Hi Beatriz Amezua ,
    For displaying plan line items for cost center - KSBP and for display of individual plan document : KABP
    RKP6 means "Planning Activity Dependent Costs"
    Like in FI module, the business transaction have been codified and the list you can find in KANK transaction , mention your controlling area, menu -- Groups --  Display Groups
    Srikanth Munnaluri

  • Cancell or revere PO commitment line items

    Hello Gurus,
    Here is my requirement,
    I want revoke or reverse or cancel  my PO commitment line items. which partially confirmed.
    like
    Qty
    Each
    Total value
    PO Commitment
    1
    100
    100
    PO Actual
    0.95
    100
    95
    Remaining Commitments
    0.05
    100
    5
    Now i want reverse remaining commitment line items. i tried tcode: CJBN and CJEN and program RKANBU01 but no use , please suggest me how reverse and i dont want reverse my PO , but i want reverse my remaining committed line items and that amount back and sit on budget .
    Thanks in advance

    Hi Hari,
    Have you done the GR for the mentioned PO? And if you don't need anymore of the remaining 0.5 quantity you can change the QTY in the Original PO to 0.95 and set the Delivery completed indicator Checked in the PO.
    It will reduce your PO commitment value. CJEN is used if there is discrepancy in the PS logical database, which in your scenario is not the case..
    Hope it helps..
    Cheers
    Sammar

Maybe you are looking for

  • Process Controlled workflow

    Hello experts, We are trying to use process controlled work flow for SC approval. Approval process will be multiple based on the amount of shopping cart. Somebody has already activated BC set for one step approval in the system. If i want to have  my

  • FI-AR Aging Report

    Hi Friends, I am working on FI-AR Aging report on 0FIAR_C03 Cube. My BI objects for calculations are: 0DEB_CRE_DC (KeyFigure) 0NETDUEDATE (Char) When user execute the query, he has to key-in few variables: Type-In date (default is today’s date) Aging

  • 2 fields with text on the same line

    Hi everyone, Could anyone let me know how I can get 2 fields with their text values in the same line. For eg: weight ______         unit of weight _____ i need both of the fields and text to be visible. Thanks/ Message was edited by:         Raj Kali

  • How to create the PIAPPLUSER ?

    Hi All, I could able to login into the SAP Netweaver XI (PI7) system with PIAPPLUSER Id, but when I give a display search for PIAPPLUSER with the transaction code SU01 in SAP Logon..I am getting "User PIAPPLUSER does not exist" error. Could you pleas

  • New Printer4630 Print Cartridge error

    During my first setup after purchase I am getting an error message on the Printer Screen which is keeping me from completing my online setup. error  message - Ink Cartridge Problem - The following ink cartridge(s) must be replaced. --end of error mes