Error 26: Error during syntax check of IDoc (outbound)

Hi all,
   I am getting error when we try to generate IDoc in Outbound process (to send data from SAP to external Interface).
  Error no is 26. And I have checked the status records, it shows the below error message. "EDI: Syntax error in IDoc (too many repetitions of a group). According to the syntax description of the basic type SHPMNT05 (customer enhancement ZSHPMNT05), the segment group E1EDL37 can be repeated a maximum of 0000000260 times. However, this segment group occurs more frequently in the IDoc. Please check the IDoc or the syntax description of the basic type SHPMNT05 (customer enhancement ZSHPMNT05).
  Can any one tell me is there any limitation for data records for segment E1EDL37?
  Kindly suggest me what is the problem & what needs to be done to fix this.
Thanks in advance.
Regards
Mohammad.

Hi Guys,
This is a problem which occurs throughout lots of SAP systems. This occurs due to someone changing the IDOCSYN table without making the neccessary changes to the EDISYN table.
For more information on this you can check out the note - 370021. Also if you run the following program in your system and make the changes to your IDOC segment, this error will go away.
(Please note that this program is provided by SAP and I just made a small adjustment by adding the COMMIT WORK AND WAIT statement) .
Hope this helps.
REPORT ze1edp19.
TABLES: idocsyn, edisyn, cimsyn.
DATA: old_idocsyn TYPE idocsyn,
      lt_idocsyn  TYPE STANDARD TABLE OF idocsyn,
      ls_idocsyn  TYPE idocsyn,
      old_edisyn  TYPE edisyn,
      lt_edisyn   TYPE STANDARD TABLE OF edisyn,
      ls_edisyn   TYPE edisyn.
PARAMETER idoc_typ TYPE idocsyn-idoctyp DEFAULT 'ORDERS05'.
PARAMETER idoc_seg TYPE idocsyn-segtyp  DEFAULT 'E1EDP19'.
PARAMETER occmax   TYPE idocsyn-occmax  DEFAULT '99'.
PARAMETER upd_flag AS   CHECKBOX        DEFAULT space.
START-OF-SELECTION.
table IDOCSYN
  SELECT * FROM idocsyn
         INTO TABLE lt_idocsyn
         WHERE idoctyp = idoc_typ.
  READ TABLE lt_idocsyn INTO ls_idocsyn
                        WITH KEY idoctyp = idoc_typ
                                 segtyp  = idoc_seg.
  IF sy-subrc = 0.
    MOVE ls_idocsyn TO old_idocsyn.
    ls_idocsyn-occmax = occmax.
    IF upd_flag EQ 'X'.
      UPDATE idocsyn FROM ls_idocsyn.
     COMMIT WORK AND WAIT.
      WRITE: 'Table IDOCSYN updated',
             /,'         Idoctype:      ',idoc_typ,
             /'         segment number: ',ls_idocsyn-nr.
      WRITE: /,'OCCMAX changed from',old_idocsyn-occmax,
             ' to ',ls_idocsyn-occmax.
    ELSE.
      WRITE: 'No UPDATE done in table IDOCSYN',
             /,'         Idoctype:      ',idoc_typ,
             /'         segment number: ',ls_idocsyn-nr.
      WRITE: /,'OCCMAX changed from',old_idocsyn-occmax,
             ' to ',ls_idocsyn-occmax.
    ENDIF.
  ELSE.
    WRITE: 'no such record in table IDOCSYN'.
  ENDIF.
  ULINE.
table EDISYN
  SELECT * FROM edisyn
         INTO TABLE lt_edisyn
         WHERE idoctyp = idoc_typ AND
               cimtyp  = space.
  READ TABLE lt_edisyn INTO ls_edisyn
                       WITH KEY idoctyp = idoc_typ
                                cimtyp  = space
                                segtyp  = idoc_seg.
  IF sy-subrc = 0.
    MOVE ls_edisyn TO old_edisyn.
    ls_edisyn-occmax = occmax.
    IF upd_flag EQ 'X'.
      UPDATE edisyn FROM ls_edisyn.
      WRITE: 'Table EDISYN updated',
             /,'         Idoctype:      ',idoc_typ,
             /'         segment number: ', ls_edisyn-posno.
      WRITE: /,'OCCMAX changed from',old_edisyn-occmax,
             ' to ',ls_edisyn-occmax.
    ELSE.
      WRITE: 'No UPDATE done in table EDISYN',
             /,'         Idoctype:      ',idoc_typ,
             /'         segment number: ',ls_idocsyn-nr.
      WRITE: /,'OCCMAX changed from',old_idocsyn-occmax,
             ' to ',ls_idocsyn-occmax.
    ENDIF.
  ELSE.
    WRITE: 'no such record in table EDISYN'.
  ENDIF.

