Problem while createing record using plsqlEO

Hi,
I called API in insertRow() method of plsqlEO to create record and the primary key person_profile_id is the out parameter of this API and it'll generate by the API.
But while submitting the page its throwing an error message as
the attribute person_profile_id is required.
So I couldn't able to create record. What might be the reason behind this?
The insertRow method is given below,
protected void insertRow()
Diagnostic.println("Inside insertRow!!!!");
Object obj = null;
HzPartyV2Pub hzpartyv2pub = new HzPartyV2Pub();
oracle.apps.ar.hz.v2api.HzPartyV2Pub.PersonRec personrec = new oracle.apps.ar.hz.v2api.HzPartyV2Pub.PersonRec();
BigDecimal[] x_party_id = new BigDecimal[1];
String[] x_party_number = new String[1];
BigDecimal[] x_profile_id = new BigDecimal[1];
String[] x_return_status = new String[1];
BigDecimal[] x_msg_count = new BigDecimal[1];
String[] x_msg_data = new String[1];
Diagnostic.println("Before calling initializePersonRec");
initializePersonRec(personrec);
Diagnostic.println("After calling initializePersonRec");
try
OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)getOADBTransaction();
OracleConnection oracleconnection = (OracleConnection)oadbtransactionimpl.getJdbcConnection();
Diagnostic.println("Before calling createPerson");
HzPartyV2Pub.createPerson(oracleconnection, "T", personrec, x_party_id, x_party_number,
x_profile_id, x_return_status, x_msg_count, x_msg_data);
Diagnostic.println("After API Call Return Status is:" + x_return_status);
catch(Exception exception)
Diagnostic.println("Inside Catch Exception: " + exception);
checkErrors();
How to solve this issue? please suggest.
Thanks & Regards,
Sagarika

The SQL statement generated by TopLink is as follows -
UPDATE PR_SUPP SET CNTC_PRSN_NAME = ''
, REMK = 'Remark 123 !', LAST_CHNG_DTTM = {ts '2002-11-29 10:59:56.0'} WHERE ((S
UPP_CODE = 'A0001') AND (LAST_CHNG_DTTM = {ts '2002-11-29 10:46:01.0'}))
The coloumn name in the generated statement conform to the coloumn names in the table. The exception is being thrown for all 'update' queries for all objects in the application.

