SAP and SYBASE Connection

hi all
we are trying to make connection between SAP R/3 and Sybase Unwired plate form.. we have deployed data from R/3 to Sybase using Function Module but still we are unable to update the data of R/3 from Sybase...
Can any One help Us how the data can be updated...
We want to update the Header data of a Notification For this we have code a Function module in SAP R/3..
I m giving U the code Of Function module please chk that code and reply us how the header data can updated. in my Function module I m gettin Some Problem
The code are as Follows....
Import  Tab  :-
Notif   Type     Qmnum    ( chk Bos Pass Value)
Export Tab  :--
TT_data   type    Znotif_data  ( whr ZNotif_data is a table type and having data element with name Qmnum Qmart priok ernam Etc...)
Source Code  :---
FUNCTION Z_NOTIF_GET_DETAIL1.
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(NOTIF) TYPE  QMNUM
*"  EXPORTING
*"     VALUE(TT_DATA) TYPE  ZTT_NOTIF
select qmnum
       qmart
       priok
       ernam
       qmdat
       from qmel
       into table tt_data
       up to 1000 rows.
data : it_tlines like tline occurs 0 with header line.
data : it_text1 like thead occurs 0 with header line.
data : x_header type thead.
      x_header-tdobject = 'feature'.
      x_header-tdname  = '99999996020000'.
      x_header-tdid    = 'head'.
      x_header-tdspras = 'D'.
      loop at it_tlines.
      it_tlines-tdformat = '*'.
      it_tlines-tdline = it_text1-tdtxtlines.
      append it_tlines.
      endloop.
      CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
*         CLIENT                = SY-MANDT
          HEADER                = x_header
         INSERT                = ' '
         SAVEMODE_DIRECT       = 'X'
*         OWNER_SPECIFIED       = ' '
*         LOCAL_CAT             = ' '
*       IMPORTING
*         FUNCTION              =
*         NEWHEADER             =
        TABLES
          LINES                 = it_tlines
       EXCEPTIONS
         ID                    = 1
         LANGUAGE              = 2
         NAME                  = 3
         OBJECT                = 4
         OTHERS                = 5
      IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      commit work and wait.
      update stxh set tdobject = 'D'
      where tdobject = notif.
*UPDATE qmel SET indtx = 'X' WHERE qmnum = notif.
        ENDIF.
ENDFUNCTION.
I have added the tdobject, tdname and tdid data elemnet in that table type
please reply we need it
Edited by: Thomas Zloch on Apr 25, 2011 2:01 PM - code tags added, exclamation marks removed

Solved this on my own, we need to create RFC Function module and Update/Modify data query in that when we need to update data in SAP tables.
Connection is depends on RFC Function Module.
Sample inbuilt RFC's in SAP :
1. MAM30_011_GETLIST
2. MAM30_011_GETDETAIL
3. MAM30_011_CHANGE
Connection Property we need to maintain in SAP connection in Sybase.
Also We need Client Details, Server Machine Name, Connection IP and User Name and Password of User by Which we can test Connection.
Thanks
Ram

