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?

Similar Messages

  • Execute BAPI for different input values and dispaly data in a table

    Hi all,
    I have a specific problem about executing BAPI multiple times for different input values and didplay result in a table.
    I am using the code similar to the following logic.
    Bapi_Mydata_Input in = new Bapi_Mydata_Input();
    wdContext.nodeBapi_Mydata_Input().bind(in);
    String in = wdContext.currentperdataElement.getnumber();
    in.setDestination_From(10)
    wdThis.wdGetMydataComponentController().executeBapi_Mydata_Input();
    in.setDestination_From(20)
    wdThis.wdGetMydataComponentController().executeBapi_Mydata_Input();
    in.setDestination_From(30)
    wdThis.wdGetMydataComponentController().executeBapi_Mydata_Input();
    And I want to display the data in a single table. I want the result in a table for Bapi execution based on input parameters passed 10,20 30.
    But I am getting the table data only for the input parameter 30.I mean its actually display the data in table only for the last input parameter.
    So May I ask you all if you know the solution for this problem.PLease advise me with some tips .or sample code is very much appreciated.I promise to award points to the right answer/nice advises.
    Regards
    Maruti
    Thank you in advance.

    Maruti,
    It seems that WDCopyService replaces content of node, rather then adds to content.
    Try this:
    Bapi_Persdata_Getdetailedlist_Input frelan_in = new Bapi_Persdata_Getdetailedlist_Input();
    wdContext.nodeBapi_Persdata_Getdetailedlist_Input().bind(frelan_in);
    final Collection personalData = new ArrayList();
    String fr1 = wdContext.currentE_Lfa1Element().getZzpernr1();
    frelan_in.setEmployeenumber(fr1);
    wdThis.wdGetFreLanReEngCompController().executeBapi_Persdata_Getdetailedlist_Input();
    WDCopyService.copyElements(wdContext.nodePersonaldata(), wdContext.nodeNewPersonaldata());
    for (int i = 0, c = wdContext.nodePersonaldata().size(); i < c; i++)
      personalData.add( wdContext.nodePersonaldata().getElementAt(i).model() );
    String fr2=wdContext.currentE_Lfa1Element().getZzpernr2();
    frelan_in.setEmployeenumber(fr2);
    wdThis.wdGetFreLanReEngCompController().executeBapi_Persdata_Getdetailedlist_Input();
    WDCopyService.copyElements(wdContext.nodePersonaldata(), wdContext.nodeNewPersonaldata());
    for (int i = 0, c = wdContext.nodePersonaldata().size(); i < c; i++)
      personalData.add( wdContext.nodePersonaldata().getElementAt(i).model() );
    wdContext.nodeNewPersonalData().bind( personalData );
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • How can I run the report for different input values at the same time?

    Reports version: Report Builder 6.0.8.13.1
    Oracle version: Oracle8i Enterprise Edition Release 8.1.7.0.0
    I want to run the same report for different input parameter values and spool each o/p to different file and ftp to a server. For this, as a first step, I am spooling different input values in to a file, reading those values through a loop and calling the report for that input values. Each report run/execution is taking 15 minutes. Total report execution is taking approximately 4 hours (assuming 16 different input values) to complete. So I have to wait 4 hours to see ALL outputs.
    I would like to run the report parallel for ALL the input values and I should be able to see the ALL outputs with in 15 or 16 minutes.
    In my shell script, I added & symbol at the end of the report call to start/run the job in the background. Due to this the control passed to the next step after the report call. At this place I have an ftp command to send the output file to a different server and it is giving error some thing like “o/p file is not available/created yet". This is due to the fact that report writer is NOT yet completely started/initiated or it is NOT completed the spooling.
    How can I run the report at the same time for all the input values and save the time?
    Thanks in advance.
    Kishore.

    Increase the number of server engines running right now it seems there is only one engine running ,increase it to 4 or 6
    and then atleast 4 or 6 reports will run simultaneously.
    For FTPing the output add to your sript to check whether it is locked and if not then only try to ftp .
    Also for more better functionality read the document (chapter 15 ) for 10g reports for its new fuinctionality.
    http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/toc.htm
    Thanks
    Subodh

  • 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

  • UDF Required for checking input value.

    Hi,
         I'm in need of an UDF for checking the input value and pass constant based on that.
    Requirement.
                        We are having 1 field on the source side which need to be checked.
                        If the first character of the input is alphabet (No case sensitive)
                        then pass a constant "X" to the output field.
                        Other wise donot create that particular element.
    Example : If INPUT = A12345 then OUTPUT = X
                    If INPUT = 12345D then OUTPUT element must not be created.
    Regards,
    Swapna

    use the following code in a udf and then pass the result to createIf standard function to help you with the requirement.
    String chkValue = input.subString(0,1);
    String flag = "false";
    if ((chkValue >= 'A' && chkValue <= 'Z') || (chkValue >= 'a' && chkValue <= 'z')) {
    flag = "true";
                          return flag;
    else
    {return flag;}

  • AT SELECTION-SCREEN ON VALUE-REQUEST FOR not input value in input field

    Dear All,
    I make search help for field ARBPL in selection screen are not excepted selected value.
    Code is
    SELECT-OPTIONS:  p_arbpl FOR zdmde-arbpl MODIF ID two.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_arbpl-low.
    REFRESH sh_arbpl.
    SELECT * from crhd into CORRESPONDING FIELDS OF TABLE sh_arbpl.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
         RETFIELD               = 'P_ARBPL'
         DYNPROFIELD            = 'P_ARBPL'
         VALUE_ORG              = 'S'
       TABLES
         VALUE_TAB              = sh_arbpl.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_arbpl-high.
    REFRESH sh_arbpl.
    SELECT * from crhd into CORRESPONDING FIELDS OF TABLE sh_arbpl.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
         RETFIELD               = 'P_ARBPL'
         DYNPROFIELD            = 'P_ARBPL'
         VALUE_ORG              = 'S'
       TABLES
         VALUE_TAB              = sh_arbpl.
    Please tell how to input selected field from search help into input field in both low and high.
    Would appreciate your reply .
    Regards,
    Pooja

    Hi Pooja,
    For getting the response back from the user selection , please get the return code too. Before that instead of directly using the table crhd structure.. please do create a type declaration of that table , make sure that the field that you wanted to get using search help be specified at last of declaration type like this
    TYPES: BEGIN OF ty,
       OBJTY TYPE CR_OBJTY,
            ARBPL TYPE ARBPL,
    END OF ty.
    this is because the return parameter t_rtn will holds the last value of type which been selected by user.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD               = 'P_ARBPL'
          DYNPROFIELD            = 'P_ARBPL'
          VALUE_ORG              = 'S'
        TABLES
          VALUE_TAB              = sh_arbpl
          return_tab             = t_rtn.
    LOOP AT  t_rtn INTO x_rtn .
       ENDLOOP.
    try executing this code.
    TABLES crhd.
    TYPES: BEGIN OF ty,
       OBJTY TYPE CR_OBJTY,
            ARBPL TYPE ARBPL,
       END OF ty.
    DATA: sh_arbpl TYPE TABLE OF ty.
           DATA: dynpfields TYPE TABLE OF DYNPREAD,
    x_dynpfields TYPE dynpread,
    t_rtn TYPE STANDARD TABLE OF DDSHRETVAL ,
    x_rtn TYPE  DDSHRETVAL.
    SELECT-OPTIONS:  p_arbpl FOR crhd-ARBPL MODIF ID two.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_arbpl-low.
    REFRESH sh_arbpl.
    SELECT  * from crhd into CORRESPONDING FIELDS OF TABLE sh_arbpl WHERE werks eq '1000'.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD               = 'P_ARBPL'
          DYNPROFIELD            = 'P_ARBPL'
          VALUE_ORG              = 'S'
        TABLES
          VALUE_TAB              = sh_arbpl
          return_tab             = t_rtn.
    LOOP AT  t_rtn INTO x_rtn .
       ENDLOOP.
    x_dynpfields-fieldname = 'P_ARBPL-LOW' .
       x_dynpfields-fieldvalue = x_rtn-fieldval.
       APPEND x_dynpfields TO dynpfields.
       CALL FUNCTION 'DYNP_VALUES_UPDATE'
         EXPORTING
           dyname                     = sy-cprog
           dynumb                     = sy-dynnr
         TABLES
           dynpfields                 = dynpfields
    *   EXCEPTIONS
    *     INVALID_ABAPWORKAREA       = 1
    *     INVALID_DYNPROFIELD        = 2
    *     INVALID_DYNPRONAME         = 3
    *     INVALID_DYNPRONUMMER       = 4
    *     INVALID_REQUEST            = 5
    *     NO_FIELDDESCRIPTION        = 6
    *     UNDEFIND_ERROR             = 7
    *     OTHERS                     = 8
    Regards,
    Sivaganesh

  • 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

  • Create Window with Textbox and Button For getting Input Value

    Hi All,
    I have create plugin application but i want to take input from user. Therefore i want to create window with textbox and button.
    please may i get solution...

    Or if that's all you need to do, just use JavaScript or a form.

  • 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

  • API for access of guided procedure from ABAP / WebDyn: change/read status

    Hallo together,
    I'm very new to guided procedure and have some questions about possible interaction between WebDynpro ABAP and Portal guided procedures (UWL ?)
    is it possible to access a guided procedure or their attributes from WebDynpro ABAP? What are the relevant key attributes (ID's) to do so?
    Is is possible to change the status of a guided procedures f.e. from "completed" to "ready" from outside, let say WebDynpro ABAP? for the purpose of a monitor for mgrs.
    - possible szenario is a manager says: "no, not well done" go back to start and do it again !
    - another szenario: guided procedure is "running" and should be set to "completed"
    Any hint will be helpfull
    Thanx very much in advance
    regards Hans

    Hi Hans,
    There is a good and a bad news regarding APIs for GP and ABAP Web Dynpro and GP:
    The good news is that you can find [here|http://help.sap.com/javadocs/nwce/current/gp/index.html] the APIs for GP.
    The bad news is that the cooperation capabilities between GP and ABAP Web Dynpro are restricted in a certain way. One can use a ABAP Web Dynpro in GP as callable object, but GP is only capable to transport parameter values from GP to the UI but not vice versa. In many cases one needs a solution where the ABAP Web Dynpro UI accepts user inputs and forwards them to the GP context. This is not supported.
    Regards,
        Jan

  • APIS FOR RECEIVING OPEN INTERFACE

    Hi all,
    Can any one help me regarding APIS for receiving open interface for ASN(Advanc shipment notice)
    regards
    SREE

    For 11i, all public APIs are listed at http://irep.oracle.com
    For R12, use the Integration Responsibility responsibility to look up the APIs
    HTH
    Srini

  • Unable to enter Input value for an ICD

    Hi All,
    I have created an element XXX which has two input values "Pay Value" and "Class". The class has the values 'A','B','C','D'. I have created a plan and set up the rate In the calculation method I have chosen "No Standard values used".
    Now when I try to assign this ICD plan to the user in the Miscellaneous plan I am not able to enter the car class. Can someone help me with this.
    Thanks
    Shekar.

    Hi Shekar
    I find the ICD setup very 'picky'! If you get one thing wrong, it doesn't work. I have detailed below the steps I usually advise people to tek. Check your setup and see if this helps.
    1. Define Plan Type, Compensation Category = Others.
    2. Define Plan. Link to Plan Type. Plan Usage = May not be in program. On Not in program Tab - define sequence, currency, enrollment rate (per pay period?), activity reference period (Monthly). Your settings may need to be different. On Plan details tab, enter plan years.
    3. Plan enrollment requirements. On the general tab, plan sub tab, make sure the method = EXPLICIT. this allows the user to enter an input value for the ICD. THIS MAY WELL BE THE SOURCE OF YOUR PROBLEM!
    Make sure the CERTIFICATION region is UNTICKED. This can also cause ICDs not to work.
    ALLOWS UNRESTRICTED ENROLLMENT must be TICKED. Otherwise there is no eligibility to the ICD.
    On the rates subregion, make sure the run strt date is set to ENTERABLE.
    4. standard Rates form. Make sure the ACTIVITY TYPE and TAX TYPE are entered. Select the ELEMENT and the INPUT VALUE and TICK the ELEMENT AND INPUT VALUE REQUIRED field.
    On the processing Information tab - TICK ASSIGN ON ENROLMENT, DISPLAY ON ENROLLMENT and PROCESS EACH PAY PERIOD. Enter PER PAY PERIOD AMOUNT in VALUE PASSED TO PAYROLL and OTHER in COMPENSATION CATEGORY.
    Let me know if this works!
    Regards
    Tim

  • Is it possible to add more input values for a payroll element?

    Hi All
    I have created an element with 1 default input value 'pay value' and another input value '1xx1'. I have linked this to payroll and attached to many employees. Now due to business requirment, I need to add one more input value '2yy2' and also I need to change the formula. Eventhough its a minor change in formula, without a new input value it will not work. I tried to add a new one by datetracking to the element creation date without sucess.
    Is it possible to add input values after saving an element?
    Regards
    Rahman

    You can Change the Required Input Value to Not-required
    Alter the Sequence of the Input Value to be displayed in the Element Entry Screen
    You can Change the Input Value Validation Rule minimum, Maximum, Lookup and Formula
    Change your specification of which input values create Database Items. Note, however, you cannot remove Database Items if they are used in any formulas or QuickPaint reports.
    You cannot remove existing input values or add new one if you have created any entries for the element
    For more details you can refer http://ramesh-oraclehrms.blogspot.com/2007/08/maintaining-element.html

  • Mapping input values for a web service connection to a range of cells

    I've created a web service connection in Xcelsius data manager. My web service requires an array of integer as input parameter. How do I map input values for a web service connection to read from a range of cells in the spreadsheet, e.g. $A$2:$A$20, in similar way of mapping output values to write to a range of cells in the spreadsheet?
    For output values of the web service, I can specify to map the output values to write to a range of cells. However, it doesn't seem to work for reading the input values.
    I can map input values for each node to a single cell, e.g. $A$2, in the spreadsheet. However, when I set the "Read From" field to a range of cells, e.g. $A$2:$A$20, it only reads in the first value in the range.
    Is there any way that we can do this mapping for input values as we do for output values?
    Your assistance is very much appreciated.
    Regards,
    Van

    Van,
    There is a workaround for that...
    Example:
    My Webservice accepts input data range in a specific format with " :" symbol, i.e. 072008:082008
    Now what i do is
    A1 = 072008
    A2 = 082008
    A3 = CONCATENATE(A1,":",A2)
    so A3 = 072008:082008
    Now i map the input value in web service to cell A3
    P.S have 2 input box components and map it to cells A1 and A2, i.e you are giving users an  option to enter the range of values...then web service will capture the range and refreshes data with the range of values user entered.
    hope this helps..
    -Anil

  • BI Reports taking + sign for Node/Hierarchy input values in BI Portal

    We have BI Portal 7.01 SP 7. We are facing issues while running BI reports as it is appending + sign for the input which are of type Node/Hierarchy. Due to this we are getting error as invalid input:
    Input "\+CG1000(0SEM_CGCOMP)" for Company has invalid format
    However the same report runs fine when we are executing through Bex Analyzer without any + sign in the input values.
    The + sign is not coming if the input value is a number or a text. Its gets appended only to Node/Hierarchy type inputs.
    Your help to resolve this will be highly appreciated.
    Best Regards,
    Mahesh Das

    << Do not post the same question across a number of forums >>

Maybe you are looking for

  • World Traveller creates a task

    I have been facing a problem in all FWs with World Traveller. Whenever I run it, it creates a task. How can I avoid this unwanted task creation? Was this post helpful? If so, please click on the white "Kudos!" star to the left. Thank you! Solved! Go

  • Disk space problem

    greetings, this may be a stupid question, but is it possible to access the mac half of your drive whilst in the bootcamp/windows side? I ask this because i was silly and didnt make the partition big enough (why waste it to windows junk right?) But i'

  • SEEBURGER AS2: 403 Forbidden #

    Hi ALL We are encountering the following error  for SEEBURGER AS2: 403 Forbidden # .... while the vendor is trying to send a file thru AS2 adapter. Please, let us know if you a have encountered this problem and have a solution to fix it..... Delivery

  • [JS] how to package an InDesign document

    I am trying to script the packaging of InDesign files. function packageForPrint (to, copyingFonts, copyingLinkedGraphics, copyingProfiles, updatingGraphics, ignorePreflightErrors, creatingReport, versionComments, forceSave){ app.activeDocument.packag

  • FTP connection

    Hi all, I need to connect SAP to PDM server. my issue is to transfer internal table data or csv file from SAP to PDM server. how should i do it. i am trying to use FM FTP_CONNECT and FTP_COMMAND. If it is currect way, please provide me what are the i