Syntax error on INCLUDE STRUCTURE.

Hi Experts,
It is abit hard to explain what I need here.
But I try to explain as much as I can.
I am writing this code in order to update the customer material numbers into internal table tvbdpa. As you can see in my code, getting the customer material numbers require mapping the position number.
I am stuck at the LOOP below with ***.
Also getting the syntax error
_The declaration for the key field "KDMAT" is imcomplete.
However "KDMAT" is is contained in the key of table "TVBDPA" and must be filled._
TABLES: vbco3.
DATA: da_mess LIKE vbfs OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF tvbdpa OCCURS 0,        "Internal table for items
        kdmat LIKE LIPS-KDMAT.
        INCLUDE STRUCTURE vbdpa.
DATA: END OF tvbdpa.
DATA: itab_vbak TYPE SORTED TABLE OF vbak
         WITH UNIQUE KEY vbeln,
      wa_vbak  LIKE LINE OF itab_vbak,
      itab_lips TYPE SORTED TABLE OF lips
         WITH UNIQUE KEY vbeln,
      wa_lips   LIKE LINE OF itab_lips,
      wa_tvbdpa LIKE LINE OF tvbdpa,
      lv_zuonr  TYPE vbak-zuonr.
  vbco3-mandt = sy-mandt.
  vbco3-spras = nast-spras.
  vbco3-vbeln = nast-objky.
  vbco3-kunde = nast-parnr.
  vbco3-parvw = nast-parvw.
CALL FUNCTION 'RV_DOCUMENT_PRINT_VIEW'
  EXPORTING
    comwa                       = vbco3
  IMPORTING
    kopf                        = vbdka
  TABLES
    pos                         = tvbdpa
    mess                        = da_mess
  EXCEPTIONS
    fehler_bei_datenbeschaffung = 1.
IF NOT tvbdpa[] IS INITIAL.
  SELECT SINGLE zuonr FROM vbak
    INTO lv_zuonr
    WHERE vbeln = vbdka-vbeln.
    IF sy-subrc = 0 AND lv_zuonr <> ''.
      SELECT vbeln posnr kdmat FROM lips
        INTO CORRESPONDING FIELDS OF TABLE itab_lips
        WHERE vbeln = lv_zuonr.
***I am stuck at here.
      LOOP AT itab_lips INTO wa_lips.
        READ TABLE tvbdpa INTO wa_tvbdpa
          WITH TABLE KEY posnr = wa_lips-posnr.
        wa_tvbdpa-kdmat = wa_lips-kdmat.
        MODIFY TABLE tvbdpa FROM wa_tvbdpa
               TRANSPORTING kdmat.
      ENDLOOP.
***end I am stuck at here.
    ENDIF.
ENDIF.
All advise are welcome and greatly appreciated.
Thanks in advance.

Hi Subramanian,
Does this more make sense for you?
Can I read the table like :-
        READ TABLE itab_lips INTO wa_lips
          WITH TABLE KEY VBELN = wa_tvbdpa-matnr." AND POSNR = wa_tvbdpa-posnr.
TABLES: vbco3.
DATA: da_mess LIKE vbfs OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF tvbdpa OCCURS 0,        "Internal table for items
        kdmat LIKE LIPS-KDMAT.
        INCLUDE STRUCTURE vbdpa.
DATA: END OF tvbdpa.
DATA: itab_vbak TYPE SORTED TABLE OF vbak
         WITH UNIQUE KEY vbeln,
      wa_vbak  LIKE LINE OF itab_vbak,
      itab_lips TYPE SORTED TABLE OF lips
         WITH UNIQUE KEY vbeln,
      wa_lips   LIKE LINE OF itab_lips,
      wa_tvbdpa LIKE LINE OF tvbdpa,
      lv_zuonr  TYPE vbak-zuonr.
  vbco3-mandt = sy-mandt.
  vbco3-spras = nast-spras.
  vbco3-vbeln = nast-objky.
  vbco3-kunde = nast-parnr.
  vbco3-parvw = nast-parvw.
CALL FUNCTION 'RV_DOCUMENT_PRINT_VIEW'
  EXPORTING
    comwa                       = vbco3
  IMPORTING
    kopf                        = vbdka
  TABLES
    pos                         = tvbdpa
    mess                        = da_mess
  EXCEPTIONS
    fehler_bei_datenbeschaffung = 1.
