SRKIM: Account_type 이 잘못 생성된 code combination 확인

PURPOSE
Dynamic insertion 을 통해 생성된 ccid 중 간혹 account type 이 key flexfield에서 정의한 account type 과 다르게 발생하는 경우가 있어 문제가 되곤 한다.
이를 확인 할 수 있는 script 을 제공 하여 손쉽게 파악 할 수 있도록 한다.
Explanation
아래 sql 수행 시 Account type 이 잘 못 지정된 ccid 를 확인 할 수 있다.
select
c.chart_of_accounts_id coa,
c.code_combination_id ccid,
c.account_type type_is,
substr(v.compiled_value_attributes,5,1) should_be
from
gl_code_combinations c,
fnd_flex_values v,
fnd_id_flex_segments s,
gl_sets_of_books b
where
b.short_name = '&SOBNAME' and
c.chart_of_accounts_id = s.id_flex_num and c.template_id is null and
c.chart_of_accounts_id = b.chart_of_accounts_id and
s.application_id = 101 and
s.id_flex_code = 'GL#' and
s.segment_num = &&SEGNUM and
s.flex_value_set_id = v.flex_value_set_id and
v.flex_value = c.segment&&SEGNUM and
c.account_type != substr(v.compiled_value_attributes,5,1) ;
일단 문제의 ccid 가 확인이 되는 경우 Note. 1050920.6 를 참조 하여 misclassified account type을 정정 하도록 한다.
Example
N/A
Reference Documents
Note. 259210.1 How to Identify Account Code Combinations Having Account_type Different From Account

