My First Abap Code Error

Hi Experts,
I have installed SAP Mini Basis in my computer and I am learning ABAP. As such, I am new to ABAP. I did my first Hello Program in it and it gave an error. I did not change the code in any aspect, but it gave an error. I simply copied it. I can understand that there is some error on statement CALL SCREEN 100. I do not know how to correct it.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Hello Program is given below:
REPORT  ZKAN.
Selection Screen
PARAMETERS input(12) TYPE c DEFAULT 'Hello World!'.
Dynpro
CALL SCREEN 100.
List
SKIP TO LINE 10.
POSITION 40.
WRITE input.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The error is given below.
ABAP runtime errors         DYNPRO_NOT_FOUND                   
       Occurred on     17.07.2010 at 20:09:43                                                                               
Screen does not exist                                                               
What happened?     
The current ABAP/4 program "ZKAN " had to be terminated because                     
one of the statements could not be executed.                                                                               
This is probably due to an error in the ABAP/4 program.                                                                               
The program had to be terminated.                                                   
What can you do?     
Note the actions and input that caused the error.                                                                               
Inform your SAP system administrator.                                                                               
You can print out this message by choosing "Print". Transaction ST22                
allows you to display and manage termination messages, including keeping            
them beyond their normal deletion date.                                            
You can print this message by choosing "Print".                                     
Transaction ST22 allows you to display and manage short dumps. It                   
is especially useful if you want to keep a particular message.                      
Error analysis     
Program "ZKAN" tried to use screen 0100.                                            
The screen does not exist.                                                                               
How to correct the error     
If the error is in one of your own ABAP programs or an SAP program that             
you have modified, try to correct it.                                                                               
If the error occurred in a non-modified SAP program, you may be                     
able to find a solution in the SAP note system.                                     
If you have access to the note system yourself, use the following                   
search criteria:                                                                         
"DYNPRO_NOT_FOUND"                                                                      
"ZKAN " or "ZKAN "                                                                 
"START-OF-SELECTION"                                                               
"START-OF-SELECTION"                                                               
If you cannot solve the problem yourself, please send the                           
following documents to SAP:                                                                               
1. A hard copy print describing the problem.                                        
   To obtain this, select the "Print" function on the current screen.               
2. A suitable hardcopy prinout of the system log.                                   
   To obtain this, call the system log with Transaction SM21                        
   and select the "Print" function to print out the relevant                        
   part.                                                                               
3. If the programs are your own programs or modified SAP programs,                  
   supply the source code.                                                          
   To do this, you can either use the "PRINT" command in the editor or              
   print the programs using the report RSINCL00.                                                                               
4. Details regarding the conditions under which the error occurred                  
   or which actions and input led to the error.                                     
System environment     
SAP Release.............. "46D"                                                                               
Application server....... "ganesh"                                                  
Network address.......... "10.10.0.10"                                              
Operating system......... "Windows NT"                                              
Release.................. "5.1"                                                     
Hardware type............ "Intel 80686 (Mo"                                                                               
Database server.......... "ganesh"                                                  
Database type............ "MSSQL"                                                   
Database name............ "MBS"                                                     
Database owner........... " "                                                                               
Character set............ "English_United State"                                                                               
SAP kernel............... "46D"                                                     
Created on............... "Oct 22 2000 19:55:29"                                    
Created in............... "NT 4.0 1381 Service Pack 5 x86 MS VC++ 12.00"            
Database version......... "SQL_Server_7.00 "                                                                               
Patch level.............. "242"                                                     
Patch text............... " "                                                                               
Supported environment....                                                           
Database................. "MSSQL 6.5.213 or higher, MSSQL 7.0.1 or higher"          
SAP database version..... "46D"                                                     
Operating system......... "Windows NT 4.0, Windows NT 5.0, Windows NT 5.1, ,        
System build information:,                                                , LCHN :           
330950"                                                                               
User, transaction...     
Client.............. 000                                                            
User................ "BCUSER"                                                       
Language key........ "E"                                                            
Transaction......... "SE38 "                                                        
Program............. "ZKAN "                                                        
Screen.............. " "                                                            
Screen line......... 0                                                                               
Information on where termination occurred     
The termination occurred in the ABAP/4 program "ZKAN " in                           
"START-OF-SELECTION".                                                               
The main program was "ZKAN ".                                                                               
The termination occurred in line 10                                                 
of the source code of program "ZKAN " (when calling the editor 100).          
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks in advance,
With kind regards,
Shreeem.
Edited by: Shreeem on Jul 18, 2010 5:22 AM

