API for uploading flexfield value

We have a fresh installation of Oracle EBS and start to do the setup.
I would like to know if Oracle has API for uploading flexfield values since we have hundred thousand values that we need to setup in a flexfield. Instead we use 3rd party sofware e.g : Dataloader we're considering if we make a custom program for uploading them.
I appreciate your help.

@Srini Chavali
this flexfield is for Accounting Flexfield.
@Pillair
is this FND_FLEX_VALUES_PKG.LOAD_ROW can be used for Accounting Flexfield also ?
Thanks

Similar Messages

  • Regarding API for crreating input values.

    hi everybody,
    this is API to create input values for an element. when i run this script it gives me error saying ORA-20001: PAY_6171_INPVAL_NO_LOOKUP:
    this is the code
    DECLARE
    P_INPUT_VALUE_ID     NUMBER;
    P_OBJECT_VERSION_NUMBER NUMBER ;
    P_EFFECTIVE_START_DATE DATE;
    P_EFFECTIVE_END_DATE DATE;
    P_DEFAULT_VAL_WARNING BOOLEAN;
    P_MIN_MAX_WARNING BOOLEAN;
    P_PAY_BASIS_WARNING BOOLEAN;
    P_FORMULA_WARNING BOOLEAN;
    P_ASSIGNMENT_ID_WARNING BOOLEAN;
    P_FORMULA_MESSAGE VARCHAR2(240);
    P_LOOKUP_TYPE varchar2(240):= NULL;
    P_FORMULA_ID number :=NULL;
    P_VALUE_SET_ID number := NULL;
    P_DISPLAY_SEQUENCE number :=NULL;
    P_GENERATE_DB_ITEMS_FLAG varchar2(240) := 'N';
    P_HOT_DEFAULT_FLAG varchar2(240) := 'N';
    P_MANDATORY_FLAG varchar2(240) := 'N';
    P_DEFAULT_VALUE varchar2(240) := NULL;
    P_MAX_VALUE varchar2(240) := NULL;
    P_MIN_VALUE varchar2(240) := NULL;
    P_WARNING_OR_ERROR varchar2(240) := NULL;
    BEGIN
    PAY_INPUT_VALUE_API.create_input_value
    ( false --P_VALIDATE                in boolean  Default false
    ,'01-JAN-2000' --P_EFFECTIVE_DATE          in date
    ,1028 --P_ELEMENT_TYPE_ID         in number
    ,'Amount' --P_NAME                    in varchar2
    ,'Money' --P_UOM                     in varchar2
    ,P_LOOKUP_TYPE
    ,P_FORMULA_ID
    ,P_VALUE_SET_ID
    ,2 --P_DISPLAY_SEQUENCE        in number   Default Null
    ,'Y' --P_GENERATE_DB_ITEMS_FLAG  in varchar2 Default 'N'
    ,P_HOT_DEFAULT_FLAG
    ,P_MANDATORY_FLAG
    ,P_DEFAULT_VALUE
    ,P_MAX_VALUE
    ,P_MIN_VALUE
    ,P_WARNING_OR_ERROR
    ,P_INPUT_VALUE_ID     
    ,P_OBJECT_VERSION_NUMBER
    ,P_EFFECTIVE_START_DATE
    ,P_EFFECTIVE_END_DATE
    ,P_DEFAULT_VAL_WARNING
    ,P_MIN_MAX_WARNING
    ,P_PAY_BASIS_WARNING
    ,P_FORMULA_WARNING
    ,P_ASSIGNMENT_ID_WARNING
    ,P_FORMULA_MESSAGE
    END;
    can any one help me with the solution as soon as possible.

    have you implemented api's before?
    Do not specify parameters you do not need. Name qualify your parameters. Do not initialize parameters with null, since they are already null by default.
    And why not enter them manually? Or dataload? Or configuration Workbench?

  • Api for uploading folio to Folio Producer

    Hi There
    I am looking into whether i is possible to create a folio file and upload it to the Folio Producer without using InDesign.
    1) Are there an api available for uploading folios to the Folio Producer?
         - Either through a web interface or by scripting InDesign?
    2) Is there any documentation available for the folio format,
    If neither of theese is availble currently, are there any plans in this direction in the future?

    They aren't currently available. We hope to due this in the future for integration by editorial workflow systems providers and advertising portals.

  • Standard program for uploading budget values in expenses

    Hi Experts,
    can u please tell me the standard program to upload budget values in Expenses
    thanks & regards..
    Narendra

    Hi,
    This is a sample program to upload through excel sheet.
    Check this code to upload vendor master through SHDB transaction.
    report ZVEND_MST no standard page heading line-size
    255.
    *include bdcrecx1.
    *parameters: dataset(132) lower case default
    'c:\vend.mst'.
       DO NOT CHANGE - the generated data section - DO
    NOT CHANGE    ***
      If it is nessesary to change the data section use
    the rules:
      1.) Each definition of a field exists of two lines
      2.) The first line shows exactly the comment
          '* data element: ' followed with the data
    element
          which describes the field.
          If you don't have a data element use the
          comment without a data element name
      3.) The second line shows the fieldname of the
          structure, the fieldname must consist of
          a fieldname and optional the character '_' and
          three numbers and the field length in brackets
      4.) Each field must be type C.
    Generated data section with specific formatting -
    DO NOT CHANGE  ***
    data: begin of record,
    data element: LIF16
            LIFNR_001(016),
    data element: BUKRS
            BUKRS_002(004),
    data element: EKORG
            EKORG_003(004),
    data element: KTOKK
            KTOKK_004(004),
    data element: NAME1_GP
            NAME1_005(035),
    data element: SORTL
            SORTL_006(010),
    data element: LAND1_GP
            LAND1_007(003),
    data element: SPRAS
            SPRAS_008(002),
    data element: BSTWA
            WAERS_009(005),
          end of record.
    End generated data section ***
    DATA : ITAB TABLE OF RECORD WITH HEADER LINE.
    start-of-selection.
    *perform open_dataset using dataset.
    *perform open_group.
    *do.
    *read dataset dataset into record.
    *if sy-subrc <> 0. exit. endif.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = 'C:\VENDOR.TXT'  
    "TEXT FILE
       FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = 'X'
      TABLES
        DATA_TAB                      = ITAB
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
    IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT ITAB.
    *In Loop Change Record With ITAB
    like record-lifnr_001 with itab-lifnr_001 
      perform bdc_dynpro      using 'SAPMF02K' '0100'.
      perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-KTOKK'.
      perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
      perform bdc_field       using 'RF02K-LIFNR'
                                  record-LIFNR_001.
      perform bdc_field       using 'RF02K-BUKRS'
                                  record-BUKRS_002.
      perform bdc_field       using 'RF02K-EKORG'
                                  record-EKORG_003.
      perform bdc_field       using 'RF02K-KTOKK'
                                  record-KTOKK_004.
      perform bdc_dynpro      using 'SAPMF02K' '0110'.
      perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-SPRAS'.
      perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
      perform bdc_field       using 'LFA1-NAME1'
                                  record-NAME1_005.
      perform bdc_field       using 'LFA1-SORTL'
                                  record-SORTL_006.
      perform bdc_field       using 'LFA1-LAND1'
                                  record-LAND1_007.
      perform bdc_field       using 'LFA1-SPRAS'
                                  record-SPRAS_008.
      perform bdc_dynpro      using 'SAPMF02K' '0120'.
      perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-KUNNR'.
      perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
      perform bdc_dynpro      using 'SAPMF02K' '0130'.
      perform bdc_field       using 'BDC_CURSOR'
                                  'LFBK-BANKS(01)'.
      perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
      perform bdc_dynpro      using 'SAPMF02K' '0210'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'LFB1-AKONT'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '/00'.
      perform bdc_dynpro      using 'SAPMF02K' '0215'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'LFB1-ZTERM'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '/00'.
      perform bdc_dynpro      using 'SAPMF02K' '0220'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'LFB5-MAHNA'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '/00'.
      perform bdc_dynpro      using 'SAPMF02K' '0310'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'LFM1-WAERS'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '/00'.
      perform bdc_field       using 'LFM1-WAERS'
                                    record-WAERS_009.
      perform bdc_dynpro      using 'SAPMF02K' '0320'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'RF02K-LIFNR'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=ENTR'.
      perform bdc_dynpro      using 'SAPLSPO1' '0300'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=YES'.
      perform bdc_transaction using 'XK01'.
    endLOOP..
    Check It, Activate it and process in SM35.

  • APIs for Country lookup values and Timezone lookup values

    Hi,
    We are developing a J2EE application for remote user management in EP.
    We want to query the lookup values for country and timezone (required when we create user). Are there any APIs that would return these values when called from our J2EE application?
    Also let me know if there are any workarounds?
    Thanks and regards,
    Pratik H. Thakkar

    Hi Guys,
    By using Java API, I got 239 countries on Windows 2K professional. Whereas in EP there are 233 countries. Also the names are not matching for eg: American Samao is missing in my local machine.
    Please help.
    Regards,
    Pratik H. Thakkar

  • API for Value Set

    Hello,
    Can you any one suggest me the name for the API for loading the values in Value set.
    Thanks,
    Nitin Singh

    Thanks a lot Sharath
    It worked.
    Just for the Group here is the api and procedure FND_FLEX_VAL_API.create_independent_vset_value
    Thanks,
    Nitin Singh

  • Flexfield Value Set Error

    I'm using flexfield value set to filter the customer (just customer who make a transaction order) so, when client call the request, parameter for customer just list of customer who make a transaction and customer not make transaction not include it)
    here is the code for the flexfield value set
    select HZ_PARTY.PARTY_NAME
    from HZ_PARTIES HZ_PARTY,OE_ORDER_HEADERS_ALL oha,
    hz_party_sites HZ_PSITE,
    HZ_CUST_ACCOUNTS HZ_CUST_ACCT
    where OHA.SOLD_TO_ORG_ID = HZ_CUST_ACCT.CUST_ACCOUNT_ID(+)
    AND HZ_PARTY.PARTY_ID = HZ_PSITE.PARTY_ID(+)
    AND HZ_CUST_ACCT.party_id = HZ_PSITE.PARTY_ID
    GROUP BY HZ_PARTY.PARTY_NAME
    It WOrks when i test it
    but when i call the request n want to input the parameter there is error message like this
    APP-FND-01564:ORACLE error 907 in fdlget
    Cause:dflget failed due to ORA-00907 : missing right parathenses
    any solution ???
    Thx in advance

    Hi,
    Maybe you question is better asked in [E-Business Suite|http://forums.oracle.com/forums/category.jspa?categoryID=3] forum.
    Best regards
    Peter

  • HR API User Hooks - Can I use to change a value in the table the API for?

    I am trying to initialize a descriptive flexfield on per_all_people_f. I originally tried doing the initialization using a “before row insert” database trigger directly on the table per_all_people_f. Seems to work great in the People form (PERWSHRG), but does not seem to work consistently when a new employee is entered through a template like Enter Employees (PERWSQHM).
    Does anyone know if you can use an API User Hook to initialize a value on one o the tables the API is inserting? For example, could I put a "Before Process" user hook on the "Create_ Employee" API to change the value of a descriptive flexfield?
    Any other good ideas?
    Currently I have a concurrent request that runs once every 30 minutes to default the descriptive flexfield. The delay is causing issues.

    In such cases you should write the code to default the values in the front end PUIs. As one person pointed out, User hooks are provided either to validate the already entered values, or to insert/update data in some custom tables but not for updating values in the same table where data is being inserted/updated.
    BTW for your information:-
    Person form (People Enter and Maintain) does not use APIs so anything written inside the user hook would be ignored by the application when this form is used. (The reason is this is one of the oldest form in HRMS, was created even before the concept of user hook came).
    Template form PERWSQHM uses APIs, so user hook is called when this form is used to create/update the data.
    Hope this is useful.

  • Value Misc. Allowance for the flexfield segment Expense Type does not exist

    Dear All,
    can any budy help me out in Internet Expense modulee
    Error:- Value Misc. Allowance for the flexfield segment Expense Type does not exist in the value set OIE_EXPENSE_TYPES.
    Problem details:- we have define one expense templates " Relocation Expnse" under this we have define number of expense items ,in which Misc. Allowance is one
    Prevously it was end dated but now end date is removed , now when we are trying to claim expense against this item we are getting the above error.
    can you please tell me why this is happining and what is the solution.
    Regard
    Ajay Sharma

    Check these things
    1. you have enable PerPeriodOfService DFF to this set.
    2. you are setting Context Variable like (AttributeCategory) with requried value.
    Thanks

  • Fnd_flex_keyval.validate_segs API does not insert FLEXFIELD value

    Hello,
    I',m using fnd_flex_keyval.validate_segs API in order to load ccid's, but having problems to insert "flexfield" value in R12. The code is as follows:
    vResult := apps.fnd_flex_keyval.validate_segs ('CREATE_COMBINATION', -- operation
    'SQLGL', -- appl_short_name
    'GL#', -- key_flex_code
    50328, -- structure_number
    '916.01.0001001.001.6104500102.000.000000' -- concat_segments
    'V', -- values_or_ids
    SYSDATE, -- validation_date
    'ALL', -- displayable
    NULL, -- data_set
    NULL,-- vrule
    NULL, -- where_clause
    NULL, -- get_columns
    FALSE, -- allow_nulls
    FALSE, -- allow_orphans
    260, -- resp_appl_id
    50678, -- resp_id
    1573, -- user_id
    NULL, -- select_comb_from_view
    NULL, -- no_combmsg
    NULL-- where_clause_msg
    Thanks in advance

    Not much clear what you are ultimately trying to achieve. On HR you may find some %util% packages that help you validate against a lookup, even considering the language of the environment. I guess it was hr_pump_utils.It has validations against lookup tables as well as other entities, bye giving the user value and returning the code or id if found.
    If not, you can create your own, passing the lookup type, the description, and optionally the language and use that to query the lookups table and validate the info received.

  • Line 1 Error - Value 120 for the flexfield segment Company does not exist

    {color:#0000ff}Receiving the following error message in the "Submit Expense Report - Expense Allocation" page:
    "Error : Line 1 Error - Value 120 for the flexfield segment Company does not exist in the value set XX_GL_COMPANY"
    This error message is shown when the user is entering the expense report in R12 Oracle Internet Expenses responsibility. After the user has finished entering the expense lines and after the user has reviewed the default expense allocation values in the expense allocation page, upon clicking on the next button , this error message is shown.
    Has anybody experienced this issue?
    We have opened a Service Request with Oracle but so far there is no resolution. This issue occurs intermittently. It is NOT consistent. We have advised the user base with the following workarounds to over this bug:
    1. The system administrator shall clear the cache using Functional Administrator responsonsibility
    OR
    2. Advise the application user to sign-off from Oracle Applications and allow 5 minutes before they sign-in again.
    Any help or advise in the matter is appreciated.
    Thank you.
    {color}

    Check these things
    1. you have enable PerPeriodOfService DFF to this set.
    2. you are setting Context Variable like (AttributeCategory) with requried value.
    Thanks

  • Best approach for uploading document using custom web part-Client OM or REST API

    Hi,
     Am using my custom upload Visual web part for uploading documents in my document library with a lot of metadata.
    This columns contain single line of text, dropdownlist, lookup columns and managed metadata columns[taxonomy] also.
    so, would like to know which is the best approach for uploading.
    curretnly I am  trying to use the traditional SSOM, server oject model.Would like to know which is the best approach for uploading files into doclibs.
    I am having hundreds of sub sites with 30+ doc libs within those sub sites. Currently  its taking few minutes to upload the  files in my dev env. am just wondering, what would happen if  the no of subsites reaches hundred!
    am looking from the performance perspective.
    my thought process is :
    1) Implement Client OM
    2) REST API
    Has anyone tried these approaches before, and which approach provides better  performance.
    if anyone has sample source code or links, pls provide the same 
    and if there any restrictions on the size of the file  uploaded?
    any suggestions are appreciated!

    Try below:
    http://blogs.msdn.com/b/sridhara/archive/2010/03/12/uploading-files-using-client-object-model-in-sharepoint-2010.aspx
    http://stackoverflow.com/questions/9847935/upload-a-document-to-a-sharepoint-list-from-client-side-object-model
    http://www.codeproject.com/Articles/103503/How-to-upload-download-a-document-in-SharePoint
    public void UploadDocument(string siteURL, string documentListName,
    string documentListURL, string documentName,
    byte[] documentStream)
    using (ClientContext clientContext = new ClientContext(siteURL))
    //Get Document List
    List documentsList = clientContext.Web.Lists.GetByTitle(documentListName);
    var fileCreationInformation = new FileCreationInformation();
    //Assign to content byte[] i.e. documentStream
    fileCreationInformation.Content = documentStream;
    //Allow owerwrite of document
    fileCreationInformation.Overwrite = true;
    //Upload URL
    fileCreationInformation.Url = siteURL + documentListURL + documentName;
    Microsoft.SharePoint.Client.File uploadFile = documentsList.RootFolder.Files.Add(
    fileCreationInformation);
    //Update the metadata for a field having name "DocType"
    uploadFile.ListItemAllFields["DocType"] = "Favourites";
    uploadFile.ListItemAllFields.Update();
    clientContext.ExecuteQuery();
    If this helped you resolve your issue, please mark it Answered

  • Wrong period values in Text template for upload of Plan data (KP06/KEPM)

    Hi,
    We are facing an issue in the upload template in text format for Upload of Cost Centre Planning data (Transaction KP06) in ECC 6.0.
    We have some User defined layouts for Excel upload of plan data. If we save the file as a text (tab delimited) file, the Period values above the Column"Period" do not correspond to the correct periods in ECC 6.0. for e.g. the values above Period 1, Period 2, Period 3 are shown as 6, 5, 4 instead of the correct values 1,2,3. These values are considered by the system for uploading the Planning value in the appropriate Periods and hence the values entered in the Column Period 1 in the text file are incorrectly uploaded by the system in Period 6 based on the values generated by the system in the text file.
    However, we do not encounter this issue in the 4.6C system where the values are correctly shown.
    We are facing a similar issue with the text upload template for Sales Planning data in CO-PA (Transaction KEPM), where the values generated by the system do not correspond to the correct period.
    Regards,
    Rajaram

    Hi Christian,
    Thanks for the quick reply, i followed your earlier reply in the below thread and resolved the issue. Thanks.
    How to delete CO plan data
    Hi Ajay,
    Thank you, We are uplaoding through KP06, Menu -->Extras --> Excel Planning --> Upload.
    Regards,
    Raj

  • API for Price Upload

    Hi Gurus
    Can someone please help me with the API to upload prices and/or update prices in Oracle Advance Prining
    thanks in advance

    See if any of these api's help.
    http://www.oracleappshub.com/pricing/oracle-pricing-api/

  • Transfer OTL to Payroll is not working for Custom Field Values

    Hi,
    We have Extended the Payroll and Project layout in OTL to include custom fields.
    Now linked the fields to Element entries input values.
    The issue happens when a retro batch is processed and transfered to Payroll the input values are not getting pulled properly.
    i.e. The retro batch creates a positive value for the new retro entry and a Counter negative value for the old record.
    Only in the case of Negative value, the issue is happening. For the positive value it is pulling the record properly from the custom fields.
    Can you please let me know, how to debug the same.
    Also this issue happens randomly not all the employees are facing this issue.
    Thanks,
    Raja Rajan

    Hi Rsn,
    just check the put this code in
    1st way--
    jjust import the api in your custom Action class
    import com.sap.isa.core.logging.IsaLocation;
    private final static IsaLocation log = IsaLocation.getInstance(ZcustomeAction.class.getName());
    then
    log.error("value"+value);
    in this  way you can debug the code...if not possible thenn...
    you can write...
    System.err.println("value"+value);
    you can also try to this  way..i think it will work now
    Thanks
    Jati

Maybe you are looking for

  • CarPlay vs Siri "Eyes Free"?

    What's the difference between CarPlay and Siri "Eyes Free"?  I thought Carplay was the improved next generation of "Eyes Free", which came after "IOS for the car".  But now I'm confused. I'd like to buy a new car with CarPlay this year, and I'm tryin

  • Server 2008 SP2 will not install Windows Updates

    I receive this error: Installation Failure: Windows failed to install the following update with error 0x8000ffff: Security Update for Windows Server 2008 (KB2653956). Installation Failure: Windows failed to install the following update with error 0x8

  • App Store app in my iPhone crashes very often. Why? There is a solution for this?

    I have tried to find for a way to contact/ask apple directly about this issue with no avail, until I found this place. This is my first question here. I am a newby. Sometimes when I open my App Store app in my iPhone and I  am either browsing for app

  • How to change the color picker/color space view?

    I wanted to change the color picker/color space view to what it looks like in the other Adobe programs. I have gotten used to using the color picker from the other programs and I have had problems with the look and function of this color view. In InD

  • Application Bar Maddness in Adobe FireWorks

    (someone suggested Mac forums might be able to help with this, as Adobe forums can't) Anyway... I have removed FireWorks prefs and un/reinstalled CS4Pro (Mac), threw out all Adobe prefs and still I am getting incredibly bizzare Applications Bar issue