Connecting SAP with Excel (Beginner)

Hello!
I'm new to the SAP scripting. On my company we use lots and lots of Excel spreadsheet lists with sales orders and projects, which is why i need to learn to connect those lists with SAP.
I have a list of sales orders in Excel starting downwards from cell A2 and I want to get the exchange rate on each of the orders from the header of VA03, so that the script copies the currency rate of each sales order next to the order number in the spreadsheet.
How do i do this? :s
Thanks, Mattias

Hi Mattias,
if you have allready worked with Scripting (Recording) you allready have the way to connect excel with SAP
To Connect an existing Instance of SAP with Excel you will need this code:
Public sapsession
Public Sub Connect_SAP()
If Not IsObject(SAPguiApp) Then
Set SAPguiApp = CreateObject("Sapgui.ScriptingCtrl.1")
End If
If Not IsObject(sapsession) Then
Set sapsession = sapConnection.Children(0)
End If
If IsObject(WScript) Then
WScript.ConnectObject sapsession, "on"
WScript.ConnectObject sapApplication, "on"
End If
End Sub
at end of all action you have to destroy all objects
Public Sub Destory_SAP()
set sapsession = nothing
set sapapplication = Nothing
set sapGuiapp = Nothing
End Sub
PS Look for Threads that have the same Title as yours -
There are many in this forum ...
Greetings
Thomas B

