Reg syntax error in ECC6.0

hi,
Iam getting syantax error for this small code in ECC 6.0.
plz help in solving this.
here is the full code.
DATA: WS-01(1) TYPE C VALUE '1',
WS-02(1) TYPE C VALUE '2',
WS-03(1) TYPE C VALUE '3',
WS-04(1) TYPE C VALUE '4',
WS-05(1) TYPE C VALUE '5',
WS-06(1) TYPE C VALUE '6',
WS-07(1) TYPE C VALUE '7',
WS-08(1) TYPE C VALUE '8',
WS-09(1) TYPE C VALUE '9',
WS-10(1) TYPE C VALUE 'A', "Omit letter 'A'
WS-10(1) TYPE C VALUE 'B',
WS-11(1) TYPE C VALUE 'C',
WS-12(1) TYPE C VALUE 'D',
WS-14(1) TYPE C VALUE 'E', "Omit letter 'E'
WS-13(1) TYPE C VALUE 'F',
WS-14(1) TYPE C VALUE 'G',
WS-15(1) TYPE C VALUE 'H',
WS-18(1) TYPE C VALUE 'I', "Omit letter 'I'
WS-16(1) TYPE C VALUE 'J',
WS-17(1) TYPE C VALUE 'K',
WS-18(1) TYPE C VALUE 'L',
WS-19(1) TYPE C VALUE 'M',
WS-20(1) TYPE C VALUE 'N',
O TYPE N VALUE '24', "Omit letter 'O'
WS-21(1) TYPE C VALUE 'P',
WS-22(1) TYPE C VALUE 'Q',
WS-23(1) TYPE C VALUE 'R',
WS-24(1) TYPE C VALUE 'S',
WS-25(1) TYPE C VALUE 'T',
WS-29(1) TYPE C VALUE 'U', "Omit letter 'U'
WS-26(1) TYPE C VALUE 'V',
WS-27(1) TYPE C VALUE 'W',
WS-28(1) TYPE C VALUE 'X',
WS-29(1) TYPE C VALUE 'Y',
WS-30(1) TYPE C VALUE 'Z',
WS-31(1) TYPE C VALUE '0',
NUM_LENGTH TYPE N VALUE '8'. " Length of stored no.
DATA : MAX_VAL(2) TYPE N VALUE '31'.
DATA: BEGIN OF NUM_TAB OCCURS 35,
CHAR(1) TYPE C,
VAL LIKE SY-INDEX,
END OF NUM_TAB.
initializes internal table with character values from data
DO MAX_VAL TIMES VARYING CHAR FROM WS-01 NEXT WS-02 .
MOVE: CHAR TO NUM_TAB-CHAR,
SY-INDEX TO NUM_TAB-VAL.
APPEND NUM_TAB.
ENDDO.
regards
vaja

Hi,
In unicode field names were not allowed with - symbol
wa-20 is not allowed
wa_20 is allowed
if you use wa-20 you will get syntax errors.
Regards,
sivachalasani.

