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

Similar Messages

  • Adding the ABAP code to SAP Query to support Query's ALV Double click.

    Hi, Expert.
    I need to add some ABAP Code into SAP Query (or Infoset) to support the double click event on ALV cell of result of query.
    Is it possible & How to do ?
    Thank you very much.
    Best Regard
    Nattapash C.

    Hi, Gautham.
    I've put BREAK-POINT in all code section e.g. INITIALIZATION, END-OF-SELECTION..
    I found there are some section for add code that will be executed when query is processing before output data to ALV.
    What I need to know is Where I can input the code after ALV output. For support the Double Click Event on Query's ALV cell.
    Best Regard,
    Nattapash C.

  • SQ01 - Join of different tables or ABAP Code in SAP Query

    Hello,
    I am trying to link some TO tables LTAK and LTAP together with the header table of the production orders AFKO.
    It seems that the SQ01 won't let me joint the LT* and the AFKO table.
    But I need to read some values from the AFKO table according to the transfer orders apart from the production order number.
    Is there a way in QUERY to join this or can I add somewhere in the query a little ABAP code?
    My aim is to avoid writing a ABAP report due to various reason.
    Any help would be nice.
    Cheers
    Uwe Neumann

    Hello,
    thanx for your answers so far.
    I was able to join in the third table.
    After a little investigation, I found out that I have to join the table AFPO with the materialnumber instead of AFKO, because the components are in AFPO.
    But this is just the one side of the material.
    Let's assume the transfer order contains of material A and B and we have production order 111.
    If I would let run the query, it would select all material A and B in table AFKO, because I have not said, just look for material A and B for production order 111. As I cannot join the field AFPO-AUFNR with LTAK-BENUM this is missing.
    Where can I specify this?
    Best regards
    Uwe Neumann

  • 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

  • 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

  • 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

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

  • 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

  • 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

  • When executing a query showing as ABAP runtime error RAISE_EXCEPTION

    Hi all,
    When i executed a query, it is showing as ABAP runtime error RAISE_EXCEPTION in the short dump.
    This is the Analysis in Short dump (ST22)...............
    Exception condition "DATE_BEFORE_RANGE" raised.   
    What happened?                                                                               
    The current ABAP/4 program encountered an unexpected  
    situation. 
    Error analysis                                                                               
    A RAISE statement in the program "SAPLSCAL" raised the exception
    condition "DATE_BEFORE_RANGE".                                  
    Since the exception was not intercepted by a superior program   
    in the hierarchy, processing was terminated.                                                                               
    Short description of exception condition:                                                                               
    Date is earlier than factory calendar definition                                                                               
    For detailed documentation of the exception condition, use      
    Transaction SE37 (Function Library). You can take the called    
    function module from the display of active calls.               
    How to correct the error                                                                               
    You may able to find an interim solution to the problem                       
    in the SAP note system. If you have access to the note system yourself,       
    use the following search criteria:                                                                               
    "RAISE_EXCEPTION" C                                                           
    "SAPLSCAL" or "LSCALU06"                                                      
    "DATE_CONVERT_TO_FACTORYDATE"                                                                               
    or                                                                               
    "SAPLSCAL" "DATE_BEFORE_RANGE"                                                                               
    or                                                                               
    "WRITEQUERY " "DATE_BEFORE_RANGE"                                                                               
    Could you pls any one tell me what could be the problem and how to reslove this issue.
    Thanks & Regards,
    Ravi Kumar.

    Hi Andre,
    Maintain your factory calendar idents Valid To year field (BJAHR) in Table TFACD
    You can do this via tcode SCAL, or navigate through SPRO.
    Most likely you have your factory calendars set with Valid To dates as 2010. You may also be encountering some load issues depending on exit routines used in transformations in determining workdays/factory days etc.
    Thanks,
    Eric Filmer

  • SQ01 DIsplay Problem (Can v write abap code ) Sql Query

    Hi
    Need help in SQL Query
    I generated one sql query which has the following output in general .
    Customer   name   description   amount
    asrq1  sharekhan      Amount payed      10
    asrq1  sharekhan     Amount Advance     20
    asrq1  sharekhan    Amount due             30
    but i need the output in the following way
    Customer  name  AMount payed     Amount  Advance                  Amount Due
    asrq1   sharekhan  10    20     30
    and iam new this sql query but came to know we can write code ..but iam unable to initiliaze to write
    a peace of code as i dont know what are the select-options defined ..i saw in the include but didnt got it
    % comes prefix of select-options,and iam unable to get he internal table which is displayed in the query .
    can anyone help me in this answers will be awarded points.

    First, I will suggest to go for ABAP report for this kinda requirement.
    If you really want to go for it through SQ01, even then you will have to write some ABAP to display the records in one row. You will need to create three custom fields.
    I will give Psudo for one field:
    Field Name := ZAmountPayed
    Select Amount_Payed into varAmountPayed from Table Where Emp# = '12345'
    ZAmountPayed := varAmountPayed
    Convert the above into relative ABAP code and create 2 more similar fields, and you should be all set.
    You have to know the table names and any other calculations to get the right data.

Maybe you are looking for

  • Not showing the Data in VC application

    Hi I have developed the application in VC. It is showing the data some times , it is not showing the data. Can u please let me know what is the problem. when i checked using the Test Data service . It is showing the data. Then i have developed step b

  • IPod Shows in Source List But I Have no iPod Preference Tab (xPost)

    I've got a new iPod nano (3rd Gen, 4GB) that is showing up in my source list (and I've successfully synced music, photos and contacts to it). However, I have no iPod preference tab. Anyone have any ideas? I couldn't sync my calendar and Apple's FAQ o

  • Configure properties file that java file uses in OSB.

    I have a jar file consisting of java files which maintain the session id in the queue. One main jar depends on 3 more jars for logging. Also java files in the jar depends on the *.properties file to read the queue length dynamically. I need to access

  • The Regular Expression anchors, "^" and "$" do not work for me in Dreamweaver

    I am using the Find and Replace feature of Dreamweaver 8 and especially the "Use Regular Expressions" setting.  But I have never been able to make the Regular Expression anchors "^" and "$" work at all.  This are supposed to fix a match at the beginn

  • /u01/app/obiee/obiData/scheduler/config/instanceconfig.xml empty

    I have OBIEE 10.1.3.4 installed on Redhat 5.2. I configured Scheduler but find the file /u01/app/obiee/obiData/scheduler/config/instanceconfig.xmlis empty. Start the scheduler getting error     [nQSError: 67042] The Scheduler Configuration is incorre