IF NOT tvbdpa[] IS INITIAL.
  SELECT SINGLE zuonr FROM vbak
    INTO lv_zuonr
    WHERE vbeln = vbdka-vbeln.
    IF sy-subrc = 0 AND lv_zuonr <> ''.
      SELECT vbeln posnr kdmat FROM lips
        INTO CORRESPONDING FIELDS OF TABLE itab_lips
        WHERE vbeln = lv_zuonr.
      LOOP AT tvbdpa INTO wa_tvbdpa.
        READ TABLE itab_lips INTO wa_lips
          WITH TABLE KEY VBELN = wa_tvbdpa-matnr." AND POSNR = wa_tvbdpa-posnr.
        wa_tvbdpa-kdmat = wa_lips-kdmat.
        MODIFY TABLE tvbdpa FROM wa_tvbdpa
               TRANSPORTING kdmat.
      ENDLOOP.
    ENDIF.
ENDIF.

Similar Messages

  • Extended syntax check for include structure

    Hello Everyone,
    While declaring the internal table as:
    TYPES: BEGIN OF t_data.
            INCLUDE STRUCTURE mara.
    TYPES: END   OF t_data.
    DATA: it_data TYPE table of t_data.
    When performing extended check, i get following error:
    The current ABAP command is obsolete and problematic, especially so in ABAP
    Objects
    Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary
    types, not "LIKE" or "STRUCTURE".
    I am using 4.7 version.
    Any clue how to avoid this error during extended check.
    Regards,
    Tarun

    Tarun,
    With WAS 6.20 you should not declare internal tables with header line or using the old syntax as they are not compatible with OO ABAP.
    So, you either declare a TYPE the way you have done, in case you want additional fields apart from the INCLUDE structure, or declare the table directly like the way I have shown.
    Good thing, you can even specify the type of internal table that you want to create using this - STANDARD, SORTED, HASH. These tables will help you with the performance issues.
    regards,
    Ravi
    Note : Please mark the helpful answers

  • Syntax Error in Include which is genarated by System

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

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

  • Syntax error on include of Function Module (user exit)  EXIT_SAPLRSAP_002

    When I do a syntax check in the a routine within inlude ZXRSAU02 of FM EXIT_SAPLRSAP_002, I get an error.  This object has been in production so I must be doing the syntax check incorrectly. The error is 'Field i_t_data is unknown. It is neither in one of the specified tatble nor defined by a 'DATA' statement.  This is strange because this field is defined in main body of this user exit.   Please advise the correct way to do syntax check.  
    Thank you.

    Hi,
    The reason for this might be, though it is used in main body- check the main body is not in the routine. Check the field is declared globally, if not try to check the field assigned to what type, & try to re-assign to same one(like your target place where to update the values, continue to Declare& add accordingly.)
    - Dileep .C

  • Upgrade issue in ECC6.0 for include structure

    Hi All,
    I have the following issue while upgrading to ecc6.0.
    data:begin of it_cats,
            include structure cosp,
          end of it_cats.
    I am geeting syntax error as include structure is not allowed in ecc6.0.What is the replacement for this?
    Thanks.
    Ramya.

    Hallo There,
    I read some of the already available posts on this topic but did not find any relevant answers so please excuse of the information already exists out there.
    Here is the question:
    Please consider the code (from above posts):
    data:begin of it_cats.
           include structure cosp.
    data: end of it_cats.
    I read some where that this can  be replaced by  :
    DATA it_cats type cosp.
    Is this correct ?
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/includ02.htm
    Regards
    SG

  • Syntax Error - INCLUDE Report "%_HR9010" Not Found

    I have an HR ABAP program(Query Generated) that works in Enterprise and is now being testing in the ECC 6.0 test environment and is getting an syntax error. The syntax points the line in the code where a custom infotype is declared with the infotypes syntax. Example:
    Infotypes:
    9010
    syntax error reads:
    'include report"%_HR9010" not found.
    Why am I getting that syntax error? The syntax error does not occur on standard sap infotypes, 0000, 0001, 0002. It appears to be failing on custom infotypes.  The Structure definition is there, the table definition is there and there are thousands of records in the table and it can be read by other programs with no problem. What piece is missing, could it be something to do with Infosets, whatever they are?

    Hi Murali,
    Please excute the report RPUMS40CCI. This report is to generate infotype includes and additional structures required for not only custom but also standard infotypes.
    In the selection screen provide the infotype number and select checkboxes 'Generate infotype include'
    and 'Generate additional structure'.
    Note: "RPU40CCI" is only for infotypes which starts with number '9*'.
    Thanks & Regards
    Santhosh
    Edited by: SS on Feb 12, 2009 1:21 PM

  • Syntax error in program RK2CIDEA, include RK2CIDEA, line 5614

    Dear All
    Good Evening!
    I'm trrying to generate the operating concern in ECC5 Ides, but system is displaying following error.
    <i>"<b>Program RK2CIDEA contains a syntax error in include RK2CIDEA. The error occurred in line                                                5614. Thefollowing message describes the error."</b></i>
    I also implement  the solution of  Note 778704 - Syntax error in generated report RK2CXXXX.
    but still system displaying the same error.
    operating conceren " IDEA" is Red ( No Active)
    Please guide me!
    Thanks

    Good Evening!
    Thanks for reply!
    I implement the solution of "778704" , but function module that is given in this solution giving me return code "8" ( export Prameter subrc = 8)
    also I implement the solution of Note 143557 - Line item list: Integration FI/CO document. but still having the same problem.
    <b>Syntax error in program RK2CIDEA  " Field "CE0S001" is unknown"</b>
    Any advise more......
    Thanks

  • Syntax error in ECC 6.0

    Hi all,
    I have moved one of my program from 4.7 to Ecc 6.0 and when I tried to run it gives me this syntax error " " in include "RFKORI90                                                           
        "Field "SAVE_OUTPUTDONE" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement .
    but when I went in to the include RFKOR190, I have defined this as :
    data:   save_outputdone type FPOUTDONE.
    and this data: FPOUTDONE. is there in ECC 6.0 as domain, so can any one of you please tell me what exactly the problem is.
    Thanks,
    Rajeev

    Hi amiya,
    Thanks for the reply, I treid doing what you asked me to do but I am still getting the same error.
    So can you please tell me what is going wrong.
    Thanks,
    Rajeev

  • Syntax error in Logical database created by copying standard PGQ

    Hi guys.
    I created a logical database ZMPQ_PGQ using the copy option from SE36 with the input PGQ (logical database used by QA33).
    But it showing some syntax error Field "PGQ_SP" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
    How to resolve this?
    Thanks in advance.

    When checking the syntax of the LDB source code, go to the location of the syntax error (in include DBZMPQ_PGQSXXX), and change all internal table references of PGQ_SP to ZMPQ_PGQ_SP.

  • Syntax Error occured in Program  in include " CNTN01

    Hi,
    We are working on SAP 4.6C to ECC 6.0 Migration. While testing One Transaction, I am getting following error:
    The current ABAP program "CL_GOS_TOOLBOX_MODEL==========CP" had to be
    terminated because it has come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program
    "Z3I_CL_BASCULER_SCS_GOS=======CP " in include "<CNTN01> " in
    line 13:
    "Within classes and interfaces, you can only use "TYPE" to refer to ABA"
    "P Dictionary types, not "LIKE" or "STRUCTURE"."
    The include has been created and last changed by:
    Created by: "SAP "
    Last changed by: "SAP "
    Error in the ABAP Application Program
    This Error is coming while executing transaction in ECC 6.0 however in R/3 4.6C it is working fine.
    Pls Advice what should be done to resolve this issue. This issue is coing in alot of transactions.
    I will appreciate if anyone of you can guide me regarding same.
    regards
    Sandeep

    Hi,
    I was trying hand on one of my Z class which contain  include <CNTN01>. in its Local Types.
    I commented the existing include statement and added new statement as
    INCLUDE CNTN01_OO.
    After saving now when i try to activate the Z Class, it is giving me following error:
    INCLUDE CNTN01_OO
    You can only define classes and interfaces at the highest level of CLASS-POOL.
    CLASS Z5C_CL_MESSAGE, Internal classes in a class include "CNTN01_OO" does not start with the prefix (Z5C_CL_MESSAGE=======)of the current class pool.
    pls advice what i should do correct this issue.
    Sandeep

  • Syntax error when using jsp:include...

    @ all
    I get a syntax error at the jsp:include line, character "";
    Can anybody help me with that issue?
    Jürgen

    select coalesce(col1,col2) joined_col, col3, sum(col4), col5 from data group by joined_col,col5You cannot use a column alias like this directly inside the group-by clause. You will have to rewrite this to:
    select coalesce(col1,col2) joined_col, col3, sum(col4), col5 from data group by coalesce(col1,col2),col5Furthermore I assume that the 'col5' in the group by should be 'col3', not?
    Or vice-verse the 'col3' inside the select-list should be 'col5'...

  • Error on extended check for types include structure statements

    Hi All ,
                  On Extended check im getting error :
    Program:  ZFIR_VALUATE_OBSOLETE_STOCK  Include:  ZFIR_VALUATE_OBSOLETE_STOCK_F  Row:   1205
    The current ABAP command is obsolete
    Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary
    types, not "LIKE" or "STRUCTURE".
    Internal Message Code: MESSAGE G/B
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
    EXTENDED CHECK OFF/ON)
    The error is in below line :
    TYPES: BEGIN OF t_fttax.
              INCLUDE STRUCTURE fttax.
      TYPES: END OF t_fttax.
    and fttax is a dictionary strucuture . i made internal table and work area using it .
    DATA: i_fttax TYPE STANDARD TABLE OF t_fttax,
            wa_fttax TYPE t_fttax.
    Need Help ,what i should do to remove this error ?
    Regards

    declare as :
    DATA: i_fttax TYPE STANDARD TABLE OF fttax,
               wa_fttax TYPE fttax.
    No need to declare as :
    TYPES: BEGIN OF t_fttax.
              INCLUDE STRUCTURE fttax.
      TYPES: END OF t_fttax.

  • 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

  • Itab declaration include structure error

    hi ,
    types : begin of it_address_info_type,
           include structure zadrc,
    end of it_address_info_type.
    here zadrc is a structure.
    why its giving error.
    shall i need to change this structure to table?
    if yes how i will do that?

    Hi ,
    Please make it as,
    types : begin of type.
    include type zadrc.
    types : end of type. 
    or
    TYPES: iref TYPE REF TO ZADRC.
    or
    TYPES: iref type table of mara.
    or
    TYPES: iref type standard table of mara.
    Else.
    data : begin of it_address_info_type.
    include structure zadrc.
    data : end of it_address_info_type.
    If you use types it is used to create user defined data type.
    But you are refrerring a data object as zadrc. Thats why it shows error.
    Regards,
    Sankar.
    Edited by: sankar on Mar 23, 2008 8:31 AM

  • Include program gives a syntax error

    Hello experts,
    I have a code piece as follows:
    REPORT  z_obj_emp.
    INCLUDE z_class_emp.
    z_class_emp is another z report.
    When I compile the report z_obj_emp, I get an syntax error:
    "Each ABAP program can contain only one "REPORT", "PROGRAM", "FUNCTION-POOL" statement."
    Could you please help me out to rectify this issue?
    Thanks,
    Mohit.

    Hello Sachin,
    Thanks for the reply. I have done as you have mentioned. Now when I execute the report z_obj_emp,
    I get a syntax error at the line:
    create object obj_emp.
    It says: "Statement is not accessible."
    The whole code of z_obj_emp is:
    REPORT  Z_OBJ_EMP.
    INCLUDE Z_CLASS_EMP.
    data: p_name type string,
          p_designation type string,
          obj_emp type ref to c_employee.
    create object obj_emp.
    p_name = 'EMP1'.
    p_designation = 'ACCOUNTANT'.
    call method obj_emp->set_attributes exporting
                         im_name = p_name,
                         im_designation = p_designation.
    call method obj_emp->display_attributes.
    call method c_employee=>display_count.
    The code of include z_class_emp is:
    *&  Include           Z_CLASS_EMP
    class c_employee  definition.
    defining the access specifiers.
      public section.
        constants: position type i value 30.
    parameterized method
        methods: set_attributes importing im_name type string
                                          im_designation type string.
    method
        methods: display_attributes.
    static method.
       class-methods: display_count.
      private section.
        data: name           type string,
                  designation type string.
    static variable.
       class-data: st_count type i.
    endclass.
    class Implementation
    class c_employee  Implementation.
    presenting the logic the methods.
       method set_attributes.
         name               = im_name.
         designation     = im_designation.
         st_count          = st_count + 1.
       endmethod.
       method display_attributes.
         write: / 'Name of Employee: '(001), at position name.
                / u2018Designation:'(002), at position designation.
       endmethod.
      method display_count.
       write: / 'Total Number of Employees ',
                             at position st_count left-justified.
      endmethod.
    endclass.
    Could you please let me know what the problem is now?
    Thanks,
    Mohit.

Maybe you are looking for

  • Printing Tax breaikup

    Hi, I am Printing Purchase order through crystal reports in pre-formatted stationary. When I print single PO, it is printing perfectly but when I give selection criteria for mass printing i.e., printitng continously , tax breakup details are grouped

  • Picking of Adobe forms from application server

    Hi Gurus We have SAP ECC 6.0. So far in our system we have text files and CSV excel files which comes from external system and lies in application sever and these are being picked up automatically by system and gets processed in SAP. 1)The requiremen

  • Help with pdf issues on Safari?

    Am having trouble viewing pdfs via Safari.  When I open them, I only have a black screen.  Any suggestions?

  • Screen always dim when resuming from sleep

    I've got this problem where my MBP, after waking up from sleep does not revert its brightness settings. Instead, the brightness is always one bar after waking up from sleep, instead of six bars which is my default and I have to adjust my screen brigh

  • Please add support for Lumix DMC-LX1

    I've had this excellent camera for a few months and am frustrated I can't use its RAW files with Aperture. At least I can use it with Lightroom and Photoshop CS2, but I want to use Aperture. I sincerely hope cameras are added to Aperture at least as