Similar Messages

  • Syntax error in ECC6.0

    Hi experts , a syntax error is coming wile running the zprogram in ECC 6.0.
    here i am giving teh piece of code where exactly error is coming. could any one help me in this.
    error is " the literal '1' is not type compatable with formal parameter".
          AT NEW WERKS.
            PERFORM NEXT_ROW USING 0 1.(error is showing at this line)
            PERFORM SET_FORMAT USING 2 SPACE SPACE.
            WRITE: 2 BLANK(71).
            WRITE: 2(4) KONSI-WERKS.
          ENDAT.
    ****the below form is in some standard include*****
    FORM NEXT_ROW USING LOCCOLOR type i
                        LOCINTEN type c.
      SCOL = LOCCOLOR.
      SINT = LOCINTEN.
      PERFORM SET_COLOR.
      WRITE:/ SY-VLINE NO-GAP, <SLIN> NO-GAP, SY-VLINE.
      POSITION 1.
    ENDFORM.
    could any on ehelp me in this,  to how can i resolve this problem

    Did you try using quotes for 1 and 0 ?
    AT NEW WERKS.
    PERFORM NEXT_ROW USING '0' '1'.(error is showing at this line)
    PERFORM SET_FORMAT USING '2' SPACE SPACE.
    WRITE: 2 BLANK(71).
    WRITE: 2(4) KONSI-WERKS.
    ENDAT.
    ****the below form is in some standard include*****
    FORM NEXT_ROW USING LOCCOLOR type i
    LOCINTEN type c.
    SCOL = LOCCOLOR.
    SINT = LOCINTEN.
    PERFORM SET_COLOR.
    WRITE:/ SY-VLINE NO-GAP, <SLIN> NO-GAP, SY-VLINE.
    POSITION 1.
    ENDFORM.

  • Reg: syntax error

    hi ,
    when i go with syntax check with method ENRICH_COMPONENT_WITH_ED_DATA in the class interface CL_IM_OIH_MIGO_BADI, got syntax error as:
    "The line type of the table "CT_GOCOMP" is not compatible with field symbol type "<FS_OIH_GOCOMP>"."
    pls suggest..how to correct this
    regards
    chandra

    Hi,
    please check the type of "<FS_OIH_GOCOMP>".
    if the parameter of the method requires a table to be passed then the field symbol should be declared as
    field-symbols : <FS_OIH_GOCOMP> type any table.
    otherwise if it requires to be a line type then  the declaration should be as follows
    field-symbols : <FS_OIH_GOCOMP> type any
    if this doesn't work then try giving the
    field-symbols : <FS_OIH_GOCOMP> type/like  CT_GOCOMP.
    hope this helps you
    Regards,
    Siddarth

  • IDOC Syntax Error E0072 with status 26 after upgrade to ECC6.0

    Hi
    We have upgraded SAP R/3 from 4.6C to ECC6.0. After upgrade, when we create PO and output EDI, we are seeing this IDOC syntax error E0072 for Mandatory Segment E1EDK01. In 4.6C it was working fine with no issues, only after upgrade this problem started. It says E1EDK01 is missing which is mandatory. We are using basic type ORDERS01 with no extensions. When we see WE30 it looks fine, WE20 settings looks fine.
    Order of the segments got scrambled in upgraded version. First segment is E1EDP19001, this is supposed to be under E1EDP01 segment. There are two E1EDP19001 segments created but there were no sub segments to E1EDP01.
    Any help in this regard is highly appreciated.
    Thanks
    Pandiri

    User Exit activation and fixing the issue in user exit fixed this issue.

  • Syntax error after upgrade to ECC6

    Hi,
    I have customized infotype and BAPI in SAP 4.6. After upgade to ECC6, my Infotype is working fine, but my BAPI give this error : 
    The following syntax error was found in the program SAPLZBAPI_HR :
    "INCLUDE report "%_HR9000" not found."
    If I goto SE38 to recreate %_HR9000, SAP not allow me to continue and appear message "Do not use any special character".
    May I know how to resolve this problem ?
    Thanks a million.
    Regards,
    Eric

    Hi,
    In the ECC6.0 version, it seems that one of the INCLUDE that was generated for that infotype in 4.6 C ending.. with words....HR9000 was not transported or not found for that infotype. Please check all the includes..
    In SE38 you can enter the characters like %, so that error  is coming
    % means LIKE PATTERN ....HR9000 .
    Hope you understood.
    Regards,
    ANJI

  • Syntax error in F110 while making proposal,upgraded from 4.7ee to ECC6.0

    Hi,
    We have upgraded the SAP from 4.7ee to ECC6.0.We are facing post upgradation issues.
    While executing proposal in Trx.code F110(APP),it is going to ABAP dump,throughing a syntax error FILL_PAYGR_FROM_BSEC.
    Please guide me to solve this issue.
    Regards,
    Nageswar Rao J

    I suggest to open an OSS call for that issue (component  FI-AP-AP-B).
    Markus

  • Syntax error in standard include RKEB090F in ECC6

    Hi,
    I have one issue with this include program RKEB090F. This program is being used in one of the custom program while checking this program we are getting syntax error field P_USEDB is unknown.
    When I compared 4.7 and ECC 6 version, the code contains in 4.7 version is
          FORM INITIALIZATION_EXIT                                      *
    FORM INITIALIZATION_EXIT.
    ENDFORM.
    but in ECC 6 the code contains
          FORM INITIALIZATION_EXIT                                      *
    FORM INITIALIZATION_EXIT.
       if rkb1d-smode = '7'.
         CALL FUNCTION 'AS_DATASOURCE_INIT'
           EXPORTING
             I_REPORT                   = 'KE30'
             I_REPORTTYPE               = 'TR'
           IMPORTING
             E_USE_DATABASE             = P_USEDB
             E_USE_ARCHIVE              = P_USEAR
             E_USE_INFOSYS              = P_USEAS
             E_ARCHOBJ                  = P_OBJECT
             ET_ARCH_SEL                = SO_FILES[].
         G_RKB2A-OBJECT = P_OBJECT.
         G_RKB2A-USEDB = P_USEDB.
         G_RKB2A-USEAR = P_USEAR.
         G_RKB2A-USEAS = P_USEAS.
         G_RKB2A-SO_FILES = SO_FILES[].
         PERFORM HANDLE_DATASOURCE USING 'EX'.
       endif.
    ENDFORM.
    due to this code I am getting the syntax errors. How can we know how this code is added.
    Please let me know if you get any inputs.
    Regards,
    Jyothi CH.

    Hi Guys,
    I am having the same syntax error with this include RKEB090F and the Field P_USERB, but instead the program is a SAP Program. I have been trying to archive a table and I keep getting this error for different G* programs. I regenerate one, the other one gives error. I tried regenerating all of them and I still got this error.
    Error in the ABAP Application Program
    The current ABAP program "SAPLKYP4_UC" had to be terminated because it h
    come across a statement that unfortunately cannot be executed
    The following syntax error occurred in program "GPC6ZZ9KJ35AEXCXNZFQDJG3
    in include "RKEB090F " in
    line 17:
    "Field "P_USEDB" is unknown. It is neither in one of the specified tabl"
    "es nor defined by a "DATA" statement. ."
    The include has been created and last changed by:
    Created by: "SAP "
    Last changed by: "SAP "
    Error in the ABAP Application Program
    PLEASE HELP
    --Thanks in Advance,
    Fiyaz

  • Syntax error. SAP 3.1 version - ECC6

    Friends,
    Following statement given syntaxt error in ECC6.
    It is working fine in SAP 3.1.
    I need to copy the code from SAP 3.1 to ECC6.
         DO VARYING l_char FROM l_text2+99
                                        NEXT l_text2+98.
    Please help me in this regard ASAP.
    Thanks in advance.

    I was able to get the following to work:
    DO 100 TIMES VARYING l_char FROM l_text99(1) NEXT l_text98(1) RANGE l_text.
    ENDDO.
    I had to add the "100 TIMES" or the loop continued beyond the range of the variable and short-dumped.
    Hope this helps,
    Mark S.

  • Basis SP 18 to 20, can not logon through SAPGUI - Syntax Error

    Hello Experts,
    We had started ECC6.0 SP18 to SP20 patches and now we are getting Syntax error in program "CL_WB_CROSSREFERENCE==========CP ". for most of the transactions executed.
    1. Job RDDIMPDP is also failing with message
    Program RDDIMPDP is running in client 000                                    
    Context TERNAL_INFOS does not contain any fields                     
    Context TERNAL_INFOS contains errors and could therefore not be generated     
    Context BANK_CTX_JC_REPORT modified                                           
    Internal session terminated with a runtime error (refer to ST22)         
    Job cancelled                                                   
    2. Here are the details of this short dump, as soon as we get the short dump we get message in the status bar saying "Context BANK_CTX_JC_REPORT modified".
    Error in the ABAP Application Program                                                                               
    The current ABAP program "SAPLSEWB" had to be terminated because it has                       
        come across a statement that unfortunately cannot be executed.                                                                               
    The following syntax error occurred in program                                                
         "CL_WB_CROSSREFERENCE==========CP " in include                                               
         "CL_WB_CROSSREFERENCE==========CM005 " in                                                    
        line 7:                                                                               
    ""PROGRAM-" expected, not "PROGNAME_""                                                        
    The include has been created and last changed by:                                             
        Created by: "SAP "                                                                               
    Last changed by: "PEARSONA "                                                                  
        Error in the ABAP Application Program                                                                               
    The current ABAP program "SAPLSEWB" had to be terminated because it has                       
        come across a statement that unfortunately cannot be executed.                                
    Error analysis                                                                               
    The following syntax error was found in the program                                           
         CL_WB_CROSSREFERENCE==========CP :                                                           
        ""PROGRAM-" expected, not "PROGNAME_""                                                        
    Trigger Location of Runtime Error                                                                 
        Program                                 SAPLSEWB                                              
        Include                                 LSEWBU07                                              
        Row                                     837                                                   
        Module type                             (FORM)                                                
        Module Name                             PROGRAM_ACTUALIZE                                     
    Source Code Extract                                                                               
    Line  SourceCde                                                                               
    807 * PROGRAM_ACTUALIZE, ADD_CHILDS und PG_COMPONENT verwendet                                  
      808                                                                               
    809   previous_id = '1'.                                                                        
      810   xtype = 'C'.                                                                               
    811   IF xprogram(4) = 'SAPL' OR xprogram+1 CS '/SAPL'.                                         
      812 *   Funktionsgruppennamen bestimmen                                                         
      813     l_program = xprogram.                                                                   
      814     CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT'                                                  
      815       EXPORTING                                                                               
    816         program   = l_program                                                               
      817       IMPORTING                                                                               
    818         namespace = l_namespace                                                             
      819         group     = l_area                                                                  
      820       EXCEPTIONS                                                                               
    821         OTHERS    = 6.                                                                      
      822     IF sy-subrc = 0.                                                                        
      823       xtype+1(1) = 'F'.                                                                     
      824     ELSE.                                                                               
    825       xtype+1(1) = 'P'.                                                                     
      826     ENDIF.                                                                               
    827   ELSEIF current_treename(3) = 'CP_'.                                                       
      828     xtype+1(1) = 'O'.                                                                       
      829   ELSE.                                                                               
    830     xtype+1(1) = 'P'.                                                                       
      831   ENDIF.                                                                               
    832                                                                               
    833   IF without_crossreference IS INITIAL.                                                     
      834     IF scros_new_where_used_list = 'X' AND index_parallel EQ space.                         
      835 *     neuer Index Verwendungsnachweis                                                       
      836       lprogram = xprogram.                                                                  
    >>>>>       CALL METHOD cl_wb_crossreference=>program_index(                                      
      838         EXPORTING                                                                           
      839           p_name             = lprogram    " Programmname                                   
      840         IMPORTING                                                                           
      841           p_error            = l_error    " Fehler Index wurde nicht aufgebaut              
      842         EXCEPTIONS                                                                          
      843           program_name_empty = 1                                                            
      844           OTHERS             = 2                                                            
      845             ).                                                                               
    846       IF sy-subrc <> 0.                                                                     
      847 *        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno                                  
      848 *                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.                               
      849       ENDIF.                                                                               
    850     ENDIF.                                                                               
    851   ENDIF.                                                                               
    852                                                                   
    3. Tried to generate the program manually through SE38 -> CL_WB_CROSSREFERENCE==========CP  --> but it dumps with same message line 7:                                                                               
    ""PROGRAM-" expected, not "PROGNAME_"" 
    Appreciate your inputs in resolving this issue.
    Raised message with SAP support but didn't hear anything till now - so seeking your experise.
    Best Regards
    Davinder

    Hello Experts,
    Further investigation on system showed that we had implemented SNOTE 1374978 - which seems to be causing the problem.
    Now as Support packages (SPAM) has locked SNOTE transactions also - is there any way that we can deimplement the above sap note from our system.
    Thanks
    Davinder

  • Syntax error in program "SAPDBZMPQ_PGQ "

    Hi All,
    while executing tcode zppwagri its going to dump.I have gone through SDN but there is no solution.As this is related to standard Include issue.Can anyone provide me the SAPNOTE or solution for the issue.
    We are upgrade our system from 4.7 to ECC6 EHP5 the structure qavo_tab not available in old version
    but its there in newer system.how to remove above structure or avoid the syntax error as well as dump.
    Dump details:
    Short text:
    Syntax error in program "SAPDBZMPQ_PGQ ".
    What happened?
    Error in the ABAP Application Program
    The current ABAP program "ZMPQ_RQEEAL10" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "SAPDBZMPQ_PGQ " in include
    "DBPGQF001 " in line 256:
    "Field "QAVO_TAB" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement."
    The include has been created and last changed by
    Created by: "SAP "
    Last changed by: "SAP "
    Error in the ABAP Application Program.
    The current ABAP program "ZMPQ_RQEEAL10" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    Error analysis:
    The following syntax error was found in the program SAPDBZMPQ_PGQ :
    "Field "QAVO_TAB" is unknown. It is neither in one of the specified tab"
    "les nor defined by a "DATA" statement."
    In standard Include program DBPGQTOP i have structure.
    Tabelle der Vorgangsverwendungsentscheide
    DATA:   BEGIN OF qavo_tab OCCURS 5.
            INCLUDE STRUCTURE qavo.
    DATA:   END OF qavo_tab.
    Thanks
    Siri

    Looks like the top include DBPGQTOP is not linked with the main program anymore after upgrade. In fact, we faced a similar 'missing include/syntax error' issue after our EHP5 upgrade. But that was on a function module/function group. We corrected it by running SE37->Utilities->Repair function group.
    In the same way, try running 'Rebuild object list' from SE80 for your program.
    Regards,
    Gokul

  • Syntax error in program "RPCALCX0 "

    Dear Experts,
    We are currently working on the project of Technical Upgrade of 4.5b to ECC6.0.
    I got a dump on the standard payroll driver(T-code: PC00_M99_CALC) before going to load this program. Its a standard functionality of Payroll and did not seen this type of issue before.
    Following is the Error Msg:
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "RPMENUSTART00" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
        The following syntax error occurred in program "RPCALCX0 " in include "RPCLEC10
         " in
        line 282:
        "Field "P2006" is unknown. It is neither in one of the specified tables"
        " nor defined by a "DATA" statement. ."
        The current ABAP program "RPMENUSTART00" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    Please help me to sort out this issue.
    Thanks,
    Rizwan

    Rizwan,
    Error is because system is not able to read infotype 2006 for the program.
    Check the include RPCIFT00, here infotype 2006 should be declared. Also check if this include is active.

  • Syntax error in GB06

    Hi guys,
    We are facing a dump error in GB06 tcode.Whenever a reverse posting is done its going for dump.It says -
    The following sytax error occured in the program SAPFGSTO and in include FGSTOI02 and in line 16.When i checked in line 16, a FM -
    case used_v1-tab.
    when 'GLPCA'.
    CALL FUNCTION 'G_PCA_0_POSTING' IN UPDATE TASK
    TABLES
    INT_GLPCA = IGLPCA
    INT_GLPCA_ADD = IGLPCA_ADD.
    WHEN 'GLPCP'.
    CALL FUNCTION 'G_PCA_1_POSTING' IN UPDATE TASK
    TABLES
    INT_GLPCP = IGLPCP
    INT_GLPCP_ADD = IGLPCP_ADD.
    This line is going for dump.Since its a standard program and checked for any syntax error -
    The field IGLPCA is unknown but there is a similar name with 'GLPCA'.We are into ECC6.0 and i compared the same include with 4.0 and the above code is not present there and its running fine.In include FGSTOI02(where iam facing dump) the above line is commented -
    Created by : DDIC
    Date : 05/16/09
    Time : 04:01:43
    Generator : RGGSTORN
    So do i need to check in program RGGSTORN or in the same includeor its a configuration related issue.How i need to come over with this issue?

    Hi,
    check SAPNET note 1143335 maybe its helpful.
    Best regards, Christian

  • What is this syntax error?

    The standard SAP program SAPDBZDF giving error in ECC6.0 version in line 211:Field "%_GET" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement . . .
    The line declared is 
    IF B0SG-XASGL <> 'X' AND %_GET+10(1) <> ' '.
    What is the %_GET? how to eliminate the error?
    This code doesn't give syntax error in 4.0B version.
    If it is standard SAP report, please help me.

    Hi,
    this rather looks like some kind of inactive query, infostructure or other generated stuff.
    As already mentioned: Our system knows
    SAPDBDDF                                   Logical Database SAPDBDDF
    SAPDBIDF                                   Real Estate Logical Database
    SAPDBKDF                                   Logical Database SAPDBKDF
    SAPDBMDF                                   FM Master Data Mass Selection
    SAPDBSDF                                   SAPDBSDF Logical Database
    SAPDBVDF
    If you copied one of the standard logical databases to customer name space SAPDBZDF: I did this and I found OSS notes guiding through additional necessary process.
    Regards,
    Clemens

  • Syntax error in program GBBTQFI0

    dear gurus
    i am getting the following error while doing PGI, this is a runtime error and the analysis states
    in program GBBTQFI0 the following syntax error occured
    in the include GBBTQFIB in the line 785
    the data object BSEG does not have a component called ZZREGION
    can u give the solution regarding this
    regards
    srini

    Reason: The customized field is missed after upgrade from ECC6.0 to ECC6.03.
    Solution:
    SE11-->BSEG --> Append structure
    .APPEND     ZFU12     STRU     0     0     ZZUSERFLD1
    ZZUSERFLD1     ZZUSERFLD1     CHAR     9     0     Territory
    ZZUSERFLD2     ZZUSERFLD2     CHAR     12     0     Owner/Cont.
    ZZUSERFLD3     ZZUSERFLD3     CHAR     22     0     Vein
    .APPEND     ZREG2     STRU     0     0     region
    ZZREGION     ZZREGION     CHAR     3     0     Location
    .APPEND     ZT005S     STRU     0     0     state
    ZZSTATE     ZZSTATE     CHAR     3     0     State/Province Code

  • Syntax error in the program SAPLSYMB

    Hi
    I have installed ECC6 on windows 2003 server  sqlserver 2005 as database. We are getting error at the time applying basis patch. The patch process is stopped at import_proper stage.
    When i try to execute any transaction , the error is "syntax error in the program SAPLSYMB". I have cleard the transaction log, still  the errro is same.
    When I try to relogin the error is same, I am unable to execute any transaction.
    Please do the needful
    Regards
    Prasanna.B.S

    Hellow,
    I have the same error, and I executed this command for 12 hours
    tp r3i SAPKB70017 ITP pf=/usr/sap/trans/bin/TP_DOMAIN_ITP.PFL tag=spam -Dclientcascade=yes -Drepeatonerror=8
    the message in cmd is
    earth\sapmnt\trans\tmp\SLOG0914.ITP.LOC is already in use (14474), I'm waiting
    2 sec (20090401065221). My name: pid 4188 on earth (dministrator)
    But this file (SLOG0914.ITP.LOC ) is in 0 kb, is this normally ?
    Please Help me
    Regards
    Graciela

