Syntax error but I'm too blind to see...

Using the below SQL from my usrStartFrm.ASP page to ORA 8i I have set a page variable = a session variable
+++++++++++++++++++++++
dim usrLoginID
SUB usrStartFrm_onenter()
     usrLoginID = Session("LoginID")
End SUB
+++++++++++++++++++++++++
But I cannot return records using the following syntax.
SELECT DISTINCT
L.LOGINID,
B.BUSINESSSEGMENTNAME
FROM SODA.ASSIGNMENTS_TB A,
SODA.LOGINS_TB L,
SODA.BUSSEGMENT_TB B
WHERE A.FK_LOGIN_NO = L.LOGIN_NO
AND
A.FK_BUSSEGID = B.BUSSEGID AND
(L.LOGINID = '" & usrLoginID &" ')
ORDER BY B.BUSINESSSEGMENTNAME
NOR DOES THIS
++++++++++++++++++++++++++++++++++++++++++++++++
(L.LOGINID = '" & Session("LoginID") &" ')
+++++++++++++++++++++++++++++++++++++++++++++++++
BUT if I change the sytax to a hard code
(L.LOGINID = 'ajgrasso')
The query works.
I know the page creates the variable because I print it out to the p;age as it loads..
SO I figure it must be the bugaboo string single double qutes issue.
Any Ideas.
Thanks beforehand
AJ

It does help somewhat to see the complete code. I can now see and understand how you are building your select statement including your variable and storing the select statement to another variable to be executed. Unfortunately, I don't know enough about ASP and javascript and so forth to be certain of the correct code. However, I can see a lot of similarities between what you are doing and how we build a select statement in PL/SQL and store it to a variable for dynamic execution. There are various ways of including variables within that select statement. About the best I can do is offer various legitimate syntaxes in PL/SQL and hope that you can see the similarities and will be able to adapt one or more of them. In each of the examples below, which demonstrate slightly different methods, I have used current_user for the Oracle user, but you can substitute os_user for current_user in any of them if you want the operating system user. However, note that it will include the domain, like your_domain\ajgrasso so you may need to do some parsing for proper comparison. If you don't get any errors, but it also doesn't return any rows, it might be due to something like that. Notice that, when building a select statement and storing it to a variable, all single quotes within the string must be doubled. That is, replace each single quote with two single quotes (not double quotes) within the string. Also, in Oracle, || is the concatenation symbol, not &. However, because you are using ASP and javascript, if they require double quotes and &, then you may have to experiment with such substitutions. Please see what you can derive from the following and let us know. Also, if it doesn't work for you, please be specific as to whether it returns an error message or if it just doesn't return any rows. A cut and paste of the run, as I have done below, would help.
SQL> -- test tables and data:
SQL> SELECT * FROM scott.assignments_tb
  2  /
FK_LOGIN_NO FK_BUSSEGID                                                        
          1           1                                                        
SQL> SELECT * FROM scott.logins_tb
  2  /
  LOGIN_NO LOGINID                                                             
         1 SCOTT                                                               
SQL> SELECT * FROM scott.bussegment_tb
  2  /
  BUSSEGID BUSINESSSEGMENTNAME                                                 
         1 SCOTT bussegname                                                    
SQL>
SQL>
SQL> -- code samples using scott schema
SQL> -- instead of soda schema:
SQL>
SQL>
SQL> CREATE OR REPLACE PACKAGE types_pkg
  2  AS
  3    TYPE weak_ref_cursor_type IS REF CURSOR;
  4  END types_pkg;
  5  /
Package created.
SQL>
SQL>
SQL> CREATE OR REPLACE PROCEDURE test_procedure
  2    (p_weak_ref_cursor OUT types_pkg.weak_ref_cursor_type)
  3  AS
  4    CommandText VARCHAR2 (4000);
  5  BEGIN
  6    CommandText :=
  7    'SELECT      DISTINCT
  8             l.loginid,
  9             b.businesssegmentname