Similar Messages

  • 26 Error during syntax check of IDoc (outbound)

    Hi Experts
    I am using TPSDLS - Idoc(outbound).
    When we view in WE02 : for few of the deliveries it is working fine , but for some it is giving the following error
    26     Error during syntax check of IDoc (outbound)
    Please any one help me out for the same
    Thanks & Regards
    Shaveta

    Please check the segments for the idocs in error status in WE02. The segments in the idoc should be in the same sequence as defined while creating idoc in WE30.
    For eg. taking the case of invoic02 idoc.
    Segment E1EDP01 cannot come prior to segment E1EDK01.
    As in WE30 it is defined to come after E1EDK01\
    Please reward the points if this information is useful.

  • Error during syntax check of IDoc (outbound)

    Hello,
    I did an insert into idoc_data of segment E1TXTH8 (level 3 - as child of E1EDL20) and E1TXTP8 (level 4 as child of E1TXTH8).
    inside user-exit ZXTRKU02.
    But idoc is created with error 26 (and hierarchy is not respected! (WE05)).
    Am I using the right user-exit or i miss something in the sequence while insert??
    Error:
    EDI: Syntax error in IDoc (segment cannot be identified)
    Message no. E0078
    Diagnosis
    The segment E1TXTH8 does not occur at the current level of the basic type DELVRY03 (extension ).
    This error can have several reasons:
    The segment E1TXTH8 is assigned to a group whose header segment does not occur.
    The segment E1TXTH8 does not exist in the syntax description of the basic type DELVRY03 (extension ).
    The sequence of segments in the group in which the segment appears is incorrect.
    Previous errors ('mandatory' segment or group missing) may be due to this error.
    Procedure
    Please check the IDoc or the syntax description of the basic type DELVRY03 (extension ).
    Thank you in advance for your help.
    Edited by: Fakher Baklouti on Apr 9, 2010 7:12 PM

    Hello Faker,
    It depends on the previous available segment.
    Here is the procedure,
    1. Get all the segments from the database table IDOCSYN where basic type is DELVRY03
    2. Sort them by Sequential number in DESCENDING
    3. Get the Index (say GV_INDEX) of the segment in IDOCSYN which you want to insert or edit
    4. LOOP internal table of IDOCSYN from index GV_INDEX and check for the availability of the segment of IDOCSYN in idoc data
    5. If it is success, break the loop and now you got the previous available segment
    6. Now just insert your segment in the idoc table just after it.

  • Idoc error during syntax check - error26

    hi everyone
    I need help understanding where this idoc error is generating and what is it about. I went through the steps many times but it's still the same.

    hi
    where is the section which populates the segments? Could you ask for the info you need I am happy to take screen shots because till now from all suggestions so far I'm not able to solve this.
    Here is the idoc program for this:
    *& Report  ZIDOCPG
    REPORT  ZIDOCPG.
    PARAMETERS PLIFNR TYPE LIFNR.
    PARAMETERS PNAME1 TYPE NAME1_GP.
    PARAMETERS PORT01 TYPE ORT01_GP.
    DATA VSEG LIKE Z1TRANS.
    DATA VEDP13 LIKE EDP13.
    DATA: BEGIN OF FEDIDC OCCURS 0.
        INCLUDE STRUCTURE EDIDC.
    DATA: END OF FEDIDC."MASTER IDOC
    DATA: BEGIN OF TEDIDC OCCURS 0.
        INCLUDE STRUCTURE EDIDC.
    DATA: END OF TEDIDC."COMM IDOC
    DATA: BEGIN OF TEDIDD OCCURS 0.
      INCLUDE STRUCTURE EDIDD.
    DATA: END OF TEDIDD.
    SELECT SINGLE * FROM EDP13 INTO VEDP13 WHERE MESTYP = 'ZTMSG'   AND
      IDOCTYP = 'ZTRANS'.
    VSEG-LIFNR = PLIFNR.
    VSEG-NAME1 = PNAME1.
    VSEG-ORT01 = PORT01.
    TEDIDD-SEGNAM = VSEG.
    TEDIDD-SDATA = VSEG.
    APPEND TEDIDD.
    *TO GEN IDOC CONTROL RECORD.
    FEDIDC-MESTYP = 'ZTMSG'.
    FEDIDC-DOCTYP = 'ZTRANS'.
    FEDIDC-RCVPOR = VEDP13-RCVPOR.
    FEDIDC-RCVPRN = VEDP13-RCVPRN.
    FEDIDC-RCVPRT = VEDP13-RCVPRT.
    APPEND FEDIDC.
    CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
      EXPORTING
        MASTER_IDOC_CONTROL                  = FEDIDC
      TABLES
        COMMUNICATION_IDOC_CONTROL           = TEDIDC
        MASTER_IDOC_DATA                     = TEDIDD.
    COMMIT WORK.

  • Idoc outbound errors05(error during translation) 07(error during syntax ch)

    hi,
            i found all idocs in the system fails with status 07(error during syntax check)
    idoc got different stats:
      flow of status:01
                          30
                          03
                          18
                          24
                          05 (error during translation)
                          07 (error during syntax check)
                        what could be the problem ?

    Hi,
    This could be the format which you are sending not matching with other system.
    For example, if your are sending the Idocs to EDI, system, the mapping should be correct with the idoc which you have are sending. If haven't changed any posting program logic or idoc segments, then check with other system who is supposed to transmit the idocs.
    Regards,
    Ashok

  • Error in Syntax check in code

    Hi,
    We are developing a report, where we have written the following piece of code:
    LOOP AT lt_kondd2.
          DO.
           If lv_first = "X".                                            "1
              READ TABLE lt_kotd2 WITH KEY knumh = lt_kondd2-knumh.
           Else.                                                         "1
              READ TABLE lt_kotd2 WITH KEY knumh = lv_smatn.
           Endif.      
          Some Statements.
         Enddo.
        Some statements
    Endloop.
    During syntax check the above code is giving the following error:
    Field "READ" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
    Please help point out what could be wrong.
    Thanks,
    Peter

    >
    Peter Grosvenor wrote:
    >       
    If lv_first = "X".                                            "1
    You are using double quotes (") rather than single quotes (').
    Next time, do more desk checking before posting here.
    Rob

  • You have an error in your SQL syntax;

    i have a checkout page that i am trying to send to a payment centre but and getting the following error
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '16)' at line 1
    can someone help and tell me what this means does it mean "conflict with columns definitions"
    if so what can i do to solve the issue? do you need to see the page code?
    thanks

    <?php require_once('Connections/wibbles.php'); ?>
    <?php
    // do not cache
    header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");                      // Date in the past
    header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
    header ("Cache-Control: no-cache, must-revalidate");                    // /1.1
    header ("Pragma: no-cache");                                            // /1.0
    // *** Restrict Access To Page: Grant or deny access to this page
    $FX_authorizedUsers=" ";
    $FX_authFailedURL="login.php";
    $FX_grantAccess=0;
    if (!session_id()) session_start();
    if (isset($_SESSION["MM_Username"])) {
      if (true || !(isset($_SESSION["MM_UserAuthorization"])) || $_SESSION["MM_UserAuthorization"]=="" || strpos($FX_authorizedUsers, $_SESSION["MM_UserAuthorization"])) {
        $FX_grantAccess = 1;
    if (!$FX_grantAccess) {
      $FX_qsChar = "?";
      if (strpos($FX_authFailedURL, "?")) $FX_qsChar = "&";
      $FX_referrer = "Restricted Area";
      $FX_authFailedURL = $FX_authFailedURL . $FX_qsChar . "accessdenied=" . urlencode($FX_referrer);
      header("Location: $FX_authFailedURL");
      exit;
    // *** Retrieve X ID ***
    if (!session_id()) session_start();
    $XC_OrderIdSessionVar = "OrderID";
    if (!isset($_SESSION[$XC_OrderIdSessionVar])) {
      // Get a unique OrderID number and save to session.
      $XC_tableName = "wibble_nextorder";
      $XC_fieldName = "NextOrderID";
      mysql_select_db($database_wibbles, $wibbles);
      $XC_IdSource = "select " . $XC_fieldName . " from " .  $XC_tableName;
      $XC_rsId = mysql_query($XC_IdSource, $wibbles) or die(mysql_error());
      $row_XC_rsId = mysql_fetch_assoc($XC_rsId);
      $_SESSION[$XC_OrderIdSessionVar] = $row_XC_rsId[$XC_fieldName];
      $$XC_OrderIdSessionVar = $_SESSION[$XC_OrderIdSessionVar];
      session_register($XC_OrderIdSessionVar);
      $XC_next = $_SESSION[$XC_OrderIdSessionVar] + 1;
      $XC_upd = "update " . $XC_tableName . " set " . $XC_fieldName . " = " . $XC_next;
      $XC_rsId = mysql_query($XC_upd, $wibbles) or die(mysql_error());
      $XC_rsId = null;
    // x limit validation
    if (isset($_POST["XC_Limit"]) && $_POST["XC_Limit"] != "") {
      $XC_limErr = stripslashes($_POST["XC_Limit"]);
      if (isset($_GET['XC_SaveCartToTable'])) unset($_GET['XC_SaveCartToTable']);
      unset($HTTP_POST_VARS);
      unset($_POST);
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    // x limit validation
    if (isset($_POST["XC_Limit"]) && $_POST["XC_Limit"] != "") {
      $XC_limErr = stripslashes($_POST["XC_Limit"]);
      if (isset($_GET['XC_SaveCartToTable'])) unset($_GET['XC_SaveCartToTable']);
      unset($_POST);
      unset($_POST);
    // Validate X amount
    if (isset($_POST["XC_Amount"]) && $_POST["XC_Amount"] < 10) {
        if (isset($_GET['XC_SaveCartToTable'])) unset($_GET['XC_SaveCartToTable']);
        unset($_POST);
        unset($_POST);
        $XC_amErr = "The amount doesn't reach the allowed minimum of &euro; 100.";
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO wibble_orders (OrderID, CustomerID, OrderDate, Shipping, Discount, Tax, Total) VALUES (%s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['OrderID'], "int"),
                           GetSQLValueString($_POST['CustomerID'], "int"),
                           GetSQLValueString($_POST['OrderDate'], "date"),
                           GetSQLValueString($_POST['Shipping'], "double"),
                           GetSQLValueString($_POST['Discount'], "double"),
                           GetSQLValueString($_POST['Tax'], "double"),
                           GetSQLValueString($_POST['XC_Amount'], "double"));
      mysql_select_db($database_wibbles, $wibbles);
      $Result1 = mysql_query($insertSQL, $wibbles) or die(mysql_error());
    // *** X Shopping Cart ***
    $useSessions = true;
    $XCName = "wibbleJakeCart";
    $XCTimeout = 30;
    $XC_ColNames=array("ProductID","Quantity","Name","Color","Price","MinQty","Discount","Stoc k","Total");
    $XC_ComputedCols=array("","","","","","","","","Price");
    require_once('XCInc/XCart.inc');
    $colname_rsCustomer = "1";
    if (isset($_SESSION['MM_UserAuthorization'])) {
      $colname_rsCustomer = $_SESSION['MM_UserAuthorization'];
    mysql_select_db($database_wibbles, $wibbles);
    $query_rsCustomer = sprintf("SELECT * FROM wibble_customers WHERE CustomerID = %s", GetSQLValueString($colname_rsCustomer, "int"));
    $rsCustomer = mysql_query($query_rsCustomer, $wibbles) or die(mysql_error());
    $row_rsCustomer = mysql_fetch_assoc($rsCustomer);
    $totalRows_rsCustomer = mysql_num_rows($rsCustomer);
    // *** Redirect if XCart is Empty ***
    $XC_RedirectIfEmpty = "shopping-cart.php";
    if (isset($_SERVER["QUERY_STRING"])) {
      $XC_RedirectIfEmpty .= "?" . htmlentities($_SERVER["QUERY_STRING"]);
    if (isset(${$XCName}["contents"]) && (sizeof(${$XCName}["contents"][0]) == 0)) header("Location: " . $XC_RedirectIfEmpty);
    // *** Repeat XCart region *** (do not remove this label)
    // validate x limit
    $XC_invalidItems = "";
    $XC_lim = "";
    $iCol = array_search("Quantity",${$XCName}["ColNames"]);
    $iSrc = array_search("Stock",${$XCName}["ColNames"]);
    for ($iVal=0; $iVal<sizeof(${$XCName}["contents"][0]); $iVal++) {
      if (${$XCName}["contents"][$iCol][$iVal] > ${$XCName}["contents"][$iSrc][$iVal]) {
        if ($XC_invalidItems != "") $XC_invalidItems .= "-";
        $XC_invalidItems .= (string) ($iVal+1);
        if ($XC_lim != "") $XC_lim .= "-";
        $XC_lim .= (string) ${$XCName}["contents"][$iSrc][$iVal];
    if ($XC_invalidItems != "") {
      $XC_invalidItems = "(".$XC_invalidItems.")";
      $XC_lim = "(".$XC_lim.")";
      $x_limErr = "The item(s) $XC_invalidItems exceed the available stock of $XC_lim";
    // *** Add shipping based on Range
    mysql_select_db($database_wibbles, $wibbles);
    $XC_sourceVal = $XCart_sumTotal;
    $XC_ShipSource = "SELECT Shipping FROM wibble_shipbyprice WHERE MinPurchase < " . $XC_sourceVal . " AND MaxPurchase >= " . $XC_sourceVal;
    $XC_rsShip = mysql_query($XC_ShipSource, $wibbles) or die(mysql_error());
    $row_XC_rsShip = mysql_fetch_assoc($XC_rsShip);
    $XC_Shipping = $row_XC_rsShip['Shipping'];
    $XC_rsShip = null;
    // *** Add Referenced Sales Tax
    mysql_select_db($database_wibbles, $wibbles);
    $XC_taxSource = "SELECT Tax FROM wibble_tax WHERE Country = '" . $row_rsCustomer['Country'] . "'";
    $XC_rsTax = mysql_query($XC_taxSource, $wibbles) or die(mysql_error());
    $row_XC_rsTax = mysql_fetch_assoc($XC_rsTax);
    $XC_Tax = $row_XC_rsTax['Tax'];
    $XC_rsTax = null;
    $XC_SalesTax = $XC_Tax*($XCart_sumTotal+$XC_Shipping-$XC_Discount);
    // *** Compute Grand Total
    $XC_GranTotal = $XCart_sumTotal+$XC_SalesTax+$XC_Shipping-$XC_Discount;
    // *** Format table as Europe style
    if (!session_id()) session_start();
    // set header 
    $XC_header = "<style type=\"text/css\">\n<!--\n";
    $XC_header .= "table {font-family: Arial, Helvetica, sans-serif; font-size: 13px;}\n";
    $XC_header .= "-->\n</style>\n";
    $XC_header .= "<table width=\"520\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
    $XC_header .= "  <tr>\n    <td>\n";
    $XC_header .= "<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\">\n";
    $XC_header .= "  <tr>\n    <td> </td>\n    <td align=\"right\"> </td>\n  </tr>\n";
    $XC_header .= "  <tr>\n    <td>Order n. <b>" . $_SESSION["OrderID"] . "</b></td>\n    <td align=\"right\"> " . date("d/m/Y") . "</td>\n  </tr>\n";
    $XC_header .= "  <tr>\n    <td> </td>\n    <td> </td>\n  </tr>\n";
    $XC_header .= "  <tr>\n    <td colspan=\"2\" align=\"Left\">";
    $XC_header .= $row_rsCustomer["FirstName"] . " ";
    $XC_header .= $row_rsCustomer["LastName"] . " <br>";
    $XC_header .= $row_rsCustomer["Address"] . " <br>";
    $XC_header .= $row_rsCustomer["ZIP"] . " ";
    $XC_header .= $row_rsCustomer["City"] . " ";
    $XC_header .= $row_rsCustomer["State"] . " <br>";
    $XC_header .= $row_rsCustomer["Country"] . " <br>";
    $XC_header .= "</td>\n  </tr>\n</table>\n";
    $XC_header .= "<table border=\"0\" cellspacing=\"2\" cellpadding=\"2\">\n";
    $XC_header .= "  <tr>\n    <td colspan=\"5\"> </td>\n  </tr>\n";
    $XC_header .= "  <tr>\n    <td colspan=\"5\">Cart contents: </td>\n  </tr>\n";
    // set cart data 
    $XCartData = "  <tr>\n";
    $XCartData .= "    <th width=\"30\" bgcolor=\"#CC6600\"><font color=\"white\">Qty</font></th>\n";
    $XCartData .= "    <th width=\"310\" bgcolor=\"#CC6600\"><font color=\"white\">Description</font></th>\n";
    $XCartData .= "    <th width=\"60\" bgcolor=\"#CC6600\"><font color=\"white\">Price</font></th>\n";
    $XCartData .= "    <th width=\"40\" bgcolor=\"#CC6600\"><font color=\"white\">Disc</font></th>\n";
    $XCartData .= "    <th width=\"80\" bgcolor=\"#CC6600\"><font color=\"white\">Total</font></th>\n";
    $XCartData .= "  </tr>\n";
    for ($jRow=0; $jRow<sizeof(${$XCName}["contents"][0]); $jRow++) {
      require('XCInc/RepeatXMailRegion.inc');
      $XCartData .= "  <tr>\n";
      $XCartData .= "    <td align=\"Center\" bgcolor=\"#FFFF99\">" . ${$XCName}["contents"][1][$jRow] . "</td>\n";
      $XCartData .= "    <td align=\"Left\" bgcolor=\"#FFFF99\">" . ${$XCName}["contents"][2][$jRow] . "</td>\n";
      $XCartData .= "    <td align=\"Right\" bgcolor=\"#FFFF99\">&euro; " . number_format(${$XCName}["contents"][4][$jRow], 2, ',', '.') . "</td>\n";
      $XCartData .= "    <td align=\"Center\" bgcolor=\"#FFFF99\">" . ${$XCName}["contents"][6][$jRow] . "</td>\n";
      $XCartData .= "    <td align=\"Right\" bgcolor=\"#FFFF99\">&euro; " . number_format(${$XCName}["contents"][8][$jRow], 2, ',', '.') . "</td>\n";
      $XCartData .= "  </tr>\n";
    // set footer
    $XC_footer = "  <tr>\n    <td colspan=\"4\" align=\"right\"><b> SubTotal </b></td>\n    <td align=\"right\" bgcolor=\"#FFFF99\"><b> &euro; " . number_format($XCart_sumTotal, 2, ',', '.') . "</b></td>\n  </tr>\n";
    $XC_footer .= "  <tr>\n    <td colspan=\"4\" align=\"right\"> Shipping </td>\n    <td align=\"right\" bgcolor=\"#FFFF99\"> &euro; " . number_format($XC_Shipping, 2, ',', '.') . "</td>\n  </tr>\n";
    $XC_footer .= "  <tr>\n    <td colspan=\"4\" align=\"right\">  </td>\n    <td align=\"right\" bgcolor=\"#FFFF99\"> </td>\n  </tr>\n";
    $XC_footer .= "  <tr>\n    <td colspan=\"4\" align=\"right\"> Sales Tax </td>\n    <td align=\"right\" bgcolor=\"#FFFF99\"> &euro; " . number_format($XC_SalesTax, 2, ',', '.') . "</td>\n  </tr>\n";
    $XC_footer .= "  <tr>\n    <td colspan=\"4\" align=\"right\"><b> Grand Total </b></td>\n    <td align=\"right\" bgcolor=\"#FFFF99\"><b> &euro; " . number_format($XC_GranTotal, 2, ',', '.') . "</b></td>\n  </tr>\n";
    $XC_footer .= "  <tr>\n    <td colspan=\"5\"> </td>\n  </tr>\n";
    $XC_footer .= "</table>\n    </td>\n  </tr>\n</table>\n";
    // join all
    if (isset($_SESSION["XC_CartMail"])) session_unregister("XC_CartMail");
    $XC_CartMail = $XC_header . $XCartData . $XC_footer;
    $_SESSION["XC_CartMail"] = $XC_CartMail;
    session_register("XC_CartMail");
    // *** Save XCart contents to table ***
    require_once('XCInc/XCsaveAction.inc');
    if (isset($_GET['XC_SaveCartToTable']) && ($_GET['XC_SaveCartToTable'] == "1")) {
      $XC_destColName = array("ProductID","Quantity","","Color","UnitPrice","","Discount","","Total");
      $XC_destColType = array("str","num","str","str","num","num","num","num","num");
      $XC_orderId = $_SESSION['OrderID'];
      $XC_tableName = "wibble_orderdetails";
      $XC_OrderIDCol = "OrderID";
      $XC_OrderIDType = "num";
      $XC_AddToTableRedirect = "thanks.php";
      $XC_conName = "wibbles";
      require_once('XCInc/SaveXCartToTable.inc');
    // clone a session
    if (!session_id()) session_start();
    if (isset($_SESSION["OrderNum"])) session_unregister("OrderNum");
    if (isset($_SESSION["OrderID"])) {
      $OrderNum = $_SESSION["OrderID"];
      $_SESSION["OrderNum"] = $OrderNum;
      session_register("OrderNum");
    function DoFormatCurrency($theObject,$NumDigitsAfterDecimal,$DecimalSeparator,$GroupDigits,$Curren cySymbol) {
              $currencyFormat=$CurrencySymbol.number_format($theObject,$NumDigitsAfterDecimal,$Dec imalSeparator,$GroupDigits);
              return ($currencyFormat);
    function DoFormatPercent($theObject,$NumDigitsAfterDecimal,$DecimalSeparator,$GroupDigits) {
              $currencyFormat=number_format($theObject*100,$NumDigitsAfterDecimal,$DecimalSeparato r,$GroupDigits).'%';
              return ($currencyFormat);
    ?>

  • Error when making connection:  You have an error in your SQL syntax;

    I'm getting this error when trying to make a simple Database Connection:
    SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????????????????????' at line 1
    SQLState: 42000
    VendorError: 1064
    I tried a different driver and got the same error with more "?"s in the "use near....." part.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class DBTest{         public static void main(String[] args){                 try{                         Class.forName("com.mysql.jdbc.Driver").newInstance();                 } catch(Exception e){                         System.out.println(e);                         System.exit(0);                 }                 Connection conn = null;                 try {                         conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/testDB?" + "user=root&password=password");                         conn.close();                 } catch (SQLException ex) {                         // handle any errors                         System.out.println("SQLException: " + ex.getMessage());                         System.out.println("SQLState: " + ex.getSQLState());                         System.out.println("VendorError: " + ex.getErrorCode());                 }         } }
    MySQL Server Version:
    Server version: 5.0.67-0ubuntu6 (Ubuntu)

    cotton.m wrote:
    c0c0 wrote:
    I've tried Drivers 5.1 , 5.0 and 3.1 now and I get the same problem every time. I've tried switching databases, users, etc but always get this same error:
    java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????' at line 1
    I have the latest version of mysql from the Ubuntu repositories. Do I have to configure that a certain way? It isn't the URL which I supply that it does not like because I've tried multiple URLs and they all give me the same error when I supply the correct information.
    Any help is greatly appreciated.This is.. very odd.
    I have to ask are you really, really sure that your code is just as you posted? Are you sure you aren't running a query of some sort? My guess at this point would be some sort of rather bizarre encoding issue. I'm sorry but I can't reproduce your behaviour, I am connecting to different MySQL instances with no problem from Ubuntu..
    Yes the code is exactly the same as what I posted (except hiding actual usernames and passwords)
    I've even tried to connect to a remote mysql server and get the same behavior (If I type in the wrong database it alerts me there is no db of that name, if I lg in with the wrong password it alerts me cant login ____ @ ______, when I have all the correct information I get that same old error) , I'm somewhat convinced it's my driver now. I thought at first it was the way I had mysql configured but now I think it's my driver or the way I have everything installed. I simply put the driver location in the classpath and do the command:
    export set CLASSPATH=/usr/share/tomcat5.5-webapps/ROOT/lib/mysql-connector-java-5.1.7-bin.jar
    Was this the wrong way to go about doing it? I'm not currently running tomcat I simply put it there because a book said that's where it should go for tomcat, but I wanted to first try this not running tomcat with just a simple normal Java example.

  • Error in your SQL syntax........near '' at line 1

    i have a payment success page that should update the database when a payment is correct but am getting the error
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    on the success.php page, i have looked at the code but cant seem to see the error, i have changed the ' ' to "" on line one but that didn't do it so was hoping someone could look and see the incorrect syntax
    <?php require_once('Connections/chic.php'); ?>
    <?php
    // *** Update the stock ***
    $details_table = "chicJewls_orderdetails";
    $ID_column = "UniqueID";
    $details_prodID = "ProductID";
    $details_qty = "Quantity";
    $XStock_TableName = "chicJewls_products";
    $XStock_FieldName = "Stock";
    $XStock_unID = "ProductID";
    if (!session_id()) session_start();
    if (isset($_SESSION["orderID"])) {
      mysql_select_db($database_chic, $chic);
      $details_Source = "select * from " .  $details_table . " where " . $ID_column . " = " . $_SESSION["orderID"];
      $detailsRS = mysql_query($details_Source, $chic) or die(mysql_error());
      $row_detailsRS = mysql_fetch_assoc($detailsRS);
      do {
        $XStock_qtySource = "select " . $XStock_FieldName . " from " .  $XStock_TableName . " where " . $XStock_unID . " = " .$row_detailsRS[$details_prodID] . "";
        $XStock_rsUpd = mysql_query($XStock_qtySource, $chic) or die(mysql_error());
        $row_XStock_rsUpd = mysql_fetch_assoc($XStock_rsUpd);
        if ($row_XStock_rsUpd[$XStock_FieldName] > 0) {
          $XStock_new = $row_XStock_rsUpd[$XStock_FieldName] - $row_detailsRS[$details_qty];
          if ($XStock_new < 0) $XStock_new = 0;
          $XStock_UpdSource = "update " . $XStock_TableName . " set " . $XStock_FieldName . " = " . $XStock_new . " where " . $XStock_unID . " = " .$row_detailsRS[$details_prodID] . "";
          $XStock_rsUpd = mysql_query($XStock_UpdSource, $chic) or die(mysql_error());
      } while ($row_detailsRS = mysql_fetch_assoc($detailsRS));
      $XStock_rsUpd = null;
      $detailsRS = null;
      session_unregister("orderID");
    ?>
    thanks in advance

    No, I'm talking about the dot before.
    Change this
    .$row_detailsRS[$details_prodID] . "";
    to this
    . $row_detailsRS[$details_prodID] . "";
    in both places.

  • Error in your SQL syntax

    Getting this error when using DW CS3 Insert Record Wizard
    with CF8 and MySql 5
    quote:
    Error Executing Database Query.
    You have an error in your SQL syntax; check the manual that
    corresponds to your MySQL server version for the right syntax to
    use near '"description") VALUES ( 'any' )' at line 1
    The error occurred in
    C:\ColdFusion8\wwwroot\mysqltest\untitled1.cfm: line 7
    5 : VALUES (<cfif IsDefined("FORM.description") AND
    #FORM.description# NEQ "">
    6 : <cfqueryparam value="#FORM.description#"
    cfsqltype="cf_sql_clob" maxlength="2147483647">
    7 : <cfelse>
    8 :
    9 : </cfif>
    SQLSTATE 42000
    SQL INSERT INTO testedmemo ("description") VALUES ( (param 1)
    VENDORERRORCODE 1064
    DATASOURCE test

    Try using backticks to escape the column name description.
    Try removing the hash signs around FORM.description.
    Edit: You can probably also omit the maxlength attribute in
    your queryparam.

  • ERROR 1064 (42000): You have an error in your SQL syntax;

    Folks,
    I stucked here while granting the permissions.
    could you please throw any ideas why this...
    mysql> GRANT SELECT, INSERT, DELETE ON database TO prod@localhost IDENTIFIED BY
    'Welcome1'
    -> FLUSH PRIVILEGES;
    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
    corresponds to your MySQL server version for the right syntax to use near 'datab
    ase TO prod@localhost IDENTIFIED BY 'Welcome1'
    FLUSH PRIVILEGES' at line 1
    mysql> \q

    wrong forum mate ! need to post in SQL forums

  • CMDTUX_CAT:866: ERROR: tmloadcf: Severe error found. Stop syntax

    I am using Tuxedo 8.0 win 2k . I build my client and server of simpapp
    But when I configure my ubbsimple file and tried to create tuxconfig file
    It gave me this error:
    CMDTUX_CAT:866: ERROR: tmloadcf: Severe error found. Stop syntax checking
    the ubbconfig file i am using is:
    ----------------- ubbconfig --------------------
    #ident "@(#) apps/simpapp/ubbsimple $Revision: 1.3 $"
    #Skeleton UBBCONFIG file for the TUXEDO Simple Application.
    #Replace the <bracketed> items with the appropriate values.
    *RESOURCES
    IPCKEY 130048
    #Example:
    #IPCKEY 123456
    DOMAINID simpapp
    MASTER simple
    MAXACCESSERS 10
    MAXSERVERS 5
    MAXSERVICES 10
    MODEL SHM
    LDBAL N
    *MACHINES
    DEFAULT:
    APPDIR="d:\ashish\simpapp"
    TUXCONFIG="d:\ashish\simpapp\tuxconfig"
    TUXDIR="d:\bea\tuxedo8.0"
    #Example:
    # APPDIR="/home/me/simpapp"
    # TUXCONFIG="/home/me/simpapp/tuxconfig"
    # TUXDIR="/usr/tuxedo"
    asap2000.ASAPDOMAIN LMID=simple
    #Example:
    #beatux LMID=simple
    *GROUPS
    GROUP1
    LMID=simple GRPNO=1 OPENINFO=NONE
    *SERVERS
    DEFAULT:
    CLOPT="-A"
    simpserv SRVGRP=GROUP1 SRVID=1
    *SERVICES
    TOUPPER
    --------------------- ubbsimple----------------------------------
    I think the problem is of setting IPCKEY . Please tell me how to
    set IPCKEY. Can I take any random no. between 32769 to 262144

    Your error is of configuration and is not the PCKEY, you should define the solicited
    addresses very well.
    John Verifies these addresses:
    APPDIR="d:\ashish\simpapp"
    TUXCONFIG="d:\ashish\simpapp\tuxconfig"
    TUXDIR="d:\bea\tuxedo8.0"
    and the name of your Machine:
    asap2000.ASAPDOMAIN LMID=simple
    John defines only the name of your machine, and you should not indicate the domain.
    I wait for that they serve you these suggestions.
    Regards,
    Edgar Alvarado
    "john" <[email protected]> wrote:
    >
    try using interwoven ;)
    "Ashish Agrawal" <[email protected]> wrote:
    I am using Tuxedo 8.0 win 2k . I build my client and server of simpapp
    But when I configure my ubbsimple file and tried to create tuxconfig
    file
    It gave me this error:
    CMDTUX_CAT:866: ERROR: tmloadcf: Severe error found. Stop syntax checking
    the ubbconfig file i am using is:
    ----------------- ubbconfig --------------------
    #ident "@(#) apps/simpapp/ubbsimple $Revision: 1.3 $"
    #Skeleton UBBCONFIG file for the TUXEDO Simple Application.
    #Replace the <bracketed> items with the appropriate values.
    *RESOURCES
    IPCKEY 130048
    #Example:
    #IPCKEY 123456
    DOMAINID simpapp
    MASTER simple
    MAXACCESSERS 10
    MAXSERVERS 5
    MAXSERVICES 10
    MODEL SHM
    LDBAL N
    *MACHINES
    DEFAULT:
    APPDIR="d:\ashish\simpapp"
    TUXCONFIG="d:\ashish\simpapp\tuxconfig"
    TUXDIR="d:\bea\tuxedo8.0"
    #Example:
    # APPDIR="/home/me/simpapp"
    # TUXCONFIG="/home/me/simpapp/tuxconfig"
    # TUXDIR="/usr/tuxedo"
    asap2000.ASAPDOMAIN LMID=simple
    #Example:
    #beatux LMID=simple
    *GROUPS
    GROUP1
    LMID=simple GRPNO=1 OPENINFO=NONE
    *SERVERS
    DEFAULT:
    CLOPT="-A"
    simpserv SRVGRP=GROUP1 SRVID=1
    *SERVICES
    TOUPPER
    --------------------- ubbsimple----------------------------------
    I think the problem is of setting IPCKEY . Please tell me how to
    set IPCKEY. Can I take any random no. between 32769 to 262144

  • Extended syntax check

    In ECC 6.0, I have two errors in my extended syntax check
    1).   Char. strings w/o text elements will not be translated:
    'Store%'
    (The message can be hidden with "#EC NOTEXT)
    with below coding
    SELECT  kunnr name2 j_3astcu
        FROM kna1
        INTO TABLE gt_kna1
        FOR ALL ENTRIES IN gt_soldto1
        WHERE ( name2    LIKE 'STORE%'
         OR     name2    LIKE 'Store%'
         OR     name2    LIKE 'store%'
         OR     name2    LIKE 'DC%'
        AND     land1    =    'US' )
        OR   ( j_3astcu  = gt_soldto1-store_no
        AND    land1     = 'US' ).
    2).
    SELECT-OPTIONS : s_mail1 FOR somlreci1-receiver NO INTERVALS.
    The current ABAP command is obsolete
    With "LOOP AT itab", one of the additions "INTO", "ASSIGNING", or "TRANSPORTING NO
    FIELDS" is required in the 00 context
    Internal Message Code: LOOP 012
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
    EXTENDED CHECK OFF/ON)
        LOOP AT s_mail1.
    *-----If email id entered on the selection screen doesnot contain
        '@' and '.', then give relevent message to user as popup.*
          IF s_mail1-low NA gc_at OR s_mail1-low NA gc_dot.
            MESSAGE e038(zs) WITH text-m08 text-m09 text-m13.
          ENDIF.
        ENDLOOP.
    Please suggest me howcan I avoid string Store% as well as select-option.

    In my opinion, the answers given to your first question so far, are wrong.  When there is a specific reason for using a text string in a select, then it should remain precisely as that.  So you should use "#EC NOTEXT.  It is wrong to put them in a text element, as they will never be translated.
    The extended syntax check doesn't exist so that you can remove the cause, it is so that you can address it.  Many violations of the extended syntax checker have a valid reason.  That's why you get the "#EC exceptions.  But if you use them, then make sure you can justify it.
    matt

  • Getting Error 26 in ALE IDOC scenario .- EDI Syntax Check Error...

    Hi..
    i am working in ALE Idoc scenario...I am getting Status 3 as well as status 26 in we02 transaction in my custom IDOC scenario for outbound process..
    The error is 'EDI- SYntax Check'..
    How to remove this error..
    Pls help.

    ya, there is only one segment available in IDOC..named i.e zseg_a .
    So , error in postion is avoided..
    How to find syntax error then?

  • Error during program syntax check

    Hi,
    I have written the following code
    INCLUDE zfirf_rfd_final_top.
    * INCLUDE ZFIRF_RFD_FINAL1_O01                    .  " PBO-Modules
    * INCLUDE ZFIRF_RFD_FINAL1_I01                    .  " PAI-Modules
    INCLUDE ZFIRF_RFD_FINAL_F01                    .  " FORM-Routines
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:     p_keydt TYPE erdk-erdat OBLIGATORY.
    SELECT-OPTIONS: s_bp    FOR  erdk-partner,
                    s_ca    FOR  erdk-vkont.
    SELECTION-SCREEN END OF BLOCK b1.
    INITIALIZATION.
      SET TITLEBAR 'REFUND'.
    START-OF-SELECTION.
    PERFORM get_data_from_selection.
    FORM get_data_from_selection.
      SELECT opbel
             partner
             vkont
        FROM erdk
        INTO CORRESPONDING FIELDS OF TABLE t_erdk
       WHERE verart      EQ c_43
         AND simulated   EQ space
         AND stokz       EQ space
         AND tobreleasd  EQ space
         AND intopbel    EQ space
         AND invoiced    NE space
         AND partner     IN s_bp
         AND vkont       IN s_ca.
    ENDFORM.
    when i do a syntax check i get the following error
    The IN operator with "S_BP" is followed neither by an internal table nor by a value list.
    Can you suggest what is the error in the program ?
    Regards,
    Imran

    Hi Imran,
    please try this one dont try in perform and form
    INCLUDE zfirf_rfd_final_top.
    INCLUDE ZFIRF_RFD_FINAL1_O01                    .  " PBO-Modules
    INCLUDE ZFIRF_RFD_FINAL1_I01                    .  " PAI-Modules
    INCLUDE ZFIRF_RFD_FINAL_F01                    .  " FORM-Routines
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:     p_keydt TYPE erdk-erdat OBLIGATORY.
    SELECT-OPTIONS: s_bp    FOR  erdk-partner,
                    s_ca    FOR  erdk-vkont.
    SELECTION-SCREEN END OF BLOCK b1.
    INITIALIZATION.
      SET TITLEBAR 'REFUND'.
    START-OF-SELECTION.
      SELECT opbel
             partner
             vkont
        FROM erdk
        INTO CORRESPONDING FIELDS OF TABLE t_erdk
       WHERE verart      EQ c_43
         AND simulated   EQ space
         AND stokz       EQ space
         AND tobreleasd  EQ space
         AND intopbel    EQ space
         AND invoiced    NE space
         AND partner     IN s_bp
         AND vkont       IN s_ca.
    reward points to all helpful answers
    kiran.M

Maybe you are looking for

  • Voice Memos bug?

    Voice Memos on my iPhone 5s, iOS 8.02, spontaneously stops recording twice at 25:44.  Anyone else having this problem where voice Memos spontaneously stops recording?  Sometimes it works fine, sometimes it stops after only a few minutes.  Anyone care

  • Calendar Does Not Sync

    I have set all the preferences to sync. During a sync it will indicate it is syncing the calendar but nothing shows up. No problem with the contacts. In one help article states: A dialog appears, telling you that a program is trying to access data fr

  • Internal Table in Table View

    Hi, I want to use an internal table in the Table View tag. Can any one please let me know how to use that. Thanks in advance. Regards, Ravi G

  • Decimal places in concersion

    Hi All i want to put decimal places dooring conversion in material master(unit of measure tab). For Ex: 1.25 kg =1 ltr How can we do or any other way please tell me Regards M S K

  • Windows on a Mac...AHHHHH

    Hi everyone! I put Parallels on my MacBook Pro to run Windows for a grad school assignment. Without missing a beat, Parallels crashes EVERY time I launch it. I see similar posts on here with the standard answer, "Please visit the Parallels forum." I