DBCO Connection in ABAP program

Dear all,
I have a test program in production to connect to the DBCO. It connects successfully but failed occasionally. Mean, every few minutes, the connection will become fail! Anyone of u have idea why this happened and how to resolve this? Thank you very much.
I have been tested my test program and the standard ADBC_TEST_CONNECTION at the same time. Sometimes, both are success. Sometimes, when the latter showed success connection, the former will be failed.
Thanks.

Catch the CX_SY_NATIVE_SQL_ERROR exception to get to know the error message. If you are already doing so, provide the error messages ( short and long messages ) when it fails.
Data: DB_EXCEP TYPE REF TO CX_SY_NATIVE_SQL_ERROR.
*-Connect Native DB
  CLEAR: DB_CON_STATUS.
  TRY.
      EXEC SQL.
        connect to :db_name as :sy-uname
      ENDEXEC.
      IF sy-subrc EQ 0.
        db_con_status = 'X'.
      ENDIF.
    CATCH cx_sy_native_sql_error INTO db_excep.
      clear e_dbmsg.
      CALL METHOD db_excep->if_message~get_text
        RECEIVING
          result = e_dbmsg.
      CLEAR: e_dbmsg_long.
      CALL METHOD db_excep->if_message~get_longtext
        RECEIVING
          result = e_dbmsg_long.         
    CLEANUP.
      Clear: db_name, e_dbname.
  ENDTRY.
Edited by: Suman Jagu on Nov 14, 2011 2:10 PM

