Updating one Segment Value in GL Code Combinations

Dear Members,
We are using Oracle GL in our Organization from past couple of years.
Our COA consists of 6 Segments (i.e, Company--Organization--Area--Activity--Account--Product)
Now users are requesting us to change few account combinations for instance
11-00-00-00-123456-0000 to 11-00-00-00-123456-1000 ie. We have to update all the Posted and Unposted Journals having code combination of 11-00-00-00-123456-0000 to 11-00-00-00-123456-1000.
Please let me know whether this is a common practice? Are we allowed to do such updates without any adverse effects?
If we are allowed to update is there any API available?
Many thanks in advance.
Best Regards.

Hi
If you do this from the backend (i.e. update GL_JE_LINES and GL_BALANCES) it is completely unsupported (for obvious reasons).
If you want to do it via the frontend the General Ledger Mass Maintenance function will do it (Setup > Other > Mass Maintenance), i.e. it will move the balances from one combination to another. It does not create journals to do so though so it depends on the business requirement as to whether an audit trail is required for the change.
It's a pretty common practice - finance often want new cost centres, change their minds about cost centres and move balances around. I usually don't use Mass Maintenance as the auditors usually prefer journals but if a mistake was made in the cost centre setup or something then yes, Mass Maintenance works. Give it a shot in your test environment, show finance what results and check that they are happy with that.
Regards
Jo