Similar Messages

  • AR Aging Report by Code Combination

    We are on 11.5.10. Our AR invoice has several lines and each line could be against a specific Div/ CC (code combination). Given that we do not have a centralized collection department, we are looking for a aging report by Div/ CC, so that the report can be distributed to the respective Div/ CC for further action.
    Is there a way this can be accomplished using standard AR functionality. If not, any suggestions on how it can been developed would be helpful.
    Thanks - Raj.

    Hello.
    Our AR invoice has several lines and each line could be against a specific Div/ CC (code combination).Does this mean that one of your invoices has more then one Receivable line?
    Octavio

  • To get code combination in transaction screen -AR

    hi all
    i am using r12
    in AR super user -transactions-in the transactions screen -when it is queried say 10000086 in the field Number
    when distributions tab is clicked we get to see a field named GL account eg 701-100001-1000-0101-1220001-000000-0000-0000
    when i see record history for Transactions screen it says RA_CUSTOMER_TRX_PARTIAL_V
    when i see record  history for gl account   RA_CUST_TRX_LINE_GL_DIST_V  but i don't see the code combinations
    how to join RA_CUSTOMER_TRX_PARTIAL_V and RA_CUST_TRX_LINE_GL_DIST_V
    i did join with customer_trx_id but it gives more number of rows
    kindly guide
    thanking in advance

    Do you want sql script to find GL Code Combinations for a AR transaction?
    If yes, following is the query.
    select rcta.trx_number, gcck.concatenated_segments
    from ra_customer_trx_all rcta, ra_customer_trx_lines_all rctla, RA_CUST_TRX_LINE_GL_DIST rctlgd, gl_code_combinations_kfv gcck
    where rcta.trx_number = '<Give your AR Invoice>'
    and rcta.customer_trx_id = rctla.customer_trx_id
    and rctla.customer_trx_line_id = rctlgd.customer_trx_line_id
    and rctlgd.code_combination_id = gcck.code_combination_id;
    If you are looking for something else, please be clear
    Regards,
    Srini

  • Access Sequence for Plant/Tax code Combination  for JTAX

    Dear All
    i want to create a new access sequence for "Plant/Tax code" Combination.
    Please let me know the process for the same
    Regards
    Amey

    Hi,
    Goto- M/05.
    Create the condition table by selecting the fields Plant & Tax code.
    Assign this condition table in the Access sequence JTAX as per ur requirement.
    Create condition records (FV11) by choosing the requirec access sequence.
    Regards,
    Satpal

  • Bapi_Acc_Document_Post - E 018 : Invalid tax code and company code combination

    Hi All,
    I need the help of this forum once again.
    I am using bapi Bapi_Acc_Document_Post to create KR documents in SAP. The bapi works absolutely fine except for one scenario:
    For a particular type of invoice coded to Company "XXXX" with lines having tax code "I0", the bapi returns error message "E 018 : Invalid tax code and company code combination". The tax code "I0" and the company code "XXXX" has been mapped in SAP and if I try to create the invoice manually in SAP using the GUI, the invoice gets created without any issue.
    I have tried searching the forum but could not find any post on this topic.
    Therefore, requesting the masters to please help me out on this.
    Best Regards
    Sutirtha Roy

    Hi Gowthami,
    how have you solved your problem, because I am facing the similiar issue and trying desperately to post the following combination with BAPI_ACC_POST_DOCUMENT:
    001 40       490100     Aufw. aus Marge PP              R2                 15,92
    002 31       10000003   Kreditor                                R2                 15,92-
    003 50       175060     Abzugsverfahren USt            R2                  3,18-
    004 40       154060     Abzugsverfahren Vst             R2                  3,18
    THANX!
    Regards
    Marko

  • Difference in Account Code combination at Transaction and Accounting entry

    Hi All,
    We are working on Subledger Modifications (SLA) for a Client in order to meet few key business scenarios... Even though we were able to achieve the desired outcome through SLA, client is not pleased about the fact, there exists two different account code combinations for a transaction i.e.
    1) The account code combination that is defaulted or entered in the transaction
    2) The account code combination that is used for creating the accounting entry considering the modifications done at SLA.
    There is a difference between the above two, due to modifications carried out in SLA. 
    Since the scope of SLA is limited only to make changes at the Accounting entry level, such variations would exist, however client is not comfortable with such an approach.
    We are performing the SLA changes for three modules:  1) Cost Management 2) Accounts Receivables and 3) Accounts Payables
    If someone has worked on such similar situation in your previous assignments, perhaps you can share how the same was addressed.
    (Such as any customizations, Workarounds, irrefutable justifications etc ..)
    Thanks and Regards,
    Karthikeyan

    Hi,
    Check is there any restrictions are there . the data must be displayes if the data is there in infocube.
    Regards
    sivaraju

  • How to create an Undefined Code Combination from API? (Urgent)

    Hi All,
    I used the following API to create the code combinations in a Inventory custom form.
    SELECT CHART_OF_ACCOUNTS_ID INTO :PARAMETER.CHART_OF_ACCOUNTS_ID
    FROM ORG_ORGANIZATION_DEFINITIONS
    WHERE ORGANIZATION_ID = :PARAMETER.ORG_ID;
    FND_KEY_FLEX.DEFINE(
    BLOCK => 'XX_MRN_TRX_HEADERS',
    FIELD => 'TO_ACCOUNT',
    CODE => 'GL#',
    APPL_SHORT_NAME =>'SQLGL',
    NUM => ':PARAMETER.CHART_OF_ACCOUNTS_ID',
    ID => 'TO_ACCOUNT_ID',
    VRULE => '\\nSUMMARY_FLAG\\nI\\nAPPL=SQLGL;NAME=GL_NO_PARENT_SEGMENT_ALLOWED\\nN\\0GL_GLOBAL\\nDETAIL_POSTING_ALLOWED\\nE\\nAPPL=INV;NAME=INV_VRULE_POSTING
    nN',
    REQUIRED => 'N',
    DINSERT => 'Y',
    VALIDATE => 'FULL',
    USEDBFLDS => 'N');
    This creates the correct ccid if the combination is already available in GL (gl_code_combinations_kfv), But when its a new combination it returns '-1'.
    How can I create an Undefined Code Combination from API in custom forms?
    If any one one can help me on this it'll be a great help.
    Thanks

    Solved by Using FND_FLEX_EXT.GET_COMBINATION_ID.
    Thanks

  • 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.

  • Condition records and tax code combination table

    CAn I know the table where both condition record and tax code stored.

    Hi Jose,
    I think you have quoted the tax procedure table.  There i have not found the tax codes. 
    My requirement is both condition records and tax codes combination table.
    I want to see for which condition type which tax code has been assigned.

  • 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

  • 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.

  • Insert into rcv_transactions_interface, Invalid Code combination

    Hi All,
    I am new to OM and just trying to figure out where is gl_code_combination is stored in this table rcv_transactions_interface . I am currently facing a issue where Receiving transaction proecssor givs us a error as
    "Invalid gl code combination for a record".
    Can any please tell me where this gl_code_combination is stored? i would like to know the table name and change the valkue there itself.
    Thanks in Advance.
    Regards,

    "trying to figure out where is gl_code_combination is stored in this table rcv_transactions_interface"
    According to the ETRM (accessible via the Metalink) two columns in the table rcv_transactions_interface are connected to the table "gl_code_combinations."
    These are:
    CHARGE_ACCOUNT_ID
    TRANSPORTATION_ACCOUNT_ID
    I think that the column that mainly interests you is the first one..
    Greetings,
    Sim

  • Disabled GL Code combination

    What happens to a transaction already in the system when a GL Code combination is disabled? What needs to be done if there are transactions exists for a disabled Gl account code combination?
    Thanks

    We were unable to create accounting for two payments and invoices because of the disabled account combination and were not able to close the period because of these unaccounted transactions. I enabled the account combination ran the close process and it worked fine. So Just want to know the impact of disabled account combination on the existing transactions.
    Thanks.

  • Getting GL Code combination description

    Hi All,
    we have xla_oa_functions_pkg.get_ccid_description in R12 for getting the description of code combination.
    can anyone let me know its counter part in 11i version..
    Thanks in advance..

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

  • 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

Maybe you are looking for