Similar Messages

  • Link SAP with Excel

    Hello SAP Gurus-
    Every month we have to download various reports from SAP (ME2J, FS10N, FD10N, FK10N and others) and export it to excel. Than in excel, we have to mannually format the same.
    Is there a way we can link SAP with excel? Like if anyone in my company posts against particular vendor, it will automatically update the excel file that will have report from FK10N (Vendor Balance Display)
    One of my friend at Bloomberg said that their SAP is linked to excel where excel is updated automatic. But I could not get any further details on how it works.
    Please let me know if there is a way we can implement this system in our company.
    Thank You in advance.
    Jai

    Hi,
    You have to direct download it in to the Excel sheet without export to excel file.
    E.g:- If you need to download the balance or any data fron the spreatsdeet amd yu download the file and give the file name as .xls it will download in the excel format.
    May hope this is helpgul
    Regards,
    Kanike

  • Connecting SAP with an independent SQL database

    Dear all,
    I need to connect SAP with an independent MSSQL database.
    My requirement is to transfer a set of records from my Ztable to a table in SQL database.
    I have maintained the settings in DBCO transaction. I maintained DBMS as 'MSS' in DBCO.
    send some sample code of how to establish the connection. Is it possible to write data in to SQL database.
    How to edit the file tnsnames.ora in application server directories. I heard that for connecting to an oracle database we need to edit this , is it necessary to edit this tnsnames.ora even for connecting with SQL database?
    Thanks in advance.
    Lakshman

    This is not possible.
    My suggestion is that you create shell scripts on the unix side that copy the data to the other database.
    ARD runs it's own private copy of PostGgreSQL inside the package so it won't interfer with any other SQL databases on the network or even on the machine.

  • Steps needed or any guidance to connect SAP with DB2,

    Hi Experts,
    I need detailed steps to connect SAP with DB2 server. If any standard document or any one is having any docs / hints can provide , it would be a great help to me.

    Hello Mamata,
    If your current ECC 6.0 is also on DB2/400, you can use DBCO - outlined in the following blog.
    /people/sap.user72/blog/2006/08/31/configure-dbco-database-multiconnect-on-ibm-i5iseries
    If the retail business can be moved to SAP solution, plain SAP RFC just works fine. If not, you can install a SAP gateway instance on DB2.
    There are many options. It could be hard to identify the best choice without a detailed review/analysis.
    Best regards,
    Victor

  • Connecting SAP with VB 2010

    Dear gurus
    I'm Using Visual Basic 2010 and i want to connect SAP from my applications.
    I have find that SAP net connector works only on VB 2003 not for upgraded version.
    Can you please guide me
    Regards
    Saad Nisar

    Hi Saad,
    The current NCo version is limited to usage with .NET 1.1 and within VS2003.
    However, there is a by SAP-documented workaround to enable the NCo to also utilize with .NET 2.0 and later runtime context / and within VS2005 and later: [Using SAP Connector for MS .NET (NCO) in Microsoft Visual Studio 2005|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/92333e6b-0b01-0010-9cbf-fecd62d6c895]
    Note also that SAP has a new version of NCo in the pipeline - .NET Connector 3.0 - it might be worth it to try to participate in the beta program. See [SAP announces new release of SAP .NET Connector|http://williamvanstrien.blogspot.com/2010/06/sap-announces-new-release-of-sap-net.html]
    Also see this earlier [post|Re: Which connector to use?]
    Best regards, William.

  • Connecting SAP HRIS with Kenexa BrassRing

    Hi Experts...
    I am not sure that HR would be the right forum to discuss this but since this is HR related, I'll take a stab...
    We would like to connect SAP with Kenexa BrassRing. Since we do not use SAP PI, we will need to directly connect with Kenexa BrassRing.
    What are our options to connect and transfer data between the two system. I have been reading about using XML but are there other options to look at. What would you suggest that would be easy to implement and maintain.
    Thank you in advance for all responses...
    Regards,
    Harshal

  • Xcelsius 2008 with Excel XML Maps and Excel 2007

    Hi guys,
    I'm getting great results with the Excel Xml maps feature,
    the problem is we upgraded to Excel 2007 and now Xcelsius can't seem to find the Xml Map connections any more.
    I did some testing, it seems that an XML connection created in Excel 2003 works fine, but Xcelsius just doesn't see any connection created with Excel 2007.
    Any ideas?
    Thanks!
    Roy

    Mark,
    It seems like that may have been something to look into prior to purchasing the product. You're a creative guy though, try to work around with the Excel sheet in the backend. I'm sure you can manage what you need with only one connection.
    The key to being an Xcelsius expert is to know how to work around any problem.
    Do you need this to be live data? If not, you could try the Excel -> Import External Data function.
    I hope that helps!
    Thanks,
    Brian

  • Configuring JCo3 Connection Pool with single sign on on non SAP Java server

    Hi Everyone,
    i have configured a connection pool on JBoss as per JCo3 Documentation and is working great.
    Now I need help to configure this connection pool with single sign on so that RFc on SAP ECC systems are executed using end users credential rather than using single user name password used to configure JCo connection pool.
    On SAP Java stack I am sure its possible within Java WebDynpro    and i assume using JCA resource adapter. But what if we don't want to use SAP Java App server.
    Any help will be appreciated.
    Thanks,
    Divyakumar Jain

    Eason, 你好!
    I have exactly the same problem.  Did you find a solution to this problem?  If so, please let me know!

  • 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

  • Internal server error while connecting SAP's customer financial fact sheet with iOS device

    Hi all,
    I am trying to connect SAP's customer financial fact sheet latest ( version 3.7)   with iOS phone/iPAD (version 7.1) but it shows internal server error,
    when trying to connect  Neither "Gateway (direct)" nor "SMP Cloud" enabled with port 80/443.
    On other hand my android devices with this app is working ok.
    Trace Log is below:
    2014-09-11 11:27:58.298 Debug Communication error: Error Domain=HTTPRequestErrorDomain Code=11 "INTERNAL SERVER ERROR" UserInfo=0x15eef620 {NSLocalizedDescription=INTERNAL SERVER ERROR}
    2014-09-11 11:27:58.295 Debug Request http://server:8010/url t finished with error Error Domain=HTTPRequestErrorDomain Code=11 "INTERNAL SERVER ERROR" UserInfo=0x15eef620 {NSLocalizedDescription=INTERNAL SERVER ERROR}
    response <?xml version="1.0" encoding="utf-8"?><error xmlns:xsi="http://www.w3.org/2001/XMLSchema-Instance"><code>HTTP/500/E/Internal Server Error</code><message> Call of service /sap/opu/odata/sap/fincustfactsheet terminated because of an error. The following error text was processed in system NQT : The ASSERT condition was violated.The error occurred on the application server . The termination type was: RABAX_STATE.If the termination type is RABAX_STATE, you will find more information on the cause of termination in system NQT in transaction ST22. If the termination type is ABORT_MESSAGE_STATE, you will find more information on the cause of termination on the application server  in transaction SM21. If the termination type is ERROR_MESSAGE_STATE, you can search for further information in the trace file for the work process in transaction ST11 on the application server . You may also need to analyze the trace files of other work processes. If you do not yet have a user ID, contact your system adminmistrator. </message></error>
    2014-09-11 11:27:58.286 Debug [ERROR] 500:INTERNAL SERVER ERROR/Location:-[ODPRequest startSynchronous] + 1427
    2014-09-11 11:27:56.239 Debug DE:Using SUP Manual User
    2014-09-11 11:27:56.238 Debug DE:Get svcDoc URL http://server:8010/url
    2014-09-11 11:27:56.216 Debug DE:startSAPODataRequest CompanyCodeCollection
    2014-09-11 11:27:56.204 Debug DE:SAPODataAccess dealloc CompanyCodeCollection
    2014-09-11 11:27:56.198 Debug DE:CustomerCardsViewController refresh
    2014-09-11 11:27:52.600 Debug Logging/Tracing on
    2014-09-11 11:27:19.792 Debug Communication error: Error Domain=HTTPRequestErrorDomain Code=11 "INTERNAL SERVER ERROR" UserInfo=0x193f3060 {NSLocalizedDescription=INTERNAL SERVER ERROR}
    2014-09-11 11:27:19.787 Debug Request http://server:8010/url  finished with error Error Domain=HTTPRequestErrorDomain Code=11 "INTERNAL SERVER ERROR" UserInfo=0x193f3060 {NSLocalizedDescription=INTERNAL SERVER ERROR}
    response <?xml version="1.0" encoding="utf-8"?><error xmlns:xsi="http://www.w3.org/2001/XMLSchema-Instance"><code>HTTP/500/E/Internal Server Error</code><message> Call of service /sap/opu/odata/sap/fincustfactsheet terminated because of an error. The following error text was processed in system NQT : The ASSERT condition was violated.The error occurred on the application server. The termination type was: RABAX_STATE.If the termination type is RABAX_STATE, you will find more information on the cause of termination in system NQT in transaction ST22. If the termination type is ABORT_MESSAGE_STATE, you will find more information on the cause of termination on the application server  in transaction SM21. If the termination type is ERROR_MESSAGE_STATE, you can search for further information in the trace file for the work process in transaction ST11 on the application server . You may also need to analyze the trace files of other work processes. If you do not yet have a user ID, contact your system adminmistrator. </message></error>
    2014-09-11 11:27:19.768 Debug [ERROR] 500:INTERNAL SERVER ERROR/Location:-[ODPRequest startSynchronous] + 1427
    2014-09-11 11:27:12.717 Debug timeout
    2014-09-11 11:27:12.681 Debug timeintervalinminutes: 23506917 timeoutInterval: 0
    2014-09-11 11:27:12.679 Debug applicationGoesToForeground
    Can anyone help me how to troubleshoot this error?
    Any help will be highly appreciated.
    Thanks
    Mahesh

    are these LUNs shared or standalone?
    I don't think it's really wise to have more than one DSM on the same server, so you're mixing the EVA and 3par DSMs and on 2003...
    other than ensuring that HBA firmware and drivers are all up to date and DMS drivers are at the latest, not much else you can do from the host side...maybe update the storport.sys driver to the latest for that OS
    are you sure that the HBAs are in fact supported/compatible with both storage back-ends? what about their driver/firmware/DSM versions - some SANs are very picky when it comes to this stuff, check the interop matrixes to find out
    overall, if you don't need SAN connection to one of these storage back-ends, I suggest you get rid of it and its DSM

  • How to connect SAP R/3- System with SAP NetWeaver Portal (2004s)?

    Hello to all,
    sorry, can someone help me? How can I connect SAP R/3- System with SAP NetWeaver Portal (2004s)?
    Thanks and regards,
    Galyna

    Hi,
    In previous link contain this info
    This describes how to connect an SAP R/3 system to SAP NetWeaver Portal using an iView
    1)      Go to System Administration
    2)      Go to System Configuration
    3)      Go to Portal Content (Right Side Panel), open that folder.
    4)      Right Click on Portal Content, a Panel is displayed select "System (from Template)".
    5)      That will display a new view on right side, now select "SAP system using dedicated application server" from
    the existing templates. (Other templates are possible - for example, load balanced or through a SAProuter connection string).
    For this exercise, we'll use the simplest type.
    6)      Choose next
    7)      Give the System Name and System Id (which are mandatory fields) incase you want to give any brief notes
    about the system then give them in the "Description" field.
    8)      Open the Newly Created System.
    9)      Now when you want to create a New System, you have to fill four Properties they are:
    "Connector" - contains basic connectivty details
    "Internet transaction Server (ITS) - if you wish to use SAPGUI for HTML and/or IACs",
    "Web Application Server" - if you wish to access BSPs and/or Web Dynpro for ABAP and
    "User Management".
    You also need at least one "System Alias" has to be defined from the Display drop down menu.
    Make sure you have set end user access in the Permissions drop down menu to all users who need to access the system
    10)  Select "Connector" property, now fill the required fields such as:
    a)      Application Host (should be fully qualified hostname) - Give the R/3 "Application Name",
    which can be obtained from the SAP Logon Pad (check what R/3 system you are using, right click on it , go to the properties,
    it will open a window which has the Application Server Name.
    b)      Logical System Name - Give the logical name as defined in the backend system
    c)      SAP Client - Check the Client in the backend system and give the appropriate number (3 digits)
    d)      SAP System ID(SID)* - Check the R/3 properties and give the check for System ID
    e)      System Type* - Since we are connecting to R/3, select SAP_R3 system.
    f)       System Number - This is a two digit number that you can find in the SAP Logon Pad
    11)  Select "Internet transaction Server (ITS)" property, now fill the required fields like
    a)      ITS Description à Give some Description
    b)      ITS Host Name - Same as "Application Host" of R/3 (when integrated ITS) and should be attached with the
    port number of ITS Server (to get port number detailed description is given below). ex: hostname : port number
    c)      ITS Path - To get the path along with the port number you have to Log on to R/3 system. Use the
    Transaction Code "SICF", it opens a new window go to:
          default_host -> sap -> bc -> gui -> sap -> its -> webgui -> SAP GUI for HTML -> right click on
    that and click "Test Service'. This will open a new window, on the address bar you will find the "port number", and
    the path something like (/sap/bc/gui/sap/its/webgui). Use the path after the port number.
    d)      ITS Protocol - There are two protocols "http" & "https", select the appropriate protocol which is
    visible when you opened "Test Service" window.
    12)  Select "Web Application Server" property , now fill the required fields like
    a)      Web AS Description -> Give some Description
    b)      Web AS Host Name - same as ITS Host Name
    c)      Web AS Path - usually /sap/bc/bsp/sapd)*    
    Web AS Protocol - should be same as the ITS Protocol.
    13)   Select "User Management" property, now fill the required fields like
    a)      Authentication Ticket Type - Since we are not using SSO leave the field
    empty i.e. put in select mode. (Please note that longer term you will probably want to use SSO)
    b)      Logon Method - Select UIDPW.
    c)      User Mapping Type - In case you have administration rights then you choose "admin" or in case you
    just have user rights then choose "user", better go for "admin/user".
    14)   Since all the required fields are filled appropriately now create a System Alias name, this can be done by following steps:
    a) go to Display -> Select "System Aliases" give some Alias Name, let's call it "SAP_R/3"
    15)  Now that System is created we have to create a iView which will display the given Transaction Code.
    16)  Go To "Content Administration".
    17)  Go To "Portal Content".
    18)  Go to Portal Content (Right Side Panel), open that folder
    19)  Right Click on Portal Content, a Panel is displayed select "New" -> iView
    20)  Select iView template, click next
    21)  Select "SAP Transaction iView" from the list of templates available. Click next.
    22)  Give the iView name and iView ID. Incase you want to give any brief notes about the iView then give it in "Description" field. Click next
    23)   Select "SAP GUI for HTML" radio button. Click next
    24)  Now select the system which you have create "SAP_R/3", give some Transaction Code, say SE12 (Dictionary Display). Click next and Finish.
    25)  Now Preview the iView
    26)  You will see a new Window where in SE12 Dictionary Display window is displayed.
    Regards,
    Senthil K.

  • Error when connect to SAP with JCo Connector on linux

    Dear all,
    Please, i need help. i was tray to connect to SAP with SAP JCo on linux ubuntu, but i have an error.
    this is the error :
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Connect_PM  GWHOST=myhost, GWSERV=sapgw00, ASHOST=myhost, SYSNR=00
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       hostname 'avatar-bumi' unknown
    TIME        Thu Feb 14 15:25:48 2008
    RELEASE     640
    COMPONENT   NI (network interface)
    VERSION     37
    RC          -2
    MODULE      niuxi_mt.c
    LINE        388
    DETAIL      NiPGetHostByName2: hostname 'avatar-bumi' not found
    SYSTEM CALL gethostbyname_r
    ERRNO       110
    ERRNO TEXT  Connection timed out
    COUNT
            at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
            at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1125)
            at com.sap.mw.jco.JCO$Client.connect(JCO.java:3138)
            at sapjco.Main.main(Main.java:34)
    Exception in thread "main" com.sap.mw.jco.JCO$Exception: (121) JCO_ERROR_NULL_HANDLE: Invalid rfc_handle = NULL encountered
            at com.sap.mw.jco.rfc.MiddlewareRFC.nativeGetAttributes(Native Method)
            at com.sap.mw.jco.rfc.MiddlewareRFC$Client.getAttributes(MiddlewareRFC.java:1233)
            at com.sap.mw.jco.JCO$Client.getAttributesInternal(JCO.java:2940)
            at com.sap.mw.jco.JCO$Client.getAttributes(JCO.java:2994)
            at sapjco.Main.main(Main.java:38)
    How to resolve this error....
    Regards,
    Lisa
    Edited by: Lisa Yanti on Feb 14, 2008 9:35 AM

    I was resolve this error by my self.
    We can handle this error with registering our current IP and host name on /etc/hosts.
    example:
    content of /etc/hosts:
    127.0.0.1 localhost
    127.0.1.1 myhost.workgroup
    The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    added the ip and host name to be like this configuration
    127.0.0.1 localhost
    127.0.1.1 myhost.workgroup
    172.20.17.74 myhost
    The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts

  • From sap to excel file with different sheets?

    can  i upload   an internal table  from  SAP to single Excel file with different sheets for example like : sheet1, sheet2, sheet3.......sheet10. , but need to upload data from sap to excel worksheets ie. from multiple named tabs in Excel. Is this possible, and if so, please can you help and advise me how?
    thanks
    venkat.
    Edited by: Matt on Feb 16, 2009 2:15 PM  Removed excessive question marks...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Hi venkat,
    Yes indeed it is possible to write data from internal table to different excel sheets. Check out SAP's Microsoft OLE functionality.Search on SDN for OLE . Following are some links
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/sample%252bprogram%252bto%252bopen%252bexcel%252bsheet%252busing%252bole
    You can also check out FM ALSM_EXCEL_TO_INTERNAL_TABLE to check how to read different worksheets.
    Using the above two resources you can create a program that can upload data to multiple worksheets in the same workbook.
    Also see this link
    Creating Excel with More than one page
    Edited by: aditya aghor on Feb 16, 2009 1:57 PM
    Edited by: aditya aghor on Feb 16, 2009 2:02 PM

  • Using Connect:Direct with SAP

    Folks,
    Client is using Connect:Direct to transfer the files from one location to another location.There are two table maintained namely T9AOA and T9AOB with Interface id and Unix scripting w.r.t Processing types respectively.
    1.I don't think these are SAP standard tables then why they are not named starting with Z or Y
    2.How to use Connect:Direct with SAP.
    Searched in SDN and google but didn't get any clear information on the above.From google I came to know this is a Product of Sterling Commerce(AT&T).
    Hope someone here who used Connect:Direct with SAP can share the info.
    Thanks,
    Kiran.

    Paky,
    The existing Design,had some tables which were maintained with required Unix Scripts.In the program we are just fetching that script from the table and building a Unix Command to move the files.There is also a URL using which we can check the status of the files.As I was just using the already existing design,don't have much info on how C:D connectivity can be designed from scratch.
    By Googling,I was able to get some info.May be it will give you some lead.
    https://www.google.co.in/?gws_rd=cr&ei=F5apUsrYCYWNrQf1y4GoDQ#q=connect+direct+in+unix
    K.Kiran.

  • After a system restart i cannot connect to SAP with SAPGUI.

    After a system restart i cannot connect to SAP with SAPGUI.
    See attached log  "dev_disp" and "dev_w0"
    At the end of this message you can see the comparison between the
    defective system and another working system
    I notice the absence of the "IGS400" process
    Could you please help me ?
    Best regards to everybody.
    "dev_disp" log file tell me : ************************
    trc file: "dev_disp", trc level: 1, release: "640"
    Thu Jun 21 13:21:24 2007
    kernel runs with dp version 132(ext=102) (@(#) DPLIB-INT-VERSION-132)
    length of sys_adm_ext is 312 bytes
    sysno      00
    sid        SVI
    systemid   324 (IBM iSeries with OS400)
    relno      6400
    patchlevel 0
    patchno    147
    intno      20020600
    make:      single threaded, ASCII, 64 bit
    pid        380
    Thu Jun 21 13:21:27 2007
    ***LOG Q00=> DpSapEnvInit, DPStart (00 380) [dpxxdisp.c   1100]
         shared lib "dw_xml.so" version 147 successfully loaded
         shared lib "dw_xtc.so" version 147 successfully loaded
         shared lib "dw_stl.so" version 147 successfully loaded
         shared lib "dw_gui.so" version 147 successfully loaded
         shared lib "dw_mdm.so" version 147 successfully loaded
    MtxInit: -2 0 0
    DpSysAdmExtInit: ABAP is active
    DpIPCInit2: start server >FRASTEST_SVI_00                         <
    DpShMCreate: sizeof(wp_adm)          10712     (824)
    DpShMCreate: sizeof(tm_adm)          3021432     (15032)
    DpShMCreate: sizeof(wp_ca_adm)          18000     (60)
    DpShMCreate: sizeof(appc_ca_adm)     6000     (60)
    DpShMCreate: sizeof(comm_adm)          216000     (432)
    DpShMCreate: sizeof(vmc_adm)          0     (448)
    DpShMCreate: sizeof(wall_adm)          (22440/36712/56/104)
    Thu Jun 21 13:21:28 2007
    DpShMCreate: SHM_DP_ADM_KEY          (addr: 700000080000000, size: 3337656)
    DpShMCreate: allocated sys_adm at 700000080000000
    DpShMCreate: allocated wp_adm at 700000080001830
    DpShMCreate: allocated tm_adm_list at 700000080004208
    DpShMCreate: allocated tm_adm at 700000080004230
    DpShMCreate: allocated wp_ca_adm at 7000000802e5ca8
    DpShMCreate: allocated appc_ca_adm at 7000000802ea2f8
    DpShMCreate: allocated comm_adm_list at 7000000802eba68
    DpShMCreate: allocated comm_adm at 7000000802eba80
    DpShMCreate: allocated vmc_adm_list at 700000080320640
    DpShMCreate: system runs without vmc_adm
    DpShMCreate: allocated ca_info at 700000080320668
    DpShMCreate: allocated wall_adm at 700000080320670
    MBUF state OFF
    EmInit: MmSetImplementation( 2 ).
    Thu Jun 21 13:21:29 2007
    <ES> client 0 initializing ....
    <ES> InitFreeList
    <ES> block size is 4096 kByte.
    Using implementation std
    EsIUnamFileMapInit: ES base = 0x7000000d0000000
    EsStdInit: Extended Memory 4096 MB allocated
    <ES> 1023 blocks reserved for free list.
    ES initialized.
    Thu Jun 21 13:22:33 2007
    rdisp/http_min_wait_dia_wp : 1 -> 1
    Thu Jun 21 13:22:35 2007
    ***LOG Q0K=> DpMsAttach, mscon ( FRASTEST) [dpxxdisp.c   10036]
    Thu Jun 21 13:22:36 2007
    DpStartStopMsg: send start message (myname is >FRASTEST_SVI_00                         <)
    DpStartStopMsg: start msg sent
    Thu Jun 21 13:22:47 2007
    CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
    Thu Jun 21 13:22:49 2007
    CCMS: start to initalize 3.X shared alert area (first segment).
    DpMsgAdmin: Set release to 6400, patchlevel 0
    MBUF state PREPARED
    MBUF component UP
    DpMBufHwIdSet: set Hardware-ID
    ***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c   1025]
    DpMsgAdmin: Set patchno for this platform to 147
    Release check o.K.
    Thu Jun 21 13:39:13 2007
    DpSigInt: caught signal 2
    DpHalt: shutdown server >FRASTEST_SVI_00                         < (normal)
    Thu Jun 21 13:39:14 2007
    ***LOG Q0I=> NiPWrite: writev (32: Broken pipe) [niuxi.c 1140]
    ERROR => MsINiWrite: NiBufSend (rc=NIECONN_BROKEN) [msxxi.c      2455]
    ERROR => MsIModState: MsINiWrite (rc=NIECONN_BROKEN) [msxxi.c      3695]
    MBUF state OFF
    MBUF component DOWN
    DpModState: change server state from STARTING to SHUTDOWN
    Thu Jun 21 13:39:15 2007
    Stop work processes...
    Thu Jun 21 13:40:18 2007
    ERROR => DpWpKill(411, SIGUSR2): kill failed [dpxxtool.c   2462]
    Stop gateway
    Stop icman
    Terminate gui connections
    waiting for termination of work processes
    Thu Jun 21 13:40:19 2007
    waiting for termination of work processes
    Thu Jun 21 13:40:20 2007
    waiting for termination of work processes
    Thu Jun 21 13:40:21 2007
    waiting for termination of work processes
    "dev_w0" log file tell me : ************************
    trc file: "dev_w0", trc level: 1, release: "640"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, M
    M sysno      00
    M sid        SVI
    M systemid   324 (IBM iSeries with OS400)
    M relno      6400
    M patchlevel 0
    M patchno    147
    M intno      20020600
    M make:      single threaded, ASCII, 64 bit
    M pid        404
    M

    M Thu Jun 21 13:22:00 2007
    M  ***LOG Q01=> tskh_init, WPStart (Workproc 0 1 404) [thxxhead.c   1146]
    M  calling db_connect ...
    C  DB4 SQL Reparse Activated

    C Thu Jun 21 13:22:11 2007
    C  R3INLPGM: RmtExeLib from /usr/sap/SVI/SYS/exe/run/DBSLDB4RMT
    C  R3INLPGM: RmtExeLib is R3640ASVI

    C Thu Jun 21 13:22:13 2007
    C  Connection to database done without problems.
    C  -
    C  -
    DbSl EGO Structure
    C  -
    C     SAPSYSTEMNAME               = SVI
    C     Character encoding          = ASCII
    C     process class               = dialog process
    C     workprocess id              = 0
    C     local host                  = FRASTEST
    C     dbhost                      = FRASTEST
    C     rdbname                     =                  
    C     dbname                      = SVIFRASTEST
    C     dblib                       = R3SVIDATA
    C     application server          = DVEBMGS00
    C     Connect type                = LOCAL
    C     pid                         = 404
    C     dbjobname                   = WP00     
    C     dbjobuser                   = SVI00    
    C     dbjobno                     = 025901
    C     wpjobname                   = WP00
    C     wpjobuser                   = SVI00
    C     wpjobno                     = 025901
    C     DB2/400 vers. appl. server  = PASE 4
    C     DB2/400 vers. DB server     = V5R4                           
    C     da_cache_size               = 100
    C     reopen                      = ON
    C     timeout_retry               = 3
    C     ODP threshold               = 800
    C     ODP commit thresh.          = 810
    C     ODP open thresh.            = 850
    C     QAQQINI library             = Default (QUSRSYS)
    C     Alternate QAQQINI library   = Not specified
    C     use_lobs_for_long           = ON
    C     use_lobs_for_short          = OFF
    C     single_execution_threshold  = 2000
    C     single_execution_reuse      = OFF
    C     keep_tmp_SQLpkgs            = OFF
    C     dbsl_trace                  = off
    C     allow_cancel                = OFF
    C     nqe_optimize_method         = O - All I/O (compatibility mode)
    C     query_compl_reval           = O
    C     nte_list_size               = 10
    C  -

    C Thu Jun 21 13:22:17 2007
    C  SQL monitor started for job

    B Thu Jun 21 13:22:18 2007
    B  Connection 0 opened (DBSL handle 0)
    B  Wp  Hdl ConName          ConId     ConState     TX  PRM RCT TIM MAX OPT Date     Time   DBHost         
    B  000 000 R/3              000000000 ACTIVE       NO  YES NO  000 255 255 20070621 132200 FRASTEST       

    M Thu Jun 21 13:22:37 2007
    M  db_connect o.k.

    M Thu Jun 21 13:22:38 2007
    M  ICT: exclude compression: .zip,.cs,.rar,.arj,.z,.gz,.tar,.lzh,.cab,.hqx,.ace,.jar,.ear,.war,.css,.pdf,.js,.gzip,.uue,.bz2,.iso,.sda,.sar,.gif
    ACTIVE TRACE LEVEL           2
    ACTIVE TRACE COMPONENTS      all, M
    M  -
    C-STACK -
    => 64 bit R/3 Kernel
    => 64 bit OS400 Kernel
    => Heap limit      = unlimited
    => Stack limit     = unlimited
    => Core limit      = unlimited
    => File size limit = unlimited
    => Heap address  = 0x40000000000000009ED34587C2E94220
    => Stack address = 0xffffffffffff3f0
    => Stack low     =  0xfffffffffffdb30
    => Stack high    =  0xffffffffffffa90
    => Stack Trace:
         Unknown at 0x3618
         sleepms() at 0x1000f9324
         SpinLockSemRq1() at 0x1000f926c
         SemRq() at 0x1000fcf6c
         ThIPCInit() at 0x1000ac1a0
         tskh_init() at 0x1000ad704
         tskhstart() at 0x1000c0950
         DpMain() at 0x10175ad2c
         nlsui_main() at 0x10172dee8
    => CPU Registers:
         msr = 0x800000000000f032     iar = 0x0000000000003618
         ctr = 0x0000000000003610      lr = 0x09000000000a2890
         xer = 0x0000000008000000      cr = 0x000000002a404445
         r00 = 0x0000000000000000     r01 = 0x0ffffffffffff3f0
         r02 = 0x00000000000000a4     r03 = 0xffffffffffffffff
         r04 = 0x0000000000000000     r05 = 0x0000000000000000
         r06 = 0x0000000000000000     r07 = 0x0ffffffffffff520
         r08 = 0x0000000000000001     r09 = 0x0000000010108003
         r10 = 0xb00010000c90e000     r11 = 0xb00010000c90ef30
         r12 = 0x0900000000001eb0     r13 = 0x0000000182784a50
         r14 = 0x0000000000000002     r15 = 0x00000001810e6c48
         r16 = 0x0ffffffffffffb28     r17 = 0x000000018001bf20
         r18 = 0x0000000000000003     r19 = 0x0000000000000004
         r20 = 0x0000000180c6de34     r21 = 0x0000000180c6de28
         r22 = 0x000000018004ce60     r23 = 0x0000000180c6e244
         r24 = 0x0000000000000064     r25 = 0x0000000000000158
         r26 = 0x0000000000000158     r27 = 0x0000000000000000
         r28 = 0x0000000000000000     r29 = 0x0fffffffffffffe0
         r30 = 0x09001000a005ec48     r31 = 0x0000000000000000
    Thu Jun 21 13:40:23 2007
    Library   |(SRV)PGM  |Module    |Function/Statement No.
    Thu Jun 21 13:40:24 2007
    |--||--
    QSYS      |QP2USER2  |QP2API    |__Qp2Fork  8
    QSYS      |QP2USER2  |QP2API    |runpase_main__FPi  6
    QSYS      |QP2USER2  |QP2API    |runpase_common__FiPvT2  2
    R3640ASVI |O4PRTLIBC |AS4STACK  |As4Stack_From_PASE  3
    R3640ASVI |O4PRTLIBC |AS4STACK  |As4StackOut  10
    R3640ASVI |O4PRTLIBC |AS4STACK  |_MATINVS2__8O4_StackFv  8
    M  -
    ACTIVE JOBS OF DEFECTIVE SYSTEM
    Opz  Sottosis/Lav  corrente    Tipo  % CPU  Funzione        Stato             
          R3_00         QSYS        SBS     0,0                  DEQW              
            DISP_WORK   SVI00       BCI     5,3  PGM-disp+work   CNDW              
            GWRD        SVI00       BCI    10,9  PGM-gwrd        RUN               
            ICMAN       SVI00       BCI     1,8  PGM-icman       RUN               
            MSG_SERVER  SVI00       BCI     0,0  PGM-MSG_SERVER  SELW              
            RSLGCOLL    SVI00       BCI     0,0  PGM-rslgcoll    SELW              
            RSLGSEND    SVI00       BCI     0,0  PGM-rslgsend    SELW              
            SAPOSCOL    SVI00       BCI     1,0  PGM-SAPOSCOL    RUN               
            SAPSTART    SVI00       BCH     0,0  PGM-sapstart    EVTW   
            WATCHDOG    SVI00       BCI     0,4  PGM-disp+work   SELW              
            WP00        SVI00       BCI     1,0  PGM-disp+work   RUN               
            WP01        SVI00       BCI     1,0  PGM-disp+work   RUN               
            WP02        SVI00       BCI     1,0  PGM-disp+work   RUN               
            WP03        SVI00       BCI     1,1  PGM-disp+work   RUN               
            WP04        SVI00       BCI     0,9  PGM-disp+work   RUN               
            WP05        SVI00       BCI     0,9  PGM-disp+work   RUN               
            WP06        SVI00       BCI     0,8  PGM-disp+work   RUN               
            WP07        SVI00       BCI     0,6  PGM-disp+work   RUN               
            WP08        SVI00       BCI     0,0                  RUN               
    ACTIVE JOBS OF WORKING SYSTEM
          R3_03         QSYS        SBS     0,0                  DEQW              
            DISP_WORK   TST03       BCI     0,0  PGM-disp+work   SELW              
            GWRD        TST03       BCI     0,0  PGM-gwrd        SELW              
            ICMAN       TST03       BCI     0,0  PGM-icman       SELW              
            IGS400      TST03       BCI     0,0  PGM-igswd_mt    THDW              
            IGS400      TST03       BCI     0,0  PGM-igsmux_mt   THDW              
            IGS400      TST03       BCI     0,0  PGM-igspw_mt    THDW              
            IGS400      TST03       BCI     0,0  PGM-igspw_mt    THDW              
            MSG_SERVER  TST03       BCI     0,0  PGM-MSG_SERVER  SELW              
            RSLGSEND    TST03       BCI     0,0  PGM-rslgsend    THDW              
            SAPSTART    TST03       BCH     0,0  PGM-sapstart    EVTW              
            WATCHDOG    TST03       BCI     0,0  PGM-disp+work   SELW              
            WP00        TST03       BCI     0,0  PGM-disp+work   SEMW              
            WP01        TST03       BCI     0,0  PGM-disp+work   SEMW              
            WP02        TST03       BCI     2,5  PGM-disp+work   RUN               
            WP03        TST03       BCI     0,0  PGM-disp+work   SEMW              
            WP04        TST03       BCI     0,0  PGM-disp+work   SEMW              
            WP05        TST03       BCI     0,0  PGM-disp+work   SEMW              
            WP06        TST03       BCI     0,0  PGM-disp+work   SEMW              
            WP07        TST03       BCI     0,0  PGM-disp+work   SEMW              
            WP08        TST03       BCI     0,0  PGM-disp+work   SEMW              
            WP09        TST03       BCI     0,0  PGM-disp+work   SEMW              
            WP10        TST03       BCI     0,0  PGM-disp+work   SEMW              
            WP11        TST03       BCI     0,0  PGM-disp+work   SEMW              
            WP12        TST03       BCI     0,0  PGM-disp+work   SEMW

    Following your suggestions i got this error message in the log file "dev_w0"
    This process creted also a very big "core" file
    B  ***LOG BY4=> sql error 304    performing FET on table DDNTF      [dbntab#7 @ 10281] [dbntab  1028 1]
    B  ***LOG BY0=> Conversion error in assignment to host variable *N. MSGID= Job=028178/SVI00/WP00 [dbntab#7 @ 10281] [dbntab  1028 1]
    B  *** ERROR => missing return code handler     
    caller does not handle code 1 from dbntab#7[3098]     
    Here is the complete log:
    trc file: "dev_w0", trc level: 1, release: "640"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, M
    M sysno      00
    M sid        SVI
    M systemid   324 (IBM iSeries with OS400)
    M relno      6400
    M patchlevel 0
    M patchno    147
    M intno      20020600
    M make:      single threaded, ASCII, 64 bit
    M pid        317
    M

    M Wed Aug  1 17:53:03 2007
    M  ***LOG Q01=> tskh_init, WPStart (Workproc 0 1 317) [thxxhead.c   1146]
    M  calling db_connect ...
    C  DB4 SQL Reparse Activated

    C Wed Aug  1 17:53:05 2007
    C  R3INLPGM: RmtExeLib from /usr/sap/SVI/SYS/exe/run/DBSLDB4RMT
    C  R3INLPGM: RmtExeLib is R3640ASVI
    C  Connection to database done without problems.
    C  -
    C  -
    DbSl EGO Structure
    C  -
    C     SAPSYSTEMNAME               = SVI
    C     Character encoding          = ASCII
    C     process class               = dialog process
    C     workprocess id              = 0
    C     local host                  = FRASTEST
    C     dbhost                      = FRASTEST
    C     rdbname                     =                  
    C     dbname                      = SVIFRASTEST
    C     dblib                       = R3SVIDATA
    C     application server          = DVEBMGS00
    C     Connect type                = LOCAL
    C     pid                         = 317
    C     dbjobname                   = WP00     
    C     dbjobuser                   = SVI00    
    C     dbjobno                     = 028178
    C     wpjobname                   = WP00
    C     wpjobuser                   = SVI00
    C     wpjobno                     = 028178
    C     DB2/400 vers. appl. server  = PASE 4
    C     DB2/400 vers. DB server     = V5R4                           
    C     da_cache_size               = 100
    C     reopen                      = ON
    C     timeout_retry               = 3
    C     ODP threshold               = 800
    C     ODP commit thresh.          = 810
    C     ODP open thresh.            = 850
    C     QAQQINI library             = Default (QUSRSYS)
    C     Alternate QAQQINI library   = Not specified
    C     use_lobs_for_long           = ON
    C     use_lobs_for_short          = OFF
    C     single_execution_threshold  = 2000
    C     single_execution_reuse      = OFF
    C     keep_tmp_SQLpkgs            = OFF
    C     dbsl_trace                  = off
    C     allow_cancel                = OFF
    C     nqe_optimize_method         = O - All I/O (compatibility mode)
    C     query_compl_reval           = O
    C     nte_list_size               = 10
    C  -

    C Wed Aug  1 17:53:09 2007
    C  SQL monitor started for job
    B  Connection 0 opened (DBSL handle 0)
    B  Wp  Hdl ConName          ConId     ConState     TX  PRM RCT TIM MAX OPT Date     Time   DBHost         
    B  000 000 R/3              000000000 ACTIVE       NO  YES NO  000 255 255 20070801 175303 FRASTEST       

    M Wed Aug  1 17:53:12 2007
    M  db_connect o.k.
    M  ICT: exclude compression: .zip,.cs,.rar,.arj,.z,.gz,.tar,.lzh,.cab,.hqx,.ace,.jar,.ear,.war,.css,.pdf,.js,.gzip,.uue,.bz2,.iso,.sda,.sar,.gif

    I Wed Aug  1 17:53:13 2007
    I  MtxInit: 0 0 0
    M  SHM_PRES_BUF               (addr: 700000200000000, size: 4400128)

    M Wed Aug  1 17:53:14 2007
    M  SHM_ROLL_AREA          (addr: 700000210000000, size: 268435456)

    M Wed Aug  1 17:53:15 2007
    M  SHM_PAGING_AREA          (addr: 700000220000000, size: 67108864)
    M  SHM_ROLL_ADM               (addr: 700000230000000, size: 2672386)
    M  SHM_PAGING_ADM          (addr: 700000240000000, size: 164896)

    M Wed Aug  1 17:53:16 2007
    M  ThCreateNoBuffer          allocated 324144 bytes for 1000 entries at 700000250000000
    M  ThCreateNoBuffer          index size: 3000 elems
    M  ThCreateVBAdm          allocated 7440 bytes (50 server) at 700000260000000
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 0 initializing ....
    X  Using implementation std
    X  ES initialized.

    B Wed Aug  1 17:53:20 2007
    B  db_con_shm_ini:  WP_ID = 0, WP_CNT = 13, CON_ID = -1

    B Wed Aug  1 17:53:25 2007
    B  dbtbxbuf: Buffer TABL  (addr: 7000002d0000100, size: 64000000, end: 7000002d3d09100)
    B  dbtbxbuf: Profile: max_objects = 5000, displace = 1, reorg = 1
    B  dbtbxbuf: request_unit = 2000, sync_reload = 5, inval_reload = 5
    B  dbtbxbuf: protect_shm = 0, force_checks = 0
    B  dbtbxbuf: tsize_retry = 31427136
    B  ***LOG BB0=> buffer TABL       started with length 64000000   bytes [dbtbxbuf#8 @ 16037] [dbtbxbuf1603 7]

    B Wed Aug  1 17:53:26 2007
    B  dbtbxbuf: Buffer TABLP (addr: 7000002e0000100, size: 16776192, end: 7000002e0fffd00)
    B  dbtbxbuf: Profile: max_objects = 500, displace = 1, reorg = 1
    B  dbtbxbuf: request_unit = 2000, sync_reload = 5, inval_reload = 5
    B  dbtbxbuf: protect_shm = 0, force_checks = 0
    B  dbtbxbuf: tsize_retry = 8322944
    B  ***LOG BB0=> buffer TABLP      started with length 16776192   bytes [dbtbxbuf#8 @ 16037] [dbtbxbuf1603 7]
    B  dbtbxbuf: Reading TBX statistics:
    B  dbtbxbuf: Opening /usr/sap/SVI/DVEBMGS00/data/tbxnew failed (No such file or directory).
    B  dbtbxbuf: Renaming /usr/sap/SVI/DVEBMGS00/data/tbxnew to /usr/sap/SVI/DVEBMGS00/data/tbxstat failed (No such file or directory).
    B  dbtbxbuf: 110 object entries precreated
    B  Layout of EIBUF buffer shared memory:
    B  0: 1 * 4 = 4
    B  1: 1 * 360 = 360
    B  2: 13 * 40 = 520
    B  3: 8009 * 40 = 320360
    B  4: 4000 * 160 = 640000
    B  5: 8009 * 8 = 64072
    B  6: 1 * 200 = 200
    B  7: 65 * 8 = 520
    B  8: 319664 * 128 = 40916992
    B  Tracing = 0, Shm Protection = 0, Force checks = 0, Recovery delay = 500000
    B  dbexpbuf: Buffer EIBUF (addr: 700000300000108, size: 41943040, end: 700000302800108)
    B  ***LOG BB0=> buffer EIBUF      started with length 40960k     bytes [dbexpbuf#6 @ 2342] [dbexpbuf2342 ]
    B  Layout of ESM   buffer shared memory:
    B  0: 1 * 4 = 4
    B  1: 1 * 360 = 360
    B  2: 13 * 40 = 520
    B  3: 4001 * 40 = 160040
    B  4: 2000 * 160 = 320000
    B  5: 4001 * 8 = 32008
    B  6: 1 * 200 = 200
    B  7: 65 * 8 = 520
    B  8: 28755 * 128 = 3680640
    B  Tracing = 0, Shm Protection = 0, Force checks = 0, Recovery delay = 500000
    B  dbexpbuf: Buffer ESM   (addr: 700000310000108, size: 4194304, end: 700000310400108)
    B  ***LOG BB0=> buffer ESM        started with length 4096k      bytes [dbexpbuf#6 @ 2342] [dbexpbuf2342 ]
    B  Layout of CUA   buffer shared memory:
    B  0: 1 * 4 = 4
    B  1: 1 * 360 = 360
    B  2: 13 * 40 = 520
    B  3: 16411 * 40 = 656440
    B  4: 8191 * 160 = 1310560
    B  5: 16411 * 8 = 131288
    B  6: 1 * 200 = 200
    B  7: 193 * 8 = 1544
    B  8: 57325 * 256 = 14675200
    B  Tracing = 0, Shm Protection = 0, Force checks = 0, Recovery delay = 500000
    B  dbexpbuf: Buffer CUA   (addr: 700000320000108, size: 16776192, end: 700000320fffd08)
    B  ***LOG BB0=> buffer CUA        started with length 16383k     bytes [dbexpbuf#6 @ 2342] [dbexpbuf2342 ]
    B  Layout of OTR   buffer shared memory:
    B  0: 1 * 4 = 4
    B  1: 1 * 360 = 360
    B  2: 13 * 40 = 520
    B  3: 4001 * 40 = 160040
    B  4: 2000 * 160 = 320000
    B  5: 4001 * 8 = 32008
    B  6: 1 * 200 = 200
    B  7: 81 * 8 = 648
    B  8: 28754 * 128 = 3680512
    B  Tracing = 0, Shm Protection = 0, Force checks = 0, Recovery delay = 500000

    B Wed Aug  1 17:53:27 2007
    B  dbexpbuf: Buffer OTR   (addr: 700000330000108, size: 4194304, end: 700000330400108)
    B  ***LOG BB0=> buffer OTR        started with length 4096k      bytes [dbexpbuf#6 @ 2342] [dbexpbuf2342 ]
    B  ***LOG BB0=> buffer CALE       started with length 500000     bytes [dbcalbuf#2 @ 2212] [dbcalbuf2212 ]

    C Wed Aug  1 17:53:29 2007
    C  *** ERROR => Error 304 in function db_fetch
    [dbsldb4.cpp  9041]
    C  === DBSL Begin of SQL request after execution ===
    C  === DBSL SQLP0400 ===
    C  Function              5
    C  Package               DDNTFIH             Library               R3SVIA2062
    C  Main_Pgm                                  Main_Lib                                 
    C  Statement_Name        "Wx3AAADpDB"        Cursor_Name           "CADDNTF16461"     
    C  Open_Options          x80                 Clause_For_Describe   N
    C  Commitment_Control    C
    C  Date_Format           USA                 Date_Separator        /
    C  Time_Format           USA                 Time_Separator        :
    C  Naming_Option         SYS                 Decimal_Point         .
    C  Blocking_Factor       1                   Scrollable_Option     0                  
    C  Position_Option       0                   Relative_Record       0                  
    C  Rows_To_Insert        0                   Direct_Map            N
    C  Reuse_DA              N                   Name_Check            Y
    C  Use_Ptrs              0                   With_Hold             N
    C  Close_File_Name                           Close_Library_Name    *THRESHOLD         
    C  Reopen                0                   Use_Perf              1
    C  Query_Compl. (Reval)  !                   Statement_Text_CCSID  819
    C  Sort_Sequence_Table   *JOB                Sort_Sequence_Library *LIBL              
    C  Language_ID           *JOB                Allow_Copy_Data       S                  
    C  Allow_Blocking        L
    C  === DBSL SQLDA ===
    C  sqldaid: SQLDA 2 , sqldabc: 816, sqln: 10, sqld: 4
    C  === TRACE VAR 0 ===
    C  sqlvar: 0, sqtype 469, sqllen 30, sqlname.data 13488
    C  sqlind: 0
    C  sqlname (hex):
    C  0008000034B00000  0000000000000000  0000000000000000  0000000000000000 
    C  sqldata row=0 (hex):
    C  005400430041004C  0053002000200020  0020002000200020  0020002000200020 
    C  0020002000200020  0020002000200020  0020002000200020  00200020
    C  === TRACE VAR 1 ===
    C  sqlvar: 1, sqtype 501, sqllen 2, sqlname.data 0
    C  sqlind: -2
    C  sqlname (hex):
    C  0000000000000000  0000000000000000  0000000000000000  0000000000000000 
    C  sqldata row=0 (hex):
    C  0000
    C  === TRACE VAR 2 ===
    C  sqlvar: 2, sqtype 497, sqllen 4, sqlname.data 0
    C  sqlind: -2
    C  sqlname (hex):
    C  0000000000000000  0000000000000000  0000000000000000  0000000000000000 
    C  sqldata row=0 (hex):
    C  00000031
    C  === TRACE VAR 3 ===
    C  sqlvar: 3, sqtype 405, sqllonglen 32700
    C  sqldatalen NULL
    C  sqlind: 0
    C  sqlname (hex):
    C  00080000FFFF0000  0000000000000000  0000000000000000  0000000000000000 
    C  sqldata row=0 (hex):
    C  0000028742000007  4100000000010000  0000280001000000  0100010000004944 
    C  0000000000000000  0000000000000000  0000000000000000  00000000004B4142 
    C  === DBSL errc ===
    C  errc: OK
    C  === DBSL sqlca ===
    C  sqlcode: 304
    C  sqlerrml: 68, sqlerrmc:
    C  00035CD540404040  4040404040404040  4040404040404040  4040404040404040 
    C  4040404040404040  4040404040404040  4040404040404040  4040404040404040 
    C  40400006
    B  ***LOG BY4=> sql error 304    performing FET on table DDNTF      [dbntab#7 @ 10281] [dbntab  1028 1]
    B  ***LOG BY0=> Conversion error in assignment to host variable *N. MSGID= Job=028178/SVI00/WP00 [dbntab#7 @ 10281] [dbntab  1028 1]
    B  *** ERROR => missing return code handler     
    caller does not handle code 1 from dbntab#7[3098]     
    ==> calling sap_dext to abort transaction
    [dbeh.c       93]
    M  -
    C-STACK -
    => 64 bit R/3 Kernel
    => 64 bit OS400 Kernel
    => Heap limit      = unlimited
    => Stack limit     = unlimited
    => Core limit      = unlimited
    => File size limit = unlimited
    => Heap address  = 0x40000000000000009E570787C2ED4260
    => Stack address = 0xfffffffffffd6f0
    => Stack low     =  0xfffffffffffd6f0
    => Stack high    =  0xffffffffffffa90
    => Stack Trace:
         AixStack() at 0x10008d040
         CTrcStack2() at 0x10008d138
         ThControl() at 0x1006551a4
         dyThControl() at 0x1003ab070
         dextIntern() at 0x1003aa06c
         sap_dext() at 0x1003aff24
         dbeh_exit() at 0x100416924
         db_ntab() at 0x10039d48c
         read_ntab() at 0x101512474
         db_cbufload() at 0x10150f40c
         reset_handling() at 0x101512f00
         init_shm_and_load_cals() at 0x10151394c
         db_cbufinst() at 0x101514c48
         db_calinit() at 0x1005ae8bc
         db_init() at 0x1001c7ae0
         ThCallHooks() at 0x1000c3654
         ThIPCInit() at 0x1000ac574
         tskh_init() at 0x1000ad704
         tskhstart() at 0x1000c0950
         DpMain() at 0x10175ad2c
         nlsui_main() at 0x10172dee8
    Wed Aug  1 17:53:29 2007
    Library   |(SRV)PGM  |Module    |Function/Statement No.
    |--||--
    QSYS      |QP2USER2  |QP2API    |__Qp2Fork  8
    QSYS      |QP2USER2  |QP2API    |runpase_main__FPi  6
    QSYS      |QP2USER2  |QP2API    |runpase_common__FiPvT2  2
    R3640ASVI |O4PRTLIBC |AS4STACK  |As4Stack_From_PASE  3
    R3640ASVI |O4PRTLIBC |AS4STACK  |As4StackOut  10
    R3640ASVI |O4PRTLIBC |AS4STACK  |_MATINVS2__8O4_StackFv  8
    M  -
    M  ***LOG R1B=> ThControl, sap_dext-call (00 ) [thxxdynp.c   355]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThControl: illegal sap_dext call !!! (step 1, th_errno 5, action 1, level 1) [thxxhead.c   9564]

    M  Info for wp 0

    M    stat = 4
    M    reqtype = 1
    M    act_reqtype = -1
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source = 255
    M    last_tid = 0
    M    last_mode = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M  Entering ThSetStatError
    M  Entering ThReadDetachMode
    M  ThISend: still inside critical section semaphore ?

Maybe you are looking for