Similar Messages

  • Problem while creating assets using BAPI

    Use table enhancement BAPI_TE_ANLU
    Diagnosis :The BAPIs for creating and changing assets currently support only those customer enhancements that relate to the user fields created using SAP enhancement AIST0002.
    Can anybody give the appropriate solution why this error is coming while creating assets using BAPI.

    Looks like you are trying to transfer custom fields into the asset master data that were not added following the steps in enhancement AIST0002.
    Using EXTENSIONIN parameter, you can transfer user fields from the asset master record. However, it is not possible to transfer fields that are updated in user-defined tables. Only user fields that were defined using SAP enhancement AIST0002 and are automatically updated in table ANLU can be udpated in this way. This means you have to use table extension BAPI_TE_ANLU.
    Enhancement AIST0002 contains function module EXIT_SAPL1022_001 as a component in which user fields can be implemented.
    The documentation ( BAPIPAREX) of the structure that forms the basis for this parameter contains additional information about using this parameter.
    Please check how table ANLU has been enhanced and also go through the documentation of enhancement AIST0002.
    Regards,
    Shyam

  • Problem while Creating BOM using LSMW Direct Input

    Hi  all ,
    I am trying to create the BOM Using LSMW Direct Input Method .
    I am getting problem at step 9 that is Read Data.
    It is able to read the values from header and item files .
    but it is not able to write , so the Written is 0 always .
    I put the field names first in the flat file and correcponding values below it with tab delimited.
    Please let me know where the Problem would be.... I am trying this from long time ..
    Regards ,
    Raj

    hi ,
    Yes i am specify files i am attaching 2 files .
    ones is header and the other is line item data .
    my strucure is :
    Hi ,
    I am still getting problem while for writing the records after reading the data .....
    my header structure :
    STYPE
    MATNR
    WERKS
    SELAL
    STLAN
    DATUV
    ZTEXT
    my item structure :
    STYPE
    MATNR
    WERKS
    SELAL
    POSTP
    MENGE
    my header data :
    STYPE     MATNR     WERKS     SELAL     STLAN     DATUV     ZTEXT
    1     388     0110     20     1     06.01.2009     SAMPLE ZTEXT     
    my item data :
    STYPE     MATNR1     WERKS     SELAL     POSTP     MENGE
    1     388     0110     20     N     1234
    1     382     0110     20     N     12345
    Above text files are delimited by tabulator.
    Please guide me . The files are reading but unable to write .....
    Regards,
    Raj

  • Problem while creating queries using SQVI

    Guys,
    I have many diff versions of sap's. 4.6c, 4.7, 4.7uc, 5.0, 5.0uc and so on......
    I have to few queries in 4.7 in SQVI, i have to make it in sync in all the othr servers.
    I have created all of them in all servers, but while creating in 4.6c, when i am using option "table Join" while creating query in SQVI, the system doesnt take me to next screen.
    What could be the problem. Its going to next screen when i use option "table" but not when i use "table joins".
    Can v transport these queries ( i mean SQVI queries, not those in sq01 ).
    Helppp..................

    used table view

  • Problem while creating PO using BAPI_PO_CREATE1

    HAI TO ALL
    I AM TRYING TO CREATE PO USING BAPI
    ORDER IS SUCCESFULLY GENERATED, BUT THE CONDITIONS WHATEVER I PASS IS ARE REPEATING ,
    EVEN WE CONFIGURED DEFAULT VALUES MAINTAINED IN TRANSCTION 'OMFI" AND MAINTAINED Default Values for Purchasing FOR PARAMETER IN PARAMETER TAB IN USER PROFILE,
    HELP ME...
    REGARDS,
    SN

    Hi Sid.
    I'm having this same problems on creating PO Service. Did you solve it? How did you do that?
    I'm using a PR and the Category is 'Y', and I cant find where is the problem.
    The tables that I'm passing to the BAPI_PO_CREATE1 are:
    POITEM/ POITEMX
    POACCOUNT/ POACCOUNTX
    POSERVICES
    POSRVACCESSVALUES
    Please, if you have any idea, let me know!
    Tks a lot!
    Renata

  • Problem while creating database using dbca

    Hi all,
    I am getting following error when I try to create a database (fresh installation) using dbca on linux ES4, oracle 10.2.0.1 (Rev2). Any help much appreciated.
    ORA-19624: operation failed, retry possible,
    ORA-19870: error reading backup piece /u01/app/product/10.2.0/db_1/assistants/dbca/templates/Seed_Database_8k.dbf
    ORA-19505: failed to identify file /u01/app/product/10.2.0/db_1/assistants/dbca/templates/Seed_Database_8k.dbf
    ORA-27037: unable to obtain file staus.
    Thanks,

    Hi,
    You saw if this file /u01/app/product/10.2.0/db_1/assistants/dbca/templates/Seed_Database_8k.dbf exists ?
    See if this link help you:
    database 10gR2 configuration assistant error
    Cheers

  • WS_CRUD_InvalidConfigurationData  Error while creating Record using webserv

    Hi,
    I deploped sca files and I would like to create new Business Object. I got an error in response as WSCRUD_InvalidConfigurationDataElementKey_. Could any one can guide me what the error is? what values should I give for Configuration data, value and key.
    Regards,
    Rajeev.
    Edited by: rajeev raj on Jan 28, 2008 11:11 AM

    than delete the existing infotype
    by PU00 and ITXXX here xx stands for the number of the infotype
    and add the custom wage tpe u had created
    sikndar

  • Version problem while creating PO using CO

    Hi All,
    I am not able to create a PO. The following is the error
    "Version 0 not defined for fiscal year 2007"
    The follow on trial of resolutions is as follows:
    Message "GF626", Execute function, Control area 1000, General version definition, ACTIVATION OF INDICATOR NOT PERMITTED Message KT 253.
    Please help me with a step by step resolution
    Regards,
    Kumar

    SPRO --- Logistics --- PS --- Costs --- create CO Version
    In this check whether u have done the "setting for each fiscal year" for ur version

  • Entity Attributes are not populating while creating EO using EO wizard.

    Hi,
    I am using JDeveloper version 10.1.3.3.0.3 and E-Business suite12.1.2.
    I am facing problem while creating EO using EO wizard.
    In Entity Object Editor Entity Attributes are not populating while creating EO.
    Please help me resolve this issue.
    Thanks & Regards,
    Sagarika

    Please ensure you click on Tables and Synonyms check box and select proper schema.
    Try to select the table from the list after this instead of writing as in 10.1.3 when we write table name it automatically selects from the list if it exists in the list.
    Thanks
    AJ

  • Scrollbar appearing while creating pdf using AlivePDF

    Hi,
    I am facing a problem while creating pdf using AlivePDF.
    I have a VBox on which I am adding multiple pages. If the content overflows it shows scrollbar. All this is working fine.
    [PHP]
    <mx:VBox x="0" y="80" width="705" height="560" id="content"></mx:VBox>
    [/PHP]
    When I create the pdf using the following code it shows scrollbar in  generated pdf (attached screenshot) while I want all the content without  scrollbar
    [PHP]
    var pg:DisplayObject;
    pg = content.getChildAt(i);
    var pdf:PDF;
    pdf = new PDF (Orientation.PORTRAIT, Unit.POINT, Size.LETTER);
    pdf.setDisplayMode(Display.FULL_WIDTH);
    pdf.addPage();
    pdf.addImage(pg, new Resize(Mode.FIT_TO_PAGE, Position.CENTERED ),0, 0, 0, 0, 0, 1,true,'PNG',100);
    [/PHP]
    Please suggest what changes should I make to fix this.

    If the report didn't change, then perhaps the data did. Check
    to make sure the data being supplied to the report is as expected.
    I have run into mysterious errors where an expected value was of
    the wrong type or a required value was now blank. It is also
    possible to have existing logical errors in an iif() or other
    dynamic evaluation expression that was not previously examined;
    until now. So, is there any unexpected or exceptional data the
    report cannot handle?

  • Problem while creating WBS elements using LSMW

    Hello experts,
    I am able to create Project Definitions using LSMW. (using recording)
    But there is a problem while creating WBS elements.
    Tcode CJ20 has table control and that will become problem for multiple rows (levels).
    Can anyone suggest a solution to mass upload WBS elements?
    Thanks for your valuable advice.

    Hi,
    Instead of using "BAPI_PROJECT_MAINTAIN", use following solution. We are using this solution and it is working pretty good.
    If the WBS element is already created and you want to create one more with same data, first get the WBS related information using BAPI_PROJECT_GETINFO as you are doing currently.
    I am using different sets of BAPIs to create project, create / change WBS element.
    I use function module from Function group CJ2001 ( Project related BAPIs ), CJ2054 ( WBS related BAPIs ) and PS_BAPI ( pre/post processing BAPIs ). There are specific order in which you need to execute these BAPIs.
    For example if you want to create / change the WBS element, the BAPIs sequence is:
    <b>1. BAPI_PS_INITIALIZATION
    2. BAPI_BUS2054_CREATE_MULTI ( to create  WBS )
             or
    2. BAPI_BUS2054_CHANGE_MULTI ( to change WBS )
    3. BAPI_PS_PRECOMMIT
    4. BAPI_TRANSACTION_COMMIT</b>
    Check the documentation of BAPI "BAPI_BUS2054_CREATE_MULTI " to see how these function modules work.
    Let me know if you need further information.
    Regards,
    RS

  • Problem creating basic views while creating materials using idocs?

    hello,
    I am facing an issue while creating materials using idocs. The problem is that the basic view does not get created whereas other views are present. The function module used is idoc_input_matma01 and the basic idoc type is MATMAS03.
    Looking for help. Thank you

    Hi Madhu,
    Actually i recieve an idoc from PI containing data required for cretion of the material via an idoc. This idoc is then processed to create the required material.
    The material gets created with appropiate data in various tables(mara, makt) but when we view material in mm03 we cant see the basic data views.

  • Problem while creating the Partner Address in CRM

    Hi,
       We are facing one problem while creating the new address for the Business Partner.
       When ever customer wants to change the address : we are following one process : where we are      
       using 'BAPI_BUPA_ADDRESS_ADD' functin module. Becuse of this , new addrss number will be generated for the 
      corresponding account in BUT021_FS table.But this table contains old address number as a first record, so that when ever
      we display the partner address in UI, it is displaying the old address only because first entry of the the table 'BUT021_FS'
      contains the old address number.
      Because of this , we are getting lots of complaints regarding this.
    Can you please help on this ASAP.
    Thanks & Regards
    Pradeep.

    Try BAPI_BUPA_ADDRESS_CHANGE  for address change followed by BAPI_TRANSACTION_COMMIT . It works.

  • Getting error while creating subsite using custom template in sharepoint2013

    Hi,
    I am getting the following error while creating subsite using custom template in sharpoint2013. even publish features are enabled.
    Please suggest me on this.
    Thanks in advance.

    You need to enable the PerformancePoint Service Site Collection Features(PPSMonDatasourceCtype)
    on the target site collection. go to site action > site settings> site collections features > and enable it and now try again.
    Similar case: http://imughal.wordpress.com/2012/09/20/dependency-feature-ppsmondatasourcectype-id-05891451-f0c4-4d4e-81b1-0dabd840bad4-for-feature-bicenterdataconnections-id-3d8210e9-1e89-4f12-98ef-643995339ed4-is-not-activated-at-this-scop/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Problem while creating sales order

    Hi
       We are facing a problem while creating a sales order in R/3. The sales order number is getting generated. But we are not able to view the same in the backend meaning it is not there in the database. Any inputs would be of help.
    regs
    Steve

    Hi everybody,
    I've got a problem with this too. I use the BAPI_SALESORDER_CREATEFROMDAT2 with BAPI_TRANSACTION_COMMIT and the webdynpro shows me the document number created in R3 with a Success message. But when I go to R3 and try to display the created sales order, it doesn't exists. So... Maybe I'm doing something wrong with the BAPI_TRANSACTION_COMMIT. ¿Can anybody help me with this?
    The code I use is this:
    When the user pushes the SAVE button in the WebDynpro, this code executes:
        //@@begin onActionSave(ServerEvent)
         wdThis.wdGetSOCreaCustController().executeBapi_Salesorder_Createfromdat2();
         wdThis.wdGetSOCreaCustController().executeBapi_Transaction_Commit();
        //@@end
    In the custom Controller I've got the code for those executions:
      public void executeBapi_Salesorder_Createfromdat2( )
        //@@begin executeBapi_Salesorder_Createfromdat2()
         try {
              wdContext.currentBapi_Salesorder_Createfromdat2Element().modelObject().execute();
         catch (Exception ex) {
              wdComponentAPI.getMessageManager().reportException(ex.getMessage(), false);
         wdContext.nodeOutput().invalidate();
        //@@end
      public void executeBapi_Transaction_Commit( )
         try {
              wdContext.currentBapi_Transaction_CommitElement().modelObject().execute();
         catch (Exception ex) {
              wdComponentAPI.getMessageManager().reportException(ex.getMessage(), false);
         wdContext.nodeOutput().invalidate();   
        //@@end
    ¿Is something wrong? ¿Is something missing?

Maybe you are looking for

  • Calendar invites not working (mostly)

    I am getting inconsistent behavior using Calendar 5 and I'm not sure why.  This is paired with Calendar Server using Mountain Lion Server. Whenever our secretary sends out events to the entire office (using a group in Contacts.app which is pullling c

  • Reliable alternative to iphone calendar / notes

    simply put: I want a reliable notepad / text recorder on the iphone (at least while I don't give it up for a nexus). since I don't really like relying on pay services such as "remember the milk" for many reasons I actually decided to give up notepad

  • Multiple Lines In Report Output

    Post Author: deanrhurst CA Forum: General Hi I am setting up a report off the back of taking customer orders. Each customer will place one order that can contain several products. My client needs an output file that gives full details of the customer

  • Where is the burn CD icon in iTunes 10?

    I just want to listen to a CD I just purchased on iTunes on my sound system, and I can't find a way to burn CD in iTunes 10. The help says that it should be located in File --> Library --> save playlist to CD, but there is simply no such option for m

  • I have lost the email Address Book from the menu bar. How do I get it back?

    I have lost the address book from the menu bar. How do I get it back?