Syntax error when creating input-ready query

Hi,
When creating an input-ready query, I set the key-figure to 'Data can be changed by user entries or Planning Functions' in the Planning Properties in the query designer.
When I execute the query, I get the following error:
Syntax Error in : CL_RSR_RRK0_KEYFIGURE
In se24, the class has a syntax error in its Constructor method.
The error is not occuring when I change the Planning property to 'Data Cannot be changed' or 'Data can be changed via Planning Functions'.
Has anyone encountered such an error. If yes, how to proceed further?
Anything do with the the ABAP Patches. Currently I am in Patch13.
Thanks,
Balaji

Hi,
Plz apply the notes 1042924 and 1043103.After appling the notes regenerate the
query.
This should solve the error.
Regards,
Srikanth.

Similar Messages

  • Syntax error when creating a user-defined table type in SQL Server 2012

    Why am I getting a syntax error when creating a user-defined table type in SQL Server 2014?
    CREATE TYPE ReportsTableType AS TABLE 
    ( reportId INT
    , questionId INT
    , questionOrder INT );
    Results:
    Msg 156, Level 15, State 1, Line 1
    Incorrect syntax near the keyword 'AS'.

    Hope these posts could help, 
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/37a45a9a-ed8c-4655-be93-f6e6d5ef44be/getting-incorrect-syntax-while-creating-a-table-type-in-sql-server-2008-r2?forum=transactsql
    Regards, Dineshkumar,
    Please Mark as Answer if my post answers your question and
    Vote as Helpful if it helps you

  • Error on a input ready query

    Hello SAP Gurus,
    Can anybody advise on the following error of an input ready query?
    u2022 Error reading the data of InfoProvider ZIPNA002 - Notification Number DBMAN 305
    u2022  Error while reading data; navigation is possible - Notification Number BRAIN 289
    u2022 System error in program CL_RSPLS_PLAN_DATA and form GETREQ_FREE-01- (see long text ) - Notification Number BRAIN 299
    The query is based on an aggregation level (integrated planning)
    The filter has a navigation attribute variable for the characteristic 0WBS_ELEMT__0PROJECT Project definition and in the line a list of 0WBS_ELEMT PEP elements should be displayed for planning.
    We are with support package SAPKW70017 SAP NetWeaver BI 7.0
    Thanks and best regards,
    Patrícia

    Hi Patrícia
    first check in transaction SNOTE that there are no inconsistent notes (no lightning icons). If not, tell your basis team to fix it.
    Then check in transaction SPAU that there are no inconsistent objects (everything must be green). If not, tell your basis team to fix it.
    Next implement all notes that are listed as "side effects" in note SAP note 1101187 .
    Finally, generate the plan query  again in transaction RSRT. b
    Regards,
    Marc
    SAP NetWeaver RIG

  • Is it possible to create input ready query with free characteristics ?

    Hi All,
    Is it possible to include characteristics restricted with variables in free charatceristics panel to make input ready query?
    I am trying to create input ready query with above practice but unable to make query as input ready.
    I have created input ready query on aggregation level. If I include characteristics restricted with variables in rows or filter then it is working fine. .ie. I am able to input entries at runtime of query.
    Kindly help me out to find the solution as I have to include characteristics in free characteristics panel.

    Hi Tilak,
    Thanks for reply.
    As per my knowledge, Every characteristics which is included at aggregation level should be included in either rows or filter level in query designer.
    But as per my business requirement I have to include the characteristics restricted with variables( in default values only) in free characteristics. But the problem is if I do so the query runs in display mode not in input mode.
    So kindly help me if you have any solution for above scenario.
    ---Shamkant

  • Syntax error when creating database

    Not sure if this is the correct forum, but here goes..
    Using a sample at:
    Technet Link
    I get a "Syntax error near GO" when I try to execute the following SQL Command.
    USE master
    GO
    CREATE DATABASE testdb
    ON
    ( NAME = testdb,
    FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\testdb.mdf' )
    GO
    I am using a function to create this database.  It is a temporary database that gets recreated or altered frequently.
    The code checks for SQL Server, gets it's version number in order to use the default SQL Server path.  If SQL Server isn't available, ACE / OLEDB is used to create and manage the database (this part works fine).
    The code used to check for and create the database follows.
    private Boolean CheckForSQLServer()
    SqlConnection cnx = null;
    Int32 dbExists = 1;
    SqlCommand sql;
    String SSData = String.Empty;
    // Check for SQL Server. If it exists, use it.
    String login = UserPrincipal.Current.UserPrincipalName;
    login = login.Substring(0, login.IndexOf("@"));
    try {
    cnx = new SqlConnection(
    String.Format("server={0};user={1};Trusted_Connection=Yes;", Prop.SQLConnection, login));
    cnx.Open();
    hasSQLServer = true;
    } catch (Exception) {
    hasSQLServer = false;
    return true;
    if (hasSQLServer) {
    try {
    String ServerVersion = cnx.ServerVersion;
    String SSPath = String.Format(@"C:\Program Files\Microsoft SQL Server\MSSQL{0}.MSSQLSERVER\MSSQL\DATA\",
    ServerVersion.Substring(0, ServerVersion.IndexOf('.')));
    SSData = String.Format(
    "USE master\nGO\nCREATE DATABASE {0}\nON\n( NAME = '{1}',\nFILENAME = '{2}{1}.mdf' )\nGO",
    Prop.SQLDBName, Prop.SQLDBName, SSPath);
    String s = String.Format(
    "SELECT COUNT(*) FROM (SELECT DB_ID('{0}') AS DbID) t WHERE DbID IS NOT NULL", Prop.SQLDBName);
    sql = new SqlCommand(s, cnx);
    SqlDataReader sr = sql.ExecuteReader();
    if (sr.Read())
    dbExists = (Int32)sr[0];
    sr.Close();
    } catch (Exception) { }
    if (dbExists == 0) {
    try {
    sql = new SqlCommand(SSData, cnx);
    sql.ExecuteNonQuery();
    } catch (Exception) { }
    } else {
    try {
    sql = new SqlCommand(String.Format("drop database {0};", Prop.SQLDBName), cnx);
    sql.ExecuteNonQuery();
    sql = new SqlCommand(SSData, cnx);
    sql.ExecuteNonQuery();
    } catch (Exception) { }
    cnx.Close();
    return false;
    Comparing the generated SQL string to sample E at the link above shows them to be identical except for the database name and file pathname, but the paths do exist although the files do not.
    The SQL Exception occurs at the first
    sql = new SqlCommand(SSData, cnx);
    statement in the code.  I would think this can be done as a single string even though a .sql file is referenced in the article.
    Andy

    Works correctly in SQL Server 2014 Management Studio:
    USE master
    GO
    CREATE DATABASE testdb
    ON
    ( NAME = testdb,
    FILENAME = 'F:\temp\testdb.mdf' )
    GO
    DROP DATABASE testdb
    GO
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • SQL syntax error when creating record insertion form

    Good day,
    I was hoping someone could help me.  I am trying to create a record insertion form on a website to insert data into a database table.  When attempting to create the form, I am 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 ' Organization, Office, Department, Phone, EmailAddress, JobTitle, `OfficialMaili' at line 1
    Not sure what is going on.  I am running windows 8 and DW cs5 w/ MYSQL.  I am testing on a local server prior to pushing to the remote server.
    Thank you for your assistance and please advise any code you would like me to send.

    Here is all the code from this particular webpage.  I apologize, I am too stupid to realize which parts are SQL vice PHP vice HTML:
    <?php require_once('Connections/group4.php'); ?>
    <?php
    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;
    $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 individual (Grade, LastName, FirstName, M.I., Organization, Office, Department, Phone, EmailAddress, JobTitle, `OfficialMailing Address`, Citizenship, Designation, IATrainingComplete, IADate) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                            GetSQLValueString($_POST['Grade'], "text"),
                            GetSQLValueString($_POST['LastName'], "text"),
                            GetSQLValueString($_POST['FirstName'], "text"),
                            GetSQLValueString($_POST['MI'], "text"),
                            GetSQLValueString($_POST['Organization'], "text"),
                            GetSQLValueString($_POST['Office'], "text"),
                            GetSQLValueString($_POST['Department'], "text"),
                            GetSQLValueString($_POST['Phone'], "double"),
                            GetSQLValueString($_POST['EmailAddress'], "text"),
                            GetSQLValueString($_POST['JobTitle'], "text"),
                            GetSQLValueString($_POST['OfficialMailing_Address'], "text"),
                            GetSQLValueString($_POST['Citizenship'], "text"),
                            GetSQLValueString($_POST['Designation'], "text"),
                            GetSQLValueString($_POST['IATrainingComplete'], "text"),
                            GetSQLValueString($_POST['IADate'], "text"));
      mysql_select_db($database_group4, $group4);
       $Result1 = mysql_query($insertSQL, $group4) or die(mysql_error());
      $insertGoTo = "index.php";
       if (isset($_SERVER['QUERY_STRING'])) {
         $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
         $insertGoTo .= $_SERVER['QUERY_STRING'];
       header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_group4, $group4);
    $query_rsIndividual = "SELECT * FROM individual ORDER BY IndividualNumber ASC";
    $rsIndividual = mysql_query($query_rsIndividual, $group4) or die(mysql_error());
    $row_rsIndividual = mysql_fetch_assoc($rsIndividual);
    $totalRows_rsIndividual = mysql_num_rows($rsIndividual);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Contact Us</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    .header {
      font-size: 36px;
      text-decoration: underline;
    .quote {
      font-size: 18px;
      font-style: italic;
    .tablethisone {
      margin: 5px;
      padding: 25px;
      border: medium none #000;
      text-align: center;
    </style>
    </head>
    <body>
    <p><img src="Images/EGA.png" width="227" height="222" alt="EGA" /><span class="header">SAAR Tracking System
    </span></p>
    <ul id="MenuBar1" class="MenuBarHorizontal">
       <li><a href="index.php">Home</a>  </li>
       <li><a href="search.php">Search</a></li>
       <li><a href="contact.php">Contact Us</a>  </li>
    </ul>
    <p> </p>
    <p>PRIVACY ACT STATEMENT</p>
    <p>Executive Order 10450, 9397; and Public Law 99-474, the Computer Fraud and Abuse Act.
       To record names, signatures, and other identifiers for the purpose of validating the trustworthiness of individuals requesting
       access to Department of Defense (DoD) systems and information. NOTE: Records may be maintained in both electronic
       and/or paper form.</p>
    <p> </p>
    <p> </p>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
       <table align="center">
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Grade:</td>
           <td><input type="text" name="Grade" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">LastName:</td>
           <td><input type="text" name="LastName" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">FirstName:</td>
           <td><input type="text" name="FirstName" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">M.I.:</td>
           <td><input type="text" name="MI" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Organization:</td>
           <td><input type="text" name="Organization" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Office:</td>
           <td><input type="text" name="Office" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Department:</td>
           <td><input type="text" name="Department" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Phone:</td>
           <td><input type="text" name="Phone" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">EmailAddress:</td>
           <td><input type="text" name="EmailAddress" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">JobTitle:</td>
           <td><input type="text" name="JobTitle" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">OfficialMailing Address:</td>
           <td><input type="text" name="OfficialMailing_Address" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Citizenship:</td>
           <td><input type="text" name="Citizenship" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Designation:</td>
           <td><input type="text" name="Designation" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">IATrainingComplete:</td>
           <td><input type="text" name="IATrainingComplete" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">IADate:</td>
           <td><input type="text" name="IADate" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right"> </td>
           <td><input type="submit" value="Insert record" /></td>
         </tr>
       </table>
       <input type="hidden" name="MM_insert" value="form1" />
    </form>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p>Disclosure of this information is voluntary; however, failure to provide the requested information may impede, delay or
    prevent further processing of this request.</p>
    <p class="quote">&quot;Be polite, be professional, but have a plan to kill everybody you meet&quot; General James Mattis</p>
    <p> </p>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($rsIndividual);
    ?>

  • Syntax error when creating Overwrite method - implicit enhancement

    Hi,
    I am working at a customer site, and need to implicitly enhance certain methods. I would like to create an Overwrite Method for the following class/method:
    CL_CRM_MKTDEF_DEFAULTS_PERSIST -> HEADER_WITH_KEY_EXITS_IN_DBASE( )
    I proceeded in the following way:
    Open class CL_CRM_MKTDEF_DEFAULTS_PERSIST in class builder (SE24)
    Select menu path Class -> Enhance
    Create, or select, enhancement implementation ZCRM_MKTDEF_PRD
    Select method HEADER_WITH_KEY_EXITS_IN_DBASE, select menu path Edit -> Enhancement Operation -> Add Overwrite Method
    Click on u201CNavigation to Overwrite Exitu201D
    After navigating to the Overwrite Exit, I click on "Check" to perform a syntax check (notice, I have not yet implemented any code. Everything so far has been done by the wizard).
    Now, I get the following error:
    Enhancement Implementation ZCRM_MKTDEF_PRD
    Unable to interpret "IS_DEFAULTS_ATTR". Possible causes: Incorrect
    spelling or grammar.
    When I create Overwrite methods for any other method in the same class, the same error does NOT occur. As far as I can tell, there is nothing special about this method that should cause this error.
    I would greately appreciate any help that any of you could give me on this one.
    thank you and best regards,
    - Marius
    PS: Here is my code (which was generated after I followed the outlined steps above) for your reference:
    CLASS LCL_ZCRM_MKTDEF_PRD DEFINITION.
    PUBLIC SECTION.
    CLASS-DATA OBJ TYPE REF TO LCL_ZCRM_MKTDEF_PRD.
    DATA CORE_OBJECT TYPE REF TO CL_CRM_MKTDEF_DEFAULTS_PERSIST .
    INTERFACES  IOW_ZCRM_MKTDEF_PRD.
      METHODS:
       CONSTRUCTOR IMPORTING CORE_OBJECT
         TYPE REF TO CL_CRM_MKTDEF_DEFAULTS_PERSIST OPTIONAL.
    ENDCLASS.
    CLASS LCL_ZCRM_MKTDEF_PRD IMPLEMENTATION.
    METHOD CONSTRUCTOR.
      ME->CORE_OBJECT = CORE_OBJECT.
    ENDMETHOD.
    METHOD IOW_ZCRM_MKTDEF_PRD~HEADER_WITH_KEY_EXITS_IN_DBASE.
    *" Declaration of Overwrite-method, do not insert any comments here please!
    *"methods HEADER_WITH_KEY_EXITS_IN_DBASE
    *"  importing
    *"    !IS_DEFAULTS_ATTR type CRMS_MKTDEF_DEFAULTS_DATA
    *"  returning
    *"    value(EV_EXISTS) type CRMT_BOOLEAN
    *"  exceptions
    *"    FAILURE .
    ENDMETHOD.
    ENDCLASS.

    Note 1256889

  • Error when creating the webi query

    when i try to create a query based on template universes delivered with BOBJ webi (as eFashion) i get the following error
    A database error occured. The database error text is: (CS) "DBDriver failed to load: C:\Program File\Business Objects\BusinessObjects ENterprise12.0\win32_x86\dataAccess\connectionServer\dbd_wodbc3.dll (The specified procedure could not be found. )". (WIS 10901)
    when  i press help i get
    Cause
    The database that provides the data to this document has generated an error. Details about the error are provided in the section of the message indicated by the field code: .
    Please help.

    ok i did
    [error on access Webi WS 10901;
    error on access Webi WS 10901
    thx

  • Error in Integradted Planning - Input Ready Query Design

    Dear Gurus,
    I am facing an error while designeing input ready query. I have created a query on Aggr. Level which is on Multi Provider.
    I have 2 key figs. In my second key fig. I have restricted Planning Infor priovider with Plan version for version info object , Calender Year/month , and other info object of version , I have selected Variable for input.
    When I am going to Planning tab of this key figure in change mode option I have selected Data Can be changed using user entries or Planning Functions. But my other options i.e. Disaggrgation and Type of Distriburtion are in the freezed state. That I can't select any of them. The system is giving Red hightlights and the highlight is showing error " Not Supported by Server"
    Can you please advice me where is the problem ?
    Regards,
    B. Rajesh

    Hi Rajesh,
    This like would help you to resolve the issue
    http://aiokeh.wdf.sap.corp:1080/SAPIKS2/contentShow.sap?_SCLASS=IWB_STRUCT&_SLOIO=C574D0123CD5DD44A8B271D6DADE8490&TMP_IWB_TASK=PREVIEW2&RELEASE=690&LANGUAGE=EN&_SEQNUM=253&_LOIO=4727759655EA6560E10000000A11466F&_CLASS=IWB_EXTHLP
    Thanks and Regards,
    Sateesh pasodi

  • Problem when Entering Decimal Values at Input Ready Query

    Hi Everyone,
    I have created Input ready query but when I am going to enter decimal values in input cell it takes as a round of value.
    Example:- If I enter 1.234 value at input cell it takes as a 1 or if I enter 1.789 value then it takes as a 2 at cell.
    The technical properties of Key Figure at Info object level is,
    Radio Button :- Decimal
    Drop Down :- FLTP (Floating Point)
    But we want to whatever value will enter at input cell, the same value will save at real time info cube level.
    Requirement :- If I enter 1.234 value at input cell it needs to take as a 1.234
    Please suggest your comments/views.
    Thanks
    Kind Regards
    Anukul

    Hi Giradkar,
    Check the setting of the UOM you are using in table 'T006' there are 2 fields that indicate how to display and how to store the values with respective UOM.
    Regards,
    Eitan.

  • Input Ready Query is not enabling on Multi Provider...

    Dear Folks,
    I have created one Multi Provider which is having 3 info cubes, out of three info cubes. 2 Planning Cubes & 1 Normal Cube.
    I have  created one Aggregation Level on top of Multi Provider and created input ready query which is not enabling as a input for key figures.
    Do you have any idea on this.
    Thanks,
    Venkat

    Hi,
      Please refer to the following link for more details on the same,
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/1d023a41130bd5e10000000a422035/content.htm
    Check the following points to make your query as input enables,
    1. Drill down or filter all the characteristics present in the query.
    2. Check whether the "Open query in Change mode" is checked in Query properties.
    3. Check whether your real time infocube is in "Plan mode"
    4. Make sure that your planning cube is not locked by any other person when you are trying to open your query.
    Regards,
    Balajee
    Edited by: Balajee Sivakumar on Jan 31, 2011 5:00 PM

  • Syntax Error after creating enhancements for subroutine

    Problem:
    Creating enhancement sections gives a syntax error when creating enhancement options and implementations for a subroutine and then ceating enhancement options and implementations for the call to that same subroutine.
    <p>
    Syntax Error:
    "Different number of parameters in FORM and PERFORM (routine: SET_LAYOUT, number of formal parameters: 2, number of actual parameters: 1)
    </p>
    <p>
    Here's the following scenario:
    </p>
    <p>
    A subroutine is defined in a program.
    The subroutine is called within the same program.
    </p>
    <p>
    I then executed these steps:
    <br>     1. Defined an enhancement section around the subroutine definition
    <br>     2. Defined an enhancement section around the subroutine call.
    <br>     3. Implemented the enhancement section around the subroutine definition and add an additional parameter.
    </p>
    <p>
         Currently, this gives a syntax error as expected, since the call to the subroutine needs 1 more parameter.
    </p>
    <p>
         4. Implemented the enhancement section for the subroutine call.  I change the call in the implementation so it passes the new parameter.
    </p>
    <p>
    A syntax check to this gives an error.  The syntax checker is not only checking the new implementation, but also the original subroutine that should have been overwritten.
    </p>
    <p>
    The enhancement sections use the same enhancement spot, and the enhancement implementations use the same implementation.
    </p>
    <p>
    I tried various combinations of using different enhancement spots and/or implementations, but all give the same syntax error.  I tried separating the subroutine in a different include and  retried my testing, but it still gave the same syntax error.
    </p>
    <p>
    Here's the sample code I first created to try troubleshooting the problem:
    </p>
    <p>
    <pre>
    ENHANCEMENT-SECTION ZEP_Z_MICHAEL_02 SPOTS ZES_Z_MICHAEL .
         PERFORM set_layout
              CHANGING
              wa_layout.
    END-ENHANCEMENT-SECTION.
    $$-Start: ZEP_Z_MICHAEL_02----
    $$
    ENHANCEMENT 2  ZEI_TEST_SECTIONS.
         "inactive version
         PERFORM set_layout
         using 'X'
              CHANGING
              wa_layout.
    ENDENHANCEMENT.
    $$-End:   ZEP_Z_MICHAEL_02----
    $$
    ENHANCEMENT-SECTION ZEP_Z_MICHAEL_01 SPOTS ZES_Z_MICHAEL STATIC .
    FORM set_layout
    CHANGING p_wa_layout TYPE slis_layout_alv.
    p_wa_layout-zebra = 'X'.
    wa_layout-no_colhead = 'X'..
    p_wa_layout-colwidth_optimize ='X'.
    wa_layout-window_titlebar = 'Woot'.
    ENDFORM. "set_layout
    END-ENHANCEMENT-SECTION.
    $$-Start: ZEP_Z_MICHAEL_01----
    $$
    ENHANCEMENT 1  ZEI_TEST_SECTIONS.
         "inactive version
    FORM set_layout
    using p_test type boolean
    CHANGING p_wa_layout TYPE slis_layout_alv.
    p_wa_layout-zebra = 'X'.
    wa_layout-no_colhead = 'X'..
    p_wa_layout-colwidth_optimize ='X'.
    wa_layout-window_titlebar = 'Woot'.
    ENDFORM. "set_layout
    ENDENHANCEMENT.
    $$-End:   ZEP_Z_MICHAEL_01----
    $$
    </pre>
    </p>
    <p>
    Please let me know if you think I am doing something wrong. 
    </p>
    <p>
    Thanks, <br>
    Mike
    </p>
    Edited by: Michael Herman on Mar 8, 2010 8:11 PM

    Yes, Sandra.  That is what did and it worked with no syntax errors!
    I'm not sure if this is getting off topic or not, but the SAP documentation(taken from the SAP help after pressing F1 on the keyword static in ERP6) seems misleading:
    "The STATIC addition is intended for the enhancement of data declarations, while the statement ENHANCEMENT-POINT without the STATIC addition is designed for the enhancement of executable coding."
    I would think the enhancement section ZEP_Z_MICHAEL_02 would fall under the category of executable code, while the enhancement section ZEP_Z_MICHAEL_01 would fall under the category of declarative code.
    Unfortunately, all the SAP enhancement sections I come accross are dynamic.  The SAP help explains the reasoning for this:
    "In contrast to the statement ENHANCEMENT-POINT, the addition STATIC of the statement ENHANCEMENT-SECTION can only be used with maximum caution for changes of data declarations, because a replacement and no completion is carried out. Especially application development within SAP should not use the addition STATIC at all with ENHANCEMENT-SECTION as the change will be active in the entire customer system. "
    I do not know what the word "completion" means in the previous quote, so I can't determine why it would matter.  Regardless, if a developer wanted to change a standard subroutine declaration, they would also have to mod an enhancement section to change it to static.  This seems to defeat the purpose of using enhancements, but maybe this scenario is not what enhancements were intended for.

  • Input ready query with free characteristics

    Hi All,
    Is it possible to include characteristics restricted with variables in free charatceristics panel to make input ready query?
    I am trying to create input ready query with above practice but unable to make query as input ready.
    If I include characteristics restricted with variables in rows or filter then it is working fine. .ie. I am able to input entries at runtime of query.
    Kindly help me out to find the solution as I have to include characteristics in free characteristics panel.

    Hi,
    Any cell in an input query can only be input ready if it corresponds to only one value of each characteristic in the underlying aggregation level. If you have free characteristics in your input query, you will need to restrict them to single value at query runtime to make the query input-ready. Note that putting a characteristic in rows automatically restricts it to one value.

  • How to create an Input Ready Query in Bex Excel with no transact data

    Hi
    We created a query where we want the user to put in NEW LINES. This query has in general no data when user starts planning.
    We have 2 front-ends for this, Bex Web and Excel. Both shows initial 'no data available
    BexWeb': Implementing the command set_data_entry_mode we get all the relevant columns for the input
    Excel: Command set_data_entry_mode or set_input_mode does not allow the users to insert new lines. Still error message pops up 'no data available'
    Do you have a solution for that ?
    Regards,
    Thomas

    Hi Gregor,
    In the note 1149346 that you have mentioned, it says -
    You must start the input-ready query in change mode.
    BEx Analyzer: In the properties of the analysis grid, the switch
    "Suppress new rows" must not be set.  Furthermore,
    the switch "Allow entry of plant values"
    must be set in the local query properties.
    I have not seen this setting Allow entry of plant values in a query - can you tell what is refers to?

  • Input ready query error

    Dear all,
    New to planning world, i have done everything told  in the book in query designer to have an input ready query.
    When i run that query in query designer, what should i expect?i have no data in the cube, so it says no data found .
    However i am trying to make query have blank fields that i can edit with planning data.
    any help ?
    thanks

    You can search for this too :-). Also, for new questions, it is generally better to open new threads.
    For saving data, buttons need to be created with relevant commands. If you are executing the query in BI analyser (excel), you can also right click on the query and select 'save data'.

Maybe you are looking for

  • Adobe XI

    Help: I cannot electronically sign pdf's in Adobe Reader.  I foolishly (do you hear that Adobe?) upgraded my Adobe reader to XI and cannot sign forms electronically like I need to do for my contract job. I watched the video on electronically signing

  • Xfinity connect 5.2 won't update on my android 4.4 tablet.

    Any idea why xfinity connect won't update on my Android 4.4 tablet?  It is Insight flex 8.  Non rooted standard update tablet.

  • Windows Cluster Management Library did not pass the security verification

    so, nothing to add Windows Cluster Management Library did not pass the security verification.  The management pack cannot be downloaded and the temporary file has been deleted. Could not load management pack [ID=Microsoft.Windows.Cluster.Management.L

  • Actiavate ODS

    Hi Experts,            how do i know whether an ODS has been activated or not.. ( my guess is that i shld find a small table like icon next to the request ID in the monitor screen..correct me if iam wrong) And also can i delete an request in ODS b4 a

  • Division field in DME File

    Hi gurus According to the requirement of user , we need to have the divison field to be shown in the DME FILE generated through APP . We are using Teleplay Format of DME and the user requires the field in the DME File , I tried to search and found th