Similar Messages

  • WLS 5.1 with SP11 and Sybase connection pools

    I had posted back in January about an issue with WLS 6.1 and Sybase connection
    pools (see posts 12040 - 12043). This issue has now appeared in WLS 5.1 with
    SP 11. I have backed out SP11, but I'd take advantage of the clustering enhancements
    in this SP. Any suggestions? Would it be possible to get another one off patch
    for SP11?

    Could you fill me in as to what problem you were having. We are also using
    Sybase with WLS5.1 and experience intermittent truncating of resultsets.
    Regards,
    Garvin LeClaire
    [email protected]
    "Pete Auriemma" <[email protected]> wrote in message
    news:3c8669ee$[email protected]..
    >
    I had posted back in January about an issue with WLS 6.1 and Sybaseconnection
    pools (see posts 12040 - 12043). This issue has now appeared in WLS 5.1with
    SP 11. I have backed out SP11, but I'd take advantage of the clusteringenhancements
    in this SP. Any suggestions? Would it be possible to get another one offpatch
    for SP11?

  • SAP and TAS Connection through Web Services

    HI Experts,
    we are planning to Integrate SAp and another TAS system using web services (no XI/PI). Please tell me if this way is correct.
    XML format of iDoc will be the data format, web service technology will be used to exchange data between SAP and TAS.
    To Transfer data to TAS, the client application running on SAP server will try to connect to the web service running on TAS server. Once connection is established, idoc data will be sent to TAS, then the connection will be closed.
    To transfer data to SAP, the client application running on TAS server will try to make connection to the web service running on SAP server. Once connection is established, idoc data will be sent to SAP, then the connection will be closed.
    tnx and regards
    Edited by: Technical Group on Dec 6, 2011 4:18 AM

    Hello,
    What will be you Language used for Connection.
    One method i may suggest is use ABAP FTP.
    With this push the files to a file sever location and read it using webservice.
    like wise let webservice generate a file and place a file in location and let ABAP prog pick the file.
    this way you can maintain a status flag for the number of records, thus having a staging area.
    regards,
    Abhishek

  • Comunication between SAP and SWIFTNET

    Hi,
    I need to implement an communication architecture between SAP and swiftnet. I have some doubts about this integration:
    It is possible to implement the SAP Integration Package for SWIFT without BCM?
    The process thought is generate SWIFT files in SAP and put these files in a folder. SAP PI will pick these files and send to an swiftnet shared folder. Did someone has implemented something similar without the SAP Integration Package for SWIFT?
    There is some standard module in PI to encrypt files?
    The txt SWIFT files has to be generated in xml files to SWIFTNET process them?
    Did someone has implemented some similar process using proxies?
    Thanks in advance,
    Regards

    Hi Ricardo
    Yes; there is no need to install SIPS with BCM - there are v arious implementation scenarios with SAP and SWIFTNet connectivity.
    The advantage of BCM is, that the transaction / payments will only be booked in Fi-Co if they were apprvoved and released within BCM.
    Remark: SIPS is licensed trough / included in BCM license.
    SIPS is mainly used to implement SAP LAU based on HMAC-SHA 256 with an XML V. 2 companion file.
    However as mentioned earlier, there are various SAP - SWIFTNet integration scenarios - from a straight forward Fi-Co integration till a fully featured / state of the are SAP blueprint with BCM/PI and SIPS.
    Best regards
    Christoph

  • CR2008 connectivity issue with BOE Universes(sap and non sap universes)

    Hi Experts !!
    Recently we tried to build/connect to a Universe in Crystal Reports2008 via 'Make a new connection tab'.
    The universes are of SAP BW or non SAP Lying in BOE Servers and we are trying to build reports on them by conncting/utilizing the universes as a database for Crystal Reporting.
    Our issue is most of the time we are not able to connect to the Universes and the connectivity blows out by some 'communication Error' thing initially.
    While at some other points in time, the connectivity takes us to the Universe and we are able to select few characteristics and key figures from the Universe but the moment we go futher and try to run by pressing 'OK' button it blows out and say' LOGON FAILED'.
    Apparantly, it is an connectivity issue with BOE server and from the different blogs it looks like it is a known issue for long.
    The proposed issue resolution were like either CR2008 should be SP2 with BOE SP3 or there should be some additional .dll files defined in the paths in case of MSSQL database. None of this applies to us as we are on CR2008 with SP3 and going back to SP2 is probably not a viable option for us, and we are using Oracle as underlying database in this specific case.( i would like to tell you here that we are able to connect to Oracle Database directly though).
    We have raised a message with SAP and was just wondering if we do have some solution/workaround already available to this known issue in place please?
    Thanks&Regards.
    Edited by: AMIT GHILDYAL on Aug 1, 2011 2:41 PM
    Edited by: AMIT GHILDYAL on Aug 1, 2011 2:44 PM
    Edited by: AMIT GHILDYAL on Aug 1, 2011 3:14 PM

    Hi Amit,
    Moved to Universe Forum.
    If you have a case logged then no point posting here also, this is a public site and not a case management tool.
    Once you do get the solution from your case please post it here also to help others if they have the same problem.
    Thank you
    Don

  • SAP Enterprise project connection and Primavera

    Hi, has anyone worked on interfacing SAP ECC and Primavera P6 using SAP EPC Add on. Need some guide on how to!!

    Hi,
    Instguide for epc 2.0 sp 04
    https://websmp106.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000094598&_SCENARIO=01100035870000000202&
    Rin Note:
    1993495 -
    RIN für SAP Enterprise Project Connection 2.0 mit Patch 04 für SP02
    PAM:
    https://websmp102.sap-ag.de/~sapidb/011000358700000103362012E
    br
    Julius

  • Connection between SAP and Documentum

    Hi All,
    We are retrieving some files from Documentum from an ABAP report in SAP using HTTP connection (using Web services). We were successful connections in DEV and QA.
    Now in production, this server is load balacing on 3 servers. Their Prod Server is actually a content switch which redirects to one of the three servers. SAP is able to access all their three servers separately. However when I use the same code to access the Documentum content switch, it fails. We get a HTTP 404 - Not found error -
    Here is the excerpt of code where this error is coming up-
    CALL METHOD w_http_client->response->get_status
    IMPORTING
    code = lv_http_code
    reason = lv_status_text.
    This is pretty much my code I used which worked for Dev/ QA/ Prod individual servers (the content swtich doesnt work!)
    CALL METHOD cl_http_client=>create_by_url
        EXPORTING
          url                = w_string
          proxy_host         = hostname
          proxy_service      = port
        IMPORTING
          client             = w_http_client
        EXCEPTIONS
          argument_not_found = 1
          plugin_not_active  = 2
          internal_error     = 3
          OTHERS             = 4.
      CALL METHOD w_http_client->authenticate
        EXPORTING
          "PROXY_AUTHENTICATION = 'X'
          username = lv_username     
         password = lv_password.
      CALL METHOD w_http_client->send
        EXCEPTIONS
          http_communication_failure = 1
          http_invalid_state         = 2.
      CALL METHOD w_http_client->receive
        EXCEPTIONS
          http_communication_failure = 1
          http_invalid_state         = 2
          http_processing_failed     = 3.
      DATA: status_text TYPE string, http_code type i.
      CALL METHOD w_http_client->response->get_status
        IMPORTING
          code   = http_code
          reason = status_text.
    The Documentum Prod server (content switch) is supposed to be transparent and thus SAP should be able to connect. But this does not happen. Any ideas if any other config is required for SAP to connect to a content switch?
    Pls advise.
    Thanks in advance! Liz

    Hi All,
    Appreciate your suggestions in my problem above. Any ideas anyone?
    Thanks! Liz

  • Simple example of connecting SAP and VB

    Hi Experts
    Can anyone help me providing material or simple example program of connecting SAP and VB for data transfer.
         Its being a tough task for me, pls help me out.
    Thanks in advance.
    Regards
    Rajaram

    Form VB.NET appliaction you have two ways to connect to SAP system and execute BAPI. Either through webservices or by using NCo. Choice depends upon you appliaction requirement.
    For starting with NCo go through
    http://help.sap.com/saphelp_nw04s/helpdata/en/a9/4a57c1bac80e4e977d8cd9b3ecab89/frameset.htm
    OR
    THIS IS ANOTHER WAY TO LOGIN TO SAP THROUGH VB TRY THIS.
    Logon with the SAPLogon control, Use an RFC call from the SAP Function
    Control, and get the results with the SAP Table Factory Control. . .
    You must have SAPGui's FULL install on your machine for this to work (Or at
    least SAPLogon and the RFC toolkit)
    This VBScript example might help, it calls RFC_READ_TABLE in sap, and emails
    the results back to a user from a selected query (In this case uses that are
    locked out.
    This should show you how this could work in practice.
    Thanks,
    Will
    ' Email Locked out SAP users details to user in a .csv file through MS
    Exchange / CDO
    Dim ctlTableFactory, RFC_READ_TABLE, eQUERY_TAB, tblOptions, tblData,
    tblFields, funcControl, objConnection, ctlLogon
    Set objFileSystemObject = CreateObject("Scripting.FileSystemObject")
    Set ctlLogon = CreateObject("SAP.LogonControl.1")
    Set funcControl = CreateObject("SAP.Functions")
    Set ctlTableFactory = CreateObject("SAP.TableFactory.1")
    Set objWindowsScriptShell = CreateObject("WScript.Shell")
    Set objConnection = ctlLogon.NewConnection
    Set filOutputobjFileSystemObject.CreateTextFile("E:\SAP Scripts\LockedUsers.CSV", True)
    objConnection.ApplicationServerobjWindowsScriptShel l.RegRead("HKLM\Software\AccantiaEDI\SAPServer")
    objConnection.SystemobjWindowsScriptShell.RegRead(" HKLM\Software\AccantiaEDI\SID")
    objConnection.SystemNumber = "00"
    objConnection.ClientobjWindowsScriptShell.RegRead(" HKLM\Software\AccantiaEDI\SAPClient")
    objConnection.Language = "EN"
    objConnection.UserobjWindowsScriptShell.RegRead("HK LM\Software\AccantiaEDI\SAPSAPUser")
    objConnection.PasswordobjWindowsScriptShell.RegRead ("HKLM\Software\AccantiaEDI\SAPSAPPassword")
    booReturn = objConnection.Logon(0, True)
    If booReturn True Then
    'MsgBox " Cannot log on! "
    'MsgBox booReturn
    filOutput.WriteLine "ERROR CALLING LOGGING INTO SAP - FAILED LOGINS
    UNKNOWN"
    Stop
    Else
    'MsgBox " Logon OK."
    funcControl.Connection = objConnection
    Set RFC_READ_TABLE = funcControl.Add("RFC_READ_TABLE")
    Set strExport1 = RFC_READ_TABLE.Exports("QUERY_TABLE")
    Set strExport2 = RFC_READ_TABLE.Exports("DELIMITER")
    Set tblOptions = RFC_READ_TABLE.Tables("OPTIONS") '
    Set tblData = RFC_READ_TABLE.Tables("DATA") '
    Set tblFields = RFC_READ_TABLE.Tables("FIELDS") '
    strExport1.Value = "USR02"
    strExport2.Value = ","
    tblOptions.AppendRow
    tblOptions(1, "TEXT") = "LOCNT > 0 OR UFLAG = 128"
    tblFields.AppendRow
    tblFields(1, "FIELDNAME") = "BNAME"
    tblFields.AppendRow
    tblFields(2, "FIELDNAME") = "LOCNT"
    tblFields.AppendRow
    tblFields(3, "FIELDNAME") = "UFLAG"
    If RFC_READ_TABLE.Call = True Then
    If tblData.RowCount > 0 Then
    filOutput.WriteLine "UserName,FailedLogins,LockedFlag"
    ' MsgBox tblData.RowCount
    For intRow = 1 To tblData.RowCount
    filOutput.WriteLine tblData(intRow, "WA")
    Next
    Else
    filOutput.WriteLine "NO FAILED LOGINS OR LOCKED USERS"
    End If
    Else
    filOutput.WriteLine "ERROR CALLING SAP REMOTE FUNCTION CALL -
    FAILED LOGINS UNKNOWN"
    End If
    End If
    Set filOutput = Nothing
    MailProfile = "MS Exchange Settings"
    Set objSession = CreateObject("MAPI.Session")
    LogonOK = objSession.Logon(MailProfile)
    Set objMessage = objSession.Outbox.Messages.Add
    objMessage.Subject = "SAP Users Report - Locked Users + Failed Logins"
    strSetMessage = "There are " & tblData.RowCount & " users that are
    either locked due to failed logins, or have at least 1 failed login attempt
    on system " & objWindowsScriptShell.RegRead("HKLM\Software\Accant iaEDI\SID")
    & vbcrlf &
    reward if useful

  • Regardig  SAP and Microsoft VB connection.

    dear all
    can anybody tell me how to integrate microsoft VB from SAP R/3.
    i dont want vice versa.. i want to integrate VB application through SAP only..
    regards,
    jigar t

    <b>Hi
    If u want to integrate VB with SAP,Then its easy task for u if u know RFC and BAPI in SAP.
    In VB u hv one component called BAPIActiveX controls which will help u to login to SAP thru SAP user ID and Password.
    After that u have to create object type SAP business objects which is nothing but SAP BOR with BAPI.Then u have to Call BAPI thru that Object from VB which will invoke in SAP.
    Take one example hw to create one Sales Order in SAP from VB
    For creating Sales order one Business object is defined in SAP-BUS2032,U can see it in SWO1 Tcode in SAP.Then
    U have create one object type in VB .
    Then thru that Object u have to CALL one BAPI-BAPI_SALESORDER_CRETEFROMDAT1 by filling the parameters from VB and then invoke
    So it will be triggered in SAP and will create one Sales Order in SAP with the parameters given by VB and will return the salesorder number to VB.
    So these are the process followed for integrating VB with SAP.
    Hope now u got.
    Mark points if helpful.
    Regs
    Manas Ranjan Panda</b>

  • PI 7.1 and Sybase integration

    Hi Gurus,
    Could any body post the procedure to integrate SAP PI and  Sybase. I am searching for these doucuments but could not find any.
    Please do the needful.

    integration between different databases are pretty much same procedure. You have to import jdbc driversfor the SYbase database and in the jdbc communication channel you have to reference the connection class. Creating data structure on the database side is pretty much same for all the databases.
    If you need any help on the configuration part, Please post your requirements further here.

  • BOXIR3 and sybase 15

    Hi,
    I have some crystal reports published in BOEXIR3 and sybase ase 15 is the source. My reports have prompts and some time the reports works fine  but other time they failed. I can not schedule them either. Any body knows if XIR3 has connectivity problems with sybase ase 15? Also I have installed open client 15.
    Thanks for your help.

    It seems to be [supported|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2029ee7f-5d56-2b10-098c-8a4cb0564362]
    Open an incident with support if receiving intermittent results while using a supported driver.
    Regards,
    Tim

  • Backup message error -SAP system is running or SAP user is connected to dat

    Hello ..
    when the backup started i got this message error ..before starting the backup, the shell shutdown the sap system but below message was showed
    BR0262I Enter database user name[/password]:
    BR0055I Start of database backup: bedvugxg.aff 2010-08-08 05.31.48
    BR0484I BRBACKUP log file: /oracle/AAA/sapbackup/bedvugxg.aff
    BR0477I Oracle pfile /oracle/AAA/102_64/dbs/initAAA.ora created from spfile /oracle/AAA/102_64/dbs/spfileAAA.ora
    BR0068E SAP system is running or SAP user is connected to database AAA - database cannot be shut down
    BR1025I Please shut down SAP system first or use the 'offline_force' option
    BR0056I End of database backup: bedvugxg.aff 2010-08-08 05.31.48
    BR0280I BRBACKUP time stamp: 2010-08-08 05.31.49
    BR0054I BRBACKUP terminated with errors
    [Major] From:  "OMNISAP" Time: 08/08/10 05:31:49
    BRBACKUP /usr/sap/AAA/SYS/exe/run/brbackup -t offline -d util_file -c -m all -u hpbkup/******* returned 3
    i am new on this, what should i review into the db?
    Regards and thanks in advance
    Dma.

    Hello Daniela,
    you try to perform an offline backup (which is a very uncommon way nowadays) and your SAP system is not down.
    This is also described in the official documentation:
    http://help.sap.com/saphelp_sm32/helpdata/en/0d/d309664a0c11d182b80000e829fbfe/content.htm
    offline: Database backup in offline mode, in other words, the database is shut down during backup. When you select this parameter, BRBACKUP checks that no SAP system users are connected to the database. If an SAP System is active, the database is not shut down and BRBACKUP terminates the process with an error message (message number BR0068E).
    Regards
    Stefan

  • What is the diff.b/w UD connect and DB Connect

    Hai,
              can any one expalin diff.b/w UD connect and DB connect...
    Regards

    Hi Lakshmi,
    please check the threads below
    UD and DB Connect
    DB connection,UD Connect Document
    Also this
    http://help.sap.com/saphelp_nw04s/helpdata/en/a6/c0e51914e842e19bda39dbbe4fe78c/frameset.htm
    hope this helps!
    Regards
    Chandru

  • Data to be fetched from legacy system to SAP and doc needs to bee posted

    Hi Experts,
    I have a requirement where my client is using some application in Legacy system(Fuel Software) which receives fuel(Petrol, Deasel, CNG) in system and issue the same to company owned vehicles and wants that sap should be integrated and document also needs to be posted in sap for all the receivings and isssuences against their vehicles.
    Process Designed is:
    1. Required Data file will be picked from legacy system with some date stamp and will be placed in sap directory.
    2. There will be batch job which will check for new file based on date stamp.
    3. Will pick record n will pass to Goods_mvt_create bapi and then will post the document.
    4. We have created Vehicles as Internal orders in sap and whenever any issue will be there internal order no will be captured.
    5. By this way we are receiving and issuing in sap.
    Now my problem is i am stuck in designing step 1 and rest 2,3,4,5 steps have already been designed and working fine. Need your help in step 1. Else you may suggest some better way-out but again want to mention rest steps are already mapped
    Thanks in advance..

    Hi Ashutosh,
    You can use functions:
    FTP_CLIENT_TO_R3
    FTP_COMMAND
    FTP_COMMAND_LIST
    FTP_CONNECT
    FTP_COPY
    FTP_DISCONNECT
    FTP_R3_TO_CLIENT
    FTP_R3_TO_SERVER
    FTP_SERVER_TO_R3
    FTP_START_REG_SERVER
    FTP_START_SAPFTP
    FTP_STOP_REG_SERVER
    FTP_VERSION
    which allow you to connect from SAP ERP to any FTP server (if the legacy has it). You can validate the sample program RSFTP007.
    Regards,
    Juan

  • Communication between non SAP and SAP

    HI,
    do you have some information about communication between non SAP and ERP (WebAs) SAP System ?
    I would like to receive an xml file or xml IDoc from a Java Plattform (non SAP) into our SAP ERP System as an own defined IDoc.
    remember: we don´t have a converter like XI.
    What about using a proxy (do you have some information/blog how to use that) ?
    What about using a webservice (do you have some information/blog how to use that) ?
    What about storing the xml on the application server (do you have some information/blog how to use that) ?
    How to transform xml to IDoc ?
    other methods ?
    Thanks for your help.
    Gordon

    Here is a link to connecting MS SQL Server with SAP using Open Hub connection.
    http://msdn.microsoft.com/en-us/library/dd299430(SQL.100).aspx
    This might give you some insight into connecting with Non SAP Systems.
    I have used the information from this link to export data from SAP to MS SQL Server.
    Good Luck.
    MP.

Maybe you are looking for