Hi Shreem
as you said that you are new to ABAP.
in your code you have written.
The Hello Program is given below: REPORT ZKAN. * Selection Screen PARAMETERS input(12) TYPE c DEFAULT 'Hello World!'. * Dynpro CALL SCREEN 100. * List SKIP TO LINE 10. POSITION 40. WRITE input.
PARAMETERS statement creates a screen with input field to enter some values by user.
you are setting the default values for your parameter as 'Hello World'.
after that you have called a screen 100.
and you are getting the error becasue before calling the screen you need to create a screen through SE51 and assign a number to your screen.
and while calling mention that screen number in your program.
suppose you have created a screen with number 200, then
write.   call screen 200.
here in your code
the program is not able tofind the screen hence it is giving you that error.
before posting your question please read SCN rules and go through the topic deeply.
learning about the screens is not so easy. So start with simple programs
Thanks
Lalit Gupta

Similar Messages

  • ABAP code error.

    Dear Experts,
    In the below abap code i am facing the problem of goods returns and other issues.
    becoz of that my code add the qty & value of that invoices.
    please give me suggestion.
    Please go through the bold area.
    SELECT-OPTIONS : s_spart FOR vbrk-spart,
                     s_kunag FOR vbrk-kunag,
                    s_fkdat FOR vbrk-fkdat OBLIGATORY.
    *--end of selection--
    SELECT vbrk~spart
           vbrk~vbeln
           vbrk~kunag
           vbrk~kurrf
           vbrk~netwr
           vbrk~fkdat
           vbrp~mwsbp
           vbrp~fkimg
           vbak~auart
      INTO CORRESPONDING FIELDS OF TABLE i_vbrk
      FROM vbrk
      INNER JOIN vbrp
      ON vbrpvbeln = vbrkvbeln
      INNER JOIN vbak
      on vbakvbeln = vbrpaubel
      WHERE vbrk~spart IN s_spart
      AND   vbrk~kunag IN s_kunag
      AND   vbrk~fkdat IN s_fkdat
      AND VBRK~VBTYP IN ('M','O','P')
      AND   vbrk~vkorg  = 'JS01'
      AND   vbrk~fksto  NE 'X'
      AND   vbrk~rfbsk  = 'C'.
    SELECT  knkk~kunnr
            knkk~klimk
            kna1~name1
      INTO CORRESPONDING FIELDS OF TABLE i_knkk
      FROM knkk
      INNER JOIN kna1
      ON knkkkunnr = kna1kunnr
      WHERE kna1~kunnr IN s_kunag.
    LOOP AT i_vbrk.
      IF i_vbrk-auart = 'ZJCR' OR i_vbrk-auart = 'ZJDR' OR i_vbrk-auart = 'ZJC1'.
        CLEAR i_vbrk-fkimg.
        clear i_vbrk-vlinr.
        ENDIF.
      IF i_vbrk-mwsbp <> 0.
        i_vbrk-netwr = i_vbrk-netwr + i_vbrk-mwsbp.
      ENDIF.
      IF i_vbrk-kurrf <> 1.
        *i_vbrk-vlinr = i_vbrk-netwr * i_vbrk-kurrf.*
      ELSE.
        i_vbrk-vlinr = i_vbrk-netwr.
      ENDIF.
    IF i_vbrk-auart = 'ZJRE'
       OR i_vbrk-auart = 'ZJCR'
       OR i_vbrk-auart = 'ZJC1'
       OR i_vbrk-auart = 'ADTC'
       OR i_vbrk-auart = 'ZJR1'
       OR i_vbrk-auart = 'ZJKR'
       OR i_vbrk-auart = 'ZJBR'.
         it_main-netwr = it_main-netwr * -1.*
          *i_vbrk-vlinr = i_vbrk-vlinr * -1.*
          *i_vbrk-fkimg = i_vbrk-fkimg * -1.*
          ENDIF.
      CLEAR :i_vbrk-mwsbp, i_vbrk-netwr, i_vbrk-kurrf." i_vbrk-fkimg.
      MODIFY i_vbrk. "INDEX V_INDEX.
    ENDLOOP.
    LOOP AT i_vbrk.
    MOVE I_VBRK-KUNAG TO I_FINAL-KUNNR.
    MOVE I_VBRK-FKDAT TO I_FINAL-FKDAT.
    MOVE I_VBRK-FKIMG TO I_FINAL-FKIMG.
        clear i_vbrk-auart.
      IF i_vbrk-fkdat+4(02) = '01'.
       i_KNKK-month = 'JAN'.
        i_vbrk-janq = i_vbrk-fkimg.
        i_vbrk-jana = i_vbrk-vlinr / 100000.
      ENDIF.
      IF i_vbrk-fkdat+4(02) = '02'.
       i_KNKK-month = 'FEB'.
        i_vbrk-febq = i_vbrk-fkimg.
        i_vbrk-feba = i_vbrk-vlinr / 100000.
      ENDIF.
      IF i_vbrk-fkdat+4(02) = '03'.
       i_KNKK-month = 'MAR'.
        i_vbrk-marq = i_vbrk-fkimg.
        i_vbrk-mara = i_vbrk-vlinr / 100000.
      ENDIF.
      IF i_vbrk-fkdat+4(02) = '04'.
       i_KNKK-month = 'APR'.
        i_vbrk-aprq = i_vbrk-fkimg.
        i_vbrk-apra = i_vbrk-vlinr / 100000.
      ENDIF.
      IF i_vbrk-fkdat+4(02) = '05'.
       i_KNKK-month = 'MAY'.
        i_vbrk-mayq = i_vbrk-fkimg.
        i_vbrk-maya = i_vbrk-vlinr / 100000.
      ENDIF.
      IF i_vbrk-fkdat+4(02) = '06'.
       i_KNKK-month = 'JUN'.
        i_vbrk-junq = i_vbrk-fkimg.
        i_vbrk-juna = i_vbrk-vlinr / 100000.
      ENDIF.
      IF i_vbrk-fkdat+4(02) = '07'.
       i_KNKK-month = 'JUL'.
        i_vbrk-julq = i_vbrk-fkimg.
        i_vbrk-jula = i_vbrk-vlinr / 100000.
      ENDIF.
      IF i_vbrk-fkdat+4(02) = '08'.
       i_KNKK-month = 'AUG'.
        i_vbrk-augq = i_vbrk-fkimg.
        i_vbrk-auga = i_vbrk-vlinr / 100000.
      ENDIF.
      IF i_vbrk-fkdat+4(02) = '09'.
       i_KNKK-month = 'SEP'.
        i_vbrk-sepq = i_vbrk-fkimg.
        i_vbrk-sepa = i_vbrk-vlinr / 100000.
      ENDIF.
      IF i_vbrk-fkdat+4(02) = '10'.
       i_KNKK-month = 'OCT'.
        i_vbrk-octq = i_vbrk-fkimg.
        i_vbrk-octa = i_vbrk-vlinr / 100000.
      ENDIF.
      IF i_vbrk-fkdat+4(02) = '11'.
       i_KNKK-month = 'NOV'.
        i_vbrk-novq = i_vbrk-fkimg.
        i_vbrk-nova = i_vbrk-vlinr / 100000.
      ENDIF.
      IF i_vbrk-fkdat+4(02) = '12'.
       i_KNKK-month = 'DEC'.
        i_vbrk-decq = i_vbrk-fkimg.
        i_vbrk-deca = i_vbrk-vlinr / 100000.
      ENDIF.
    MODIFY i_KNKK.
      MODIFY i_vbrk. "INDEX V_INDEX.
    ENDLOOP.
    CLEAR : i_VBRK-FKDAT, i_vbrk-vbeln.
    DATA : ii_vbrk LIKE i_vbrk OCCURS 0 WITH HEADER LINE.
    LOOP AT i_VBRK.
      CLEAR : i_VBRK-FKDAT, i_vbrk-vbeln,i_vbrk-auart.
      COLLECT i_vbrk INTO ii_vbrk.
    MODIFY i_VBRK.
    ENDLOOP.
    *LOOP AT i_knkk.
    IF i_final-kunag =  knkk-kunnr.
       APPEND i_final.
    ENDIF.
    *ENDLOOP.
    DATA : V(3) TYPE C.
    CLEAR v_index.
    LOOP AT ii_vbrk.
    v_index = sy-TABIX.
    READ TABLE i_knkk WITH  KEY kunnr = ii_vbrk-kunag.
    IF SY-SUBRC = 0.
        MOVE i_knkk-klimk TO ii_vbrk-klimk.
        MOVE i_knkk-name1 TO ii_vbrk-name1.
       MOVE I_KNKK-MONTH TO II_VBRK-MONTH.
      MODIFY ii_vbrk INDEX v_index.
    ENDIF.
    ENDLOOP.
    LOOP AT ii_vbrk.
      ii_vbrk-klimk = ii_vbrk-klimk / 100000.
      II_VBRK-VLINR = II_VBRK-jana + II_VBRK-feba + II_VBRK-mara + II_VBRK-apra + II_VBRK-maya + II_VBRK-juna + II_VBRK-jula + II_VBRK-auga + II_VBRK-sepa + II_VBRK-octa + II_VBRK-nova + II_VBRK-deca.
      PEAK_QTY = II_VBRK-JANQ.
      PEAK_AMT = II_VBRK-JANA.
      PEAK_MONTH = 'JAN'.
      IF PEAK_AMT LT II_VBRK-FEBA.
         PEAK_QTY = II_VBRK-FEBQ.
         PEAK_AMT = II_VBRK-FEBA.
         PEAK_MONTH = 'FEB'.
         ENDIF.
         IF PEAK_AMT LT II_VBRK-MARA.
         PEAK_QTY = II_VBRK-MARQ.
         PEAK_AMT = II_VBRK-MARA.
         PEAK_MONTH = 'MAR'.
         ENDIF.
         IF PEAK_AMT LT II_VBRK-APRA.
         PEAK_QTY = II_VBRK-APRQ.
         PEAK_AMT = II_VBRK-APRA.
         PEAK_MONTH = 'APR'.
         ENDIF.
         IF PEAK_AMT LT II_VBRK-MAYA.
         PEAK_QTY = II_VBRK-MAYQ.
         PEAK_AMT = II_VBRK-MAYA.
         PEAK_MONTH = 'MAY'.
         ENDIF.
         IF PEAK_AMT LT II_VBRK-JUNA.
         PEAK_QTY = II_VBRK-JUNQ.
         PEAK_AMT = II_VBRK-JUNA.
         PEAK_MONTH = 'JUN'.
         ENDIF.
         IF PEAK_AMT LT II_VBRK-JULA.
         PEAK_QTY = II_VBRK-JULQ.
         PEAK_AMT = II_VBRK-JULA.
         PEAK_MONTH = 'JUL'.
         ENDIF.
         IF PEAK_AMT LT II_VBRK-AUGA.
         PEAK_QTY = II_VBRK-AUGQ.
         PEAK_AMT = II_VBRK-AUGA.
         PEAK_MONTH = 'AUG'.
         ENDIF.
         IF PEAK_AMT LT II_VBRK-SEPA.
         PEAK_QTY = II_VBRK-SEPQ.
         PEAK_AMT = II_VBRK-SEPA.
         PEAK_MONTH = 'SEP'.
         ENDIF.
         IF PEAK_AMT LT II_VBRK-OCTA.
         PEAK_QTY = II_VBRK-OCTQ.
         PEAK_AMT = II_VBRK-OCTA.
         PEAK_MONTH = 'OCT'.
         ENDIF.
         IF PEAK_AMT LT II_VBRK-NOVA.
         PEAK_QTY = II_VBRK-NOVQ.
         PEAK_AMT = II_VBRK-NOVA.
         PEAK_MONTH = 'NOV'.
         ENDIF.
         IF PEAK_AMT LT II_VBRK-DECA.
         PEAK_QTY = II_VBRK-DECQ.
         PEAK_AMT = II_VBRK-DECA.
         PEAK_MONTH = 'DEC'.
         ENDIF.
        II_VBRK-VLINR = II_VBRK-jana + II_VBRK-feba + II_VBRK-mara + II_VBRK-apra + II_VBRK-maya + II_VBRK-juna + II_VBRK-jula + II_VBRK-auga + II_VBRK-sepa + II_VBRK-octa + II_VBRK-nova + II_VBRK-deca.
         II_VBRK-FKIMG = PEAK_QTY.
         II_VBRK-peaka = PEAK_AMT.
         II_VBRK-MONTH = PEAK_MONTH.
         MODIFY II_VBRK.
      ENDLOOP.
    SORT ii_vbrk BY SPART.
    Thanks
    DSRAJPUT

    Hi,
    could you please try to format your coding nicely (see Markup Possibilities). There is also a possibility to attach files.
    BR,
    Tomislav

  • ABAP Code Error on Query

    Hi
    I am trying to get the material document number added to an existing report and I have used the followingcode:
    * Get the material document number
    Clear Z_MAT_DOC_NO.
    Select  VBELN FROM VBFA
    WHERE VBELV = LIKP-VBELN
    AND  VBTYP_N = 'R'.
    However I get the error "Field list without INTO clause is not allowed. not allowed. allowed."
    Can you tell me what I need to change on my code
    thanks
    Joe

    Joe,
    add SINGLE and INTO
    CLEAR Z_MAT_DOC_NO.
    SELECT SINGLE
           VBELN
      FROM VBFA
      INTO Z_MAT_DOC_NO
    WHERE VBELV = LIKP-VBELN
       AND VBTYP_N = 'R'.

  • Error in ABAP code generation?

    Hi,
    I am using OWB 10.1 to generate ABAP code for SAP-Data-Extraction. For extracting date values there are two APAB lines which (want to) produce one line in the result SQLLDR-Script. ABAP will accept only around 73 characters per line and this is the reason for the two lines.
    But ABAP does not accept a line break inside a string and thus this code runs into an ABAP-error.
    This all seems to be standard - has anyone a solution?
    generated ABAP-lines:
    Line1: TRANSFER ',ERDAT_DATUM_AN_DEM_DER_SATZ_HI DATE ''yyyymmdd'' NULLIF
    Line2: ERDAT_DATUM_AN_DEM_DER_SATZ_HI=''00000000''' TO DATAFILENAME.
    many thanks

    Hello Jean-Pierre,
    many thanks for your answer. Not the expected solution but it works. Another solution we found is to put an ampersand behind the first line, which tells ABAP that this is a line break. But also here manually work is necessary and also changing generated code.
    Cheers
    Stefan

  • LKM SAP BW to Oracle (SQLLDR) generates sintax error in ABAP code.

    Hi Experts,
    We are installing a SAP BW KM's in ODI 11g.
    Actually, we are able to make reverse ingeneering succesfully.
    Now we want to use the LKM in order to extract SAP data.
    The KM fails, in step Generate ABAP Code. The code is uploaded to SAP system but with sintaxis errors.
    That's the beginning of the SAPAbapExecuteOpenTool_8001_7001.log.
    +##################################################+
    +############ Open Tool Logger ####################+
    +##################################################+
    +############ Upload value: 1+
    +############ Execute value: 1+
    +############ BASE RKM FLAG: 0+
    +############ ZRFC_RUN_INSTALL: 1+
    +############ Abap Function Name: ZODI_8001_7001+
    +############ Sap Host Name: XXXXXXXX+
    +############ Sap User Name: XXXX+
    +############ Sap password: ********+
    +############ Sap Client: 100+
    +############ Sap language: ES+
    +############ Sap system no: 00+
    +############ Sap Connection Pool Name: SAP_ODI_LKM_POOL_GLOBAL+
    +############ Sap Connection Pool Size: 10+
    +############ Sap Function group name: ZODIBW_LKM_FGRP+
    +############ File Delimiter:+
    +############ File Name: ZODI_8001_7001.txt+
    +############ FTP Host: XXXXXXXXX+
    +############ FTP User: ftpbi+
    +############ FTP Password: ********+
    +############ FTP Passive Mode: 1+
    +############ FTP Transfer Time out: 100000+
    +############ User abap parameter names: IV_DELIMITER,CHAR1;IV_FILENAME,CHAR255;IV_USER,CHAR35;IV_PWD,CHAR35;IV_HOST,CHAR35;IV_HASHVALUE,CHAR35;IV_PATH,CHAR35;IV_REQUID_L,RSSID;IV_REQUID_H,RSSID+
    +############ Abap rfc table parameters: RETURN,BAPIRETURN;ET_FILE_RETURN,BAPIRET2+
    +############ Log File Name: /tmp/SAPAbapExecuteOpenTool_8001_7001.log+
    +############ OpenHub Path: /tmp/+
    +############ Delta Extraction First Request ID : 0+
    +############ Delta Extraction Last Request ID : 0+
    +############ SAP Development Class : ZODIBW_PCKG+
    +############ Max Row Count :+
    +############ Fetch Batch Size :+
    +############ Hash Value Marker: HVM+
    +############ Generated Program:+
    *** ODS DSO extraction
    TYPES: BEGIN OF ty_final,
    +/BIC/AZOFI_UTE00_/BIC/ZFI_SOCOR+
    TYPE
    +/BIC/AZOFI_UTE00-/BIC/ZFI_SOCOR,+
    +/BIC/AZOFI_UTE00_SOURSYSTEM+
    TYPE
    +/BIC/AZOFI_UTE00-SOURSYSTEM,+
    END OF ty_final.
    In the SAP GUI shows a sintaxis error.
    Functions Module ZODI_8001_7001. line 25
    The name "/BIC/AZOFI_UTE00_/BIC/ZFI_SOCOR" is longer that allowed.
    +30 characters.+
    Really the TYPE "/BIC/AZOFI_UTE00_/BIC/ZFI_SOCOR" has 31 characters.
    The sufix "/BIC/" is the "NAMESPACE", a SAP grouping concept.
    AZOFI_UTE00 is a table name.
    ZFI_SOCOR is a column name.
    Are this sufix correct in the APAP code?
    Has anyone had that problem?
    Any comment will be wellcome.
    Thank's in advance.

    Hi Somchai,
    r U able to resolve ur issue ..........i'm also struck there at the same point.
    I am using shared folder for file transfer and my error message is
    java.lang.RuntimeException: Error occured in open tool execute method...Error in executing ABAP program...Error in executing ABAP program...Error occurred when creating dataset\\<hostname>\bi-interface$\ZODI_11001_12001_GLOBAL.txt
    Thanks.
    Edited by: Drona on Mar 26, 2012 7:25 AM

  • ABAP runtime error while executing T.code : PC00_M40_CALC

    Hi,
    I have applied SAP note 1568264 - Budget Changes 2011 as released by
    SAP and i also applied the pre-requiste SAP notes mentioned in the
    above SAP note
    1) SAP Note 1558475- Amendments to IT calculation notified under
    circular:08/2010.
    2) SAP Note 1572614- Tax calculations inconsistent for emp. without a
    vaild PAN.
    3) SAP Note 1575366- HINCALC0:Tax calculation inconsistent in case of
    invalid PAN.
    After applying the SAP notes, when i am trying to execute the T.Code :
    PC00_M40_CALC, i am getting an "Abap runtime error"
    "  Error in the ABAP Application Program
    The current ABAP program "????????????????????????????????????????" had to be
      terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "HINCALC0 " in include "PCTAXIN0
      " in
    line 905:
    ""ENDUZ-" expected, not "EDU_""
    The include has been created and last changed by:
    Created by: "SAP "
    Last changed by: "S2K_BASIS "
    Error in the ABAP Application Program
    The current ABAP program "????????????????????????????????????????" had to be
      terminated because it has
    come across a statement that unfortunately cannot be executed.   "
    Kindly suggest me what has to be done on priority basis.
    Regards
    Vish

    The dump error is generally encountered if your system is at a lower Support Pack level. For implementing Note 1568264 (Budget Changes 2011), you need to be at the below mentioned pre-requisite level corresponding to your Release:
    Prerequisites:
       Release     Support Package
         604         HRSP29
         600         HRSP63
         500         HRSP80
         470         HRSPB4
         46C         HRSPG9
    The correct sequence to implement the Notes is:
    SAP Note 1558475- Amendments to IT calculation notified under
    circular:08/2010.
    SAP Note 1572614- Tax calculations inconsistent for emp. without a
    vaild PAN.
    SAP Note 1575366- HINCALC0:Tax calculation inconsistent in case of
    invalid PAN.
    SAP Note 1568264- Budget Changes 2011
    This should solve the issue unless there is some problem while implementing the Notes.
    Regards,
    Nishtha

  • Error in ABAP code whield efining structures

    Hello,
    I am getting following error when I run ABAP code.
    Tables: ZROLE_OWNER, ZROLEMAP, AGR_1251, AGR_USERS.
    DATA: BEGIN OF I_ROLE occurs 0,
          ROLE LIKE ZROLE_OWNER-ROLE,
          END OF I_ROLE.
    DATA: BEGIN OF I_RATT occurs 0,
          ROLENAME LIKE AGR_1251-AGR_NAME,
          OBJECT LIKE AGR_1251-OBJECT,
          FIELD LIKE AGR_1251-FIELD,
          LOW LIKE AGR_1251-LOW,
          HIGH LIKE AGR_1251-HIGH,
          END OF I_RATT.
    DATA: WA_RATT LIKE I_RATT occurs 0.
    SELECT ROLE from ZROLE_OWNER into table I_ROLE
                where SFLAG = ''.
    LOOP AT I_ROLE.
    *This will append all the values for above condition in WA-RATT.
    SELECT AGR_NAME OBJECT FIELD LOW HIGH FROM AGR_1251
                 INTO TABLE WA_RATT
                 WHERE AGR_NAME = I_ROLE-ROLE.
    APPEND WA_RATT TO I_RATT.
    ENDLOOP.
    I am getting error that WA_RATT cannot be converted to line type I_RATT.

    hi,
    Tables: ZROLE_OWNER, ZROLEMAP, AGR_1251, AGR_USERS.
    DATA: BEGIN OF I_ROLE occurs 0,
    ROLE LIKE ZROLE_OWNER-ROLE,
    END OF I_ROLE.
    DATA: BEGIN OF I_RATT occurs 0,
    ROLENAME LIKE AGR_1251-AGR_NAME,
    OBJECT LIKE AGR_1251-OBJECT,
    FIELD LIKE AGR_1251-FIELD,
    LOW LIKE AGR_1251-LOW,
    HIGH LIKE AGR_1251-HIGH,
    END OF I_RATT.
    DATA: WA_RATT LIKE line of I_RATT .
    SELECT ROLE from ZROLE_OWNER into table I_ROLE
    where SFLAG = ''.
    LOOP AT I_ROLE.
    *This will append all the values for above condition in WA-RATT.
    SELECT AGR_NAME OBJECT FIELD LOW HIGH FROM AGR_1251
    INTO WA_RATT
       up to 1 rows
    WHERE AGR_NAME = I_ROLE-ROLE.
    endselect.
    APPEND WA_RATT TO I_RATT.
    ENDLOOP.
    Thanks,
    Rajinikanth.

  • Routine (ABAP Code)  in Transformation error

    Hi Experts
    Please correct the ABAP CODE written as Field routine in Transformations
    Requirment
    If  ZB_AMT = '0.00'
    then result should be '0.00'
    If  ZB_AMT <> '0.00' and
    SOURCE_FIELDS-/BIC/ZB_TPE1 = 'AMOUNT'
    the result should be
    CONCATENATE '$' SOURCE_FIELDS-/BIC/ZB_AMT INTO RESULT.
    If  ZB_AMT <> '0.00' and
    SOURCE_FIELDS-/BIC/ZB_TPE1 = 'PERCENTAGE'
    the result should be
    CONCATENATE  SOURCE_FIELDS-/BIC/ZB_AMT  '%' INTO RESULT.
    The code below is not working as it should please update me where i went wrong
    Source Fields
    SOURCE_FIELDS-/BIC/ZB_AMT (CHAR)
    SOURCE_FIELDS-/BIC/ZB_TPE1 (CHAR)
    CODE
    IF SOURCE_FIELDS-/BIC/ZB_AMT = '0.00'.
          RESULT = '0.00'.
        ELSE.
          IF SOURCE_FIELDS-/BIC/ZB_TPE1 = 'AMOUNT' AND
             SOURCE_FIELDS-/BIC/ZB_AMT <> '0.00'.
            CONCATENATE '$' SOURCE_FIELDS-/BIC/ZBON_AMT INTO RESULT.
            IF SOURCE_FIELDS-/BIC/ZB_TPE1 = 'PERCENTAGE' AND
               SOURCE_FIELDS-/BIC/ZB_AMT <> '0.00'.
              CONCATENATE SOURCE_FIELDS-/BIC/ZB_AMT '%' INTO RESULT.
            ENDIF.
          ENDIF.
        ENDIF.

    Your logic will not work, if your first check on amount is 0.00 fails, the other checks fail as well. I am not sure of the requirement but..try this..
    IF SOURCE_FIELDS-/BIC/ZB_TPE1 = 'AMOUNT' AND SOURCE_FIELDS-/BIC/ZB_AMT = '0.00'.
    CONCATENATE '$' SOURCE_FIELDS-/BIC/ZBON_AMT INTO RESULT.
    ELSEIF SOURCE_FIELDS-/BIC/ZB_TPE1 = 'PERCENTAGE' AND SOURCE_FIELDS-/BIC/ZB_AMT = '0.00'.
    CONCATENATE SOURCE_FIELDS-/BIC/ZB_AMT '%' INTO RESULT.
    ELSEIF SOURCE_FIELDS-/BIC/ZB_AMT = '0.00'.
      RESULT = '0.00'.
    ELSE.
    Do nothing or throw any message
    ENDIF.

  • Error in determining Paper Format for Printout triggering from ABAP Code

    Hi Experts,
    I am trying to trigger a printout from my ABAP code using "NEW-PAGE PRINT ON ...... NEW-PAGE PRINT OFF" statement.
    I am passing the Print Parameters using the FM "GET_PRINT_PARAMETERS" as below:
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
          EXPORTING
            destination    = ls_options-tddest
            copies         = 1
            list_name      = 'Notification'
            list_text      = 'ERROR NOTIFICATION'
            immediately    = 'X'
            release        = 'X'
            new_list_id    = ' '
    *        expiration     =
            line_size      = 79
            line_count     = 23
            layout         = 'X_65_80'
            sap_cover_page = ' '
            receiver       = 'SAP*'
            department     = 'System'
            no_dialog      = 'X'
          IMPORTING
            out_parameters = lv_params.
    But I am facing a problem. Though I am passing X_65_80 to the LAYOUT in the Function Module, it is trying to print in LETTER format. But the specified printer as the printer supports only A4 paper format and as a result, I am not getting any printout.
    Kindly help me with your suggestions to resolve this.
    Thanks in advance.
    Regards,
    Keerthi

    Hi,
    I just found that this problem is even stranger.
    I am able to print the said message on my local printer but when I try to print the same message on a different printer located at a different location, the printout does not get triggered. I am not getting any error messages also in this case.
    What could be the possible reason for this?
    Kindly share your views/experience with me on this one.
    Thank you.
    Regards,
    Keerthi

  • Error in the ABAP code

    Hello all,
    I am getting error in ABAP code .
    The error is:Field "0" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
    I have statement as calmonth = sy-datum + 0(6).
    Any ideas are always welcome
    Thanks,
    JB

    Thanks every body.
    eliminating blanks worked.
    AS I am new to ABAP,I have one more error saying
    Unable to interpret "IT_YEAR". Possible causes of error: Incorrect spelling or comma error.The error occured at the staement:
    <b>read it_year with key /BIC/LESS = calmonth+0(4) binary search.</b>
    IT_YEAR is an internal table
    data: it_year like /BIC/PZ_JB occurs 0 with header line.
    Any ideas!!
    JB

  • ABAP Runtime ERROR Error Code & Syntax Error in program SAPLSFES

    Hi,
    I am installing SAP XI 3.0 and as part of that I have installed the ABAP and Java WAS. I am applying SPs for the ABAP stack and I successfully applied the BASIS SPs 10 and 11(applied seperately). I was applying the SPs 12 and 13(together) and after running for some time the system crashed and I restarted the O/S and SAP to see that the SPs didn't go thru. Now when I try to log on using SAP GUI, it says "<b>ABAP Runtime ERROR Error Code</b>" which is blank and at the Bottom there is this message "<b>Syntax Error in program SAPLSFES</b>".
    Pls any one help me ,
    Kind Regards,
    Gopi.

    Hi Gopi,
       If u r applying patches, the system would be running a background job SAPLSTPA. Hence you willnot be able to login till the job is complete.
      You can check the job completion in the Windows MMC console.
    Rgds
    Ganesh

  • ABAP Runtime Error     Error Code.......

    Hi ,
    I sheduled the<b> ABAP & BASIS patch in background</b>, but after some time I tried to login in system through gui..its showing..<b>ABAP Runtime Error        Error Code</b>..its not allowing me to login in sap system in gui mode...
    pls any one help me resolve this problem.
    Kind Regards,
    Gopinath

    Answere is right here friends
    Hi All,
    I was applying support package SAPKB0014 in ECC6 on AS/400 operating system , I too had faced similar problem "syntax error in program SAPLSAPS on clicking that the error on status bar it recomplie again and then same error" unable to login through SAP logon.
    I checked from operating system level I found that the Job is still running in background so I waited more than 10400 sec than automatically I was able to login I reconfirmed it in SM37.
    so dont panic just wait till Job is completed.
    Caution!! Meanwhile do not do anything that might effect the running job do not cancel or shutdown or restart process. It will work !!
    Hope you read this before doing anything
    Thanks
    Surojeet Dey

  • When I download the digital copy of the Hunger Games, it stops at 4.0GB and first returns an error code -1309 and then the code -50. Please help me complete the download.

    When I download the digital copy of the Hunger Games, it stops at 4.0GB and first returns an error code -1309 and then the code -50. Please help me complete the download. I have tried removing the .tmp folder and downloading it again, but each time it stops the download in the same place.

    I discovered the solution. The external drive I was saving it to was formatted as FAT32. In that format, the largest files can only be 4GB, which explains why it kept stopping at 4GB. I backed up all the files then reformatted it as Mac OS Extended (Journaled), this is possible since I am on an iMac.

  • How find the ABAP code with Error message

    Hi
    How to  find the ABAP Code for Error Message?
    Example:
    Error Message: ZF026.
    Regards
    Odaiah Pelley
    Edited by: Odaiah Pelley on Aug 22, 2008 4:21 AM

    Hi
    Excellent Answer, I appreciate it.
    My question is with Error Message ZF026.
    How to find ABAP Code ?
    If I go for SE91 I will get same message as if I am getting error message.It is no use.
    Regards
    Odaiah Pelleyu

  • Error in the ABAP Code for Customer Exit Variable

    Could you please update me what is the wrong with the below ABAP Code developed for Customer Exit Variable in BW
    i created a Variable (ZVWKNO) of Customer Exit,Single Value ,Mandatory and Variable is ready for input
    In CMOD i had written the below Code:
    When 'ZVWKNO'.
    DATA: WEEK(2) TYPE N,
    WEEKNO(2) TYPE N.
    IF i_step = 1.
    l_st_date = SY-DATUM.
    CALL FUNCTION 'DATE_GET_WEEK'
    EXPORTING
    DATE = l_st_date
    IMPORTING
    WEEK = l_fn_week.
    CHECK sy-subrc = 0.
    WEEK = l_fn_week+4(2).
    If WEEK 0.
    WEEKNO = WEEK - 1.
    l_s_range-low = WEEKNO.
    l_s_range-sign = k_sign_inclusive.
    l_s_range-opt = k_option_equals.
    APPEND l_s_range to e_t_range.
    ENDIF.
    ENDIF.
    But when i execute the query the default value is not populated with Week-1 No in the variable screen
    Please update me what went wrong
    Thanks

    Case ZVWKNO.                "write this with out comments
    When '1'.              "write the value that needs to equal with value in varaible ZVWKNO after when in sungle quotes
    DATA: WEEK(2) TYPE N,
    WEEKNO(2) TYPE N.
    IF i_step = 1.
    l_st_date = SY-DATUM.
    CALL FUNCTION 'DATE_GET_WEEK'
    EXPORTING
    DATE = l_st_date
    IMPORTING
    WEEK = l_fn_week.
    CHECK sy-subrc = 0.
    WEEK = l_fn_week+4(2).
    If WEEK 0.                                    "check this Week Minimum is '01' and Maximum '52'
    WEEKNO = WEEK - 1.
    l_s_range-low = WEEKNO.
    l_s_range-sign = k_sign_inclusive.
    l_s_range-opt = k_option_equals.
    APPEND l_s_range to e_t_range.
    ENDIF.
    ENDIF.
    Prabhudas

Maybe you are looking for

  • SQL Report query ORA-06502: PL/SQL: numeric or value error: character strin

    Hello, I have saved below query in the sql scripts, which executes good under SQL Developer, select     "RVV"."RLNUM" as "RLNUM",      "GVREB"."RLNUM" as "RLNUM",      "TVV"."RLNUM" as "RLNUM_1",      "Regulation"."CODE" as "CODE",      "Regulation".

  • Question about Creating Forms in Acrobat 9 Pro

    I designed an invoice form to send to my clients that allows me to easily fill out form data and automatically email to my client. Everything works great, but when I send it, the form is still active and I want the fields to be closed for alteration.

  • Video plays on iPhone 3G, but not iPhone 2G or iPod Touch 1st Gen

    Hi all, We're creating videos to be played on iPhones and iPod touch's. The videos are working fine on my iPhone 3Gs but won't play on my iPod touch 1st gen or a 2G iPhone. I've had a look and the supported video list is exactly the same on all iPhon

  • Why can't I use tilde (~) in the site name field?

    Hello everybody! I have my Web page in an external Web server and I use iWeb to edit this page (the editing is made locally on my laptop and exported afterwards). In addition, my Web server demands that my root page is "/~tfioreze". In iWeb, my site

  • .AVI conversion to Apple TV issue

    Hi folks. There are different replies on the message board - somewhat confusing to go thru them all and not all of them seem to be exactly like mine. I have a bunch of .avi movies I'd like to convert and put in iTunes for my Apple TV. Most of the mov