Maybe you are looking for

  • I upgraded to 3.2, but now spreadsheets that I create in 3.2 will not reopen. I need a newer version???

    I have faithfully updated my Numbers program. 3.2 is the latest version and it is loaded on my mac. However, when I create a spreadsheet in 3.2 and save it, when I go to reopen the spreadsheet Mac tells me I need a newer version of Numbers? What give

  • IPhoto Won't Even Launch

    Out of the blue yesterday, when I launched iPhoto, it would not launch. The application seems to start to launch and then all that appears is the iPhoto window with no photos at all and the spinning beach ball. It never loads the photos in our Librar

  • F.13 not clearing items

    Hi All, We have the following situation 1. We are running f.13 with the selection parameters  company code, fiscal year & one GL account ( for freight for outbound shipments) 2. When we check the output we do not see any Cleared items. We also checke

  • Ipad shipment concelled

    Order number W219294269 yesturday i order an ipad from the online store and the shipment was cancelled .. i want to know the reason of the cancellation >> i try to find apple constomer service email and i didn t find ..

  • WiSM Switch - Questions about Client Connections

    Hello! i?m planning a worst case scenario for a customer site. They got a couple of 6500?s with WiSM Modules installed. Now I?m sitting over a instruction of what to do when a WiSM breaks down and I got a few questions regarding the clients. In the c