SAP database updations

Hi all
     I just want to know whether we can do the SAP database updations through a JAVA program.If we can do this then please explain to me how we can do this.I just want to access the data in the database(SAP) and do the updations whenever we need it through the JAVA program.
Thank You.
Regards
Giri

Giri,
Ya...Java APP sents data to XI and XI needs to insert the data into the database.
Before the next round of data is sent by the Application, Xi should sent back info on the status of the records.
Is this what you want?
This will be like I have pointed earlier possible without a BPM. But, make the call from the sending application Synchronous. And then map the JDBC response to the calling aplication.
But this updation is only possible through XI.
If i got the requirement wrong can you let me know in more detail, what is it that you are trying?
Reward if solved

Similar Messages

  • SAP database updations through Java program

    Hi All,
    From Java program, I want to access SAP database batch RFC
    Please tell me which batch RFC's I have to use for read and update of a table.
    Please also tell me how to find out a batch RFC for a particular table.Is there any way to find it out like BAPI.
    What are the steps and settings ?
    Detailed steps help the requirement.
    Thanks,
    Giri

    Giri,
    Ya...Java APP sents data to XI and XI needs to insert the data into the database.
    Before the next round of data is sent by the Application, Xi should sent back info on the status of the records.
    Is this what you want?
    This will be like I have pointed earlier possible without a BPM. But, make the call from the sending application Synchronous. And then map the JDBC response to the calling aplication.
    But this updation is only possible through XI.
    If i got the requirement wrong can you let me know in more detail, what is it that you are trying?
    Reward if solved

  • SAP EHP Update for Large Database

    Dear Experts,
    We are planning for the SAP EHP7 update for our system. Please find the system details below
    Source system: SAP ERP6.0
    OS: AIX
    DB: Oracle 11.2.0.3
    Target System: SAP ERP6.0 EHP7
    OS: AIX
    DB: 11.2.0.3
    RAM: 32 GB
    The main concern over here is the DB size. It is approximately 3TB. I have already gone through forums and notes it is mentioned the DB size is not having any impact on the SAP EHP update using SUM. However am stil thinking it will have the impact in the downtime phase.
    Please advise on this.
    Regards,
    Raja. G

    Hi Raja,
    The main concern over here is the DB size. It is approximately 3TB. I have already gone through forums and notes it is mentioned the DB size is not having any impact on the SAP EHP update using SUM. However am stil thinking it will have the impact in the downtime phase.
    Although 3TB DB size may not have direct impact on the upgrade process, downtime of the system may vary with larger database size.
    Points to consider
    1) DB backup before entering into downtime phase
    2) Number of Programs & Tables stored in the database. ICNV Table conversions and XPRA execution will be dependent on these parameters.
    Hope this helps.
    Regards,
    Deepak Kori

  • Updating table of non-sap Database

    Dear All,
                  I want to transfer data from Ztable to  non-SAP database table. Is it possible to do it.
    If yes, Plz suggest ...........
    Regards,
    Gulrez

    Hi.
    >
    Gulrez Alam wrote:
    >      I have to update a Mysql Database  table (non-SAP ) from ztable.. Actually have done like this for Oracle table(non-SAP)  table.
    >
    > Actually in table dbcon there is field DBMS in that there are entriey for Oracle, Microsoft SQL and other DB , but no entry for Mysql Database.
    Looks like you haved use multiconnect for this task in the past. At the moment only databases that are supported as a main database can be accessed using this technique. So you cannot have an entry for a mysql database in the dbcon table. Sorry for that but that is the current status. You will have to use a different approach.
    Best regards,
    Jan Stallkamp

  • Locking issue in workflow with conseutive database update

    Dear Workflowers,
    We are in ECC 5.0 and release 6.40. We went live for SAP in February and we are currently using workflow in PLM module for DMS and ECM.
    We have been facing this locking issue randomly happened in our production and quality system. The error from workflow log is "Document XXXX is locked by WF-BATCH". I have two steps in workflow one is to update the document user( from originator to editor with custom BO "zdraw" new method "setuser") and the next step is to update the document status( BO "zdraw" "setstatus" method which inherited form standard BO "draw").  
    I have tried to use "wait" (1st try) , statements  "BAPI_DOCUMENT_ENQUEUE", "BAPI_DOCUMENT_DEQUEUE" (2nd try) and  "Commit work and wait" (3rd try) to add one step in between, however the issue remains.
    The other question I had was we need to write "commit work" when we use BAPI to perform database update in the ABAP program. But I don't see "commit work" in the method of BO(for example "setstatus" in "draw" object) which performs database update. How does workflow perform DB update properly without "commit work" by referencing standard method?
    Could anyone please share your expertise with the issue I am facing?
    Thank you in advance,
    Merta

    Hi Merta,
    Regarding COMMITs: theoretically you should never use COMMIT statements because the Workflow runtime handles that - the transaction of executing the task is the LUW, not your method. By adding COMMIT WORK you are also committing the workflow task execution.
    In practice however there are the occasional exceptions where something just won't work without an explicit commit - but the theory remains that you should always try it without.
    Regarding your problem, the one way to be certain that a DB update is complete is to use a terminating event - either through change documents or status management.
    Failing that, you can write a wrapper method for SETSTATUS that does something like:
    do 10 times.
      try to lock it.
      if success.
        unlock.
        swc_call_method self 'SetStatus' container.
        set success flag.
      else.
        wait up to 3 seconds.
      endif.
    enddo.
    if no success, raise exception.
    Cheers,
    Mike

  • Populating SAP Database table using JDBC adapter

    Hi Folks,
        I have a requirement to populate a SAP database table say ZTABLE using XI. The Model is the table has to be populated through a file which will be processed by SAP XI. Basically this is a File to JDBC scenario. The database used is ORACLE. Kindly provide me some idea to go ahead.

    I tried to place the MS access table in the shared folder of the Application server system but still it seems the table is not being populated.
    did you check the log in your receiver channel? (/people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn)
    The requirement is to update the tables directly as those are the custom tables.
    i would still say that do not update SAP tables directly from XI/ PI.....this is not a standard architecture/ solution....

  • Database update on navigation

    Dear All.
    I am stuck with a fundamental concept now.
    I update a table in a view, do not commit.
    Click a button and go to next view. There I rollback.
    But the table is still committed.
    I think in ABAP dialog it's the same - go from one screen to another, database update will happen internally.
    Is it the same way in Webdynpro for abap - i.e. navigation to another view does an implicit commit?
    Thanks in adv.

    Hello Aishi,
    The specific example I was referring to is the decoupled infotype framework for updating infotypes.
    This is available for both PA and OM/PD infotypes.
    for more information I'd suggest having a search on SCN - although some of these links may help you:
    [Decoupling Infotypes - SAP Help |http://help.sap.com/erp2005_ehp_04/helpdata/EN/43/a503b963161bbfe10000000a1553f7/frameset.htm]
    also refer to the classes/methods:
    CL_HRPA_MASTERDATA_FACTORY=>GET_PLAIN_INFOTYPE_ACCESS
    CL_HRBAS_PLAIN_INFOTYPE_ACCESS (although it is not as simple to use as the PA access).
    These classes allow you to create all the data first in the buffer and then when you are ready - flush the buffer to the database.
    Although exactly how they work is probably a topic for a different forum - and I've probably already overstepped the bounds of what is reasonable for this forum by mentioning them

  • Database update statistics

    Hi
    I am in the middle of ECC 5.0 installation (IDES). At the step 29 database update statistics, system stops giving error
    CJS-00288  Could not update database statistics. DIAGNOSIS: Command brconnect -c -f crsyn -o SAPDEV returned 128, which is not a success code. SOLUTION: See brconnect.log for details.
    brconnect log is empty.

    Hi Sandhya
    Check the Link:  [Link |http://sap.ittoolbox.com/groups/technical-functional/sap-basis/ides-r3-47-installation-error-1701550]
    and SAP notes 593582 and 145777
    Edited by: Anindya Bose on Dec 10, 2009 2:38 PM

  • Is Session Method has Asyn. processing while database update is Sync ?

    Hi SAP-ABAP Experts .
    Friends , How it is possible that 'Session Method has Asynchronous processing while database update is
    Synchronous ' , May u plz eloborate it .
    I am thinking if processing is Asynchronous then database update should be Asynchronous .
    How it is Synchronous ?
    Best Regards : Rajneesh

    Hi,
    CALL TRANSACTION tcod ... MODE mode
    The specified processing mode can accept the following values:
    'A' Display screen
    'E' Display screen only if an error occurs
    'N' No display
    If the addition MODE is not specified, the processing mode is set to 'A' .
    The MODE Parameter
    You can use the MODE parameter to specify whether data transfer processing should be displayed as it happens. You can choose between three modes:
    A Display all. All screens and the data that goes in them appear when you run your program.
    N No display. All screens are processed invisibly, regardless of whether there are errors or not. Control returns to your program as soon as transaction processing is finished.
    E Display errors only. The transaction goes into display mode as soon as an error in one of the screens is detected. You can then correct the error.
    Have a look at below link for details:
    Using CALL TRANSACTION USING for Data Transfer
    I hope it helps.
    Thanks,
    Kumar

  • Oracle RMAN and SAP Databases

    Hi all,
    Am mainly an Oracle DBA and had just recently return to supporting SAP customers after a 4 year absence of supporting non-SAP customers.
    Anyway, I have some question on using Oracle RMAN with SAP databases. Backup softwares are Netbackup and Data Protector.
    I managed to get the backup working, that is, there is no issues, Oracle RMAN backup using SAP's brarchive and brbackup works alright. My question is about using an Oracle RMAN catalog. I've read thru several SAP documentation and cannot find one where I can use a RMAN catalog.
    Reading from
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/43d7cab9a04a409cc46876e36762c2/content.htm
    Does that mean I cannot use a RMAN catalog? Had anyone managed to use a RMAN catalog to do the RMAN backup?
    *Another question I have is, do I need Netbackup and Data Protector if I want to run RMAN backup to disk via brarchive and brbackup? Does backint requires a SBT library to use RMAN? What I mean is, I want to use RMAN but doing backup to disk instead of to tape which means I don't need the tape library installed, will backint know that this is the case and will not look for the tape library?
    Any advise or feedback on this will be very much appreciated. Thanks in advance.
    Extracts from http://help.sap.com/saphelp_nw04/helpdata/en/d1/43d7cab9a04a409cc46876e36762c2/content.htm are as below:
    The Oracle Recovery Manager (RMAN) is an Oracle backup program. You can use it as a command line interface (CLI) or as a graphical user interface (GUI) in the Oracle Enterprise Manager (OEM). We support RMAN with the SAP backup tools BRBACKUP and BRARCHIVE.
    RMAN uses the System Backup to Tape (SBT) interface to back up to tape devices. We implement SBT using the SAP backup library. External backup tools can implement this interface as a dynamic link library (DLL).
    Integration
    By integrating RMAN into BRBACKUP, you can add security and flexibility to important functions in existing backup strategies and tools:
    · The recovery catalog is not used. The backup information is stored in the control file. After the backup, the control file is also backed up. In a restore, the control file is restored first, followed by the data files.
    · The integration of RMAN into BRBACKUP also guarantees integration into the SAP Structure linkComputing Center Management System (CCMS).
    · BRBACKUP tape management functions as previously (that is, as when using the SAP backup library).
    · You can still use the BACKINT interface with external tools.
    · All previous SAP backup strategies are supported while using RMAN. Nevertheless, RMAN is not supported for standby database backups and split-mirror backups.
    · The following components are delivered with the standard Oracle8 installation:
    ¡ RMAN with the Oracle SBT interface
    ¡ Backup library and backup tool Networker from Legato
    ¡ Legatou2019s BACKINT interface implementation (as of Oracle 8.0.5)
    The SAP installation also delivers the SAP backup library with BRBACKUP and BRARCHIVE.
    Edited by: newbie01.sap on Jun 11, 2010 10:50 AM

    Hi,
    This question has been answered by Stefan Koehler. Not sure why the thread is not updated by his response. I am hoping to give him the max points actually.
    It was a very good response which is as below:
    Subject: Re: Oracle RMAN and SAP Databases
    Message: Hello,
    > Does that mean I cannot use a RMAN catalog? Had anyone managed to use a RMAN catalog to do the RMAN backup?
    Correct - if you are using the BR*Tools and RMAN you are not able to use a RMAN catalog with it.
    You can do manual catalog syncs, but the BR*Tools are not supporting a catalog database.
    >Does backint requires a SBT library to use RMAN?
    Check this documentation (Point "RMAN Backups Without Backup Library"): http://help.sap.com/saphelp_nw04/helpdata/en/3f/9d800e1aec11d2b42c00609419997a/content.htm
    > Any advise or feedback on this will be very much appreciated.
    We are also using RMAN for taking backup of all our oracle database (SAP and non-SAP), but without any BR*Tools.
    That is also possible - check sapnote #105047 (Part "50. Recovery Manager (RMAN)").
    As you mentioned, that you are a fulltime DBA you should have enough knowledge to use RMAN without BR*Tools.
    Regards
    Stefan

  • V1 and V2 database updates???

    Hi...
    can anyone pl give me idea abt V1 and V2 database updates???
    and diffence in b/w them...

    Hi,
    Refer this:
    V1 and V2 Update Modules
    An update is divided into different modules (see also Update Request). Each module corresponds to an update function module.
    There are two types of module.
    The SAP System makes a distinction between primary, time-critical (V1) and secondary, non-time-critical (V2) update modules. The system also supports collective runs for function modules that are used on a regular basis.
    This distinction allows the system to process critical database changes before less critical changes.
    V1 modules describe critical or primary changes; these affect objects that have a controlling function in the SAP System, for example order creation or changes to material stock.
    V2 modules describe less critical secondary changes. These are pure statistical updates, for example, such as result calculations.
    The V1 modules are processed consecutively in a single update work process on the same application server. This means that they belong to the same database LUW and can be reversed. Furthermore, V1 updates are carried out under the SAP locks of the transaction that creates the update (see  The SAP Lock Concept). This ensures that the data remains consistent; simultaneous changes to the objects to be updated are not possible.
    All V2 updates are carried out in a separate LUW and not under the locks of the transaction that creates them. If your SAP System contains a work process for V2 updates, these are only carried out in this work process. If this is not the case, the V2 components are processed by a V1 update process.
    All V1 modules of an update must be processed before the V2 modules.
    Let us assume that a transaction makes planning changes to a material and balance sheet, and updates two sets of statistics.
    Each of these changes is represented by means of an update module (call update function module) in the update request - the two planning changes by a V1 update module (time critical), and the statistical changes by a V2 update module (less critical). (The V1 modules have priority, although the V2 modules are usually also processed straight away).
    Jogdand M B

  • How to upload the data from XML file to SAP database using IDOC

    Hi,
    I need some steps  to upload  data from XML format file from other directory to SAP database using IDOC.
    how to approch this please if any one knows give me ans
    it will be a great help ful to me
    Thanks in Advance
    Mallik

    Thank you vijay,
    But i heard that by using this Fun modules, when we are passing IDOC in back ground schedule,  so some other depended FM not supporting, so how to approach this and how to avoid this problem. 
    Have you worked on this before if any one worked on this please help me out
    And thank you once again for your valuable information
    Best Regards
    Mallik

  • How to retrieve the data from SAP database.

    Hi Pals,
    How to retrieve data from SAP R/3 System to my third party software. I will make my query little bit more clear. There is a list of assets entered and stored in the SAP system. For example 3 mobile phones.
    1) Mobile 1- Nokia
    2) Mobile 2 - Samsung
    3) Mobile 3 u2013 Sony
    Now think I do not know what all assets is there. I have to retrieve the data and get it on my third party software. Just display the list of assets. Lets say SAP XI is also there. Now how will I map it and get the details.
    Please give me step by step method.
    N.B: Just to read the data from SAP database.
    Please make the flow clear step by step.
    Thanking you
    AK

    Hi,
    You can use RFC or ABAP Proxy to make synchronous call with SAP.
    Under RFC or ABAP Proxy Program you can get the data from SAP tables. Direct access to SAP Database is not preferrable even if its possible.
    The better way to go for RFC or PROXY.
    You will send the request from Third party system and the it will be as input parameters from RFC/ Proxy it will response based on it.
    This got it all..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    /people/stefan.grube/blog/2006/09/21/using-the-soap-inbound-channel-of-the-integration-engine
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
    HTTP to RFC - A Starter Kit
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    Refer
    Thanks
    Swarup
    Edited by: Swarup Sawant on Jun 4, 2008 9:32 AM

  • How to "roll back" the model if a database update fails

    I'd like to know if there's a way to "roll back" the model (the values in the managed beans) if a service call to a database fails during the Invoke Application phase. My understanding of the JSF lifecycle is that the values in the model are updated before a service call to a database would happen. If the database update operation fails, it seems to me that the data in the model and the database would be inconsistent.
    For example, say I have a ridiculously simple application that updates a names database. The fields are id, last name, first name. The application has a simple view that allows the user to update a name in the database. The user updates the last name field for a particular record from "Doe" to "Smith" and clicks "submit". The request goes through the lifecycle, the model values are updated from the web form during the Update Model Values phase, then the call to update the database fails during the Invoke Applications phase (the database connection failed). When the Render Response phase completes, the UI would display an error message where I put <h:messages> but the last name value in the UI would show "Smith" instead of "Doe". Is there something I can do to roll the model value back to "Doe" if the database call fails?
    I know that I could redirect to a technical error page, but I'd like to avoid it unless it is the best thing to do.
    I'd appreciate any advice you can offer.
    Thanks.
    - Luke

    I'd like to know if there's a way to "roll back" the model (the values in the managed beans) if a service call to a database fails during the Invoke Application phase. My understanding of the JSF lifecycle is that the values in the model are updated before a service call to a database would happen. If the database update operation fails, it seems to me that the data in the model and the database would be inconsistent.
    For example, say I have a ridiculously simple application that updates a names database. The fields are id, last name, first name. The application has a simple view that allows the user to update a name in the database. The user updates the last name field for a particular record from "Doe" to "Smith" and clicks "submit". The request goes through the lifecycle, the model values are updated from the web form during the Update Model Values phase, then the call to update the database fails during the Invoke Applications phase (the database connection failed). When the Render Response phase completes, the UI would display an error message where I put <h:messages> but the last name value in the UI would show "Smith" instead of "Doe". Is there something I can do to roll the model value back to "Doe" if the database call fails?
    I know that I could redirect to a technical error page, but I'd like to avoid it unless it is the best thing to do.
    I'd appreciate any advice you can offer.
    Thanks.
    - Luke

  • Best Practice for the database owner of an SAP database.

    We recently had a user account removed from our SAP system when this person left the agency.  The account was associated with the SAP database (he created the database a couple of years ago). 
    I'd like to change the owner of the database to <domain>\<sid>adm  (ex: XYZ\dv1adm)  as this is the system admin account used on the host server and is a login for the sql server.  I don't want to associate the database with another admin user as that will change over time.
    What is the best practice for database owner for and SAP database?
    Thanks
    Laurie McGinley

    Hi Laura
    I'm not sure if this is best practise or not, but I've always had the SA user as the owner of the database. It just makes it easier for restores to other systems etc.
    Ken

Maybe you are looking for