How to changing char. values and create new lines in C_TH_DATA

Hi experts,
we need to distribute the cost of some sender costcenters to the corresponding receiver costcenters.
We have already created a DSO and maintained this with the sender and receiver costcenter. We use this lookup table later in the execute method of our created planning function type to take the sender costcenter and distribute this to the corresponding receiver costcenters.
I've already implemented an IP planning function based on planning function type for this process.
At the end when I debug the method I see that this works fine. I give you an example:
I have in my lookup table the following record:
sender costcenter           receiver costcenter            distribution percent
4711                                    4712                                    75
4711                                    4713                                    25
Based on those records in the lookup table I've to distribute the cost of sender costcenter to the receiver costcenters.
Just imagine I would get this record from c_th_data:
sender costcenter    costelement     value
       4711                 3000111         100
I have to have the following result after running the exit planning function:
   costcenter    costelement     value
       4711                 3000111         100                   -> without changing
       4711                 8000111        -100
       4712                 8000111           75
       4713                 8000111           25
When I debug the exit function I see in the execute method that c_th_data will be filled correctly. I see exactly the records that I want to see.
But once the function is finished I don't see this result. I also checked the conversation
Changing Char Value in IP C_TH_DATA
but I can't understand what happens after my coding yet.
Can anyone help me or give me an advice what could be the problem here?
Thank you all in advance for your support.
Kind regards,
Ali

Hi Ali,
The planning function generates the records in delta mode. I am explaining the concept taking your example only:
Records in cube before running PF:
sender costcenter           receiver costcenter            distribution percent
4711                                    4712                                    75
4711                                    4713                                    25
sender costcenter    costelement     value
       4711                 3000111         100
       4712                 3000111         100
       4713                 3000111         100
The records that you need to generate from code(Previous ones need to be changed):
sender costcenter    costelement     value
       4711                 3000111         000
       4712                 3000111         175
       4713                 3000111         125
**Please note that you dont need to generate any corrections(delta records), you only need to generate the final values in the records and the PF will generate the delta's on its own. Also in this case you should see 3 Records Read, 0 Deleted, 3 Changed.
Please let me know if you need any more clarification,
Thanks,
Puneet