Similar Messages

  • Updation of order value in T code FD33

    Hi,
    I am facing a problem of incorrect updation of order value in T code FD33 (Customer credit management-Display). When I analyzed the individual data, I could find that the value of particular Sales document type (ZCAL) is not getting updated in FD33-->Order value(Status View), whereas it is getting updated correctly in VKM4 transaction. Could anyone help me out in resolving this.
    Please let me know if i am not clear enough.
    Thanks in advance
    Suresh

    Hello Suresh,
    there are several customizing settings. The sales order item updates the FD33 only, if the item category (used in the order) is set as the credit relevant (transaction VOV7), the item is relavantfor the billing and the system is able to determine the credit price for the item (transaction V/08). The item should have have the confirmed quantities (on the schedule line level - vbep-bmeng) - so the whole sales order should be credit approved. You can also check the  note 18613. Thank you.
    Best regards,
    Lela

  • Updating Balancing Segment Values in Legal Entity

    Dear Members :
    I am trying to add one more balancing segment value to one already existing in Legal Entity. Neither am I able to add one or remove the one already existing. I am novice in Financial and really appreciate some explanation on
    [1] Importance of segment values on Legal Entity/Primary ledger & Secondary Ledger(Balancing Segment Value Assignments, in last two cases)
    [2] Way out for my problem.
    Thanks in advance.
    Atanu

    Thanks. I exactly intended to do that, but surprisingly not able to select, I mean find my other company code when I opt for adding segment value to Legal entity. Say now I have company code 10 attached and there's one more 05, which I want to add; I am not seeing that value when entering in Values LOV.
    Could you please provide some clues - about trouble shooting the issue. Also what repurcussion will it have if I can or can not attach my desired company code - if you please tell ?
    Thanks.
    Atanu

  • Need an API to Validate the Segment Values of an GL Code Combination

    Hi,
    I have a requuirement wherein i need to validate the semgent values of an GL Code Combination. I want to know is there any API to Validate the Segment Values. The API should be able to validate the segment values for existence in value set, enabled/disabled, Posting flag enabled or disabled (i.e Compiled Attributes Validation).Please provide me some pointers.
    Thanks & Regards,
    Siva

    look at FND_FLEX_EXT or FND_FLEX_KEYVAL
    FND_FLEX_KEYVAL.validate_segs

  • Code Combinations for Segment Hierarchies

    Dear Members,
    I have one question on Hierarchies in GL Accounting Flex fields. I read the documentation on Flexfield hierarchies, in which its said that generally hierarchies are used for only GL accounting flexfields.
    Suppose One of the Accounting Flexfield Segment Value hierarchy structure is like this :
    1000
    _________|_______
    100 200 300
    ____|____ ____|______
    101 102 301 302 303
    _______|______
    303A 303B 303C
    __|__
    303BB
    This hierarchy is not coming properly when i post it so i am explaining it in detail here :
    Parent Child
    1000 ---> 100 200 300
    100 ----> 101 102
    300 ---> 301 302 303
    303 ---> 301A 303B 303C
    303B --> 303BB
    Here 1000 is the parent which has childs and they inturn have childs. This is used maily for reporting purpose in GL. I do not understand how a code combination is generated for the above structure in gl_code_combination table.
    Suppose we have 5 segments in our accounting flexfield structure
    ex: seg1,seg2,seg3,seg4,seg5 and 1000 in the above mentioned structure is seg3.
    how does a combination is generated if we want the information pertaining to 303BB which is the leaf node value in the hierarchy.
    seg1.seg2.seg3.seg4.seg5 --> how does this change if we have hierarchies.
    It would be great if you can help me out in this.
    Thanks
    Sandeep
    Message was edited by:
    user340
    Message was edited by:
    user340
    Message was edited by:
    user340

    Hi :
    1000 is a parent ---> 100 200 300 are chid
    100 is a parent ----> 101 102 are chid
    300 is a parent ---> 301 302 303 are chid
    303 is a parent ---> 301A 303B 303C are chid
    303B is a parent --> 303BB
    Here 1000 is the parent which has childs and they inturn have childs. This is used maily for reporting purpose in GL. I do not understand how a code combination is generated for the above structure in gl_code_combination table.
    seg1,seg2,seg3,seg4,seg5 and 1000 in the above mentioned structure is seg3.
    a combination is generated for every single combination oif child values (child valued should be posting allowed = yes meanwhile parent values should be posting allowed = no) for every segment
    so at the end the combination is created whenever you use child value for every single segment
    if you have rollup groups associated to the parent values, you can define summary accounts and balances are going to be automatically updated for parent values so even you can query onbalances on parent values
    I hope this gives you some light

  • Gl code combination segments description

    Hi all
    i am feeling very difficulty to retrieve the gl code combination segments description. Can any one help on this by giving the query
    Advance Thanks

    See http://ashokkumartj.blogspot.com/2011/02/key-flex-field-structures-table-details.html for useful queries for KFF

  • File to Idoc - Generate one segment where sourcfields have identical values

    Hello Team,
                          This is a Flat File to Idoc scenario where one idoc is generated at the target.
    As i have mapped the Record(1..unbounded) with the E1MBXYI (1..9999), one record  in the file would create one E1MBXYI- segment in the Idoc. So if the source has four records then this would create an idoc with four E1MBXYI-segments. The requirement is, it has to generate only 1 segment for the input records(Order,Item and Date) if they have identical values.
    eg., 1234,66,01032009 (Order,Item,Date)
           1234,67,01032009
           1234,68,01032009
           1234,69,01032009  - this would generate four E1MBXY1 segments in the target each for item value 66,67,68 & 69 as it has no identical item values.
    eg., 1234,66,01032009
           1234,67,01032009
           1234,66,01032009
           1234,68,01032009  - this would generate three E1MBXY1 segments each for item value 66,67 & 68 in the target.The 2 identical item values for item 66 creates one segment.
    How could i achieve this in the mapping, Should i go for an UDF or could it be achieved using standard functions?
    Appreciate your replies....
    Thanks,
    Rag

    Hi Raghavendra,
    U can achieve this by simple graphical mapping.
    U can do ir using following functions,
    If
    equlas
    and
    context changes.
    eg.
                                                                                    order                           order
                         order
                         item                   equalsS                                                         then
                                                                                 and                       if
                         date
                         order                   equalsS                                                      else
                                                                                    order(context change)             order
    repeat the same for other fields also,
    item and date....
    If any doubt pl post the problem....
    I hope this will be helping u...

  • To Update the IDOC segment values through report program

    My requirement is to update the Idoc segment through the report program. Any SAP provided standard function module is available to update the Idoc segment values. Please help needed.

    DATA: LT_EDIDD TYPE STANDARD TABLE OF EDIDD."Local Table to Hold EDIDD
        LT_EDIDD = I_EDIDD. "table should have the data
    *-- Opening the IDoc for Edit
        CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_EDIT'
          EXPORTING
            DOCUMENT_NUMBER               = X_EDIDC-DOCNUM
          TABLES
            IDOC_DATA                     = IT_EDIDD
          EXCEPTIONS
            DOCUMENT_FOREIGN_LOCK         = 1
            DOCUMENT_NOT_EXIST            = 2
            DOCUMENT_NOT_OPEN             = 3
            STATUS_IS_UNABLE_FOR_CHANGING = 4
            OTHERS                        = 5.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    *-- Editing the IDoc
        CALL FUNCTION 'EDI_CHANGE_DATA_SEGMENTS'
          TABLES
            IDOC_CHANGED_DATA_RANGE = LT_EDIDD
          EXCEPTIONS
            IDOC_NOT_OPEN           = 1
            DATA_RECORD_NOT_EXIST   = 2
            OTHERS                  = 3.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    *-- Closing the IDoc after Edit
        CALL FUNCTION 'EDI_DOCUMENT_CLOSE_EDIT'
          EXPORTING
            DOCUMENT_NUMBER  = X_EDIDC-DOCNUM
            DO_COMMIT        = 'X'
            DO_UPDATE        = 'X'
            WRITE_ALL_STATUS = 'X'
          EXCEPTIONS
            IDOC_NOT_OPEN    = 1
            DB_ERROR         = 2
            OTHERS           = 3.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    thanks
    vijay

  • How to get Code Combination Range (Account Range From - Account Range To)

    Hi,
    I have a requirement that I need to get the range of code of combinations based on the parameter (Account Range From & Account Range To) in the query. Please could anyone help how to fetch this value based on the parameter.
    Account Range From (7 Segments)
    XXX
    AAAA
    BBBB
    CCC
    000
    YYY
    ZZZZ
    Account Range To (7 Segments)
    XXX
    AAAA
    BBBB
    CCC
    000
    YYY
    ZZZZ
    These is the example of value which I will be getting on the Accounting Range From and Accounting Range. Based on this account range, I need to pull records from the GL_CODE_COMBINATIONS table. Any help on this plz?
    Thanks,
    Geno

    I would not use the code_combination_id. That code_combinaition_id is incremented by one for each new account, so unless you happened to create all your accounts in the right sequential order (not likely), then you cannot do a range of FROM code id a TO code id b. Do an SQL against the code combinations table and sort on the segments columns and take a look at the code combination id on each row, and I think you will see that they jump around quite a bit. I think you can only rely on using the segment columns values for doing an account range.
    John Dickey

  • Error:APP-FND-00906: You can only query existing flexfield code combination

    Hi,
    when i am querying the particluar account combination under Budget Journals (Navigation: GL responsibility> Budgets > Enter > Journals) window the following message is displaying by the system
    APP-FND-00906: You can only query existing flexfield code combinations. You entered query criteria in your flexfield that does not identify an existing code combination. Therefore, your query will not return any rows.
    Enter a valid code combination, or enter only the flexfield segment values you know, or do not enter any values in the flexfield.
    Note: We are using the 11.5.10.2 version.
    Can any one why this error message is displaying by the system.
    Regards,
    Kevin.

    Kevin,
    Review the following documents, and see if it helps.
    Note: 365406.1 - GLXIQACC Account Inquiry Is Failing With APP-FND-00906 Can Only Query Existing Flexfield Code Combination
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=365406.1
    Note: 272773.1 - APP-FND-00906 - You Can Query Only Existing Flexfield Combinations on the Enter Budgets form
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=272773.1
    Note: 199674.1 - 11i - GLXIQBUD - Unable To Inquire Budget Account In The Budget Inquiry Form
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=199674.1
    Regards,
    Hussein

  • How to default the KFF segment values based on other field's value

    Hi,
    I would need to reset the 5th segment value of "Liability Account" field on R12 Supplier Page under "Accounting" link.
    Condition: And it has to be based on some other value like "GLOBAL CONTEXT VALUE and TaxPayer ID Type" under "Organization" link.
    Right now; as per the seeded page it defaults the Liability Account to "BL-130-0000-2110-0000-0000" under accounting link; I need to change this default value to "BL-130-0000-2110-2641-0000" based on above condition.
    I have tried using the below code:
    OAKeyFlexBean oakeyflexbean = (OAKeyFlexBean)oawebbean.findIndexedChildRecursive("LiabilityFlex");
    oakeyflexbean.setText()
    But this one does not work.
    Can anyone suggest me some option to acheive this requirement.
    Thanks
    Edited by: 880860 on May 21, 2012 2:23 PM

    Hi everyone,
    Any thoughts? any help is appreciated...
    Thanks

  • How to add one default value in table type value set?

    Hi All
    I have the below requirement:
    Need to display all the organization ids in the parameter for one concurrent program along with one default value of 'ALL'.
    I have created a table value set which picks up the organization name from hr_all_organization_units. But while submitting the program I should also be able to give 'ALL'.
    Any pointer/idea how to achieve this will be highly appreciated!!
    Thanks in Advance!!
    Regards,
    Shashank Mishra

    HI
    i get below error when i change the script 
    PS C:\scripts> C:\Scripts\updatedefaultvalue.ps1
    Cannot index into a null array.
    At C:\Scripts\updatedefaultvalue.ps1:8 char:7
    + IF($i[ <<<< "Title"] -eq $null)
        + CategoryInfo          : InvalidOperation: (Title:String) [], RuntimeExce
       ption
        + FullyQualifiedErrorId : NullArray
    $web = Get-SPWeb http://tspmcwfe:89/
    $list = $web.Lists["test"]
    $item = $list.Items | Where { $_["Name"] -eq "Emc" }
    foreach($i in $items)
    IF($i["Title"] -eq $null)
             $i["Title"] = "test"
           $i.Update()
    adil
    Why are you piping a where in the items? Do you only want to add the "test" to ones matching
    a name?
    If you have ISE installed on your server I recommend you put your code in there and debug it. 
    If this is helpful please mark it so. Also if this solved your problem mark as answer.

  • Create New GL Code Combination - With some flags

    Hi All
    I created a new gl code combination useing the below script
    DECLARE
    l_keyval_status BOOLEAN;
    L_COA_ID NUMBER;
    P_CONCAT_SEGS VARCHAR2(500);
    l_err_msg varchar2(2000);
    l_error varchar2(255);
    BEGIN
    L_COA_ID := 50372;
    P_CONCAT_SEGS := '014.01.0000.1101020200.002.23001.01.00.000000.000.000.000';
    l_keyval_status := fnd_flex_keyval.validate_segs(
    'CREATE_COMBINATION',
    'SQLGL',
    'GL#',
    l_coa_id,
    p_concat_segs,
    'V',
    sysdate,
    'ALL', NULL, NULL, NULL, NULL,
    FALSE,FALSE, NULL, NULL, NULL);
    commit;
    if l_keyval_status then
    dbms_output.put_line('S');
    else
    l_err_msg:=substr(fnd_flex_keyval.error_message, 1, 240); --fnd_message.g
    l_error := substr(fnd_flex_keyval.error_message, 1, 240);
    dbms_output.put_line(l_error);
    dbms_output.put_line('ERROR SEGMENT :');
    l_error := to_char(fnd_flex_keyval.error_segment);
    dbms_output.put_line(l_error);
    dbms_output.put_line('ERROR ENCODED :');
    l_error := substr(fnd_flex_keyval.encoded_error_message, 1, 240);
    dbms_output.put_line(l_error);
    dbms_output.put_line('FALSE');
    dbms_output.put_line(l_err_msg||substr(sqlerrm,150,3));
    end if;
    end;
    The code combination created successfully, but in the application form of the code combination
    the Allow posting flag = 'N' and summry_flag = 'Y'
    while i need it to be created wit detail_posting_allowed = 'Y' and summry_flag = 'N'
    is there any way to set the flags while useing the API
    best regards

    Hi Miro,
    Does any account segment value used by you to create the code combination have 'Allow Posting' set to No ? I am wondering if those defaults are setting the flags at the code combination level.

  • Issues updating/setting multi value lookup columns via powershell

    Hi All,
         I have an issue updating multi values in a lookup field via powershell
    I can update a single value  lookup field as below but can't get to update if its multi value.
    As stated below when I hardcode it. It works.
    No idea what 'm missing. Any help will be appreciated.
    #Hardcoded works below as you can see i'm setting 3 values
    $array = @($realval.Split(';'))
    for ($i = 0; $i -lt $array.Count - 1; $i += 2)
    $word = $array[$i].Trim('#')
    $number = $array[$i+1].Trim('#')
    "$number $word"
    $lookupvalue1 = GetLookUpValues -val $number
    [Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
    [Microsoft.SharePoint.SPFieldLookupValue] $lookupvalue = New-Object Microsoft.SharePoint.SPFieldLookupValue
    [Microsoft.SharePoint.SPFieldLookupValue] $lookupvalue2 = New-Object Microsoft.SharePoint.SPFieldLookupValue
    [Microsoft.SharePoint.SPFieldLookupValue] $lookupvalue3 = New-Object Microsoft.SharePoint.SPFieldLookupValue
    $lookupvalue.LookupId = 1
    $lookupvalue2.LookupId = 2
    $lookupvalue3.LookupId = 6
    $itemValues.Add($lookupvalue)
    $itemValues.Add($lookupvalue2)
    $itemValues.Add($lookupvalue3)
    #$itemValues.Add($lookupvalue)
    $CMRSItems["Event Type"] = $itemValues;
    Write-Host "items:" $itemValues
    $CMRSItems.Update()
    # This works when its updating only one value but when it needs to update multivalue it only updates the last one
    #so for example with the lookupvalue above only 6 gets updated below
    $array = @($realval.Split(';'))
    for ($i = 0; $i -lt $array.Count - 1; $i += 2)
    $word = $array[$i].Trim('#')
    $number = $array[$i+1].Trim('#')
    #$number
    "$number $word"
    #send param to GetLoolValues func to return records as SPFieldLookupValue
    $lookupvalue1 = GetLookUpValues -val $number
    #I can view the lookupvalue returned successfully
    #Write-Host $lookupvalue1
    [Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
    #This LookupId returns 3 values like on the hardcoded one above like so :1,2,6
    $lookupvalue.LookupId = $number
    $itemValues.Add($lookupvalue)
    $CMRSItems["Event Type"] = $itemValues;
    #I can view the items returned successfully
    Write-Host "items:" $itemValues
    $CMRSItems.Update()

    The problem I can see with your code is that the below line of code, you are instantiating inside the for loop. This should have been outside the for loop as by keeping it inside the loop you are overriding the value.
    [Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
    Please have a look at the below solution and modify your code as per your requirement. What I am trying to achieve in the below code is that I have a listA in which one of the field is being used as a multi-lookup in my listB.
    $lookupCollection = $something.split(";")
    $LookupMasterList=$web.Lists["ListA"]
    [Microsoft.SharePoint.SPFieldLookupValueCollection] $lookupValueCollection = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
    #Get the Lookup Item from Parent List
    foreach($item in $lookupCollection){
    IF([string]::IsNullOrEmpty($item.trim())) {
    continue;
    $LookupItem = $LookupMasterList.Items | Where-Object { $_.Item("FieldInternalName") -eq $item.trim()}
    if($LookupItem -ne $null)
    $myLookup = New-Object Microsoft.Sharepoint.SPFieldLookupValue($LookupItem.ID,$item.trim())
    $lookupValueCollection.Add($myLookup);
    #Set the Lookup field value
    if([string]::IsNullOrEmpty($lookupValueCollection)){
    continue;
    else{
    $newItem["Lookupfieldinternalname"] = $lookupValueCollection
    The above logic has no hard coding and it fetches the lookup information directly from the master list and generates a collection based on that. You can modify the above code as per your requirement.
    Geetanjali Arora | My blogs |

  • Code combination based hierarchy

    Hi,
    I am wanting to overlay a code combination based alternative reporting hierarchy in Finance against budgets, balances and journals.
    The nature of the overlay is that the first contact is from code combination id (all of the used segments in the chart of accounts) to a parent code / description. Each parent code then has a level number and may have a parent of its own, only linked to the original gl codes through the total chain of parents.
    From initial analysis I do not think this is possible using standard functionality - but if anyone thinks overwise - let me know!
    My question is, is there a document that I can utilise to perform the analysis on how this could be linked into the existing physical table structure? (i.e. I need to understand the current PK -> FK links in the physical layer to scope the extent of the work)
    thanks,
    Robert.

    Hi,
    my requirement is that the hierarchy is multi-leveland joined on all of the six live accounting segments.
    So; -
    Level 1 - 101.10222.8554.0444.000.00000 (accounting segments) joins to; AAAAA - My analysis code level 1
    Level 2 - AAAAA (parent) joins to BBBBB - My analysis code level 2
    Note it is the total combination of all the segments which is the requirement, so just because the first segment is 101, this does not mean that all entries with first segment 101 will be this parent, only when in combination with the rest of the segments exactly as above (so one code combination id effectively)
    regards,
    Robert.

Maybe you are looking for

  • Java studio enterprise licensing

    Hello, Anybody know in which condition sun java studio enterprise can be used to develop open source applications? I post this question because I asked the sun licensing center (email to [email protected]) but it seems than nobody know the answer to

  • Personal number field in asset master

    Dear experts, In Asset master-Time dependent tab we have option to put the personal number. Kindly tell me where we have to configure this personal number in the system and we are not using the HR module in present implementation (this will get any t

  • SRM Follow on documnet table

    Program BBP_PD displays the shopping cart number and details Table BBP_PDBE display purchase requisition and reservation. I would like to know what is the table that contains the PO as well in SRM? Does it read it directly from R/3 or it is stored in

  • F5 Big-IP Plugin

    Has anyone installed the F5 Big-IP plugin for grid control. My question is where abouts did you install the agent. The flash card for our F5 load balancer is only 512mb and does not have a lot of room for an agent.

  • Does the Workflow engine use EXISTENCECHECK methods directly?

    Hi all, I'm curious about the use of existencecheck. It's a method in all Business Objects, which I have no problem with and fully understand. What made me curious is that OO Classes used in WF still include an EXISTENCECHECK method. Theoretically it