10       FROM      scott.assignments_tb a,
11             scott.logins_tb      l,
12             scott.bussegment_tb  b
13       WHERE      a.fk_login_no = l.login_no
14       AND      a.fk_bussegid = b.bussegid
15       AND      (l.loginid = SYS_CONTEXT (''USERENV'', ''CURRENT_USER''))
16       ORDER BY b.businesssegmentname';
17 
18    OPEN p_weak_ref_cursor FOR CommandText;
19  END test_procedure;
20  /
Procedure created.
SQL> SHOW ERRORS
No errors.
SQL> VARIABLE g_ref REFCURSOR
SQL> EXECUTE test_procedure (:g_ref)
PL/SQL procedure successfully completed.
SQL> PRINT g_ref
LOGINID                        BUSINESSSEGMENTNAME                             
SCOTT                          SCOTT bussegname                                
SQL>
SQL>
SQL> CREATE OR REPLACE PROCEDURE test_procedure
  2    (p_weak_ref_cursor OUT types_pkg.weak_ref_cursor_type)
  3  AS
  4    CommandText VARCHAR2 (4000);
  5  BEGIN
  6    CommandText :=
  7    'SELECT      DISTINCT
  8             l.loginid,
  9             b.businesssegmentname
10       FROM      scott.assignments_tb a,
11             scott.logins_tb      l,
12             scott.bussegment_tb  b
13       WHERE      a.fk_login_no = l.login_no
14       AND      a.fk_bussegid = b.bussegid
15       AND      (l.loginid = ' || 'SYS_CONTEXT (''USERENV'', ''CURRENT_USER'')' || ')
16       ORDER BY b.businesssegmentname';
17 
18    OPEN p_weak_ref_cursor FOR CommandText;
19  END test_procedure;
20  /
Procedure created.
SQL> SHOW ERRORS
No errors.
SQL> VARIABLE g_ref REFCURSOR
SQL> EXECUTE test_procedure (:g_ref)
PL/SQL procedure successfully completed.
SQL> PRINT g_ref
LOGINID                        BUSINESSSEGMENTNAME                             
SCOTT                          SCOTT bussegname                                
SQL>
SQL>
SQL> CREATE OR REPLACE PROCEDURE test_procedure
  2    (p_weak_ref_cursor OUT types_pkg.weak_ref_cursor_type)
  3  AS
  4    usrLoginID  VARCHAR2 (30);
  5    CommandText VARCHAR2 (4000);
  6  BEGIN
  7    usrLoginID := SYS_CONTEXT ('USERENV', 'CURRENT_USER');
  8 
  9    CommandText :=
10    'SELECT      DISTINCT
11             l.loginid,
12             b.businesssegmentname
13       FROM      scott.assignments_tb a,
14             scott.logins_tb      l,
15             scott.bussegment_tb  b
16       WHERE      a.fk_login_no = l.login_no
17       AND      a.fk_bussegid = b.bussegid
18       AND      (l.loginid = ''' || usrLoginID || ''')
19       ORDER BY b.businesssegmentname';
20 
21    OPEN p_weak_ref_cursor FOR CommandText;
22  END test_procedure;
23  /
Procedure created.
SQL> SHOW ERRORS
No errors.
SQL> VARIABLE g_ref REFCURSOR
SQL> EXECUTE test_procedure (:g_ref)
PL/SQL procedure successfully completed.
SQL> PRINT g_ref
LOGINID                        BUSINESSSEGMENTNAME                             
SCOTT                          SCOTT bussegname                                
SQL>
SQL>
SQL> CREATE OR REPLACE PROCEDURE test_procedure
  2    (p_weak_ref_cursor OUT types_pkg.weak_ref_cursor_type)
  3  AS
  4    usrLoginID  VARCHAR2 (30);
  5    CommandText VARCHAR2 (4000);
  6  BEGIN
  7    usrLoginID := SYS_CONTEXT ('USERENV', 'CURRENT_USER');
  8 
  9    CommandText :=