Similar Messages

  • Id email address cancelled. how do I log in and create new password?

    id email address cancelled. how do I log in and create new password?

    This link tells you how to change your Adobe ID and password:
    http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    And if it doesn't, there's a "Still Need Help?" link which leads you to web chat where you can talk with a person.

  • Reconfigure sales BOM deletes line item and creates new line item

    We are having issue with Sales BOM. Once sales BOM is reconfigure, line item is automatically deleted and creates new line item. These changes are not captured by reporting tool. Is it standard SAP behavior? if its not standard behavior, how to fix this issue?

    Hi,
    If i am not wrong, i assume you are using site instead of plant.   If it is plant , then "yes", we can have a order with same material being line item 10 and 20 with different plants.  Reg delivery, if the plants are configured to a same shipping point then you will have one delievery.  if the plants are configured for a different shipping point , then delivery will be split up.
    Reward if it helps,
    Thanks & regards,
    CLN

  • How to select multiple images and creat new versions???

    How do i select 800 images and make new versions of all of them at the same time? I have tried, but it only does the primary one selected and i don't have primary only selected.

    Option V works for me (duplicate version), as does option G (new version from master).

  • How to change UDF value in created A/R Invoice or A/P Good Receipt PO?

    I have created my UDFs  in Marketing Document Rows.
    After I've added some documents such as A/R Invoice or Good Receipt PO , I want to change my UDFs value for sometime. But  B1 don't let me do that. I know and understand the reason why we can't change this rows data. But I want to change my UDFs  only , so it don't effect any other things.
          How can I do this? or Can SDK help me?
    thx

    You can change with such statement :
    ObjInv.Lines.UserFields.Fields.Item("U_FieldName").Value = "123"
    Edited by: Riny Liu on Mar 17, 2008 5:39 PM

  • How to change parameters values

    dear gurus,
    can someone guide how to change below values and apply and what steps should taken and changes do in files
    *     Shared_pool_size = 450M
    *     Db_cache_size = 750M
    *     Pga_aggregate_target = 125M
    *     Sort_area_size = 1M
    *     Open_cursors = 4000
    *     Processes = 300
    regards

    Hi If you have set SGA_TARGET and PGA_TARGET , then you dont have to wory for the individual components.Oracle internally handle it .
    You can get the information for each components using below sql
    sql> select * from V$SGA_DYNAMIC_COMPONENTS;
    If you want to find the optimize size of few of above components , take AWR report(by running script @?/rdbms/admin/awrrpt.sql). At below of report you will see SGA Memory Summary,Shared Pool Advisory,SGA Target Advisory,Java Pool Advisory,PGA Memory Advisory . So accordingly you can reset above mention parameters. This will put lower limit for these parameters
    Edited by: amitbansode on Sep 9, 2009 5:07 AM
    Edited by: amitbansode on Sep 9, 2009 5:08 AM

  • I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    Ntenich,
    If your table has a Header and your Legend text is in the header, it will be picked up by the table.
    Jerry

  • I have a new email address. Changed this on my itunes account. On iPhone deleted old icloud account and created new with new email. I have set find my phone to on. When I download music it no longer goes to icloud an does not show up on my iphone.

    I have a new email address. Changed this on my itunes account. On iPhone deleted old icloud account and created new with new email. I have set find my phone to on. When I download music from itunes it no longer goes to icloud an does not show up on my iphone.

    I have the same problem - it is maddening. I rely on this iPad for work so this is not just an annoyance! The above solutions of changing the appleid on the device or on the website do not work.
    The old email address no longer exists - I haven't used it in a year probably and I no longer have the account.  I logged into the appleid website and there is no trace of the old email address so there is nothing that can be deleted or changed there.  On the iPad there is no trace of the old email address so nothing can be deleted there either. I have updated the iPad software and the same problem comes right back.  Every 2 seconds I am asked to log in using the old non-existent email.  The device is currently useless.
    The only recent change to anything was the addition of an Apple TV device, which was set up using the correct login and password.
    Does anyone have any ideas? The iPad has been backed up to the iCloud so presumably it now won't recognize the current iCloud account? So restoring may notbe an option?

  • How can I make the popup with empty fileds and create new record?

    I would like to use a popup to create new record.
    I created a af:popup by drag and drop a VO from data control to jsff. then, I created a button and place a af:showPopupBehavior. I was able to popup window by click the button.
    however, the window filled with the information from the 1st record. and when I select a record in table and click popup, the popup is filled with that record.
    How can I make the popup with empty fileds and create new record by saving the popup?
    Thanks

    You can have edit and new buttons, in the PopupFetchEvent identify button source (using popupFetchEvent.getLaunchSourceClientId()) if new button clicked clear the binding using below code.
    If you want to see empty fields, in the popup PopupFetchEvent clear the input component bindings.
    resetBindingValue("#{bindings.<componentid>.inputValue}", null);
        public static void resetBindingValue(String expression, Object newValue) {
            FacesContext ctx = FacesContext.getCurrentInstance();
            Application app = ctx.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = ctx.getELContext();
            ValueExpression valueExp = elFactory.createValueExpression(elContext,expression,Object.class);
            Class bindClass = valueExp.getType(elContext);
            valueExp.setValue(elContext,newValue);
        }

  • How to change SelectionColor in TLFTextFielfd created with new TLFTextField(); syntax?

    How to change SelectionColor in TLFTextFielfd created with var txtTest:TLFTextFielfd = new TLFTextFielfd(); syntax ?

    You have posted in the AS1/2 forum.  If you are using a TLFTextField, it can only be used with AS3.  You might need to repost in the AS3 forum if you truly intend to use the TLFTextField.  As far as I can see there is no SelectionColor (or selectionColor) property for the TLFTextField.
    Also, in every instance of the word you have mis-spelled it...
    "TLFTextFielfd" should be "TLFTextField"

  • Forgot security questions, how do i delete old ones and create new ones

    forgot security questions on, how do i delete old ones and create new ones

    The following has instructions: If you forgot the answers to your Apple ID security questions

  • How to change the url of "Add New Item" of a particular list in SharePoint 2013???

    Hi Guys,
    How to change the url of "Add New Item" of a particular list in SharePoint 2013???
    I need to redirect it into the page where I have created my Visual web part.
    Please suggest
    Warm Regards,
    Tony Joy

    Hi,
         There are multiple ways to change the form url like javascript, SharePoint designer, custom code, editing default form to have custom web part etc, Please follow the url below that describe diffent methods and steps
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ec2769a0-683c-4023-8804-b596e4f92a3a/change-default-forms-on-custom-list?forum=sharepointcustomizationlegacy
    Hope it helps!!!
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. Thanks, Ajeet

  • How to change the input and output schema in BPEL process

    hi',
    Please tell me how to change the input and output schema in BPEL process after the process is made.
    thanks
    Yatan

    If your intention is just changing the content you are passing to bpel/returning from bpel
    Here is another way
    just update your default created xsd files with new elements, update wsdl elements in message definition and chnage bpel code to reflect new elements in activities
    Regards,
    Praveen

  • Variant Config - Changing char value on Prod Order component

    Experts,
    We have a situation where we need to manually add Material Variants as components on a given Production Order's component list. This is in cases where stock for the material variant is available & can be used.
    We use ECC 6.0 with certain features of DIMP (SDUD) turned on for Mill Products (along with Variant Config). After adding the Material Variant on the Production Order, we want to edit/change/add characteristic values to the Class 300 characteristics. I've tested this & while it is possible for a configurable material, system does not allow to change char values on the material variant.
    Does anyone know of a way to enhance the system in order to achieve this?
    Thanks

    Just a thought.
    let's assume the characteristic you want is called CHAR.
    Then create a dummy characteristic called DUMMY. Create values 'ASSIGNED' and 'BLANK' for DUMMY.
    Create a dependency for the values of DUMMY
    for 'ASSIGNED':
    CHAR SPECIFIED
    for 'BLANK':
    NOT SPECIFIED CHAR
    Then go back in each value of characteristic CHAR and create another dependency as follows:
    DUMMY eq 'ASSIGNED'
    that way the system should only display those values of CHAR for which DUMMY has a value...
    It's a bit of a circular thought I know... Not implemented anything like it myself but it just might work

  • Need cancel account and create new one

    Two kids, two laptops one shared account, how do i cancel both and create two new ones,
    (any changes i make to one replicates on the other)

    sorted, thanks anyway

Maybe you are looking for

  • Syntax in script logic

    Hi Friends, I have input schedule in below format. Product   Rate/2011.INP  Packing/2011.INP QTY/2011.APR AMOUNT/2011.APR QTY/2011.MAY AMOUNT/2011.MAY PM         3                 3              3               27            4         36 PN        5 

  • Opinion of site...

    Heya, Can you all give your opinion on this site... http://www.hookmedia.biz/cabinet_source Be brutal, but constructive, thanks folks. Spence

  • Prevent scaling of leaf nodes

    I am trying to implement a simple map solution in JavaFX 2.0. I have map object in a given resolution and some "car" objects (for example Rectangle) that I would like to overlay the map. My intention is to create a Group node containing the map objec

  • Integrating EJBs

    Hai, I am trying to integrate all the ejbs into single ear. its fine upto 8 ejb projects, but while trying to add another project ,its giving the error: The error details are: Caught exception during application deployment from SAP J2EE Engine's depl

  • Power Surge on the USB Port.

    Well, for the first time ever in my 2 years of having this IPOD plug for my 5th Gen...I wanted to upload some pics on my ipod, but i plugged the port into the computer and the other part into my ipod, and it said my port had a power surge of some sor