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

Similar Messages

  • No syntax error on syntax check, but syntax error on activation

    Hi all,
    I have a confusing problem.
    I want to default some values on item level of purchase order (ME21N). I added a module call in flow logic of screen 1313 of program SAPLMEGUI. The module itself I added to include LMEVIEWSF01. Here I default some fields of structure MEPO1313. This structure is defined in TOP-include using TABLES.
    Before modification I debugged the transaction and found out, that structure MEPO1313 is accessible during PBO. Changes in debugger are shown as expected on screen.
    Now, syntax check on LMEVIEWSF01 and even on SAPLMEGUI returns no error. But on activation I get syntax error saying MEPO1313 is not know ??
    So, structure MEPO1313 is accessible in debugger, no syntax error on syntax-check, but syntax error on activation ?
    What is going on ??
    Elko

    go to SE80 and Check syantax at package level.
    you might  be checking syantax for other include and problem si somw ehere else, justa  thought.

  • 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 Message code 1900 in syntax check and code LV_ERR in user interface

    In my webdynpro component when i did the code inspector check i have an error message in syntax check
    which says "Message code 1900: ObjectType WDYN Object name ZXXXX Row 1 Column 0 the size of the PXA buffer reached a critical value at 158 percent. The maximum size is currently 4,194,304 bytes ==> The size of the PXA buffer reached a critical value at 158 percent. The maximum size is currently 4,194,304 bytes.
    Another Error message in user interface
    which says: "Message Code LV_ERR:ObjectType WDYN Object name ZXXXX Sub-Object Type  Sub-Object Name  Error  Load unit of component is very large (generation limit).==> Error  Load unit of component is very large (generation limit) .
    Please help in resolving these issues.
    Thanks in advance.

    Hi,
    you need to discuss with the basis team to increase the abap buffersize.
    there is a parameter in the transaction rz11.
    go to RZ11 and then wirte parameter as abap/buffersize
    check its value.
    if you increase it,   problem will be solved i guess.
    thanks
    sarbjeet

  • Syntax check of code

    I am passing certain code in table itab and then doing a syntax check using SYNTAX-CHECK FOR itab MESSAGE mess LINE lin WORD wrd .The problem with this method is it check the code line by line and assign mess with the first error msg  but I want to trap all the error message of the code in itab at once in another table.
    Is it possible to trap all the error msg at once in a internal table.

    Hi,
    This is similar to what ABAP Editor sytax check does. You cannot check sytax of the "futher" code as the "closer" code may affect the "further". Unless you correct the first error you cannot therefore check if futher lines are correct. If this worked like you want it would have to correct "closer" errors first by itself, then it could check rest of the code. But how the compilator (generall meaning) would have to know what to place there. This is of course impossible. There is no such compliator doing so in none of known to me programming languages.
    You may skip this by a trick. Looping at the table with a code and checking each line of this with a check syntax. Then collect all these errors within an error table.
    Nevetherless be carefull !! You would have to place excatly one statement per line in code table. Otherwise it won't pass the exam. Moreover you cannot use any of chain statements i.e.
    write: 'first line',
            'second line'.
    ...should be replaced with
    write 'first line'.
    write 'second line'.
    Hope this give you some idea:)
    Regards
    Marcin

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

  • Error in syntax .check manual

    Hi
    I am getting on value of variable(sj) from database and storing in list and using that value to get ID from same table.
    Now problem ---- if value of variable (psj = yyuyu "ghgh jkjkj" ghghg ) OR (psj=hjhjhj 'hjhjh jkjkj' hhjhjh).It gives error "you have error in syntax......." .(because of presence of sigle or double quote.how to correct this .I am newbie
    i tried both but same result
    a)String psj=(String)kjk.get(y);
    resultsetnt=statement.executeQuery("select ID from tbl where Text='"+psj+"'");
    b)String psj=(String)kjk.get(y);
    resultsetnt=statement.executeQuery("select ID from tbl where Text=\""+psj+"\""); where id continas integer

    a)
    <%for(int p=0;p<o.size();p++){
    String psj=(String)kjk.get(y);
    resultsetnt=statement.executeQuery("select ID from tbl where Text='"psj"'"); }}
    As you can see that above is java code.how to reform the query using your solution? one thing to be noted is psj is variable which hold the value not the string itself
    vNewVal := replace(string,'"',null);
    Edited by: user515494 on Sep 10, 2008 9:04 AM
    Edited by: user515494 on Sep 10, 2008 9:06 AM

  • How to remove Unicode errors from extended check and code inspector

    Hi
    We are working on making all our ABAP program to make unicode compliant. We are activating unicode flag in attribute and correcting syntax errors. After this when we do the extended checks or SLIN or code inspector, usually giving error for many statements such as whenever there is message.
    <b>Code is :</b>message a208 with text-004.
    <b>Error description is</b> :
    The message 208 for id zz has no long text.
    You can hide this message using "#EC *
    208 is -   & does not exist in & &. And  text 004 is - Cannot open the output file
    By using #EC * we can remove errors. But Is this the correct way and what does this indicate? Please explain.

    Hi Yogesh,
    Can you check whether the message number 208 in message id ZZ has the Self Explanatory checkbox as checked or not? I think it is not checked and u have also not maintained any long text. Hence the error.
    By using #EC - you do not remove the error, however u hide it from SLIN.
    It is used if there is some known error you cannot avoid which is returned by SLIN and you dont want it to be reported. Also, a way to "cheat" the reviewer who might be checking for errors.
    Not good !! 
    Regards,
    Aditya

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

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

  • Syntax check and auto-format disagree

    Flash 8 Pro: Well, I'm coding along quite nicely and decide
    to auto-format. Auto-format says the code has errors, the syntax
    check says there are none. I can run my code (though it's not doing
    what I want) without getting an error.
    Are there specific scenarios that cause the syntax check and
    auto-format to disagree?
    In just about every other development tool I've used, it will
    auto format regardless of errors, even if the formatting is messed
    up. it's a good aid to highlighting syntax errors! Why can't flash
    do the same?
    Thanks,
    Paul

    Well, after commenting out lots of code until the error went
    away and then removing the comments and making some tweaks, the
    problem has gone away..

  • 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

  • Syntax check error in the standard include

    Hi,
    I have modified one standard include using access key to insert one logic as per businness requirements.Now after inserting that code iam getting syntax error but while activating it is not showing the error and getting activated.
    The include is V05XZZMO in that i have inserted code is as follows
    FORM MOVE_USERFIELDS USING ZP.
      CASE ZP.
        WHEN 'VBRK'.
        header
        MOVE LVBRK-XXXXX TO LFAMTV-ZZXXXXX.
    *{   INSERT         GDVK934083                                        1
              MOVE LVBRK-ZUONR TO LFAMTV-ZZZUONR.
    *}   INSERT
        WHEN 'VBRP'.
        item
        MOVE LVBRP-XXXXX TO LFAMTV-ZZXXXXX.
    *{   INSERT         GDVK934083                                        2
       MOVE LVBRP-MATWA TO LFAMTV-ZZMATWA.
    *}   INSERT
      ENDCASE.
    ENDFORM.
    now it is throwing error saying that LFAMTV doesn't exist...when I double click on that it is taking me to the FM RV_INVOICE_VIEW_2 where it is defined....
    Can anyone know the reason why it is throwing the error when we go for the syntax check but when u activate the program it is getting activated.. so can this error can be neglected?
    Any help on this will be appreciated..
    Regards,
    Rohan.

    Hi,
    First comment ur code and then activate the include.
    Now put a break point in the form and then in the debug mode check the structre LFAMTV is visible or not.
    if yes then once again add ur code and then activate the whole program.
    and now once again debug it and see...., whether the values are updated to the strurure LFAMTV.
    Regards,
    Nagaraj

  • Syntax error in validation check "DHVALID", step "001"

    Hi,
    I have booked invoice for $ 25,000.00, now i want to make this  payment via t-code F-53. At that time system giving error  i.e.  "Syntax error in validation check "DHVALID", step 001*"
    Request to you please tell me what are the steps to resolve this issue.
    Regards,
    Nilesh Surve.

    Hi,
    Check validations in ob28. It seems there are some validations, for which paramters are set for accounts or transaction code.
    Regards

  • Extended Syntax Check  in abap code

    Hi Guys,
    We are upgrading from 4.6 C to ECC 6.0.  When I do the Extended Syntax check for the custom function module it gives me the following error.  Please help.
    The EXCEPTION "REPORT_NOT_EXISTENT" is not defined in the interface of the function module "RS_VARIANT_CONTENTS" "RS_VARIANT_CONTENTS".  Internal Message Code: MESSAGE G-7. 
    (The message can be hidden with "#EC ARGCHECKED)
    Regards,
    Shankar

    <b>Don't suppress the message. </b> You should only suppress messages if you are aware of why they are appearing, and they are not an error.
    What it means is, that in your custom function module, there is some code like
    CALL FUNCTION 'RS_VARIANT_CONTENTS'
      EXPORTING
        report                     = v_report
        variant                    = v_variant
    EXCEPTIONS
       VARIANT_NON_EXISTENT        = 1
       VARIANT_OBSOLETE            = 2
       REPORT_NOT_EXISTENT         = 3
       OTHERS                      = 4
    But if you look at FM rs_variant_contents, you'll see this exception is not defined.  The correct course of action is to remove it from your call.
    matt

Maybe you are looking for

  • Student edition, CS4 DP bought a mac, cannot convert license?

    I bought CS4 student edition at the beginning of this year, naively thinking that I could switch the license when i got a mac later in the year, well it is later in the year and i have bought this mac MAC computer, but when I rang customer service th

  • Call Library Node + Windows Console

    Hello NI developers! I have a DLL for LabView. Inside the DLL there are many "printf("...Text....")" calls. If I compile source code as an .exe and run it - it runs a windows console and shows text outputted buy " printf(....) " and even somewhere ex

  • [GIVE-UP] firefox segfault when tint2 started in openbox

    I've run into a little problem here. I am in the process of making myself feel at home with openbox, and would like to use tint2 with it. However every time I maximize a firefox window while tint2 is running, I get a segfault (from firefox). I am uns

  • How Can I install Framemaker 10 silently with serial key and license updater?

    How Can I install Framemaker 10 silently with serial key and license updater? Is there any tool to create MSI for this? I tried with using http://download.macromedia.com/pub/developer/creativesuite/AAMEE/win32/ApplicationManagerE nterprise_1_all.exe

  • Want to pixelate an image

    I need to pixelate an image, but I have looked through the filters and none of them give the desired effect.  The closest I have found is "facet", but the pixels are far too small.  I need it to be pixelated enough so that you can make out what the i