10    'SELECT      DISTINCT
11             l.loginid,
12             b.businesssegmentname
13       FROM      scott.assignments_tb a,
14             scott.logins_tb      l,
15             scott.bussegment_tb  b
16       WHERE      a.fk_login_no = l.login_no
17       AND      a.fk_bussegid = b.bussegid
18       AND      (l.loginid = :usrLoginID)
19       ORDER BY b.businesssegmentname';
20 
21    OPEN p_weak_ref_cursor FOR CommandText USING usrLoginID;
22  END test_procedure;
23  /
Procedure created.
SQL> SHOW ERRORS
No errors.
SQL> VARIABLE g_ref REFCURSOR
SQL> EXECUTE test_procedure (:g_ref)
PL/SQL procedure successfully completed.
SQL> PRINT g_ref
LOGINID                        BUSINESSSEGMENTNAME                             
SCOTT                          SCOTT bussegname                                
SQL>
SQL>
SQL> CREATE OR REPLACE PROCEDURE test_procedure
  2    (p_weak_ref_cursor OUT types_pkg.weak_ref_cursor_type,
  3       usrLoginID       IN  VARCHAR2)
  4  AS
  5    CommandText VARCHAR2 (4000);
  6  BEGIN
  7    CommandText :=
  8    'SELECT      DISTINCT
  9             l.loginid,
10             b.businesssegmentname
11       FROM      scott.assignments_tb a,
12             scott.logins_tb      l,
13             scott.bussegment_tb  b
14       WHERE      a.fk_login_no = l.login_no
15       AND      a.fk_bussegid = b.bussegid
16       AND      (l.loginid = :usrLoginID)
17       ORDER BY b.businesssegmentname';
18 
19    OPEN p_weak_ref_cursor FOR CommandText USING usrLoginID;
20  END test_procedure;
21  /
Procedure created.
SQL> SHOW ERRORS
No errors.
SQL> VARIABLE g_ref REFCURSOR
SQL> VARIABLE usrLoginID VARCHAR2(30)
SQL> EXECUTE :usrLoginID := SYS_CONTEXT ('USERENV', 'CURRENT_USER')
PL/SQL procedure successfully completed.
SQL> EXECUTE test_procedure (:g_ref, :usrLoginID)
PL/SQL procedure successfully completed.
SQL> PRINT g_ref
LOGINID                        BUSINESSSEGMENTNAME                             
SCOTT                          SCOTT bussegname                                

