Popup creation - syntax error

Hi,
I am developing a webdynpro application.am creating pop-up window for that when am trying to declare a attribute called WD_COMP_Controller  type ig_componentcontroller  for a view, It s throwing an error like "Field Wd_comp_controller is unknown". its neither in one of the specified tables nor defined by a data statement."
In this line *lo_api_component  = wd_comp_controller->wd_get_api( )*. am getting  syntax error
data lo_window_manager type ref to if_wd_window_manager.
data lo_api_component  type ref to if_wd_component.
data lo_window         type ref to if_wd_window.
lo_api_component  = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window         = lo_window_manager->create_window(
                   window_name            = 'MAIN'
                 title                  =
                 close_in_any_case      = abap_true
                   message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                 close_button           = abap_true
                   button_kind            = if_wd_window=>co_buttons_ok
                   message_type           = if_wd_window=>co_msg_type_none
                   default_button         = if_wd_window=>co_button_ok
lo_window->open( ).
please help me out.
Thanks and Regards.
Vijay

Hi,
wd_comp_controller will be default and check in your view with properties tab
Try The following code.for popup
data lo_window_manager type ref to if_wd_window_manager.
data lo_api_component  type ref to if_wd_component.
data lo_window         type ref to if_wd_window.
lo_api_component  = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window         = lo_window_manager->create_window(
                   window_name            = 'xxxx'    "-->window name
                 title                  =
                 close_in_any_case      = abap_true
                   message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                 close_button           = abap_true
                   button_kind            = if_wd_window=>co_buttons_ok
                   message_type           = if_wd_window=>co_msg_type_none
                   default_button         = if_wd_window=>co_button_ok
lo_window->open( ).
Hope it helps.
Regards,
Basuvaraj.P

Similar Messages

  • Getting syntax error in "SAPLBBP_PDH_CUF" in shopping cart/RFx/PO creation process in SRM7.0.Is it Patch issue?

    Getting syntax error in "SAPLBBP_PDH_CUF" in shopping cart/RFx/PO creation process in SRM7.0.Is it Patch issue?

    Hi, something wrong with your customer fields...
    Please, check them...

  • DB2 9.7 DFACT.SQL syntax error in Import ABAP phase - System Copy

    Hi all. I'm trying a system copy with a source system SAP ECC 6.0 ehp4 based on NW 701 and db2 LUW 9.1 .
    As it seems supported by SAP, i'm using db2 LUW 9.7 in target system.
    O.S. is Windows 2008.
    I got an error in phase "Import ABAP".
    Sapinst.log says:
    INFO 2010-02-18 10:12:14.337
    An error occured and the user decided to retry the current step: "|NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|runMigrationMonitor".
    INFO 2010-02-18 10:12:14.509
    Switched to user: devadm.
    INFO 2010-02-18 10:12:14.572
    Creating file C:\Program Files\sapinst_instdir\ERPEhP4\LM\COPY\DB6\SYSTEM\CENTRAL\AS-ABAP\import_monitor.java.log.
    INFO 2010-02-18 10:12:14.603
    Switched to user: devadm.
    INFO 2010-02-18 10:12:14.618
    Working directory changed to C:\Program Files\sapinst_instdir\ERPEhP4\LM\COPY\DB6\SYSTEM\CENTRAL\AS-ABAP.
    INFO 2010-02-18 10:12:14.618
    Output of C:\j2sdk1.4.2_24-x64\bin\java.exe -classpath migmon.jar -showversion -Xmx1024m com.sap.inst.migmon.imp.ImportMonitor -sapinst is written to the logfile import_monitor.java.log.
    WARNING 2010-02-18 10:12:44.790
    Execution of the command "C:\j2sdk1.4.2_24-x64\bin\java.exe -classpath migmon.jar -showversion -Xmx1024m com.sap.inst.migmon.imp.ImportMonitor -sapinst" finished with return code 103. Output:
    java version "1.4.2_24-rev"
    Java(TM) Platform, Standard Edition for Business (build 1.4.2_24-rev-b06)
    Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_24-rev-b06, mixed mode)
    Import Monitor jobs: running 1, waiting 1, completed 73, failed 0, total 75.
    Loading of 'SAPDFACT' import package: ERROR
    Import Monitor jobs: running 0, waiting 1, completed 73, failed 1, total 75.
    WARNING[E] 2010-02-18 10:12:44.790
    CJS-30022  Program 'Migration Monitor' exits with error code 103. For details see log file(s) import_monitor.java.log, import_monitor.log.
    ERROR 2010-02-18 10:12:44.790
    FCO-00011  The step runMigrationMonitor with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|runMigrationMonitor was executed with status ERROR .
    Looking into import_monitor.java.log i found that the problem is in dfact import.
    I've looked into sapdfact.log and i found:
    S:\usr\sap\DEV\SYS\exe\uc\NTAMD64\R3load.exe: START OF LOG: 20100218105045
    S:\usr\sap\DEV\SYS\exe\uc\NTAMD64\R3load.exe: sccsid @(#) $Id: //bas/701_REL/src/R3ld/R3load/R3ldmain.c#8 $ SAP
    S:\usr\sap\DEV\SYS\exe\uc\NTAMD64\R3load.exe: version R7.01/V1.4 [UNICODE]
    Compiled Jan 28 2010 20:22:25
    S:\usr\sap\DEV\SYS\exe\uc\NTAMD64\R3load.exe -i SAPDFACT.cmd -dbcodepage 4103 -l SAPDFACT.log -stop_on_error -loadprocedure fast LOAD:COMPRESS_ALL
    (DB) INFO: connected to DB
    (DB6) INFO: COMPRESS YES is set during table creation.
    (DB6) DB2 9.5 automatic dictionary creation does not require an explicit REORG.
    (DB6) Compression threshold is ignored.
    (GSI) INFO: dbname   = "DEV                                                                                "
    (GSI) INFO: vname    = "DB6                             "
    (GSI) INFO: hostname = "UNKNOWN                                                         "
    (GSI) INFO: sysname  = "Windows NT"
    (GSI) INFO: nodename = "SRVSAPDEV"
    (GSI) INFO: release  = "6.0"
    (GSI) INFO: version  = "6002 Service Pack 2"
    (GSI) INFO: machine  = "4x AMD64 Level 6 (Mod 26 Step 5)"
    (DB) ERROR: DDL statement failed with SQL error
    ( ALTER TABLE "/BI0/E0PPM_VC1" DROP PRIMARY KEY  )
      (SQL error -539)
      error message returned by dsql:
    SQL0539N  Table or nickname "SAPDEV./BI0/E0PPM_VC1" does not have a "PRIMARY" key.  SQLSTATE=42888
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    (DB6) INFO: executing DDL statements for object /BI0/E0PPM_VC1 from external SQL file.
    (DB) ERROR: DDL statement failed with SQL error
    ( CREATE TYPE 2 UNIQUE INDEX "/BI0/E0PPM_VC1~0" ON "/BI0/E0PPM_VC1"   ("KEY_0PPM_VC1T" ,   "KEY_0PPM_VC11" ,   "KEY_0PPM_VC1U" ,   "KEY_0PPM_VC1P" )   USING STOGROUP ___FAI PRIQTY 16   SECQTY 10240 FREEPAGE 0 PCTFREE 0   GBPCACHE CHANGED DEFINE NO   BUFFERPOOL BP3 COPY NO   PIECESIZE 2097152 K CLUSTER NOT PADDED  )
      (SQL error -7)
      error message returned by dsql:
    SQL0007N  The character "_" following "" )   USING STOGROUP" is not valid.  SQLSTATE=42601
    (DB) INFO: disconnected from DB
    S:\usr\sap\DEV\SYS\exe\uc\NTAMD64\R3load.exe: job finished with 1 error(s)
    S:\usr\sap\DEV\SYS\exe\uc\NTAMD64\R3load.exe: END OF LOG: 20100218105045
    So as you can see it seems that there's some syntax error in dfacl.log. The wrong SQL statement referred by sapdfact.log is
    ind: /BI0/E0PPM_VC1~0
    sql: CREATE TYPE 2 UNIQUE INDEX "/BI0/E0PPM_VC1~0" ON "/BI0/E0PPM_VC1"
      ("KEY_0PPM_VC1T" ,
      "KEY_0PPM_VC11" ,
      "KEY_0PPM_VC1U" ,
      "KEY_0PPM_VC1P" )
      USING STOGROUP ___FAI PRIQTY 16
      SECQTY 10240 FREEPAGE 0 PCTFREE 0
      GBPCACHE CHANGED DEFINE NO
      BUFFERPOOL BP3 COPY NO
      PIECESIZE 2097152 K CLUSTER NOT PADDED ;
      |
      ALTER TABLE "/BI0/E0PPM_VC1"
      ADD PRIMARY KEY ("KEY_0PPM_VC1T",
      "KEY_0PPM_VC11",
      "KEY_0PPM_VC1U",
      "KEY_0PPM_VC1P") ;
    Am i missing something?
    Data in referred tables (infocubes) isn't really important.
    Is there a safe way to proceed?
    Thanks in advance.
    Regards
    Simone Zaffalon

    And this is the strange point: my source system is not a BI and my dataclasses .SQL files are not empty.
    Me too i would expect that the files should be empty but instead they are full of object definitions.
    For example i have APPL0.SQL that contains a list of all tables of ECC system, for example
    tab: MAMT
    sql:     CREATE TABLE "MAMT"
            ("MANDT" SAPDB6VARCHAR(000003)
            DEFAULT '000' NOT NULL,
            "MATNR" SAPDB6VARCHAR(000018)
            DEFAULT ' ' NOT NULL,
            "SPRAS" SAPDB6VARCHAR(000001)
            DEFAULT ' ' NOT NULL,
            "MEINH" SAPDB6VARCHAR(000003)
            DEFAULT ' ' NOT NULL,
            "MTXID" SAPDB6VARCHAR(000002)
            DEFAULT ' ' NOT NULL,
            "LFDNR" SAPDB6VARCHAR(000002)
            DEFAULT '00' NOT NULL,
            "MAKTM" SAPDB6VARCHAR(000040)
            DEFAULT ' ' NOT NULL)
            IN "&location&"
            INDEX IN "&locationI&"
            LONG  IN "&locationL&"
          COMPRESS YES;
          ALTER TABLE "MAMT" LOCKSIZE ROW;
    and like this for all others tables.
    What would occur if i launch an import with such .SQL files?
    (shuld i put this question to another thread or is fine for you to answer on this?)
    Thank you again.
    Simone Zaffalon

  • Syntax error  while executing Key Figure routine

    Hello,
    I am posting my question again, as I have not got any solution. Please help it will be really appreciated. Here's the description
    I am loading data from flatfile to an Infocube with 3 keyfigures: Sales Price , Sales Quantity, Sales Revune. Getting values for Sales Price and Salea Quantity  from flatfile and calculating for Sales Revunue IO_VB_REV using routine
    - I created Transformations, and under Rule Group: Standard Group box I have not mapped IO_VB_REV  any datasource field and see 'X' sign against the field.
    - In rules detail screen, I add two source fields of Rule , IO_VB_QU and IO_VB_PRC. I see IO_VB_REV already added under 'Target fields of Rule' section
    - I then add the only following line to routine
    RESULT = SOURCE_FIELDS_RULE-/BIC/IO_VB_QU * SOURCE_FIELDS_RULE-/BIC/IO_VB_PRC .
    - Clicking on check button it gives no syntax error message. I save and exit back to Rule Details page.
    - For IO_VB_REV field If I select any of 2 options i.e. Fixed Unit or No conversion it gives me a dump. So I select 'from conversion' option. In that case I enter USD against 'Conversion Type' field. It gives me information box popup with 'Incorrect Input Message'
    - When check button hit on 'Rule Details' page, it gives me error message ' Syntax error in routine '
    Why is it giving me syntax error, inspite of the fact that I get 'no syntax error' message on routine page. Also why am I getting short dumps on changing Conversion Type

    Hi Olivier,
    I really thank you for ur efforts in helping me solving this problem. Below is complete description of KF defined,
    1. Created InfoObjects for Sales Quantity, Sales Price, Sales Revunue
    Definition of <b>Sales Quantity</b>
    Name: IO_VB_QU
    Type/Data Type : Quantity
    Data Type: QUAN - Quantity field, points to unit field with format UN
    Currency / unit of measure
    Unit / Currency: 0UNIT
    Definition of <b>Sales Price</b>
    Name: IO_VB_PRC
    Type/Data Type : Amount
    Data Type: CURR - Currency field, stored as DEC
    Currency / unit of measure
    Fixed Currency: USD
    Definition of <b>Sales Revunue</b>
    Name: IO_VB_REV
    Type/Data Type : Amount
    Data Type: CURR - Currency field, stored as DEC
    Currency / unit of measure
    Fixed Currency: USD
    2. As the data is being read from flatfile, created DataSource with fields for Sales ID, Sales Price, Sales Quantity. As I am reading unit for quantity from file (has values EA,BOX,CSE), I have a corresponding field UNIT in DataSource. No field for Sales Revunue.
    3. I use 'Create Transformation' functionality to automatically create transformations.
    4. Rule Details page of each of 3 KFs has following values
    <b>Rule Details page of Sales Quantity</b>
    Rule Type: Direct Assignment
    Aggregation : Summation
    Target Unit: 0UNIT
    Unit: from Source
    Source Unit: UNIT
    Source Fields of Rule: /BIC/IO_VB_QU, UNIT
    Target Fields of Rule: 0UNIT, IO_VB_QU
    <b>Rule Details page of Sales Price</b>
    Rule Type: Direct Assignment
    Aggregation : Maximum
    Fixed Target Currency : USD
    Currency: No Conversion
    Source Fields of Rule: /BIC/IO_VB_PRC
    Target Fields of Rule:  IO_VB_PRC
    <b>Rule Details page of Sales Revunue</b>
    Rule Type: Routine   
    Aggregation : Summation
    Fixed Target Currency : USD
    Currency: from Conversion
    Conversion Type: ??????.....(I entered USD it gives me Incorrect Input message)
    Source Fields of Rule: /BIC/IO_VB_PRC, /BIC/IO_VB_QU, UNIT
    Target Fields of Rule:  IO_VB_REV
    I have this line is the routine 
    RESULT = SOURCE_FIELDS_RULE-/BIC/IO_VB_QU *   SOURCE_FIELDS_RULE-/BIC/IO_VB_PRC.
    Let me know if u need any other info......
    I really appreciate u trying  to help me
    Vidya

  • At the time of RFQ creation dump error

    Dear All,
                        At the time of RFQ creation one Dump error is coiming... please advise to solve this issue...
    the error message is :
    Runtime errors         SYNTAX_ERROR
           Occurred on     09.09.2009 at   12:10:27
    Syntax error in program "SAPLV61A ".
    What happened?
    The following syntax error occurred in the program SAPLV61A :
    "Incorrect logical expression: Instead of "X" a field, a function or "("
    Error in ABAP application program.
    The current ABAP program "SAPLMEVA" had to be terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    What can you do?
    Please eliminate the error by performing a syntax check
    (or an extended program check) on the program "SAPLV61A ".
    You can also perform the syntax check from the ABAP/4 Editor.
    If the problem persists, proceed as follows:
    Print out the error message (using the "Print" function)
    and make a note of the actions and input that caused the
    error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    Error analysis
    The following syntax error was found in the program SAPLV61A :
    "Incorrect logical expression: Instead of "X" a field, a function or "("
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    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.
    System environment
    SAP Release.............. "620"
    Application server....... "ARCHIVAL"
    Network address.......... "172.26.2.145"
    Operating system......... "Windows NT"
    Release.................. "5.2"
    Hardware type............ "4x Intel 80686"
    Character length......... 8 Bits
    Pointer length........... 32 Bits
    Work process number...... 0
    Short dump setting....... "full"
    Database server.......... "ARCHIVAL"
    Database type............ "MSSQL"
    Database name............ "EDP"
    Database owner........... "dbo"
    Terminal................. "cheeid92corit"
    Character set............ "English_United State"
    SAP kernel............... "640"
    Created on............... "Mar 9 2009 22:54:07"
    Created in............... "NT 5.2 3790 Service Pack 1 x86 MS VC++ 14.00"
    Database version......... "SQL_Server_9.00 "
    Patch level.............. "274"
    Patch text............... " "
    Supported environment....
    Database................. "MSSQL 7.00.699 or higher, MSSQL 8.00.194"
    SAP database version..... "640"
    Operating system......... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2,
    Windows NT 6.0"
    User, transaction...
    Client.............. 777
    User................ "MMCORE"
    Language key........ "E"
    Transaction......... "ME47 "
    Program............. "SAPLMEVA"
    Screen.............. "SAPMM06E 0311"
    Screen line......... 54
    Information on where terminated
    The termination occurred in the ABAP program "SAPLMEVA" in
    "ME_LOAD_VARIANTS_PRICING".
    The main program was "SAPMM06E ".
    The termination occurred in line 55 of the source code of the (Include)
    program "LMEVAU08"
    of the source code of program "LMEVAU08" (when calling the editor 550).
    Source code extract
    000250       ENDIF.
    000260   *--> Initialisieren
    000270   *--> not necessary anymore (Raimond Buchholz)
    000280   *   CALL FUNCTION 'CUD0_CONFIGURATION_INITIALIZER'.
    000290   *--> Preisteile der Varianten besorgen
    000300       CALL FUNCTION 'CEI0_GET_CONDITIONS'
    000310            EXPORTING
    000320                 INSTANCE    = I_CUOBJ
    000330                 APPLICATION = 'MM'
    000340            TABLES
    000350   *              CONDITIONS  = T_VCKEY.                 "del 194053
    000360                 CONDITIONS  = T_VCKEY                   "ins 194053
    000370            exceptions                                   "ins 194053
    000380                 error_message  = 01                     "ins 194053
    000390                 others         = 02.                    "ins 194053
    000400   *--> Preisteile der Varianten mit Belegnummer versorgen
    000410       LOOP AT T_VCKEY.
    000420         T_VCKEY-KAPPL = 'M '.
    000430         T_VCKEY-VBELN = I_EBELN.
    000440         T_VCKEY-POSNR = I_EBELP.
    000450         MODIFY T_VCKEY.
    000460       ENDLOOP.
    000470     ENDIF.
    000480
    000490   *--> Preisteile der Varianten an Preisfindung übergeben
    000500   *- pricing_load_variant_key muß auch bei Positionen ohne Konfiguration
    000510   *- laufen, da die Logik im PRICING zu 4.0 umgestellt wurde
    000520     IF I_NO_LOAD IS INITIAL.
    000530       DATA: I_POSNR LIKE VBAP-POSNR.
    000540       I_POSNR = I_EBELP.
          CALL FUNCTION 'PRICING_LOAD_VARIANT_KEYS'
    000560            EXPORTING
    000570                 APPLICATION = 'M '
    000580                 VBELN       = I_EBELN
    000590                 POSNR       = I_POSNR
    000600            TABLES
    000610                 TVCKEY      = T_VCKEY
    000620            EXCEPTIONS
    000630                 OTHERS      = 1.
    000640     ENDIF.
    000650
    000660   ENDFUNCTION.
    Contents of system fields
    SY field contents..................... SY field contents.....................
    SY-SUBRC 0                             SY-INDEX 0
    SY-TABIX 1                             SY-DBCNT 1
    SY-FDPOS 1                             SY-LSIND 0
    SY-PAGNO 0                             SY-LINNO 1
    SY-COLNO 1                             SY-PFKEY GVP
    SY-UCOMM
    SY-TITLE Maintain Quotation : Item 00001
    SY-MSGTY E                             SY-MSGID AIPLOC
    SY-MSGNO 002                           SY-MSGV1 303632
    SY-MSGV2                               SY-MSGV3
    SY-MSGV4
    Kind regards
    P.Anandhakumar

    Hi Anandhakumar,
    Debugg the transaction with help of ABAPER.
    System will show you the reason for the above error.
    Hope this should solve your problem.
    Thanks and regards 
    Gitesh

  • Syntax Error while running step 34 (35) after unicode conversion

    Hello,
    We are converting our test system to Unicode to find out how to do it
    in our production system. We are at step 34/35 (Starting RFC job's) in
    the database installation so we are almost done but we have encounted a
    problem that we can't find a solution to. The error log in Sapinst give this
    information:
    ERROR      2008-11-09 11:19:19 [iaxxrfcimp.cpp:1103]           CAbRfcImpl::performFunctionCall FRF-00025  Unable to call function.
    Error message: ?`>?/?????????>??????/_???&<?(????????????????????????????????????????????????? .
    At the same time we can read the following text in dev_w1 (and dev_w0 and so on):
    A  *** ERROR => Syntax error in program SAPLBTCH                                 [abgen.c      1388]
    A  *** ERROR => > Include LBTCHF39                                 line 173 [abgen.c      1390]
    A  *** ERROR => > Statement "âu2018âu2018âu2018âu2018âu2018IF" is not defined. Check your spelling. spelling. [abgen.c      1393]
    The error don't always look the same, here is another example:
    A  *** ERROR => Syntax error in program SAPLSALC                                 [abgen.c      1388]
    A  *** ERROR => > Include LSALCU54                                 line 55 [abgen.c      1390]
    A  *** ERROR => > No component exists with the name "MTSYSIDâu2018MTMCNAMEâu2018MTNUMRANGEâu2018MTUIDâu2018". "MTSYSID [abgen.c      1393]
    A  *** ERROR => > âu2018MTMCNAMEâu2018MTNUMRANGEâu2018MTUIDâu2018". [abgen.c 1395]
    The common thing is Syntax error. If we try to log in to the system using SAP Gui we get this message: "Syntax error in program SAPMS380".
    In the file dev_disp we can read a lot of these:
    Tue Nov 11 14:06:32 2008
    *** WARNING => DpRqServiceQueue: timeout of HIGH PRIO msg, return DP_CANT_HANDLE_REQ
    But we should have enough WP since noone has loggen on to the system.
    Facts:
    Tue Nov 11 14:06:07 2008
    kernel runs with dp version 138000(ext=102000) (@(#) DPLIB-INT-VERSION-138000-UC)
    length of sys_adm_ext is 524 bytes
    sysno      60
    sid        S01
    systemid   274 (HP (IA-64) with HP-UX)
    relno      6400
    patchlevel 0
    patchno    258
    intno      20020600
    make:      single threaded, Unicode, 64 bit
    pid        20538
    HPUX on Intel IA64 with Oracle 10.0.2.0.2
    SAP ERP Central Component 5.0
    SAP_ABA     640     0021     SAPKA64021
    SAP_BASIS640     0021     SAPKB64021
    Please let me know that there is some small setting that I can change to regenerate the programs or something like that...
    Br Linus Hellsing

    Hello Ralph
    Here they are:
    TOC files
    SAPAPPL0.TOC:
    vn: R6.40/V1.4
    id: 084ac0df0000003d
    cp: 4102
    data_with_checksum
    tab: [HEADER]
    fil: SAPAPPL0.001 1024
    SAPAPPL1.TOC:
    vn: R6.40/V1.4
    id: 084ac0df0000003d
    cp: 4102
    data_with_checksum
    tab: [HEADER]
    fil: SAPAPPL1.001 1024
    EXPORT log:
    SAPAPPL0.log
    /sapmnt/S01/exe/R3load: START OF LOG: 20081029110702
    /sapmnt/S01/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#27 $ SAP
    /sapmnt/S01/exe/R3load: version R6.40/V1.4
    Compiled Aug 16 2008 18:01:48
    /sapmnt/S01/exe/R3load -ctf E /mnt/s01_exp_uni/DATA/SAPAPPL0.STR /mnt/s01_exp_uni/DB/DDLORA.TPL /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/EXPORT/ABAP/COPY/NUC/DBEXP/SAPAPPL0.TSK ORA -l /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/EXPORT/ABAP/COPY/NUC/DBEXP/SAPAPPL0.log
    /sapmnt/S01/exe/R3load: job completed
    /sapmnt/S01/exe/R3load: END OF LOG: 20081029110703
    /sapmnt/S01/exe/R3load: START OF LOG: 20081029110709
    /sapmnt/S01/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#27 $ SAP
    /sapmnt/S01/exe/R3load: version R6.40/V1.4
    Compiled Aug 16 2008 18:01:48
    /sapmnt/S01/exe/R3load -datacodepage 4102 -e /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/EXPORT/ABAP/COPY/NUC/DBEXP/SAPAPPL0.cmd -l /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/EXPORT/ABAP/COPY/NUC/DBEXP/SAPAPPL0.log -stop_on_error
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (EXP) INFO: check NameTab widths: Ok.
    (DB) INFO: Export without hintfile
    (RSCP) INFO: UMGCOMCHAR read check, OK.
    (RSCP) INFO: init SUMG interface; package name: "SAPAPPL0".
    (RSCP) INFO: "/mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/EXPORT/ABAP/COPY/NUC/DBEXP/SAPAPPL0001.xml" created.
    (RSCP) INFO: environemnt variable "I18N_POOL_WIDTH" is not set. Checks are active.
    (RSCP) INFO: I18N_NAMETAB_TIMESTAMPS not in env: checks are ON (Note 738858)
    (RSCP) INFO: UMGSETTINGS nametab creation: ok.
    (RSCP) INFO: Global fallback code page = 9491
    (RSCP) INFO: Common character set is  not  7-bit-ASCII
    (RSCP) INFO: Collision resolution method is 'fine'
    (RSCP) INFO: R3trans code pages = Normal
    (RSCP) INFO: EXPORT TO ... code pages = Normal
    (RSCP) INFO: Check for invalid language keys: activated
    (RSCP) INFO: I18N_NAMETAB_NORM_ALLOW = 999999999
    (RSCP) INFO: I18N_NAMETAB_NORM_LOG   = 1000000002
    (RSCP) INFO: I18N_NAMETAB_ALT_ALLOW  = 10000
    (RSCP) INFO: I18N_NAMETAB_ALT_LOG    = 10003
    (RSCP) INFO: I18N_NAMETAB_OLD_ALLOW  = 0
    (RSCP) INFO: I18N_NAMETAB_OLD_LOG    = 500
    (GSI) INFO: dbname   = "S0120081016081020                                                                                "
    (GSI) INFO: vname    = "ORACLE                          "
    (GSI) INFO: hostname = "scar                                                            "
    (GSI) INFO: sysname  = "HP-UX"
    (GSI) INFO: nodename = "scar"
    (GSI) INFO: release  = "B.11.23"
    (GSI) INFO: version  = "U"
    (GSI) INFO: machine  = "ia64"
    (GSI) INFO: instno   = "1220008646"
    (EXP) TABLE: "/BDL/LOCK"
    (EXP) TABLE: "/BEV1/BO_CONT"
    (EXP) TABLE: "/BEV1/BO_ENQUEUE"
    (EXP) TABLE: "/BEV1/CLCONT1"
    (EXP) TABLE: "/BEV1/CLDEB"
    and so on
    (EXP) TABLE: "ADR9S2"
    (CNV) WARNING: code page conversion problem
                   Number of substitutions: 4
          (row 30 of current buffer, table ADRC)
    CLIENT 30 30 30                                        |000             |
    ADDRNUMBER 30 30 30 30 30 31 34 38 36 39                   |0000014869      |
    DATE_FROM 30 30 30 31 30 31 30 31                         |00010101        |
    NATION 20                                              |                |
    (CNV) WARNING: code page conversion problem
                   Number of substitutions: 2
          (row 41 of current buffer, table ADRC)
    CLIENT 30 30 30                                        |000             |
    ADDRNUMBER 30 30 30 30 30 32 31 39 38 32                   |0000021982      |
    DATE_FROM 30 30 30 31 30 31 30 31                         |00010101        |
    NATION 20                                              |                |
    (RSCP) INFO: 51 lines written to /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/EXPORT/ABAP/COPY/NUC/DBEXP/SAPAPPL0001.xml
    (EXP) TABLE: "ADRC"
    (RSCP) INFO: 3 lines written to /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/EXPORT/ABAP/COPY/NUC/DBEXP/SAPAPPL0001.xml
    (EXP) TABLE: "ADRCOMC"
    and then its the same with table SETHEADERT and SKAT and SNAP and STXH.
    I will not include the whole file as it is 14213 lines long.
    SAPAPPL1.log
    /sapmnt/S01/exe/R3load: START OF LOG: 20081029110701
    /sapmnt/S01/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#27 $ SAP
    /sapmnt/S01/exe/R3load: version R6.40/V1.4
    Compiled Aug 16 2008 18:01:48
    /sapmnt/S01/exe/R3load -ctf E /mnt/s01_exp_uni/DATA/SAPAPPL1.STR /mnt/s01_exp_uni/DB/DDLORA.TPL /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/EXPORT/ABAP/COPY/NUC/DBEXP/SAPAPPL1.TSK ORA -l /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/EXPORT/ABAP/COPY/NUC/DBEXP/SAPAPPL1.log
    /sapmnt/S01/exe/R3load: job completed
    /sapmnt/S01/exe/R3load: END OF LOG: 20081029110702
    /sapmnt/S01/exe/R3load: START OF LOG: 20081029110709
    /sapmnt/S01/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#27 $ SAP
    /sapmnt/S01/exe/R3load: version R6.40/V1.4
    Compiled Aug 16 2008 18:01:48
    /sapmnt/S01/exe/R3load -datacodepage 4102 -e /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/EXPORT/ABAP/COPY/NUC/DBEXP/SAPAPPL1.cmd -l /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/EXPORT/ABAP/COPY/NUC/DBEXP/SAPAPPL1.log -stop_on_error
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (EXP) INFO: check NameTab widths: Ok.
    (DB) INFO: Export without hintfile
    (RSCP) INFO: UMGCOMCHAR read check, OK.
    (RSCP) INFO: init SUMG interface; package name: "SAPAPPL1".
    (RSCP) INFO: "/mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/EXPORT/ABAP/COPY/NUC/DBEXP/SAPAPPL1001.xml" created.
    (RSCP) INFO: environemnt variable "I18N_POOL_WIDTH" is not set. Checks are active.
    (RSCP) INFO: I18N_NAMETAB_TIMESTAMPS not in env: checks are ON (Note 738858)
    (RSCP) INFO: UMGSETTINGS nametab creation: ok.
    (RSCP) INFO: Global fallback code page = 9491
    (RSCP) INFO: Common character set is  not  7-bit-ASCII
    (RSCP) INFO: Collision resolution method is 'fine'
    (RSCP) INFO: R3trans code pages = Normal
    (RSCP) INFO: EXPORT TO ... code pages = Normal
    (RSCP) INFO: Check for invalid language keys: activated
    (RSCP) INFO: I18N_NAMETAB_NORM_ALLOW = 999999999
    (RSCP) INFO: I18N_NAMETAB_NORM_LOG   = 1000000002
    (RSCP) INFO: I18N_NAMETAB_ALT_ALLOW  = 10000
    (RSCP) INFO: I18N_NAMETAB_ALT_LOG    = 10003
    (RSCP) INFO: I18N_NAMETAB_OLD_ALLOW  = 0
    (RSCP) INFO: I18N_NAMETAB_OLD_LOG    = 500
    (GSI) INFO: dbname   = "S0120081016081020                                                                                "
    (GSI) INFO: vname    = "ORACLE                          "
    (GSI) INFO: hostname = "scar                                                            "
    (GSI) INFO: sysname  = "HP-UX"
    (GSI) INFO: nodename = "scar"
    (GSI) INFO: release  = "B.11.23"
    (GSI) INFO: version  = "U"
    (GSI) INFO: machine  = "ia64"
    (GSI) INFO: instno   = "1220008646"
    (EXP) TABLE: "/BDL/ADDONKEYS"
    (EXP) TABLE: "/BDL/BADHOST"
    and so on until
    (EXP) TABLE: "SEWADATCOL"
    (EXP) TABLE: "SFHX"
    (CNV) WARNING: code page conversion problem
                   Number of substitutions: 1
          (row 3519 of current buffer, table SFIWP)
    LANGU 4a                                              |J               |
    WORDF 82 41 45 82 a8 82 ad 95 4b 97 56 82 aa 82 a0 82 |.AE.¨..K.V.ª. .|
    WORDF c8 82 55 45 82 b7 81 42 20 20 20 20 20 20 20 20 |È.UE.·.B        |
    WORDF 20 20 20 20 20 20 20 20                         |                |
    and table STERM_TEXT. As before I will not include it all, the log file is 7775 lines long.
    IMPORT log
    SAPAPPL0.log
    /sapmnt/S01/exe/R3load: START OF LOG: 20081106102704
    /sapmnt/S01/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#27 $ SAP
    /sapmnt/S01/exe/R3load: version R6.40/V1.4 [UNICODE]
    Compiled Aug 16 2008 18:23:56
    /sapmnt/S01/exe/R3load -ctf I /mnt/s01_exp_uni/DATA/SAPAPPL0.STR /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/IMPORT/SYSTEM/ABAP/ORA/UC/DB/DDLORA.TPL /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/IMPORT/SYSTEM/ABAP/ORA/UC/DB/SAPAPPL0.TSK ORA -l /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/IMPORT/SYSTEM/ABAP/ORA/UC/DB/SAPAPPL0.log
    /sapmnt/S01/exe/R3load: job completed
    /sapmnt/S01/exe/R3load: END OF LOG: 20081106102705
    /sapmnt/S01/exe/R3load: START OF LOG: 20081106103529
    /sapmnt/S01/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#27 $ SAP
    /sapmnt/S01/exe/R3load: version R6.40/V1.4 [UNICODE]
    Compiled Aug 16 2008 18:23:56
    /sapmnt/S01/exe/R3load -dbcodepage 4102 -i /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/IMPORT/SYSTEM/ABAP/ORA/UC/DB/SAPAPPL0.cmd -l /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/IMPORT/SYSTEM/ABAP/ORA/UC/DB/SAPAPPL0.log -stop_on_error -k 54FB9C39DB
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): UTF8
    (GSI) INFO: dbname   = "S0120081106091135                                                                                "
    (GSI) INFO: vname    = "ORACLE                          "
    (GSI) INFO: hostname = "scar                                                            "
    (GSI) INFO: sysname  = "HP-UX"
    (GSI) INFO: nodename = "scar"
    (GSI) INFO: release  = "B.11.23"
    (GSI) INFO: version  = "U"
    (GSI) INFO: machine  = "ia64"
    (DB) INFO: /BDL/LOCK created #20081106103642
    (IMP) INFO: import of /BDL/LOCK completed (0 rows) #20081106103642
    (DB) INFO: /BDL/LOCK~0 created #20081106103642
    (DB) INFO: /BEV1/BO_CONT created #20081106103642
    and so on until the end:
    (DB) INFO: ZWF_STATUSCHANGE created #20081106173307
    (IMP) INFO: import of ZWF_STATUSCHANGE completed (0 rows) #20081106173307
    (DB) INFO: ZWF_STATUSCHANGE~0 created #20081106173307
    (DB) INFO: disconnected from DB
    /sapmnt/S01/exe/R3load: job completed
    /sapmnt/S01/exe/R3load: END OF LOG: 20081106173307
    /sapmnt/S01/exe/R3load: START OF LOG: 20081107092517
    /sapmnt/S01/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#27 $ SAP
    /sapmnt/S01/exe/R3load: version R6.40/V1.4 [UNICODE]
    Compiled Aug 16 2008 18:23:56
    /sapmnt/S01/exe/R3load -dbcodepage 4102 -i /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/IMPORT/SYSTEM/ABAP/ORA/UC/DB/SAPAPPL0.cmd -l /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/IMPORT/SYSTEM/ABAP/ORA/UC/DB/SAPAPPL0.log -stop_on_error -k 54FB9C39DB
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): UTF8
    (GSI) INFO: dbname   = "S0120081106091135                                                                                "
    (GSI) INFO: vname    = "ORACLE                          "
    (GSI) INFO: hostname = "scar                                                            "
    (GSI) INFO: sysname  = "HP-UX"
    (GSI) INFO: nodename = "scar"
    (GSI) INFO: release  = "B.11.23"
    (GSI) INFO: version  = "U"
    (GSI) INFO: machine  = "ia64"
    (DB) INFO: disconnected from DB
    /sapmnt/S01/exe/R3load: job completed
    /sapmnt/S01/exe/R3load: END OF LOG: 20081107092541
    /sapmnt/S01/exe/R3load: START OF LOG: 20081107111014
    /sapmnt/S01/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#27 $ SAP
    /sapmnt/S01/exe/R3load: version R6.40/V1.4 [UNICODE]
    Compiled Aug 16 2008 18:23:56
    /sapmnt/S01/exe/R3load -dbcodepage 4102 -i /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/IMPORT/SYSTEM/ABAP/ORA/UC/DB/SAPAPPL0.cmd -l /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/IMPORT/SYSTEM/ABAP/ORA/UC/DB/SAPAPPL0.log -stop_on_error -k 54FB9C39DB
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): UTF8
    (GSI) INFO: dbname   = "S0120081106091135                                                                                "
    (GSI) INFO: vname    = "ORACLE                          "
    (GSI) INFO: hostname = "scar                                                            "
    (GSI) INFO: sysname  = "HP-UX"
    (GSI) INFO: nodename = "scar"
    (GSI) INFO: release  = "B.11.23"
    (GSI) INFO: version  = "U"
    (GSI) INFO: machine  = "ia64"
    (DB) INFO: disconnected from DB
    /sapmnt/S01/exe/R3load: job completed
    /sapmnt/S01/exe/R3load: END OF LOG: 20081107111041
    The log file is 81163 lines long.
    SAPAPPL1.log
    /sapmnt/S01/exe/R3load: START OF LOG: 20081106102702
    /sapmnt/S01/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#27 $ SAP
    /sapmnt/S01/exe/R3load: version R6.40/V1.4 [UNICODE]
    Compiled Aug 16 2008 18:23:56
    /sapmnt/S01/exe/R3load -ctf I /mnt/s01_exp_uni/DATA/SAPAPPL1.STR /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/IMPORT/SYSTEM/ABAP/ORA/UC/DB/DDLORA.TPL /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/IMPORT/SYSTEM/ABAP/ORA/UC/DB/SAPAPPL1.TSK ORA -l /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/IMPORT/SYSTEM/ABAP/ORA/UC/DB/SAPAPPL1.log
    /sapmnt/S01/exe/R3load: job completed
    /sapmnt/S01/exe/R3load: END OF LOG: 20081106102703
    /sapmnt/S01/exe/R3load: START OF LOG: 20081106103529
    /sapmnt/S01/exe/R3load: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#27 $ SAP
    /sapmnt/S01/exe/R3load: version R6.40/V1.4 [UNICODE]
    Compiled Aug 16 2008 18:23:56
    /sapmnt/S01/exe/R3load -dbcodepage 4102 -i /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/IMPORT/SYSTEM/ABAP/ORA/UC/DB/SAPAPPL1.cmd -l /mnt/s01_exp_uni/tmp/sapinst_instdir/ECC50/COPY/IMPORT/SYSTEM/ABAP/ORA/UC/DB/SAPAPPL1.log -stop_on_error -k 54FB9C39DB
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): UTF8
    (GSI) INFO: dbname   = "S0120081106091135                                                                                "
    (GSI) INFO: vname    = "ORACLE                          "
    (GSI) INFO: hostname = "scar                                                            "
    (GSI) INFO: sysname  = "HP-UX"
    (GSI) INFO: nodename = "scar"
    (GSI) INFO: release  = "B.11.23"
    (GSI) INFO: version  = "U"
    (GSI) INFO: machine  = "ia64"
    (DB) INFO: /BDL/ADDONKEYS created #20081106103603
    (IMP) INFO: import of /BDL/ADDONKEYS completed (0 rows) #20081106103603
    (DB) INFO: /BDL/ADDONKEYS~0 created #20081106103603
    (DB) INFO: /BDL/BADHOST created #20081106103603
    (IMP) INFO: import of /BDL/BADHOST completed (0 rows) #20081106103603
    (DB) INFO: /BDL/BADHOST~0 created #20081106103603
    And so on until the end:
    (DB) INFO: ZWF_INVH created #20081107211801
    (IMP) INFO: import of ZWF_INVH completed (116640 rows) #20081107211817
    (DB) INFO: ZWF_INVH~0 created #20081107211818
    (DB) INFO: ZWF_INVI created #20081107211818
    (IMP) INFO: import of ZWF_INVI completed (20557 rows) #20081107211820
    (DB) INFO: ZWF_INVI~0 created #20081107211820
    (DB) INFO: disconnected from DB
    /sapmnt/S01/exe/R3load: job completed
    /sapmnt/S01/exe/R3load: END OF LOG: 20081107211820
    The log file is 52583 lines long.
    There are 55 import log files and 28 export log files.
    I hope some of this information is helpful for you and thank you again for your assistance!
    Br Linus Hellsing

  • [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error

    Hi , i am trying to execute siple SP using JDBC-ODBC Bridge Driver
    Here my code :
    String dsn="Tritek1";
    String user="sa";
    String password="imcindia";
    Connection con1 = null;
    CallableStatement cstmt = null;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    con1=DriverManager.getConnection("jdbc:odbc:"+dsn,user,password);
    Statement st=con1.createStatement();
    st.execute("use dm0102d");
    st.execute("setuser 'dm01012'");
    cstmt = conObject.connection(" ?=Call dms_ex_get_folder_info(?,?,?)");
    cstmt.setString(1,folderType);
    cstmt.registerOutParameter(2,java.sql.Types.VARCHAR);
    cstmt.registerOutParameter(3,java.sql.Types.VARCHAR);     bFlag=cstmt.execute();
    Here my SP :
         Procedure Name          :     dms_ex_get_folder_info
         Input Parameter(s)          :     a. folder_type char(20)
         Return Parameter(s)     :     a. Recordset consist edit_mask and folder_type_code from folder_reference table / error
         Procedure Type          :     select
         Programmer          :     Prashanth Kumar M.
         Creation Date          :     12/20/2005 (20th Dec, 2005)
         Tables Accessed          :     folder_reference
         Revised               :
              Programmer:     Date:     Description:
              Prashanth Kumar M.      12/21/2005 Modified the script as per the approved program specifications.
         Test Query:
              Declare @edit_mask char(15)
              Declare @folder_type_code char(2)
              execute dms_ex_get_folder_info 'Policy Folder',@edit_mask output,@folder_type_code output
              Print 'Edit Mask : ' + @edit_mask
              Print 'Folder Type Code : ' + @folder_type_code
    CREATE PROCEDURE dms_ex_get_folder_info
         @folder_type char(20),
         @edit_mask char(15) output,
         @folder_type_code char(2) output
    AS
         BEGIN
              -- Check if the record for @folder_type exists or not.
              BEGIN
                   -- return the record from folder_reference
                   SELECT
                        @edit_mask= IsNull(edit_mask,''),
                        @folder_type_code = IsNull(folder_type_code,'')
                   FROM      folder_reference
                   WHERE
                        folder_decode = ltrim(rtrim(@folder_type))
                   -- return the error message
                   IF @@error <> 0
                        BEGIN
                             RAISERROR 100016 'Error in gettting the record from folder_reference table'
                             RETURN (@@error)
                        END
                   IF @edit_mask = '' AND @folder_type_code = ''
                        BEGIN
                             RAISERROR 100017 'No matching details in the folder_reference table'
                        RETURN (@@error)
                        END
              END
         END
    GO
    Here My Exception:
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecute(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(Unknown Source)
         at com.nyl.dms.bl.Folder.createFolder(Folder.java:121)
         at com.nyl.dms.bl.Folder.main(Folder.java:223)
    Any one can help me to overcome this problem . Thanks in advance.
    venkat

    Here's from one of those 10s of books.
    Quoted from JDBC 3.0 by Bernard Van Haecke:
    Stored procedures can return multiple result types because they can be composed of SQL statements that return diverse result types: resultsets and update counts (this includes special error codes).
    Now this doesn't sound very satisfactory. So I use Sybase since I don't have any other database at the moment, and write a simple stored procedure.
    CREATE proc testproc AS
    BEGIN
    -- My return code
    return 7
    END
    goThen a sample patchy buggy code to play around:
    import java.sql.*;
    public class ProcTesting {
        public static void main(String[] args) {
            String connUrl          = "jdbc:sybase:Tds:myserver:5150/dbinst";
            String userName         = "username";
            String password         = "password";
            Connection con          = null;
            CallableStatement stmt  = null;
            ResultSet rs            = null;
            String sql = "{? = call testproc}";
            try {
                Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();
                con     = DriverManager.getConnection(connUrl, userName, password);
                stmt    = con.prepareCall(sql);
                stmt.registerOutParameter(1, Types.INTEGER);
                stmt.execute();
                System.out.println(stmt.getInt(1));
            } catch(Exception e) {
                e.printStackTrace();
            } finally {
                closeAll(con, stmt);
        public static void closeAll(Connection con, Statement stmt) {
            try {
                con.close();
            } catch(Exception e) {  }
            try {
                stmt.close();
            } catch(Exception e) {  }
    }Followed by:
    javac ProcTesting.java
    java -cp "%CLASSPATH%;C:\jarutils\jconn2.jar" ProcTesting
    Output:
    7
    Didn't you know this could be done?
    Happy new year, grandpa!

  • Syntax error [nQSError: 27002] Near NA : Syntax error [nQSError: 26012] .

    All,
    I would like to cache few dashboard SQL's manually. For that I am seeding this logical SQL to BI. I got this SQL from the Advanced tab of analytics.
    Call SASeedQuery('SELECT s_0, s_1, s_2, s_3, s_4, s_5, s_6, s_7, s_8, s_9, s_10, s_11, s_12 FROM (
    SELECT
    0 s_0,
    "RProBIEE"."Date"."Calendar Month" s_1,
    "RProBIEE"."Date"."Calendar Year" s_2,
    "RProBIEE"."Stores"."Sbs Name" s_3,
    "RProBIEE"."Vendors"."Vend Name" s_4,
    DESCRIPTOR_IDOF("RProBIEE"."Stores"."Sbs Name") s_5,
    "RProBIEE"."PO Amounts"."PO Quantity" s_6,
    "RProBIEE"."PO Amounts"."PO Received Quantity" s_7,
    "RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 s_8,
    REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
    Month","RProBIEE"."Vendors"."Vend Name") s_9,
    REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
    Year") s_10,
    REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
    Year","RProBIEE"."Date"."Calendar Month") s_11,
    REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
    Year",DESCRIPTOR_IDOF("RProBIEE"."Stores"."Sbs Name"),"RProBIEE"."Vendors"."Vend Name") s_12
    FROM "RProBIEE"
    WHERE
    (Stores."Sbs Name" NOT IN ('NA', 'UNK'))
    ) djm ORDER BY 1, 5 ASC NULLS LAST, 2 ASC NULLS LAST');
    and I get below error
    te"."Calendar Month") s_11,
    REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."P
    O Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar Year",DESCRIPTOR_IDO
    F("RProBIEE"."Stores"."Sbs Name"),"RProBIEE"."Vendors"."Vend Name") s_12
    FROM "RProBIEE"
    WHERE
    (Stores."Sbs Name" NOT IN ('NA', 'UNK'))
    ) djm ORDER BY 1, 5 ASC NULLS LAST, 2 ASC NULLS LAST')
    [10058][State: S1000] [NQODBC] [SQL_STATE: S1000] [nQSError: 10058] A general er
    ror has occurred.
    [nQSError: 43113] Message returned from OBIS.
    [nQSError: 27002] Near <NA>: Syntax error [nQSError: 26012] .
    Statement preparation failed
    Processed: 1 queries
    Encountered 1 errors

    Hi,
    When u press editing data target button in session variable a new popup window opens 'Session variable Initialization block variable target'
    In that Just give one variable name in User
    for example in EditDatasource i have given syntax as
    SELECT
    FND_GLOBAL.RESP_ID,
    FND_GLOBAL.RESP_APPL_ID,
    FND_GLOBAL.SECURITY_GROUP_ID,
    FND_GLOBAL.RESP_NAME,
    FND_GLOBAL.USER_ID,
    FND_GLOBAL.EMPLOYEE_ID,
    FND_GLOBAL.USER_NAME
    FROM DUAL
    in target give EBS_RESP_ID and select ok, again open datatarget and give in User as ' EBS_REPS_APPL_ID' like wise.......
    I think you can understand it and go a head.........

  • EDI: Syntax error in IDoc (too many repetitions of a segment)

    Hi All -
       We are getting an "EDI: Syntax error in IDoc (too many repetitions of a segment)" error message while processing the REMADV message in the payment run program.
    Basic Type : PEXR2002
    Message Type : REMADV
    Segment Name : E1EDP02
    This issue is due to BELNR length in above segment, since payment run program assigning the 45 chars but BELNR length is 35 char, is there any way or OSS notes we can implement to rectify the same.
    Thanks in Advance.
    Rds,
    K

    Hi,
    This error is the segment definition violation. Open your BASIC IDOC type in WE30, double click on the segment TESTIDOC.
    In the popup you can see properties like mandatory segment, Minimum number and Max number. Your IDOC is crossing the max number of repetitions it can have. If any of the segment definition perperties like this one, or improper position of the segment etc occurs IDOC is generated with syntax error.
    Thanks,
    Vinod.

  • Syntax error in Define entitytype method in MPC class.

    Hi,
    I am trying to create Odata service by creating new entity type and entity set at service level creation itself (Data model-->Create). Now at the time of generation of classes I am getting syntax error fields are not defined in method, Define Entitytype of MPC class. Could you guide me on how I can generate classes here.
    Br,
    Venkat Konanki.

    Hi,
    I am trying to create Odata service by creating new entity type and entity set at service level creation itself (Data model-->Create). Now at the time of generation of classes I am getting syntax error fields are not defined in method, Define Entitytype of MPC class. Could you guide me on how I can generate classes here.
    Br,
    Venkat Konanki.

  • SYNTAX ERROR IN SAPMSSYD PROGRAM

    HI ,
               We included the code in Program 'SAPMSSYD' for our internal
    validation. This validation requires to fetch the data from the ztables.
    we created ZTABLE and included custom code in SAPMSSYD in DEV server
    and tested sucessfully.
    We tried to move the Transport request from DEV to QAS. We had separate
    transport request for Ztable Creation and for our custom code
    validation. Instead of moving the Ztable request first, we have moved
    the customer code request and Due to this System throws an syntax error
    when we get into login screen of QAS server. Now we are not able to
    login to QAS and our testing process was completely stopped in QAS
    server. Pls advice us how to revoke transport or to solve this issue.
    Best Regards
    Thiru

    First, if you change such a kernel-like program, I advise you to request SAP consulting, that's really too much dangerous!
    Secondly, if you want to revert back, you have to do it on the DEV system (version management), then transport again.

  • Syntax error in program "ZCL_IM_HRPAD00INFTY===========CP ".

    Hi,
    While running the PA40 transaction..am giving the from date :24.10.2007(any date) and selecting the 'Hire New Employee' tab from personnel actions. If i click on execute button it is giving Runtime Error.
    <b>Error analysis</b>
    The following syntax error was found in the program
      ZCL_IM_HRPAD00INFTY===========CP :
    "A line of "NEW_IMAGE" and "LW_2001_NEW" are not mutually convertible. "
    "In a Unicode program "NEW_IMAGE" must have the same structure layout a"
    "s "LW_2001_NEW" independent of the length of a . Unicode character. Un"
    "icode character."
    Source code:
       12   ELSE.
       13     CONCATENATE '\CLASS=' imp_class INTO abs_type_classname.
       14 *****  dynamic object creation     *******************************
    >>>>>     CREATE OBJECT instance TYPE (abs_type_classname).
       16 ******************************************************************
       17     imp_obj-imp_name    = imp_name.
       18     imp_obj-calling_obj = caller.
    Please do the needfull.
    Thanks in advance.
    Regards,
    Phani Miriyala.

    Hi,
    its seems unicode problem in your BADI code.
    (1) goto se24 transaction.
    (2) enter the class name ZCL_IM_HRPAD00INFTY===========CP '
    (3) select the properties tab.
    (4) in general data tick the check box 'Unicode checks active'.
    if error persist then in same way you have also check all the implemetation of BADI's for unicode tick
    Hope it will help you.
    regards,
    ABHIJIT ZOPE

  • 4.0 EA2 plsql editor gives syntax error on $$plsql_unit variable

    Hello,
    A plsql procedure contains the following statement in the declare section:
    cl_module      constant varchar2(20) := $$plsql_unit;
    In the plsql editor the part $$ is indicated as having syntax errors, by hovering on it a popup window displays :
    Syntax error, expected: name_wo_function_call, name, expr.
    The procedure compiles without any problem. Please adapt the plsql parser to support $$variables.
    Joop

    Hello Jeff,
    is this issue on the 4.0 EA3 list?
    Joop

  • Syntax Error message

    can someone please check this simple SQL table creation command for me and advice why the system generates an error message everytime this is excuted in Oracle
    CREATE TABLE PRODUCT (
    P_CODE VARCHAR(10) NOT NULL UNIQUE,
    P_DESCRIPT VARCHAR(35) NOT NULL,
    P_INDATE DATE NOT NULL,
    P_ONHAND SMALLINT NOT NULL,
    P_MIN SMALLINT NOT NULL,
    P_PRICE NUMBER(8,2) NOT NULL,
    P_DISCOUNT NUMBER(5,2) NOT NULL,
    V_CODE INTEGER,
    PRIMARY KEY (P_CODE));
    FOREIGN KEY (V_CODE) REFERENCES VENDOR
    ON DELETE RESTRICT
    ON UPDATE CASCADE);
    The first thing it tells me is that there is a syntax error on line 1.

    user10876303 wrote:
    can someone please check this simple SQL table creation command for me and advice why the system generates an error message everytime this is excuted in Oracle
    CREATE TABLE PRODUCT (
    P_CODE VARCHAR(10) NOT NULL UNIQUE,
    P_DESCRIPT VARCHAR(35) NOT NULL,
    P_INDATE DATE NOT NULL,
    P_ONHAND SMALLINT NOT NULL,
    P_MIN SMALLINT NOT NULL,
    P_PRICE NUMBER(8,2) NOT NULL,
    P_DISCOUNT NUMBER(5,2) NOT NULL,
    V_CODE INTEGER,
    PRIMARY KEY (P_CODE));
    FOREIGN KEY (V_CODE) REFERENCES VENDOR
    ON DELETE RESTRICT
    ON UPDATE CASCADE);
    The first thing it tells me is that there is a syntax error on line 1.you have a closing parenthesis and a semi-colon after the primary key definition. The means it is trying to parse the foreign key clause a a new statement, hence the syntax error.
    You don't say which tool you are using, but I can't get it to produce that particular error in SQLDeveloper.
    Syntax error at line 1 usually implies something wrong in a PL/SQL block. How are you executing this?

  • "Syntax error loading filters - operation cancelled"

    Hi all,
    Version 9.2.0.2
    I am experiencing an error that has been documented before. When I logged into an application, I get this popup "Syntax error loading filters - operation cancelled" from the Excel add in which won't let me log in. I tried all most of the reccomendations (restarting application/server) with the exception of changing ports.
    My application doesn't have filters. I think it might be something to do with an unable ip address or something. Any ideas?
    Thanks

    Is the IP address of the server configured as static or dynamic? I used to get this error all the time on my laptop when I returned from 'suspend' mode. If I put in a static IP address, the problem would go away.
    Tim Tow
    Applied OLAP, Inc

Maybe you are looking for