Is there BAPI to insert/del/update/select customer table

I need to maintain customer table using RFC, but after try, I found that there are some problem.
      Something can execute at ECC system but it will fail at RFC interface, So I would like to know if there is a way to maintain it.

Hi,
Check these BAPI's
BAPI_CUSTOMER_CREATE Create Customer Master Online
BAPI_CUSTOMER_CREATEFROMDATA1
Regards,
Jyothi CH.

Similar Messages

  • Stored proecedure tutorial for insert, delete, update,select

    I want to integrate the stored procedure in my project
    i am using jsp,
    any one suggest me, stored proecedure tutorial for insert, delete, update,select
    thanx.

    Whether you are using JSP or not should not affect your decision (though I would recommend checking out the MVC pattern, and recommend against doing data access code from your JSP's).
    You simply need one tutorial on how to invoke a stored procedure. The stored procedure you write can have INSERT, SELECT, UPDATE, DELETE, whatever. You simply have to master the concepts involved in java.sql.CallableStatement. (And then you can get more fancy with vendor-specific extensions).
    However, I am a bit confused. You want a tutorial on stored procedures, but then you indicate very normal DML statements like INSERT, UPDATE and DELETE. All of these (queries, DML and stored procedures) fall under the general umberella of JDBC. So, it is always a good place to start with a plain ole JDBC tutorial.
    java.sun.com/docs/books/tutorial/jdbc/index.html
    www.onjava.com/pub/a/onjava/2003/08/13/stored_procedures.html
    - Saish

  • Urgent help needed in inserting data into a custom table in oracle WorkFlow

    Hi
    I am trying to get data from the WF and insert into a custom table..
    I read that workflow procedures WONT allow commits...
    Oracle Workflow will not support autonomous commits in any procedure it calls directly. If you need to perform commits, then embed your SQL in a subprocedure and declare it as an autonomous block. This subprocedure must be capable of being rerun. Additionally, note that Oracle Workflow handles errors by rolling back the entire procedure and setting its status to ERROR. Database updates performed by autonomous commits cannot be rolled back, so you will need to write your own compensatory logic for error handling
    Have anyone did this..
    Please give me some idea ...It is urgent
    I am getting data using getitemattribute..and try to insert it into a custom table
    thanks
    kp

    Pl do not post duplicate threads - insert dont work in Workflow
    Srini

  • Create transaction for update a custom table

    Hi,
    I have a custom table Z****. What are all the steps to create a transaction for updating my custom table? I don't want to use SM30 anymore.
    Thank you.

    Create a Table maintainence through the maintainence generator.
    Open table in SE11, goto utilities => table maintainence generator.
    Once the generator is created,
    In the same screen of generator - Goto Environment => Transaction Code
    Select Transaction Code with Parameter.
    In the default values - Enter the Transaction as SM30 . Select skip first screen.
    In default values at the bottom
    Add
    screen field = VIEWNAME and value = Ztable name.
    screen field =UPDATE  and value = 'X'.
    Edited by: Pranu Pranu on May 19, 2010 2:36 PM

  • How can I update a customized table from a text document?

    Hi,
    I am one sample file. The file is an text document. From this .txt file how can I update a customized table in SAP.
    How can I Update the fields in the Customized table.
    Thanks & Regards,
    NManohar.

    use the Function module GUI_UPLOAD or WS_UPLOAD and give the path and the file name from where the data has to be uploaded. in table parameter give the iternal table
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      =
      FILETYPE                      = 'ASC'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      tables
        data_tab                      =
    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.
    and finally use insert command to update the database table with the data

  • BTE for Parking a document and updating a custom table

    Hi
    I want to update a custom table whenever a new parking document got posted through FBV4. I want to use a BTE for this please advice....
    Moderator message: please do some research before asking.
    Edited by: Thomas Zloch on Mar 10, 2011 9:15 AM

    Hi Gaurav,
    First time the correct data i have entered..and pressed "Save" button it is going and updating .After that i given same priority to multiple absence types..it errored out.. till now everything is fine.. Again i changed to correct value.. and pressed "Save" button. It is error out with an error like :
    JBO-25001: Name LOCATOR_SELECT3 of object type View Row Set Iterator already exists
    Code :
    int rowCount = vo.getFetchedRowCount();
    RowSetIterator rIter1 = vo.createRowSetIterator("LOCATOR_SELECT3");
    rIter1.setRangeStart(0);
    rIter1.setRangeSize(rowCount);
    int g=0;
    rIter1.reset();
    for ( int i=0;i<rowCount;i++)
    XxchrResultSetVORowImpl row = (XxchrResultSetVORowImpl)rIter1.getRowAtRangeIndex(i);
    String priority = ((String)row.getAbsencePriority());
    System.out.println("First Priority" + priority);
    for ( int j=0;j<rowCount;j++)
    if(i==j)
    g++;
    //leave this row
    else
    XxchrResultSetVORowImpl rows = (XxchrResultSetVORowImpl)rIter1.getRowAtRangeIndex(j);
    String priority2 = ((String)rows.getAbsencePriority());
    //String priority2 = ((String)row[j].getAttribute("AbsencePriority"));
    System.out.println("Second Priority" + priority2);
    if(priority.equals(priority2))
    //that means priority is repeated
    throw new OAException("error",OAException.ERROR);
    rIter1.closeRowSetIterator();
    Serializable[] param = {Businessgroupname,Retroactivedays};
    am.invokeMethod("Apply");
    Thanks
    Preeti

  • Updating a custom table

    I am trying to update a custom table in BW with the following statement.
    UPDATE customtable FROM TABLE ITAB1.
    itab1 has entries but the customtable is not getting updated do i need to use any commit statement for that.

    Hi,
    Yes..Give COMMIT WORK statement after the update statement.
    Example
    UPDATE customtable FROM TABLE ITAB1.
    IF SY-SUBRC = 0.
      COMMIT WORK.
    ENDIF.
    Thanks,
    Naren

  • I want to update the Custom table using the data available in ITAB.

    Hi,
    I want to updaste the Custom Table which is created by me (Ztable) using the data available in itab.(which i got from defferent standard tables)
    I want to update the custom table using the itab data How is it possible?
    Is any possible by using Modify ?
    DPK.

    example here
    modifying datbase table useing internal table
    advises before updating this datbase table plz lock that table to avoid incosistency
    write the logic for modifying
    Modify the database table as per new dunning procedure
    MODIFY fkkvkp FROM TABLE lt_fkkvkp .
    and finally unlock the table
    example
    *To lock table for further operations
    constants: lc_tabname TYPE rstable-tabname VALUE 'FKKVKP' . "FKKVKP
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
    tabname = lc_tabname
    EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
    IF sy-subrc EQ 0.
    To fetch all the contract accounts for customers of the segment
    Households/SME.
    PERFORM fetch_contract_accounts using lc_tabname .
    ENDIF. " IF sy-subrc EQ 0.
    *wrote the logic
    Modify the database table as per new dunning procedure from internal table
    MODIFY fkkvkp FROM TABLE lt_fkkvkp .
    *unlock the tbale
    CALL FUNCTION 'DEQUEUE_E_TABLE'
    EXPORTING
    TABNAME = uc_tabname .

  • Update a Custom Table

    Hi,
    Now I created a module pool program in which I usde following code to insert values in to custom table, but now I get a ABAP DUMP at the time of executing the Insert statement
    I used the following code
    *Declear an Internal Table is having the same structure of Custom Table
    DATA : ty_znew_customer TYPE STANDARD TABLE OF znew_customer WITH HEADER LINE.
    *Move the Values to internal Table ty_znew_customer
    *Lock Table
      CALL FUNCTION 'ENQUEUE_E_TABLE'
        EXPORTING
          mode_rstable   = 'X'
          tabname        = 'ZNEW_CUSTOMER'
          x_tabname      = ' '
          x_varkey       = ' '
          _scope         = '2'
          _wait          = ' '
          _collect       = ' '
        EXCEPTIONS
          foreign_lock   = 1
          system_failure = 2
          OTHERS         = 3.
    *Insert Records In to Custom Table
      BREAK-POINT.
      INSERT znew_customer FROM TABLE ty_znew_customer.
      COMMIT WORK.
      BREAK-POINT.
    while executing that insert statement Sy-subrc is set to 4 and I get an Error
    *un Lock Table
      CALL FUNCTION 'DEQUEUE_E_TABLEE'
       EXPORTING
         mode_rstable       = 'X'
         tabname            = 'ZNEW_CUSTOMER'
      VARKEY             = 'CUSTOMER'
         x_tabname          = ' '
         x_varkey           = ' '
         _scope             = '3'
         _synchron          = ' '
         _collect           = ' '
    Please help me to solve this
    Regards
    Nausal

    Hi,
    When you use the SYNTAX ...INSERT FROM TABLE.... it will dump if for any entry in the internal table an entry already
    exists in the databse....
    So check for existing entries before inserting.

  • Performace Which is better ?  : Bapi inside a loop OR Select from Tables

    Hi Gurus,
    I have a report which displays purchase info records.
    If I am selecting from tables i need to use EINA, EINE, EORD and some other tables.
    There is a BAPI which gets all purchase info records specific to a vendor , material , purchasing organisation.
    QUESTION: Performace wise which is the better Approach, either selecting from tables or BAPI for Purchase info records
    Regards
    Avi.

    Whether it using BAPI or select. you need to check the performance. If you have full key for these tables EINA, EINE, EORD  then mak a select outside of the loop and within loop use READ TABLE statement with binary search. of if you want multiple records within loop then use loop insdie loop.
    Your final objective is to minimise the database hits . If you use bapi inside loop then your database hits will be more
    select from EINA
    select from EINE
    select from EORD
    loop at itab,
      read table EINA
      read table EINE
      read table EORD
    endloop

  • Need to raise Business Event after insert or updates on a table

    Hi All,
    Requirement : I have a Custom table in Oracle E-biz (R12 using 11g database), Whenever any row is inserted or updated on this Custom table, I need to log this changes in an audit table and then raise a Business event.
    Please suggest which are the best possible options.
    I could sense few options like
    1. Using Oracle Alerts (Event)
    2. Using Triggers
    Thanks,
    Santhosh

    Thanks for the response.
    Let me look into the links which you have sent.
    Meanwhile i have few clarifications as given below:
    1. If i use triggers, the trigger fires before the transaction is committed.
    2. If i use event alerts, i see some delay in the alert firing. I tried creating a separate concurrent program for "Check event alert". But still i dont see any improvement.
    Any suggestions on this ..?
    Thanks,
    Santhosh

  • "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB" while updating the custom table

    hi friends...
    i am posting fico document using bapi BAPI_ACC_GL_POSTING_POST.
    after that i am updating the document number to my custom table.
    but in some cases while updating the document in my custom table i am getting the fallowing dump..
    in ST22
    How to correct the error:
    Database error text........: "[1205] Transaction (Process ID 66) was deadlocked
    on lock resources with another process and has been chosen as the deadlock
    victim. Rerun the transaction."
    Internal call code.........: "[RSQL/UPDT/ZIF004_PKT ]"
    Please check the entries in the system log (Transaction SM21).
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
    "ZFI_01_MONTHLY_RESULT_FRM_PKT" or "ZFI_01_MONTHLY_RESULT_FRM_PKT"
    "UPLOAD_SAP"
    Source Code Extract
    LOOP AT i_zif004_pkt_sum .
    UPDATE zif004_pkt SET xblnr = i_zif004_pkt_sum-xblnr ---> i am getting DUMP here
                              gjahr = i_zif004_pkt_sum-gjahr
                              sap_flag_posting = i_zif004_pkt_sum-sap_flag_posting
                          WHERE compcode = i_zif004_pkt_sum-compcode
                         AND ccode = i_zif004_pkt_sum-ccode
                          AND wbselement = i_zif004_pkt_sum-wbselement
                          AND kostl = i_zif004_pkt_sum-kostl
                          AND code = i_zif004_pkt_sum-code
                          AND month1 = l_ltx
                          AND year1 = p_year.
        IF sy-subrc = 0.
          WRITE :/ 'Document ', i_zif004_pkt_sum-xblnr, 'is posted for ', i_zif004_pkt_sum-code.
        ENDIF.
      ENDLOOP.
    kindly give some inputs..
    regards
    Selva

    Hi,
    You will face this issue if your oracle data base is lack of work processes. try to check the work processes and increase them if possible with the helps basis guys.
    check the below thread.
    DI job failed ORA-12537: TNS:connection closed.
    Regards,
    Venkatesh

  • Updating a custom table on PO save

    When we create an order with component having item catg N a PR created in backgroud. When I save the order I want the PR to be updated in the custom table for further action.
    Is any exit possible for this. The custom tabl to be updated only whn the PO is saved.

    Hi Aditya,
    There are also BADIs through which you can achieve it very easily.
    SAP Help:
    BAdI: Order Change
    With this business add-in all changes (creation, change, set deletion flag) to PM/CS/PP/PS/PI orders can be processed further and if necessary prohibited.
    Standard settings
    Business add-ins are not active in the Standard System. The business add-in can be used several times.
    Recommendation
    If you use different order types and want to handle these in different ways, note that this BADI is used by all of the above-mentioned order types. To differentiate between the order types, evaluate the "AUTYP" field for the corresponding order header.
    These are the possible entries in the "AUTYP" field:
    10: Production order (PP order)
    20: Network (PS order)
    30: Service and plant maintenance order (CS/PM order)
    40: Process order (PI order)
    Activities
    To activate the business add-in, you must create an active implementation. Note that business add-ins can be used several times and therefore all active implementations are called and run through.
    Further notes
    Note that no system messages may be sent in the methods. The only exception is the AT_SAVE method. Within this method, a system message may be issued, but only if you trigger the exception ERROR_WITH_MESSAGE at the same time.
    Also, note that within the methods, the "commit work" instruction may not be executed because this would inevitably lead to incorrect data in the database.
    Regards
    Mahesh

  • Need help in inserting line details in custom table in oaf

    Dear All,
    I have a requirement as below.
    I have a page having few LOVS and few text fields and below to that i have a table region that i am populataing from another page means i have a button to open another page from that i am passing selected rows to base page, so my base page structure looks like below:
    LOV1        TEXTFIELD1
    LOV2        TEXTFIELD2 .......SO ON
    LINE DETAILS
    LINENUM  ITEM ITEM DESC
    1             AAAA           TEST
    SO my requirement is i have a button in my base page after clicking thsi the header information should insert to a table and line information should insert into another table,
    Header information i am able to insert into table by EO based VO, but how i can insert the line data from the table region to another custom table, please help me out on ths.
    Thanks

    Hello Everyone!
    DataObject fileUploadData = (DataObject)pageContext.getNamedDataObject("UploadFile");
    String fileName = null;
    String contentType="";
    try {
    fileName = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_NAME");
    System.out.println("File Name : "+fileName);
    } catch(NullPointerException ex)
    throw new OAException("Please Select a File to Upload", OAException.ERROR);
    contentType = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_MIME_TYPE");
    System.out.println("contentType : "+contentType);
    System.out.println("Creating object uploadedByteStream for file name : "+fileName);
    BlobDomain uploadedByteStream = (BlobDomain)fileUploadData.selectValue(null, fileName);
    I was using the above code to load the MS Excel 2010 .xlsx file, but when i checked uploadedByteStream is returning null value.
    Could anyone let me know why is this happening because i found in my post on google the same way (Above mentioned) code has been written for loading the .xlsx file?
    Thanks & Advanced,
    CAK

  • OAF Update of Custom Table causing ORA-600 with database block corruption?

    Using OA Framework 12.1.3, running under EBusiness Suite 12.1.3
    Created Custom Web page operating against Custom Tables
    ISSUE
    On about 2% of new records, when OAF is UPDATING a record in a certain table, it  is failing with
    java.sql.SQLException: ORA-00607: Internal error occurred while making a change to a data block
    ORA-00600: internal error code, arguments: [kddummy_blkchk], [815], [26412], [6110], [], [], [], []
    ORA-06512: at line 1
    Before the DBA turned on 10.2.0.4.0 DB_BLOCK_CHECKING parameter, this actually
    resulted in corrupted data blocks in the database and corrupted indexes that
    eventually crashed the database and we had to do a full recovery with 2 days downtime.
    Now that we have turned on DB_BLOCK_CHECKING, it simply errors out and puts things
    in the alert log, but the records still fail to update as the writes are blocked.
    Then oddly, a few days later.. the records become editable.  And others fail.
    This is ONLY happening on the one particular table being updated by OAF.  Other custom pages
    posting to other custom tables are having no problems.   We've CTAS'd the table back and
    forth and recreated the indexes, and that did not help.
    Support says to post to the Forum  ( So I am! ) or hire Oracle consulting.. which doesn't make
    much sense given the error.  The Recovery Team that helped us in a separate SR ( we had
    to do db_repairs not just recovery ) felt it was an important problem the OAF team needed to
    strongly review.
    Anyone else encounter this already and know of a solution?
    TIA
    Karl

    After MANY hours of trial and error and research, we've identified ONE use case that seems to apply to 90% of the issue we have encountered.
    YMMV.
    The BC4J generated SQL which is generating the ORA-600 is
    BEGIN UPDATE XXRETURNHEADER ReturnHeaderEO SET INTERNAL_TEXT=?,LAST_MOD_USERNAME=?,OBJECT_VERSION_NUMBER=?,LAST_UPDATE_DATE=?,LAST_UPDATED_BY=?,LAST_UPDATE_LOGIN=? WHERE RMA_NUMBER=? AND ORGANIZATION_ID=? RETURNING TROUBLESHOOT_DATE, FAA_TAG_DATE, FAILURE_ANALYSIS_DATE, LAST_MOD_DATE, FAA_REVISED_DATE, TTE_TECH_SEND_DATE, TTE_REP_RESPONSE_DATE, TTE_REP_APPROVED, TTE_RMA_RANDOM_KEY, OBJECT_VERSION_NUMBER, LAST_UPDATE_DATE, LAST_UPDATED_BY, LAST_UPDATE_LOGIN INTO ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?; END;".
    We determined that if TTE_RMA_RANDOM_KEY was not a null value, we would get an ORA-600 error whenever we did an APPLY from the OAF Page to update the record.
    If we set that table attribute to NULL for the record using SQL.. then used the  OAF Page to APPLY.. it worked fine and the record saved without error.
    We then modified the EO to NOT   "Refresh After Update"  ( thus removing it from the RETURNING clause generated )... and even if the TTE_RMA_RANDOM_KEY
    had a value... the OAF Page APPLY worked and the record saved without error.
    I cannot identify anything from the User programming side that is wrong ( and neither could Oracle ), and it REALLY should be in the RETURNING clause list of
    attributes.. but this is the only workaround I've found that doesn't crash the Page and irritate the user to no end.
    I have reported my findings via the SR back to Oracle to do with it what they may... but it looks strongly ,to me, to be an error in the BC4J/JDBC/Database
    coordination and passing data between those black boxes.

Maybe you are looking for

  • PowerPoint in iPhoto

    How do I import PowerPoint slides into iPhoto? I want to burn a dvd on it to play on other computers so I don't have to transport my MAC on vacation. Thanks. Any help is appreciated.

  • One of the pages I am working on is blocked and I cannot delete/change items displayed there

    One of the pages I am working on is blocked and I cannot delete/change items displayed there. I have unlocked all the layers but still cannot access the content on that page. Thoughts?

  • Dynamic assignation of :new in a trigger

    Hi, I have some generic code that I put in all my triggers to get the value of the next ID (Primary Key) in a table. I would like to use dynamic SQL to set a :NEW value. Something like : :new.||v_id_col_name := 12345; where v_id_col_name is the name

  • FrameMaker 8.1

    As we know, FrameMaker 8.0 had been released over 1 year. I want to know whether Adobe intends to release v8.1 in 2009? If anyone knows, Pls tell us!!!

  • [SOLVED] changes to swap partition

    I didn't think my current partition set up through properly on install so I'd like to make some changes. Swap seems to be the obvious candidate as it doesn't involve messing with data. Does this plan sound like it will work or be a disaster? 1. swapo