Similar Messages

  • Is it bent!? Am I too blind to see it?!

    Hi, I recently got a 6. Great device, great upgrade from a 4S with iOS8. Apps load instantly, it's big, it's a nice phone... except for the bending issue.
    Over the past month I've read a lot about the bend-gate, seen lots of reports. Some of them justified as to why the phone got bent, other people claiming they had their phone in a case, no pocket and it bent. Other people say it needs a reasonable amount of force to bend, others say it's very prone to bending and it can bend like that.
    I'm a really OCD person and so I check my phone to see if it's bent almost every day. I know I have a problem. I have never put the phone inside a pocket, never stressed it. The only stress this thing has been under is switching cases and I do that with the most extreme care. For the life of me I cannot see a bend. I've looked at the phone under different light angles, I lay it face down on a surface, it's just dead flat. Pressing it doesn't make it move or wobble. I wasn't even going to stress this, however when I press the edge of the upper right corner, the bottom left corner is GENTLY raised up. Doesn't wobble, but the corner gets raised a bit. I think it's probably the curved screen but I don't know. I tried with my 4S which is obvs supposed to be flat but it does it too!! Weird thing is if I press the bottom left corner the upper right corner doesn't get raised. It's just this one. Other corners do not produce the problem either. Do you think I should be worried about this? Could it actually be a bend I just don't see? Like someone told me the phone is slightly bent and I almost lost my mind.
    Ι googled this and found other people with the same thing, 5/5S users and 6/6 Plus too. Upper corner pressed, bottom gets slightly raised up, no visible bending.
    I know it's one of these threads that have been created a million times. I'm sorry for taking a forum entry for this, but I would really like to see other people's inputs, if it does it and if it indeed is because of the curved screen. I do think the bending incident was blown out of proportion and I do think the phone won't bend just by sneezing, but when I saw my corner get kinda raised up I started worrying it might be bent and I'm too blind to see it. I'm too OCD for my own good when it comes to this.
    Attaching some photos. Please take a look at them and tell me if you see a bend cos I honestly cannot.
    http://bit.ly/1wwGCuv
    http://bit.ly/1uFut2f
    http://bit.ly/1A9BFIr

    If you believe you have a hardware problem, make an appointment at the Genius Bar at your local Apple Store. If you can't even tell if there's something you should be worried about, you probably shouldn't be.

  • AppleScript "Syntax Error" notification without errors

    Hello everyone and sorry for my bad english. I'm using OS X 10.6.2. I want to learn AppleScript, but every time when I try to run code I get notification "Syntax Error", but there isn't any error:
    display dialog "Hello, world!"
    Same thing with every code. What can be a problem?

    Your script runs fine for me on 10.9, however you don't seem to be targeting any application, it's not an issue, but you can find some weirdness when you run the script in the editor vs as an Application, script or service etc.
    tell application "Finder"
      display dialog "Hello, world!"
    end tell
    Try the above, see if that works - Finder should 'come to the front', you can 'compile' the script in the editor which should help confirm the syntax is correct. Are you using AppleScript Editor?
    It's worth checking you are using the correct quote types (straight lines vs curly ones), especially when pasting from the web…
    Bad
    Good
    There are a few tutorials around, see if they can help…
    http://www.instructables.com/id/Simple-Applescript-Tutorial/
    Macscripter seems to be helpful too
    http://macscripter.net
    P.S. 10.6.2 is a very old version, 10.6.8 is the later version (more stable) use software update to get that installed, it may fix some weird bugs that cause issues like this, run Software update several times until it stops giving you more fixes.

  • Select-options in SELECT query - syntax error

    Hi all,
      I get the error below when I try to use the select options in a SELECT query . Please help me.
    "The IN operator with "SO_AWART" is followed neither by an internal
    table nor by a value list."
    The code i have used(Logical database  PNP is used):
    TABLES: pernr,
            catsdb.
    INCLUDE ztime_cwtr_top.    " global Data
    INCLUDE ztime_cwtr_f01.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    SELECT-OPTIONS SO_AWART FOR CATSDB-AWART.
    PARAMETERS P_THRES TYPE I.
    SELECTION-SCREEN END OF BLOCK B1.
    Get data from CATSDB table. Workdates within the date interval are considered.
      SELECT pernr workdate awart catsquantity beguz enduz status
      FROM catsdb
      INTO TABLE it_catsdb
      WHERE pernr  = pernr-pernr    AND
           workdate GE pn-begda     AND
           workdate LE pn-endda     AND
           status   IN ('20', '30') AND
           awart    IN  so_awart .
          awart    IN ('1100', '1137', '1138', '1139', '1140',
                      '1147', '1148', '1149', '1157', '2003' ).
    when I give the values directly i do not get any syntax error, but when I use select options in the where condition I get the syntax error.
    I have tried different options like using only the select-options in the where condition.
    Thanks in advance.....
    Madhu

    Solved.
    Code with syntax error:
    include z...top .
    include z...fo1.
    select-options: xxxxxxx
    Code  with no syntax error:
    select-options: xxxxxxx
    include z...top .
    include z...fo1.
    Thanks for all your help,
    Madhu

  • Syntax Error while writing VBScript in OFT 9.1

    Hi All,
    I am new to OFT 9.1 (not using OpenScript). I have a simple VBScript code which I have copied inside Test Scriptlet After Page. After pasting code, I click "Done" button and then save the script. While doing this the script pane shows me syntax error but does not tell me what it is but highlights it with red color. I am even able to execute this VBScript code and get the desired result.
    Below is the code:
    Dim blnVal1
    Dim strVal
    Dim strTemp
    Function fn1(strTemp)
    MsgBox strTemp
    fn1 = True
    End Function
    strVal = "Hello World"
    blnVal1 = fn1(strVal)
    I get a syntax error for the statement where MsgBox line of code is written.
    Please can anyone help me why I am getting this syntax error. This is driving me nuts. Thanks.
    Regards,
    Harman

    My guess is that it doesn't like the Function statement and that you will have to just write your code page by page without the use of a function

  • Syntax error in standard program after upgrade

    Hi,
    After upgrade from 7.0 to 7.3, we are facing a syntax error in standard program that is used in one of our process
    The error says:
    The field "G_REQUIDPARENT" is unknown, but there is a field with the s"
    imilar name "G_REQUID_LAST". "G_REQUID_LAST"."
    The system cannot find this object inside include LRSBM_REQUEST_GUIP04, that belongs to program SAPLRSBM_REQUEST_GUI
    We assume that this is associated with the upgrade but we cannot find any solution in the web. Besides, this is a standard program so we cannot perform any change directly. We look for SAP Notes to apply but we didn't find nothing worthwhile
    Basically, we are receiving a dump with the error message posted above and we found the syntax error, but the thing is that we don't know how to fix it, due to the fact that is a standard program and we cannot change it
    I know that SAP could remove some object reference during the upgrade, but there should be an anticipated plan to fix this kind of errors, right?
    Can you shed some light on this, please ?
    Thanks a lot
    Ale

    Hi Ale,
    If you make sure there are no customization around the object and SGEN already run, I think you can just open a OSS message to SAP to looking for a fix.
    Regards
    Bill

  • OIM: Syntax Error running SampleHttpClient

    Hi,
    I'm trying to execute the SPML java client located in <inst home>\server\xellerate\SPMLWS\SampleHttpClient.
    I get a syntax error, but I'm actually running the program unchanged using the unmodified xml request file in the SampleHttpClient\sampleRequests directory.
    Someone has ever played with this little program? Ever had this problem?
    Below the error.
    Env: OIM 9.1.0
    App serv: JBOSS
    Thank you.
    ---------------- error-----------------
    E:\oracle\product\9.1.0\server\xellerate\SPMLWS\SampleHttpClient>java testspml.SendSPMLRequest addRequest_x_User.xml
    Setting System properties after reading the properties file
    ten.mydomain.com
    8080
    http
    JBOSS
    ./sampleRequests/JBOSS
    ./response
    requestFile = ./sampleRequests/JBOSS\addRequest_x_User.xml
    Exception in thread "main" org.xml.sax.SAXParseException: Expected "</HR>" to terminate element starting on line 1.
    at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
    at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.content(Unknown Source)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.content(Unknown Source)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.content(Unknown Source)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
    at org.apache.crimson.parser.Parser2.parse(Unknown Source)
    at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
    at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at testspml.SendSPMLRequest.main(SendSPMLRequest.java:68)

    Hi,
    make sure you have deployed the SPML WS first as per:
    http://download.oracle.com/docs/cd/E10391_01/doc.910/e10366/spml.htm#CHDEGDEC
    The error you are getting is in fact an generic error from the JBOSS saying that the path was not found on the server. And <HR> is just an HTML tag of that error page.
    Look in the provided code and make sure you can reach the link first in the browser.
    BR.
    Octavian

  • Syntax Error in Include which is genarated by System

    Hi,
    Good day experts,
    now iam working on EVENTS in IS-U module.
    FUNCTION Module : yfkk_sample_9560 .
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(I_FKKOP) TYPE  FKKOP
    *"     REFERENCE(I_FIELDCAT) TYPE  FKKSP_FIELDS
    *"     REFERENCE(I_KEYDATE) TYPE  OP_KEYDATE_KK OPTIONAL
    *"  CHANGING
    *"     REFERENCE(C_FKKOPRU) TYPE  FKKOPRU
    *types:fkksp_fields type table of fkksp_s_fields.
    Example:
    DATA:
       wa_cat TYPE fkksp_s_fields.
    READ TABLE i_fieldcat INTO wa_cat
       WITH KEY orig_field = 'PARTNER_NAME' orig_table = 'FKKOPRU'.
    IF sy-subrc = 0.
       SELECT SINGLE field
         INTO c_fkkopru-partner_name
         FROM table
         WHERE gpart = i_fkkop-gpart.
    ENDIF.
    GETTING CITY1  ********************
       DATA:
            wa_cat type fkksp_s_fields. "#EC *
       DATA: wa_fkkop TYPE fkkop. "#EC *
       DATA: x_haus LIKE ehauisu-haus, "#EC *
             x_actual LIKE regen-actual. "#EC *
       DATA:lv_vkonto TYPE ever-vkonto. "#EC *
       TABLES: ever,eanl,evbs. "#EC *
       DATA: lv_anlage TYPE eanl-anlage, "#EC *
             lv_vstelle TYPE eanl-vstelle. "#EC *
       DATA: yv_vstelle TYPE evbs-vstelle, "#EC *
             lv_haus    TYPE evbs-haus, "#EC *
             yy_addr_data TYPE eadrdat, "#EC *
             y_ehauisu TYPE ehauisu, "#EC *
             x_portion TYPE te420-termschl, "#EC *
             lv_vkont TYPE fkkvkp-vkont. "#EC *
       DATA: t_ever LIKE ever OCCURS 0 WITH HEADER LINE, "#EC *
             t_eanl LIKE eanl OCCURS 0 WITH HEADER LINE, "#EC *
             t_evbs LIKE evbs OCCURS 0 WITH HEADER LINE, "#EC *
             t_iflot LIKE iflot OCCURS 0 WITH HEADER LINE. "#EC *
      DATA: y_anlage TYPE eablg-anlage, "#EC *
            y_ableinh TYPE eablg-ableinh, "#EC *
            y_portion TYPE te422-portion. "#EC *
    ****Getting the city 1 *******************
    *LOOP AT I_FKKOP INTO WA_FKKOP.
       CALL FUNCTION 'ISU_GET_PARTNER_ADDRESS'
         EXPORTING
           x_partnerid        = i_fkkop-gpart
           x_addrnumber       = i_fkkop-emadr
      X_PERSNUMBER       =
        IMPORTING
      Y_NAME             =
      Y_ADDR_LINES       =
          y_addr_data        = yy_addr_data .
    *******Getting the connection object**************
       CALL FUNCTION 'YISU_GETCONNOBJ_VKONTGPART'
         EXPORTING
           i_vkont        = i_fkkop-vkont
           i_gpart        = i_fkkop-gpart
      IMPORTING
        E_BUTOOO       =
        E_FKKVKP       =
         TABLES
           t_ever         = t_ever
           t_eanl         = t_eanl
           t_evbs         = t_evbs
           t_iflot        = t_iflot
       lv_haus = t_evbs-haus.
    Getting the Political Word***************
       CALL FUNCTION 'ISU_DB_EHAUISU_SINGLE'   "#EC *
         EXPORTING
           x_haus          = lv_haus
          X_ACTUAL        = ' '
        IMPORTING
          y_ehauisu       = y_ehauisu
      EXCEPTIONS
       not_found       = 1
       OTHERS          = 2.
       IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    ***********Getting the Potion******************
       SELECT SINGLE anlage "#EC *
                     ableinh FROM eablg INTO (y_anlage, y_ableinh) WHERE anlage = t_eanl-anlage.
       IF sy-subrc = 0.
         SELECT SINGLE portion FROM te422 INTO y_portion WHERE termschl = y_ableinh.
       ENDIF.
    ***************Assinging the city1 and political word and portion ***********
       READ TABLE i_fieldcat INTO wa_cat WITH KEY
           orig_field = 'YYCITY1'    orig_table = 'FKKOPRU'
           orig_field = 'YYREGPOLIT' orig_table = 'FKKOPRU'
           orig_field = 'YYPORTION'  orig_table = 'FKKOPRU'.
       IF sy-subrc = 0.
         c_fkkopru-yycity1 = yy_addr_data-city1.
         c_fkkopru-yyregpolit = y_ehauisu-regpolit.
         c_fkkopru-yyportion = y_portion.
       ENDIF.
    ENDFUNCTION.
    Here iam getting the syntax error but activation wont get any error.
    Error is : "FKKSP_FIELDS" is not a pre-defined type or a type from a type group.          
    Plz its very urgent. give me solution for this Error.
    Regards,
    kk

    Hi,
    You need to declare the type group FKKSP in the global include.  i.e.
    TYPE-POOLS FKKSP.
    Regards,
    Dion

  • Syntax error near the ['on']

    Can anyone please advise on how to resolve this issue, I created Dim load file but whenever I try loading the Dim it returns - syntax error near the ['on']
    thanks

    I don't see the issue
    Delimiter was set as comma, first line was ignored and it all loaded fine.
    Cheers
    John

  • MergeField Syntax error issue

    I am attempting to print an interest rate in a merge document. MERGEFIELD PNT_12 contains the number 4.625.  When I hit [alt] 9, the document says (!Syntax Error,<) but still works somewhat. Here are examples and results. Any thoughts would be appreciated.
    {=INT({MERGEFIELD PNT_12})\# 00}
    {QUOTE {=INT({MERGEFIELD PNT_12})\* CardText \*Caps
    When I press
     [alt] 9 the above statements show
    !Syntax Error, <
    !Syntax Error, <
    When the document is saved with the statements shown as !Syntax Error the results are:
    four
    04
    Notice that the f is lower case even though there is a \*Caps switch.
    When the document is saved with the mergefields toggled to see the Mergefield codes rather than the !Syntax Error, the results are:
    Four
    04
    Notice that the f is now capitalized.
    Question:  What is wrong with the syntax?

    Word has two representations of the mergefield {MERGEFIELD PNT_12}
    One is {MERGEFIELD PNT_12}, and the other is  «PNT_12» , where the << and >> are each single chevron characters (ascii 171 and 187). Normally, you wil never see the «PNT_12»
    representation when it is nested inside a field such as { =INT() }. Word just deals with it, and provides the correct answer.
    So what I suspect is happening is that Calyx is setting the value of PNT_12 to "<<PNT_12>>", possibly using two less than characters "<" and greater than characters ">" during preview, then inserting the actual value when you merge.
    That would explain most of what you are seeing except the lower case result. As for that, I suppose it is possible that Calyx is interpreting the entire field code itself, but getting it wrong.
    Peter Jamieson

  • 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.

  • Too many syntax errors after upgrade to ECC 6.0

    Hello,
    We have made a test upgrade from 4.6C to ECC 6.0. OS --> AIX 5.3; DB --> DB2 8.2. After upgrade we have a lot of syntax errors, why? Anybody has the same problem? Do I must to check all my programs?
    Thanks.
    Martin

    Hello, here there is an example in Z program, but I have seen in no Z programs too with includes or userexits in the second example.
    Thanks.
    Martin.
    first example:
    Error in the ABAP Application Program                                                                               
    The current ABAP program "GBT10CO0" had to be terminated because it has        
    come across a statement that unfortunately cannot be executed.                                                                               
    The following syntax error occurred in program "ZGGBR000 " in include "ZGGBR000
    " in                                                                          
    line 279:                                                                      
    ""SYST-MODNO" must be a character-type data object (data type C, N, D, "       
    "T or STRING) ."                                                               
    second example:
    Error in the ABAP Application Program                                                                               
    The current ABAP program "SAPLGBL5" had to be terminated because it has       
    come across a statement that unfortunately cannot be executed.                                                                               
    The following syntax error occurred in program "GBT10FI0 " in include "GBT10FIB
    " in                                                                         
    line 1288:                                                                    
    "The FORM "SEND_CMPLX_DATA_015" does not exist."

  • How to fix Syntax Error: Expected end of line, etc. but found end of script. in applescript?

    I am making an applescript for my modding tool for Minecraft. It used to use multiple apps and I am now trying to make one app for all the tasks.
    Here is the code:
    say "You are running iCraft version one point one for minecraft version 1.2.5"
    display dialog "Which tool do you want to use?" buttons {"Mod Installer", "Backup", "Restore"} default button 3
    set the button_pressed to the button returned of the result
    if the button_pressed is "Mod Installer" then
    do shell script "~/desktop/iCraft/iCraft.app/contents/re…
    display dialog "Insert all mod files into the Mods folder."
    display dialog "Have you inserted all Mod files into the Mods folder?" buttons {"Yes", "No"} default button 2
    if the button_pressed is "Yes" then
    do shell script "~/desktop/iCraft/iCraft.app/contents/re…
    display dialog "Finished"
    else
    display dialog "Insert mod files into the Mods folder and restart iCraft.app."
    end if
    if the button_pressed is "Backup" then
    display dialog "Are you sure you want to backup your Minecraft.jar in it's current state?" buttons {"Yes", "No"} default button 2
    if the button_pressed is "Yes" then
    do shell script "~/desktop/iCraft/iCraft.app/contents/re…
    display dialog "Finished, find it in your Backups directory in the iCraft folder"
    else
    display dialog "Backup aborted"
    end if
    if the button_pressed is "Restore" then
    display dialog "Are you sure you want to restore your Minecraft.jar with your backup?" buttons {"Yes", "No"} default button 2
    if the button_pressed is "Yes" then
    do shell script "~/desktop/iCraft/iCraft.app/resources/s…
    else
    display dialog "Restore aborted"
    end if
    end
    When I try to compile/run it gives me Syntax Error: Expected end of line, etc. but found end of script.

    Your script got mangled when pasting it into your message, but the main problem looks like you are missing a bunch of end if statements.  Unless your if statements are contained on one line, you need to terminate them with a matching end if statement - for example, the following are equivalent:
    if someString is "whatever" then display dialog "foo"
    if someString is "whatever" then
      display dialog "foo"
    end if

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

    Hi,
    I tried to load master data from R/3 into BW system. The load is not ending and the IDoc error message is displaying,
    The error message is " EDI: Syntax error in IDoc (too many repetitions of a segment) with status 26"  .
    I tried to analise the issue and checked in the Idoc List Outbox of BW system. I found Red status message with number 26 stating " Error during Syntax check of IDoc (Outbound) and the message type is RSRQST.
    Could any one help me out in solving this problem. Reply to the message if any more information needed.
    Thanks in Advance.
    Regards
    Koushik

    I'm getting the same error. I think it is because I have a InfoPackage selection routine, that selects more than 1000 select conditions. I guess it is a parameter that needs to be changed somewhere. Any help on this one?
    BR
    Øyvind

  • When I am on facebook I continually get a syntax error message which keeps coming back. I have checked my settings and enabled java script but doesnt help.

    I can access my facebook account with no trouble, but once facebook is loaded I repeatedly get an error message; syntax error. The words 'Java Script application' are in the bar across the top of the message. It comes up many times and completely disrupts what I am doing. I am wondering if ot has something to do with the adverts in the side bar of each page that I open in facebook. If I open FB from Google Chrome I don't get that problem, or in Explorer, but I would rather use Firefox. Help would be apprecitaed, please. Thanks.

    hello, first of all please [https://www.mozilla.org/firefox/update/ update firefox to the latest version]. the errors you're getting are likely coming from the socialfixer addon that you've installed - there's also an updated version of the extension available which fixes these kind of issues: http://socialfixer.com/blog/category/releasenotes/

Maybe you are looking for

  • With new ios7 i can no longer download games

    Hello I updated to ios7 and now i have only trouble. I can no longer download or up date games. If i get emails with a link, i can no longer open the link to a website.....i could go on and on.....but my biggest problem is, that i cant download any g

  • How can I compile all functions, procedures and packages with a script?

    I need to compile all functions, procedures and packages of 5 schemas (users) with a script. How can I do it? Thanks!

  • Does the new ATV3 support DTS?

    Does the new ATV support DTS?

  • Agent Greeting

    Hello i am hoping that someone might be able to help me with agent greeting. i have most of the components in place and working. i can record and playback agent greetings without issue in the recording script. my problem is with a live call the play

  • Playing concurrently recorded songs in shuffle mode.

    Help! Is there a way to play songs concurrently that were recorded concurrently while the Ipod is in shuffle mode? Example: Van Halen's "Eruption" going into "You Really Got Me", or the Beatles-Abbey Road medley with "Sun King""Mean Mr. Mustard""Poly