Similar Messages

  • Abap program to MSSQL connection

    Hello !!
    Do anybody knows how to retrive data directly from  MSSQL server to abap program ,normaly it should by done by defining DBCO connection and using Native SQL statments but  our SAP system is running on UNIX and what I have found for know in sap notes is that connection to MSSQL can only be defined in DBCO transaction if SAP is working on Windows platform. Are there any other solutins to set that conection in situation like mine ??
    BR
    Jacek

    Hi again,
    1. since your system is aix,
       i don't think .DLL files (windows files)
        will work on it.
    2. probably , for MSSQL,
       there must be some other file,
       (for other operating systems like  AIX, UNIX etc).
    3. If that file is installed,
       then something may move further.
    4. Moreover, your basis
      team will have to make a CONNECTION STRING
      (ie. connection from application server
       to MSSQL server)
    5. Once that is made, only then
      we can use in abap.
    regards,
    amit m.

  • ABAP program is cancel , Function ROLLBACK on connection failed

    We have an ABAP program (Z), the following program executes this task:
    1.-Read table A (about 3 million records)
    2.-Read table B (about 6 million records)
    3.-Instert in to B table the match between A and B table
    When the program run in batch or dialog process, it stops without apparently reason, it don not trace any log in ST22 transaction. When we trace it in SM21 trace the following log:
    18:30:23
    DIA
    004
    100
    SE38
    BZ
    Y
    Unexpected return value 1 when calling up DbSlR
    18:30:23
    DIA
    004
    100
    SE38
    BY
    J
    Function ROLLBACK on connection R/3 failed
    18:30:24
    DIA
    004
    100
    SE38
    R3
    9
    Error in DB rollback/SyFlush, return code 016384
    18:30:25
    DIA
    004
    100
    SE38
    Q0
    2
    Stop Workproc 4, PID 8583
    18:30:47
    DIA
    004
    100
    R4
    7
    Delete session 003 after error 023
    The tables and ABAP program are in a BW system in a DB2 v9 database
    Some idea?
    Best Regards

    Hi Malte, I did not find dev_w4, but we found:
    dev_rfc4     bwdadm                    25.11.2008                     18:30:41
    stderr1     bwdadm    25.11.2008     18:30:25
    The stderr1 file was created on the same time that "Stop Workproc 4" event, at 18:30:25
    The stderr1 trace the next log:
    (8558) New Child Process created.
    (8558) Starting local Command:
    Command:  dw.sapBWD_DVEBMGS00
    pf=/usr/sap/BWD/SYS/profile/BWD_DVEBMGS00_MXMLNBW01
    [Thr  1] MtxInit: 30002 0 2
    ICM up and operational (pid: 8577)
    work process W20 died => ThIRollBack: db_rollback
    work process W19 died => ThIRollBack: db_rollback
    work process W1 died => ThIRollBack: db_rollback
    work process W19 died => ThIRollBack: db_rollback
    work process W22 died => ThIRollBack: db_rollback
    work process W19 died => ThIRollBack: db_rollback
    work process W19 died => ThIRollBack: db_rollback
    work process W21 died => ThIRollBack: db_rollback
    The issue is. Why the process is aborted?
    Best Regards
    Edited by: Carlos Orencio on Nov 26, 2008 5:52 PM

  • How to connect to DB2 from ABAP program

    Hi,
    In my ABAP program I need to retrieve 3 fields from one table of DB2 database. I have tried creating an RFC connection in SM59 and then using native SQL in abap code but could not succeed.
    I have also maintained an entry in DBCON table but am unable to connect through program.
    Pls suggest.
    Thanx in advance.

    Preeti-
    DBCON may not work for you because your target is DB2. You SAP system should have the suitable driver files for connecting to DB2 and I don't think currently this is supported.
    However, there are other ways of doing it. One ofcourse is to use a middleware tool, which I guess you don't have in your landscape.
    If investing on a middleware tool is out of scope, here are other options
    1) If you are a microsoft shop, use .NET connector (freely downlaodable from SAP service market place). You can develop a .NET component which will use .NET connector for connecting to SAP and OBDC to connect to your AS400 system. The OBDC drivers can be obtained from IBM.
    2) If you are a java shop, you can develop a java code which can run on your AS400 system or a separte server (windows,unix..).
    This java code will use JRFC/JCO (again downloadable for free from SAP service market place) to connect to SAP while it will use Client access ODBC drivers or JT400 drivers (google JT400) to connect to your DB2 database.
    Though developing this is not a great deal, could be bit challenging if done for the first time. Let me know which way you wanna go and I can guide with more information/code samples.
    KK

  • Connect PostgreSql in ABAP Program

    Hi All,
    I have a requirement, there is an external software with postgresql DB. I want to fetch some data from this postgre DB to in ABAP program. How can i connect this DB in my ABAP program. Please help .
    Regards
    Jitendra Singh

    Hi Jitendra;
    I know 2 way connect to nonSAP DB.
    First : You prepare program at VS .net and use NCO 3.0 (last version)
    Please read below link:
    /people/thomas.weiss/blog/2011/01/14/a-spotlight-on-the-new-net-connector-30
    Second : Native sql method. Other DB admin give you access permision to DB. And You or other expert prepare view or select or stored procedure at other DB. You call "view or select or stored procedure" from SAP with ABAP native SQL commands.
    I used 2 years Native SQL method between SAP and 3.Party Programs DB(Oracle).
    It's very healthy method.
    Please read below link:
    http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3b8b358411d1829f0000e829fbfe/content.htm
    Best regards.
    Edited by: Melih MUTLU on Jun 9, 2011 9:43 AM
    Edited by: Melih MUTLU on Jun 9, 2011 9:51 AM

  • ABAP program can't connect to a HTTP destination

    Hello,
    I have an ABAP program that's used to download data from an internet site. As an internet access proxy has been installed, the program stopped working, displaying an error message:
    ...Connect to host...Port 80 error: NIECONN_REFUSED
    Reading through the forum I found out that it's possible to turn general proxy setting for SAP through transaction SM59 (RFC - proxy configuration), but entering the proxy information didn't help...
    Excerpt from the ABAP code:
    concatenate 'http://www.hnb.hr/tecajn/f'
                      newdatum+6(2) newdatum+4(2) newdatum+2(2)'.dat'
                      into link.
          refresh: itab, resp.
          call function 'HTTP_GET'
               exporting
                    absolute_uri          = link
                    rfc_destination       = 'SAPHTTP'
                    blankstocrlf          = 'X'
               tables
                    response_entity_body  = itab
                    response_headers      = resp
               exceptions
                    connect_failed        = 1
                    timeout               = 2
                    internal_error        = 3
                    tcpip_error           = 4
                    data_error            = 5
                    system_failure        = 6
                    communication_failure = 7
                    others                = 8.
    Any ideas? I'm not an ABAP-er but I still can make small changes in code - are there any parameters that can be inserted in the code to direct the function to use proxy?

    Suzy Bijnens wrote:
    > Hi,
    > I would talk to the guys setting up the proxy firewall. You need to make sure that access from your SAP server to port 80 is open.
    > In SAP use transaction SE38 program RSRFCTRC to read RFC traces (only when this option is marked in the RFC destination in SM59) or use tr SM58.
    > Rgds,
    > Suzy
    Efectively, the port is not 80, the connection to the proxy is good. I took a look in the trace and it seems to me that my program doesn't use proxy?...
    .....640 .......H
    TTP_GET.........
    ...Cu0147Á=     ä¸F.ú..
    ..;...3...1401.6
    DEai..3.........
    .ERROR......RLEN
    GTH......STATUS.
    .....STEXT......
    CONVERT......X..
    ....ELENGTH.....
    ...........PPWD.
    ....<
    ......*PROXY*....
    .<
    ....PUSER.....<
    .PWD...... .....
    .TIMEOUT........
    ........TRACE...
    ...Y......URI...
    ..ôhttp://www.hn
    b.hr/tecajn/f010
    109.dat

  • ABAP program is terminated with error Function ROLLBACK on connection R/3

    Hi,
    We are reading a DB table A and matching with table B and placing into a internal table and further looping at the internal table.
    Table A has 3- 5 million records
    Table B has 2-4 million records
    When the program run in batch or dialog process, it stops without apparently reason, it don not trace any log in ST22 transaction. When we trace it in SM21 trace the following log:
    22:18:33 BTC  014 100                BZ  Y Unexpected return value 1 when calling up DbSlR
    22:18:33 BTC  014 100                BY  J Function ROLLBACK on connection R/3 failed
    22:18:33 BTC  014 100                R3  9 Error in DB rollback/SyFlush, return code 016384
    22:18:33 BTC  014 100                Q0  2 Stop Workproc14, PID 729286
    22:18:33 BTC  014 100                F3  T Invalid object name for TemSe object: " "
    22:18:33 BTC  014 100                EC  F Failed to create log for job BIDTPR_291659_1 22085900%_IMMEDIATE %NEWSTEP/
    22:18:33 BTC  014 100                F2  0 Calling program reports invalid handle for TemSe object (magic==X'NULL-ptr'
    22:18:33 BTC  014 100                R4  7 Delete session 001 after error 023
    The tables and ABAP program are in a BW system.
    Any idea what would be the cause. I found  a similar problem in the forum but no solution provided there..
    Regards
    Rob

    Hi Rob,
    Please check the entries in the work process trace file from this time (dev_wp14 from the work directory)
    Error in DB rollback/SyFlush, return code 016384
    usually has a preceding entry in the wp log of
    SHO: Could not allocate SHO segment of ..... bytes (rc=1)
    Usually this is a result of a SELECT statement that returns a very large result set is executed.             
    While the result set is fetched the ABAP heap is exhausted. Since no             
    more memory is available the ABAP engine abruptly cancels the execution          
    and begins error handling. The database interface rejects to execute a           
    ROLLBACK statement while the SELECT statement is still active. As the            
    rollback fails the task handler restarts the SAP work process and no             
    ABAP short dump or job log entries can be written.                                                                               
    The rejected ROLLBACK is a direct result of the lack of ABAP heap memory         
    and does not represent an error in itself.                                                                               
    The solution here is to increase the memory areas "extended memory" and          
    / or "heap". Please check/adjust your SAP memory settings!
    As mentioned, Similar issues have been resolved with the note #741864.                     
    The key is that the abap/shared_object_size_MB is too small for the          
    system and the operation performed, please increase this to 100MB to         
    start from the default of 20MB and then increase further if the dump         
    persists as more maybe needed of course. There is no problem increasing      
    this parameter since you have a 64bit system and SAP kernel.                                                                               
    Similar issues have been resolved with the note #741864 and note #986790     
    along with the increase in abap/shared_object_size_MB. These notes may       
    not be necessary just the increase but this issue frequently occurs in       
    these areas so perhaps they can help.                                        
    Hope this helps,
    Paul

  • Passing data from abap-program to mssql database table thro native sql

    Hi,
    To pass the data from abap-program to mssql server,i have created database connection through dbco t.code.
    now i am trying to get connection thro native sql but am not able to get it .Am working in ECC 5.0.
    Could anyone help me on this.Did i miss anything?
    i have tried Native-sql like this.
    DATA: CON_NAME LIKE DBCON-CON_NAME VALUE 'BIW'.
    EXEC SQL.
      CONNECT TO :con_name AS 'C1'
    ENDEXEC.
    Thanks in advance.

    Hi,
    Trying to do the same here, only using Oracle DB.
    DATA:     dbc TYPE DBCON_NAME VALUE 'BI'
    TRY.
      EXEC SQL.
        CONNECT TO :dbc
      ENDEXEC.
      IF sy-subrc NE 0.
        RAISE EXCEPTION TYPE cx_sy_native_sql_error.
      ENDIF.
    CATCH cx_sy_native_sql_error INTO oref_native_sql_error.
      sql_emsg = oref_native_sql_error->get_text( ).
      MESSAGE sql_emsg TYPE 'I'.
    ENDTRY.
    I keep getting the message 'Native SQL exception has occured' (because of the RAISE statement, I wonder how we can get a meaningfull error description).
    Of course this can be a result of a number of network issues, so I'm trying to resolve this together with my BC admin.
    I suggest the same to you..
    In the meantime, if anyone can help out, it will be appreciated.
    Regards,
    SD

  • Update database outside SAP using Abap program

    Hi guys, I have the following scenario:
    Today, I have an abap program that calls a RFC to update a database outside SAP using Business Connector.
    The problem is that I won't be allowed to use Business Conncetor (and can't use XI too) to access the outside database (SQL Server 05).
    Is possible to update the SQL Server 05 from an Abap program without a Java based connector? Because my main problem is that I can't use Java...
    Thank you
    Robert

    hi,
    you can use the database connection
    >exec
    > native sql statment
    >endexec
    check theese links for generating source code in ABAP
    [How to use INSERT in EXEC SQL ...... ENDEXEC ?;  insert data to external database
    [exec sql help;  read data from external database
    check theese links for configurating of DBCO (DataBase COnnection)
    [/thread/108422 [original link is broken];
    [http://help.sap.com/saphelp_nw04/helpdata/en/df/455ec9747111d6b25100508b6b8a93/frameset.htm]
    hope that is useful.
    Regards
    Marco

  • Native sql DBCO, CONNECT statement short dump

    Hi ALL ,
    I am facing the  problem here.  please help me out in this.
    i am trying to connce to the external database MSS, i made all the entries in the DBCO t-code and writing the follwoing native sql statement.
    EXEC SQL.
    CONNECT TO 'AAJ' AS 'V'
    ENDEXEC.
    EXEC SQL.
    SET CONNECTION 'V'
    ENDEXEC.
    The above statement is not giving any error  when i activate it but when i execute it is giving me shortdump error .
    I already maintan   entries in DBCON table or DBCO t-code
    And also tel me once it is connect how can i access the data from MSS (Microsoft sql server)i mean what kind of statement.
    helpfull answer will be rewarded.
    Anees
    9886358645
    Message was edited by:
            anees jawad

    Native SQL
    Open SQL allows you to access database tables declared in the ABAP Dictionary regardless of the database platform that you R/3 System is using. Native SQL allows you to use database-specific SQL statements in an ABAP program. This means that you can use database tables that are not administered by the ABAP Dictionary, and therefore integrate data that is not part of the R/3 System.
    As a rule, an ABAP program containing database-specific SQL statements will not run under different database systems. If your program will be used on more than one database platform, only use Open SQL statements.
    Native SQL Statements in ABAP Programs
    To use a Native SQL statement, you must precede it with the EXEC SQL statement, and follow it with the ENDEXEC statement as follows:
    EXEC SQL [PERFORMING  )
    The parameters are separated by commas. You must also specify whether the parameter is for input (IN), output (OUT) or input and output (INOUT). For further information, refer to SAP Note 44977.
    EXEC SQL
       EXECUTE PROCEDURE proc1 ( IN , OUT :y )
    ENDEXEC.
    Cursor Processing
    Cursor processing in Native SQL is similar to that in Open SQL:
    OPEN
      ENDIF.
    ENDDO.
    EXEC SQL.
      CLOSE c1
    ENDEXEC.
    This example opens a cursor, reads data line by line, and closes the cursor again. As in Open SQL, SY-SUBRC indicates whether a line could be read.
    Data Types and Conversions
    Using Native SQL, you can
    Transfer values from ABAP fields to the database
    Read data from the database and process it in ABAP programs.
    Native SQL works without the administrative data about database tables stored in the ABAP Dictionary. Consequently, it cannot perform all of the consistency checks used in Open SQL. This places a larger degree of responsibility on application developers to work with ABAP fields of the correct type. You should always ensure that the ABAP data type and the type of the database column are identical.
    If the database table is not defined in the ABAP Dictionary, you cannot refer directly to its data type. In this case, you should create a uniform type description in the ABAP Dictionary, which can then be used by all application programs.
    If the table is defined in the ABAP Dictionary, you should remember that the sequence of fields in the ABAP Dictionary definition may not be the same as the actual sequence of fields in the database. Using the asterisk (*) in the SELECT clause to read all columns into a corresponding work area would lead to meaningless results. In the worst case, it would cause an error.
    The Native SQL module of the database interface passes a description of the type, size, and memory location of the ABAP fields used to the database system. The relevant database system operations are usually used to access and convert the data. You can find details of these operations in the manuals for the programming interface of the relevant database system. In some cases, Native SQL also performs other compatibility checks.
    The documentation from the various database manufacturers provides detailed lists of combinations of ABAP data types and database column types, both for storing ABAP field values in database tables (INSERT, UPDATE) and for reading database contents into ABAP fields (SELECT). You can also apply these descriptions for the input and output parameters of database procedures. Any combinations not listed there are undefined, and should not be used.
    The following sections provide details of the data types and conversions for individual databases. Although they are database-specific, there are also some common features.
    Recommended type combinations are underlined. Only for these combinations is behavior guaranteed from release to release. For any other combinations, you should assume that the description only applies to the specified release.
    The results of conversions are listed in a results column:
    "OK": The conversion can be performed without loss of data.
    Operations that fail are indicated by their SQL error code. Errors of this kind always lead to program termination and an ABAP short dump.
    In some cases, data is transferred without an SQL error occurring. However, the data is truncated, rounded, or otherwise unusable:
    Right truncation.
    "Left" or "right" applies to the normal way of writing a value. So, for example, if a number is truncated, its decimal places are affected.
    : Left truncation
    : Number is rounded up or down during conversion
    : A number that was "too small" is rounded to 0 (underflow)
    : The conversion result is undefined.
    There are several possible results. The concrete result is either not known at all, or can only be described using a set of rules that is too complicated for practical use.
    : The conversion returns the SQL value NULL.
    : The conversion is performed without fields and unchecked.
    The original data is converted, but without its format being checked. The result may therefore be a value invalid for the result type, which cannot be processed further. An example of this is a date field containing the value "99999999" or "abcdefgh" after conversion.
    Combinations of ABAP data type and database column type can be divided into finer subcategories. Here, for example, using the transfer direction ABAP ® database (INSERT, UPDATE):
    If the width of the ABAP field is greater than that of the database column, the ABAP field may contain values for which there is not enough space in the database column. This can produce other cases: The concrete data value in ABAP finds space in the database column, or not.
    If the ABAP field is at most as long as the database column, there is always space for the ABAP value in the database column.
    Some types, such as numeric columns, expect values in a particular format. This is particularly important in connection with character types, for example, when you want to write an ABAP character field (type C) into an integer column.
    Native SQL for Oracle
    Native SQL for Informix
    Native SQL for DB2 Common Server
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm

  • Triggering Event in BW through a ABAP Program in R/3

    Hello Friends,
    I am working on triggering a process chain in BW using ABAP program in R/3.
    1.  I have created a test process-chain in BW which sends test email upon running. This process chain is triggered by an event "Z_START_PC".
    2.  I created a function module "ZBW_EVENT_RAISE" which triggers this event.
         ( This function module is "remote enabled module")
    3.  I tested running the process chain, with function-module (SE37), which works fine.
         ( i.e. I do receive test-email after..)
    4.  Now I created a ABAP program "ZBW_EVENT_RAISE" in R/3.
         The code of which is as follows:
         REPORT  ZBW_EVENT_RAISE.
        parameters: rfcdest like t000-logsys.
        parameters: bwevent like tbtco-eventid.
        call function 'ZBW_EVENT_RAISE'
        destination rfcdest
         exporting
         eventid = bwevent.
    5.  When I try to run this ABAP program in R/3 (SE38),
         The process chain does not get triggered.
      (a)  The "<b>rfcdest</b>" i got from SM59 - RFC Destinations -
            R/3 Connections - BW Development Server Client
            Value is "BWDCLNT999".
    How do I go about debugging this issue? I know for sure, the BW- function module -- to Trigger -- to Process-chain is working fine. Only part is R/3 to B/W function module starting.
    Any help is appreciated.
    I promise to award points.
    Thanks
    PK

    in ST05 there is an option for RFC trace. Not sure how much detail that will give you but you can try.
    It is possible that your userid doesn't have an RFC call authorization in R/3. Do a SU53 immediately after running the program.
    Also, replace the FM with any other FM that you know for sure runs  (eg some BAPI FM) and run it - either in SE37 in R/3 with RFC destination for BW, or, from your code itself and see if that works (you can check return code).

  • Crystal Report on SAP R/3 ABAP Program or Transaction Code

    Hi Experts,
    I am working on SAP BI, my current requirement is to develop a dashboard. Client given the list of reports and they want to see these reports as a dashboard in BO. All these reports are SAP R/3 ABAP Programs. My doubt here is, is it possible to connect directly or bring directly a ABAP program in crystal reports. I know that form crystal reports we can connect to SAP R/3 through SAP Table, Cluster , Function Modules and so on.
    Anyone please clarify this doubt.
    Thanks & Regards
    Ramakrishna Kamurthy

    Moving to Integration kits forum: Questions re: Crystal Reports/Enterprise to SAP Integration Kit - SAP

  • Termination occurred in the ABAP program "RK2APA00_POST" - in

    Hi everybody...I have a cancelled job when run only in applications servers , I see a dump "message typeX" , but when job run in Central Instance not cancelled and finish ok.
    The name Job is Zcupon and attach to continue dump info , sorry for extended but I want send all information possible.
    know if you can add a file with the abstract and not have to paste the text of the dump, thanks for the help they can deliver.
    Regards....Freddy Solar....
    Errores tiempo ejec.   MESSAGE_TYPE_X
    Fecha y hora           18.11.2008 06:35:30
    Texto breve
    The current application triggered a termination with a short dump.
    ¿Qué ha sucedido?
    The current application program detected a situation which really
    should not occur. Therefore, a termination with a short dump was
    triggered on purpose by the key word MESSAGE (type X).
    Anál.errores
    Short text of error message:
    RFC_ERROR 4 Conversation 93690218 not found / CPIC-CALL: 'ThSA
    Technical information about the message:
    Message classe...... "KE"
    Number.............. 628
    Variable 1.......... "RFC_ERROR"
    Variable 2.......... 4
    Variable 3.......... "Conversation 93690218 not found / CPIC-CALL: 'ThSA"
    Variable 4.......... " "
    Last error logged in SAP kernel
    Component............ "SAP-Gateway"
    Place................ "SAP-Gateway on host SCPAPP1 / sapgw03"
    Version.............. 2
    Error code........... 728
    Error text........... "Conversation 93690218 not found"
    Description.......... " "
    System call.......... " "
    Module............... "gwxxrd.c"
    Line................. 6156
    The error reported by the operating system is:
    Error number..... " "
    Error text....... " "
    Notas para corregir errores
    Probably the only way to eliminate the error is to correct the program.
    You may able to find an interim solution to the problem
    in the SAP note system. If you have access to the note system yourself,
    please use the following search criteria:
    "RK2APA00_POST" "MESSAGE_TYPE_X"
    If you cannot solve the problem yourself, please send the
    following documents to SAP:
    1. A hard copy print describing the problem.
    To obtain this, select the "Print" function on the current screen.
    2. A suitable hardcopy prinout of the system log.
    To obtain this, call the system log with Transaction SM21
    and select the "Print" function to print out the relevant
    part.
    3. If the programs are your own programs or modified SAP programs,
    supply the source code.
    To do this, you can either use the "PRINT" command in the editor or
    print the programs using the report RSINCL00.
    4. Details regarding the conditions under which the error occurred
    or which actions and input led to the error.
    Entorno sistema
    SAP-Release 700
    Application server... "SCPAPP1"
    Network address...... "10.1.40.130"
    Operating system..... "Windows NT"
    Release.............. "5.2"
    Hardware type........ "4x AMD64 Level"
    Character length.... 16 Bits
    Pointer length....... 64 Bits
    Work process number.. 3
    Shortdump setting.... "full"
    Database server... "BALTICO"
    Database type..... "DB400"
    Database name..... "SCP"
    Database user ID.. "R3SCPDATA"
    Char.set.... "C"
    SAP kernel....... 700
    created (date)... "Jun 30 2008 00:10:07"
    create on........ "NT 5.2 3790 Service Pack 1 x86 MS VC++ 14.00"
    Database version. "DB4_53"
    Patch level. 167
    Patch text.. " "
    Database............. "V5R3, V5R4, V6R1"
    SAP database version. 700
    Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2, Windows
    NT 6.0"
    Memory consumption
    Roll.... 16192
    EM...... 159213920
    Heap.... 0
    Page.... 5660672
    MM Used. 145143664
    MM Free. 5680112
    Usuario y transacción
    Client.............. 400
    User................ "ZUSRTARJETAS"
    Language key........ "S"
    Transaction......... " "
    Program............. "RK2APA00_POST"
    Screen.............. "SAPMSSY0 1000"
    Screen line......... 6
    Info posición de cancelación
    Termination occurred in the ABAP program "RK2APA00_POST" - in
    "INSERT_CE4_FLUSH_BUFFERS".
    The main program was "ZVI_CUPON ".
    In the source code you have the termination point in line 100
    of the (Include) program "RKEVRK2A_POST_COMMIT__FIX".
    The program "RK2APA00_POST" was started as a background job.
    Job Name....... "ZCUPON"
    Job Initiator.. "ZUSRTARJETAS"
    Job Number..... 02044200
    Detalle código fuente
    Lín.
    Txt.fte.
    70
    subrc = sy-subrc.
    71
    CLEAR: g_t_ce4a_dbbuf[], g_t_ce4_dbbuf[].
    72
    73
    case subrc.
    74
    when 1.
    75
        Records were to be inserted into the acct.ref. table CE4xxxx_ACCT
    76
        but the acct. reference numbers were already occupied. Most likely
    77
        This problem is due to a explicit or implicit change to the
    78
        number range COPA_OBJ (subobject is the operating concern)
    79
        e.g. caused by illegally transporting the contents of CO-PA
    80
        transaction data table contents (CE4xxxx / CE4xxxx_ACCT).
    81
        Please check OSS for notes with keywords RKEVRK2A_POST, KF216
    82
        and CE4XXXX_ACCT. If you do not find any applicable notes please
    83
        log an OSS message.
    84
    MESSAGE x216(kf) WITH gc_ce4acct_name.
    85
    86
    when 2.
    87
        Records were to be inserted into the segment table CE4xxxx
    88
        but the segment numbers were already occupied. Most likely
    89
        This problem is due to a explicit or implicit change to the
    90
        number range COPA_OBJ (subobject is the operating concern)
    91
        e.g. caused by illegally transporting the contents of CO-PA
    92
        transaction data table contents (CE4xxxx).
    93
        Please check OSS for notes with keywords RKEVRK2A_POST, KF203
    94
        and CE4XXXX. If you do not find any applicable notes please
    95
        log an OSS message.
    96
    MESSAGE x203(kf).
    97
    98
    when 3 or 4.
    99
        Communication error in RFC-Call
    >>>>>
    message x628(ke) with 'RFC_ERROR' subrc msg_text.
    101
    102
    endcase.
    103
    104
    ENDFORM.
    105
    Edited by: freddy solar on Jan 2, 2009 8:39 PM

    Hi,
    it looks like you have some problem with RFC. It stopped on the following line:
    * Communication error in RFC-Call
    message x628(ke) with 'RFC_ERROR' subrc msg_text.
    Ask your basis guy to check it. The job on application server tried to connect to the central instance and it failed. The job run on central instance does not need to make any RFC call. Hence there is no problem in this case.
    Regards

  • How use a proxy consumer web service in ABAP Program with local interface

    I generate a proxy class based on a WSDL file.
    I want to use this class in an abap programm without a connection but using XML files in local.
    I see with the class CL_PROXY_LOCAL_ADAPTER that it is possible to execute without connection but for use this, it's necessary to use the method REGISTER.
    This method have two parameters : Class Name and Interface Name.
    Class name is the name of my proxy class, but I don't know how to find the interface name.
    I think that a local interface is needed to generate but I don't know how to generate in interface with entries in SPROXSIG table ?
    Could you help me ?

    Check out the following links to see if it meets your needs.. Has examples to call a ABAP proxy (that consumes a webservice) from ABAP program...
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/frameset.htm (webservices ->webservices toolset -> examples)
    http://help.sap.com/saphelp_dm40/helpdata/en/1a/b69d427cab0831e10000000a1550b0/frameset.htm

  • Capture Weigh Bridge Reading in ABAP Program through RS232 port

    Dear SAPers,
    I am in Cement Implementation Project and i have requirement to Connect Weigh Bridge to SAP ERP and capture the readings of that Weigh Bridge in ABAP program.
    How can i capture those readings in ABAP program or save them in a Z table using RS232 port????
    Best Regards,
    Kholoud
    Moderator message: please do not cross-post.
    Edited by: Thomas Zloch on Mar 17, 2011 1:22 PM

    Dear Vijay,
    I'm having the same problem in my implementation, the client needs me to capture the readings from Weigh Bridge through RS232 port directly to ABAP program.
    Could please tell me how did you solve this??
    Thanks
    Kholoud

Maybe you are looking for

  • Can't delete groups in Address Book

    I have a couple of local groups in my Address Book that refuse to delete. Even though the "Delete Group" dialog pops up when I highlight the group and press the Delete-key, they are still there after hitting the OK button. When I create new groups (p

  • Editable Drop-Down List

    Hello! I am using Dreamweaver's Editable Drop-Down List Application panel, Server Behaviors > + > Developer Toolbox > Form Controls > Editable Drop-down Which has been a GREAT option, but I need to add on 1 option, when I am about to ADD an item to t

  • Webpager

    I'm trying to use the webpager,but it dosen't work.Who can help me? Thank you! Attachments: question.png ‏68 KB

  • Web cam recommendation

    http://webcam-osx.sourceforge.net/cameras/index.php Can anyone recommend a web cam from this list I could get for may parents' eMac 1.0 GHz running 10.3.9? Thanks!

  • Error 7 file not found NI-488 nonexistent GPIB interface

    I'm trying to use an accelerometers with cRIO through NI 9234. I'm using an Fpga example which I modified according to my characteristics. Till here, everything is OK, nevertheless when I open the Fpga vi file and I run it compilation is not finished