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

Similar Messages

  • How to create new tax codes

    how to create new tax codes
    Service Tax 4% on 33% VAT 4% on 90% Non Deductible
    Service Tax 12.24% on 33% VAT 4% on 90% Non Deductible
    regards
    anil

    Hi Anil,
    This is an example from Italy:
    Local purchases 20% 40% recoverable
    Base Amount                                                     100    0         BASB
    Round.Up Output Tax             MWS                    110    100       MWAI
    Input Tax Round.up                VST        8.000      120    100       MWVI
    N.d.input tax                         NAV                      140    100       MWNI
    Non-ded.InputTax -RU            NVV       12.000     150    100       MWZI
    Acqu.Tax Outgoing-RU          ESA                       200    100       NLAI
    Acqu.Tax Inc.- Ro.up             ESE                       210    100       NLVI
    VST is the deductible tax and NVV the Non Deductible tax.
    I hope that you can use this and that you don't have to change your calculation procedure.
    Paul

  • How to create ArrayColletion in mx:Script from mx:Model id="results" source="/data/data.xml" /

    How to create ArrayColletion in mx:Script from <mx:Model
    id="results" source="/data/data.xml" />
    Please see my code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Model id="results" source="/data/data.xml" />
    <mx:Script>
    import mx.collections.ArrayCollection;
    import mx.utils.ArrayUtil;
    import mx.controls.Alert;
    </mx:Script>
    <mx:ArrayCollection id ="dt1"
    source="{ArrayUtil.toArray(results.result)}"/>
    <mx:Script><![CDATA[
    [Bindable]
    public var expenses:ArrayCollection = dt1;
    [Bindable]
    public var expenses2:ArrayCollection = dt1;
    [Bindable]
    public var dp:ArrayCollection=expenses;
    public function changeDataProvider():void{
    Alert.show(expenses.toString());
    if (dp==expenses){
    dp=expenses2;
    }else{
    dp=expenses;
    ]]></mx:Script>
    <mx:Panel x="10" y="10" width="100%" height="378"
    layout="absolute">
    <mx:ColumnChart dataProvider="{dt1}" x="10" y="10"
    id="myChart" height="318" width="100%">
    <mx:horizontalAxis>
    <mx:CategoryAxis categoryField="month"/>
    </mx:horizontalAxis>
    <mx:series>
    <mx:ColumnSeries displayName="apple" yField="apple"/>
    <mx:ColumnSeries displayName="orange"
    yField="orange"/>
    <mx:ColumnSeries displayName="banana"
    yField="banana"/>
    </mx:series>
    </mx:ColumnChart>
    <mx:Legend dataProvider="{myChart}" x="481" y="10"/>
    </mx:Panel>
    <mx:Button x="284" y="416" label="Change Data" id="bt"
    click="changeDataProvider()" />
    </mx:Application>

    Tracy,
    Thanks. That worked. However I have another related question:
    I convert the xml feed to a XMLListCollection by doing:
    <mx:XMLListCollection id="mission"
    source="{xmlFeed.lastResult.day}"/>
    and
    <mx:XMLListCollection id="mission1"
    source="{xmlFeed.lastResult.day.tBlock}"/>
    On the chart I have
    <mx:ColumnChart id="missionReadiness" height="150%"
    width="100%"
    paddingLeft="2" paddingRight="2"
    showDataTips="true" dataProvider="{mission1}">
    <mx:series>
    <mx:ColumnSeries xField="" yField="@today"
    displayName="Today"/>
    <mx:ColumnSeries xField="" yField="@tomorrow"
    displayName="Tomorrow"/>
    <mx:ColumnSeries xField="" yField="@afterT"
    displayName="After Tomorrow"/>
    </mx:series>
    </mx:ColumnChart>
    the yField works, but for the xField I want to have the @date
    but refers to the parent node, so I am clueless on how to refer to
    it.
    Also, I would like to display on the chart only the values to
    a specific date (like @date="05/17/2007").
    Any suggestions on how to do that?
    Gilbert

  • How to create an address code for PO delivery address?

    Hi Guys,
    How to create an address code for the delivery address in the purchase order? Please explain me with details.....
    Thanks
    Raja

    delivery adress records can be created with transaction MEAN.
    the number is purely internal.
    In ME21N you can then search by name (you will certainly not know the number)

  • How to create a group of contact from a multi-selection of mails in a mailbox to answer to all senders?

    How to create a group of contact from a multi-selection of mails in a mailbox to answer to all senders?

    Use Mail Scripts. Its Add Addresses function will collect all the addresses from all selected messages and allow you to select the ones you want to add and allow you to create groups as you go.

  • How to create automatic creation of BP from customer and vendor master data

    Hi gurus,
    can any one tell how to create automatic creation of BP from customer and vendor master data.
    Please give me the steps.
    Thanks
    Sasikanth.

    HI,
    Goto SPRO\ Cross application components \ Master data synchronization \ Synchronization control.
    Assign account groups of customer and vendors to respective BP grouping. This setting is enough to create BP in background while creating customer / vendor. But the fields groups are very much important, ensure mandatory fields should be sync.
    rgds,
    Srini

  • How to create a interface with NTR from SAP XI?

    How to create a interface with NTR from SAP XI?

    Hi,
        What do you mean by NTR ?...
    What are the details you needed...Please be clear and more elaborative as far as possible..so that you will get straight forward answers...
    HTH
    Rajesh

  • How to create a transaction code for a function group with screen 100 as st

    Hello ,
    I have requirement where I need to create a function group and create screen 100, 200, 300 and include the function in the screens.
    Customer asked me to create a transaction with the screen 100 as the starting screen.
    Can you please let me know how to create a transaction code for a function group with screen 100 as starting screen.
    [ It is not a module pool program ].
    Thanks
    Prashanth.
    Moderator message - Please ask a specific question and do not ask the forum to do your work for you - post locked
    Edited by: Rob Burbank on Jun 2, 2009 11:49 AM

    Go to transaction SE93, enter a transaction code that you want and click on "create". Enter a text and select the "Transaction with Parameters" button. In the Default Values section, enter START_REPORT in the transaction field. Check the "skip initial screen" box. In the Name of Screen field section enter the following lines:
    Name of screen field:                               Value
    D_SREPOVARI-REPORTTYPE                RW
    D_SREPOVARI-REPORT                        ZPCA
    Save and transport accordingly.

  • How to create a Transaction code for a Report Painter Report

    Hi All,
    Can any one let me know the procedure as to how to create a t-code for a user defined PCA report. I have created a PCA report (copied the existing report (8a26-001) and named it as zpca and assigned the same in a new Report Group ZPCA (the group is created by copying 8a26 group) and assigned it under the library 8a2. We have added few fields required by the user to the Z report.
    Now i need to create a transaction code for that zpca report. can anyone suggest how to go about it.
    Useful answers will be appropirately rewarded.
    regards,
    radhika

    Go to transaction SE93, enter a transaction code that you want and click on "create". Enter a text and select the "Transaction with Parameters" button. In the Default Values section, enter START_REPORT in the transaction field. Check the "skip initial screen" box. In the Name of Screen field section enter the following lines:
    Name of screen field:                               Value
    D_SREPOVARI-REPORTTYPE                RW
    D_SREPOVARI-REPORT                        ZPCA
    Save and transport accordingly.

  • How to create UDO by code?

    Hi,
    the UDO is very useful,but how to create udo by code ?
    who has the samples ? can you send It to me by email or  can you paste it in here ? thanks .
    pls ,someone have said It can find in the path "C:\Program Files\SAP Manage\SAP Business One SDK\Samples  " ,but I can't find it . there are only 'COMUI' and 'Utility Projects' files .and I also have installed the DI API .
    so please email it to [email protected]
    Thanks again.

    Hi Adele,
    Thanks ,I have got the email.
    and my version is 'SAP Business One 2004.2 B (7.30.224)  SP: 00  PL: 30'
    this is my code that have writed before.
    Public Sub AddUDO()
        Dim oUserObjectMD As SAPbobsCOM.UserObjectsMD
        Set oUserObjectMD = SBO_Company_DI.GetBusinessObject(oUserObjectsMD)
        oUserObjectMD.CanCancel = SAPbobsCOM.BoYesNoEnum.tYES
        oUserObjectMD.CanClose = SAPbobsCOM.BoYesNoEnum.tYES
        oUserObjectMD.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tYES
        oUserObjectMD.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES
        oUserObjectMD.CanFind = SAPbobsCOM.BoYesNoEnum.tYES
        oUserObjectMD.CanLog = tNO
        oUserObjectMD.CanYearTransfer = tYES
        oUserObjectMD.ManageSeries = tYES
        oUserObjectMD.ChildTables.TableName = "APS1"
        oUserObjectMD.Code = "OAPS"
        oUserObjectMD.ManageSeries = tYES
        oUserObjectMD.Name = "OAPS"
        oUserObjectMD.ObjectType = SAPbobsCOM.BoUDOObjType.boud_Document
        oUserObjectMD.TableName = "OAPS"
        oUserObjectMD.FormColumns.FormColumnAlias = "Code"
        oUserObjectMD.FormColumns.FormColumnDescription = "Code"
        '&#23376;UDO
        lRetCode = oUserObjectMD.Add()
            '// check for errors in the process
        If lRetCode <> 0 Then
                SBO_Company_DI.GetLastError lRetCode, sErrMsg
                SBO_Application.StatusBar.SetText sErrMsg, bmt_Short, smt_Error
        Else
                SBO_Application.StatusBar.SetText "success", bmt_Short, smt_Success
        End If
        Set oUserObjectMD = Nothing
    End Sub
    and the error message is 'N' ,It's very stange.
    but why I can't find it in Tools -> User-defined-object -> default form ?
    anyway ,thanks a lot !
    Message was edited by: wei wang

  • How to create "valuation group code" in ECC system

    Hi,
    How to create" valuation group code" in ecc system and what is the path to create valuation grp code
    Thanks&regards
    kishore kumar

    Use the following IMG path.
    MM -> Valuation and Account Assignment -> Account Determination -> Account Determination without wizard -> Group together valuation areas (T Code OMWD).  The Val.Grpg Code in this customizing is a freely definable 4-character code.  You can then use this as valuation modifier in MM-FI account determination (OBYC).
    Assign pts. if this answers your question!

  • How to create Authorization policy using OIM 11g API

    Hi,
    Could you please let me know how to create Authorization policy using OIM 11g API.
    Thanks

    Constructing A Policy Programmatically
    http://docs.oracle.com/cd/E27559_01/dev.1112/e27154/cons_policy_prog.htm#CHDHACBF
    api ref for PolicyStore
    http://docs.oracle.com/cd/E21764_01/apirefs.1111/e22649/oracle/security/jps/service/policystore/PolicyStore.html#createApplicationPolicy_java_lang_String_
    something like below code to start with
    try {
    JpsContextFactory ctxFact;
    ctxFact = JpsContextFactory.getContextFactory();
    JpsContext ctx;
    ctx = ctxFact.getContext();
    PolicyStore ps = ctx.getServiceInstance(PolicyStore.class);
    if (ps == null) {
    // if no policy store instance configured in jps-config.xml
    System.out.println("no policy store instance configured");
    return;
    ApplicationPolicy ap = ps.createApplicationPolicy("Trading", "Trading
    Application","Trading Application.");
    } catch (JpsException e) {
    }

  • How to create a project templace using a API?

    Hi all,
    I can create a project using API PA_PROJECT_PUB.create_project, but how to create a project templace using a API?
    thanks for your any effort.
    Caril

    Hi Caroline:
    If sub projects are not supported currently, does the EDK API support creating the project folders under a project? Please let me know.
    Thanks.
    Bhanu

  • How to create New TaX Code

    Dear Expert,
    I am new in SAP so can U plz tell me each steps how to create a new tax code, i have gone through sdn forum but this is not sufficient
    my co. requirement is
    BED 10%, Cess 2%, HS E Cess 1%, VAT_D 3% (Input).
    Kindly tell me every step I will gv U full points.
    Thanks in Advance

    Hi Expert,
    As mentioned above, Go to T-Code: OBYZ,
    Firstly select the Conditions, here should define the condition types for the Tax Procedure.
    Secondly we have a Access Sequence, were we use pre-defined.
    Thirdly we have to create a Tax Procedure, here we need to assign the created condition types and Account Type.
    Where Account Types are used to trigger the GL Accounts, we assign GL Accounts in T-Code: OB40 with respect to Account Types.
    In T-Code: FTXP, We create a Tax Code and this Tax Code in used in T-Code: FV11, Her we maintain the percentage with respect to the Combination and Tax Code, this combination are pre-defined(i.e., Access Sequence)
    and Configure complete CIN Settings from the below link:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/207dd2ad-bf92-2b10-a88b-e3a4a01ca7fc?QuickLink=index&overridelayout=true
    Maintain CIN Master Data in T-Code: J1ID and for India Localization Menu in T-Code: J1ILN
    Regards,
    GK
    SAP

  • How to create a 4 page pdf from images - each page should open at same size

    How do I create a 4 page pdf (from 4 images - all the same size) that opens each page at  full page size?
    Thank you so much.
    Ginger
    PREVIOUS MSG:
    My goal is to create multi page pdfs that are created from images (scans of old brochures).  I receive images (scans of pages) all at the same size.
    I have been able to create the 4 pdfs (each opens at full page size) and merge into 1 pdf.  When I open that final pdf, I  see a column of 4 pages, page 1 image being larger than the remaining 3. When I  click on the left, page 1, icon,  I get the full page.  When I click on icons for pages 2 - 4, I get nothing.  The only way I can get the other pages in a full page view is to adjust the scaling after left icon is selected.  That is not what I want.
    How I created the files.
    I can either create pdf pages using Photoshop, or using Acrobat Pro itself through:
    File> Create PDF> From File and adding each of the images.  I then, for each, choose Properties> Initial View> Fit Page> Save. Then I use File> Combine> Merge Files into Single PDF> Save.
    Then I open the multi page pdf.
    I appreciate any help.
    Thank you,
    Ginger
    PREVIOUS MS

    It seems to me what you want to do is create one document which a combination of all four  and then one page of each.
    To create a Document with 4 pages combined in to one PDF.  open the first in a Series the to Edit menu and click on add pages click on next document (browse to document first) the choose attach to to end of document or add to  end of document. Repeat until you get all images added. They will end up (or should ) center in center of their own page. Save this document with a new name for now.
    Next go back to Photo shop and reduce size of images to fit desired sheet of paper (8-1/2 by 11, 8-1/2 by 14, whatever) place them side by side and row by row so you have 4 images on one page.
    now save as Pdf.
    now decide which you want to swap to the Thumbnails (the 4 on one page, or 4 individual pages.  I would use the thumbnails and make each a button that references the page in the document you save as a 4 page pdf that applies.
    Then on that page write a line saying click each illustration to see full size image (you might have to write this line while in Photoshop) then save this as PDF file
    Try out. You might have to use some javascript controls to do this. But I am not experienced in JavaScript to do this. I'm sure it cane be done.
    But note you will have to save both documents with the Thumbnails and the four page and Thumbnail page in a folder and send to prospect
    If you want just four separate pages in one Pdf just do first two paragraphs above

Maybe you are looking for

  • Iphoto 6 and using Adobe Elements with RAW?

    When I open Elements and proceed to open a RAW file it will not open picture taken with Canon RAW. It asks for a file size? Any suggestions?

  • Export BLOB data to a Word Document.

    Dear All, I am facing a problem during reading a blob data to a word file. My procedure work fine fine. But when I am about to open the Word Document. It gives me a message that "the document name or path is not valid. 1. Check the file permission fo

  • Lost ability to open PDF inside Explorer 11

    I am running windows 7 Pro and Acrobat 10.1.12. I installed an alternate PDF software program called SodaPDF and then immediately uninstalled it since I quickly realized it would not work in my situation. But after removing it from my computer I coul

  • Upgrade from CE 7.2 to Portal 7.3 or higher

    Hi Experts, We are planning to upgrade portal from CE7.2 to 7.31 or higher. First of all I want to know which will be the best version to upgrade from CE7.2 ? From SAP installation and upgrade guide I can see this will be a simple EHP upgrade if we g

  • Using IDVD in IWEB

    Is there a way to make my IDVD slideshows work in IWEB? Anyone??