Class for object HR Employee ?

Hi,
can you tell me if in SAP there are a class which encapsulates an HR employee ? i sought but anything found.

Hello Sougata
Below you see sample coding how to use the class and the interface:
*& Report  ZUS_SDN_EMPLOYEE_CLASS
REPORT  ZUS_SDN_EMPLOYEE_CLASS.
*       CLASS lcl_myclass DEFINITION
CLASS lcl_myclass DEFINITION.
  PUBLIC SECTION.
    DATA: mo_empl   TYPE REF TO cl_pt_employee read-only.
    METHODS:
      constructor
        IMPORTING
           value(id_pernr)  TYPE pernr_d.
ENDCLASS.                    "lcl_myclass DEFINITION
*       CLASS lcl_myclass IMPLEMENTATION
CLASS lcl_myclass IMPLEMENTATION.
  METHOD constructor.
    " NOTE: casting required because the method return interface type
    me->mo_empl ?= cl_pt_employee=>get_employee( id_pernr ).
  ENDMETHOD.                    "constructor
ENDCLASS.                    "lcl_myclass IMPLEMENTATION
DATA: gd_ename     TYPE emnam,
      go_myclass   TYPE REF TO lcl_myclass,
      gif_empl     TYPE REF TO if_pt_employee.
PARAMETERS:
  p_pernr   TYPE pernr_d  DEFAULT '1'.
START-OF-SELECTION.
  CREATE OBJECT go_myclass
    EXPORTING
      id_pernr = p_pernr.
  " NOTE: This method is defined in the class, not the interface
  CALL METHOD go_myclass->mo_empl->get_master_data
    EXPORTING
      im_begda = '20080101'
      im_endda = '99991231'
*    IMPORTING
*      EX_I0000 =
*      EX_I0001 =
*      EX_I0002 =
*      EX_I0007 =
*      EX_I0008 =
  " Call interface method
  gif_empl ?= go_myclass->mo_empl.
  gd_ename = gif_empl->get_ename( ).
END-OF-SELECTION.

Similar Messages

  • Object class for object id 'ADRNR'

    Hi all,
    How can iget teh value of object class for object id 'ADRNR'. i tried to see teh contents in CDHDR but there are no entries in the dev and QA box either.
    I need this value to pass to the CHANGEDOCUMENT_OPEN
    and CHANGEDOCUMENT_CLOSe fm's.
    Thanks

    How can we find the correct object class id for a data element ?
    Regards
    Megha

  • How to find class for object

    I'm trying to find the class for a given object. In Java, I
    could do something like:
    myObject.getClass().getName();
    but I can't find the equivalent in Flex. How do I find the
    class for a given Flex object? I don't know what it might be (other
    than Object), so I don't want to do trial-and-error with "is" or
    "instanceof."
    Thanks!

    Object introspection can be done through the "describeType"
    function.

  • Syntax error for automatic generated class for object MAS_AUTH_CUST

    Hi,
    I am configuring the mobile sales scenario. I encountered a weird problem. Basically the automatically generated class  ZDOECL_013_00H_MWSR can not be activated. If you activate it manually it will give you the below error. Looks like the entity structure is too big. So the generated code has a very big loop which causes the dump. I found the issue when try to run the function module CRM_AUTH_CUST_INSERTCDS as suggested in the configuration guide.
    I have tried to regenerate the object. But it still give me the same error.
    Internal error occured during runtime generation of Class ZDOECL_013_00H_MWSR (Dump ID: GEN_BRANCHOFFSET_LIMIT_REACHED)
    Message no. OO053
    Diagnosis
    An internal error occurred when the system tried to generate the runtime objects of the class. A dump has been created with the given dump ID. It can be analyzed using transaction ST22.
    Our Netweaver version as below. It should contain already the latest patch etc.
    SAP_ABA     711     0006     SAPKA71106
    SAP_BASIS     711     0006     SAPKB71106
    PI_BASIS     711     0006     SAPK-71106INPIBASIS
    ST-PI     2008_1_710     0004     SAPKITLRE4
    SAP_BW     711     0006     SAPKW71106
    CRMSPGWY     110     0004     SAPK-11004INCRMSPGWY
    CRM version.
    SAP_ABA     702     0006     SAPKA70206
    SAP_BASIS     702     0006     SAPKB70206
    PI_BASIS     702     0006     SAPK-70206INPIBASIS
    ST-PI     2008_1_700     0002     SAPKITLRD2
    SAP_BS_FND     702     0004     SAPK-70204INSAPBSFND
    SAP_BW     702     0006     SAPKW70206
    LCAPPS     2005_700     0009     SAPKIBHD09
    SAP_AP     700     0022     SAPKNA7022
    WEBCUIF     701     0003     SAPK-70103INWEBCUIF
    BBPCRM     701     0003     SAPKU70103
    WFMCORE     200     0016     SAPK-20016INWFMCORE
    VIRSANH     530_700     0011     SAPK-53311INVIRSANH
    Any advice is appreciated.
    Thanks
    Hansen Chen

    Hi,
    Gateway1.1 to SAP Netweaver mobile is not supported with EHP1 of SAP Netweaver Mobile 7.10.
    Please  check the release information note: 1539681
    So, i suggest you to install SAP Netweaver Mobile 7.10 with Gateway addon.
    Regards,
    Siva.

  • How to link Employee-Trip with "Services for Object" Attachment.

    Hello SAPients.
    This is the scenario: I enter the TCode TRIP, enter a personnel number and hit enter, then click on the 'Subsequent Activities' link, then click on the button 'Services for Object', then click on the 'Attachment List' button, I see a list of attachments for the object.
    The question is, does anybody knows the table relations to get from 'Employee-Trip' to this attachment list? I know that some of the information I need of the attachment list is stored in table SOOD. But I can't find a way to link from 'Employee-Trip' to the attachment list in SOOD.
    Any help will be greatly appreciated <REMOVED BY MODERATOR>
    Thanks .
    Edited by: Alvaro Tejada Galindo on Jun 9, 2008 3:20 PM

    Still searching for the answer, any idea?
    Thanks!

  • How to create object class for a z table

    Hi All,
    I have a z table and I want to register the changes of fields should be logged to CDHDR and CDPOS table.
    Is this possible?
    If yes how can I creat an object class for a z table. I have already checked the change document option in z data element.
    Please help.
    Regards,
    Jeetu
    Moderator message: standard functionality, please search for available information/documentation before asking.
    locked by: Thomas Zloch on Oct 6, 2010 6:16 PM

    Tcode SCDO. You'll need to create a change document for you Z table and then use the FM created to record the changed data.

  • How to create a container class for 2 object?

    I use JDK to create 2 objects, one is Customer and one is Book. I need to enqueue these 2 objects, but they canot share the same queue class. Some one told me that I can create a container class for these 2 objects but I don't know how to create it. Can some one tell me how to create the container class?

    I use JDK to create 2 objects, one is Customer and one
    is Book. I need to enqueue these 2 objects, but they
    canot share the same queue class. Some one told me
    that I can create a container class for these 2
    objects but I don't know how to create it. Can some
    one tell me how to create the container class?
    class CustomerBook{
    Book m_book;
    Customer m_customer;
    pulbic CustomerBook (Customer customer, Book book){
    m_book = book;
    m_customer = customer;
    }If you want to create a class that represents one customer and many books, do this:
    class CustomerBooks{
    Vector m_books;
    Customer m_customer;
    pulbic CustomerBook (Customer customer){
    m_books = new Vector();
    m_customer = customer;
    public void addBook (Book book){
    m_books.addElement (book);
    public void displayBooks (){
    //I assume the Book class has a toString method or something similar
    for (int i = 0;i < m_books.size();i++){
      System.out.println ("book: "+((Book)m_books.elementAt(i)).toString());

  • Object Class and Object Id for material Determination tables.

    I want to know what is the Object Class and Object Id for material Determination records to verify tables CDHDR and CDPOS.
    The purpose is to know the changes done by the different users for material determination records.
    Can any one help.

    Hi ZZZSUNNY,
    Similar question is answered recently.Please find the below link which will helps you
    Material determination: how to see the creater of a record?
    Thanks
    Dasaradha

  • Object class for AUSP table

    Hi Experts,
    Iam working on change pointers for the Material.
    In BD52 transaction iam able to enter some fieds for the material.
    But i need to enter Material Classication, and i found AUSP-ATWRT field.
    Now, i want to pass this table & field into BD52 transaction. But it is asking Object Class for AUSP.
    I know Object class for the table MARA ( is Material)
    Could you please let me know how can i find Object Class for AUSP table?
    Thanks
    kaki

    AUSP - Characteristic values

  • Class for creating the container in web dympro like include INCLUDE OBJECT

    Hi how can we use the macros swc_container. swc_set*** .. etc in webdynpro . ??
    I have to pass some vaules to the event container .
    As we cant user includes in webdynpro is there a class to carry out the same task .
    i.e;Class for creating the container in web dympro like include INCLUDE <OBJECT> or INCLUDE <cntn01>.
    Thanks ,
    naval Bhatt

    Hi,
    You had the same question in worfklow forum. I suggest you to include your non-OO-compliant code to for example a function module. OR even better, you might want to take a look to function modules SAP_WAPI*. There are plenty of standard functions, which you can use to do the same things as the macros you are now trying to use. For example raising workflow events, etc.
    Regards,
    Karri

  • LDAP object classes for user creation

    Hello,
    I use a remote LDAP for authentication, works fine. However, i want of copy some attributes from the remote LDAP into the dynamically created user profile. This works fine as long as the attributes are par5t of the standard object classes. The remote LDAP has an extra, site specific, object class for users. Since i want to use the same attribute names i added the schema extension (1 object class with a couple of attributes) to the AM LDAP. So far so good.
    My question is: How do i specify the additional object class to be added to the user which is dynamicaly created?
    Thanks in advance, Robert

    Robert,
    To resolve this, I believe that you will need to add the new objectclass to the "LDAP User Object Classes" field on the LDAP Data Store. You will also need to add the attributes to "LDAP User Attributes" on the same tab.
    Hope this helps.

  • Class not registered. Looking for object with CLSID:

    Hi,
    I had create a custom project system with the help of https://msdn.microsoft.com/en-us/library/vstudio/cc512961.aspx. And which is working fine that I can create a project with extension of .myproj in the VS Experimental Instance window. But when I go for
    the properties in the created project, (Solution Explorer: Right click on the project folder and select properties) it will show an exception that "Class not registered. Looking for object with CLSID:{00000-00-00-000000}" How can I provide Properties
    window for this project system or can I modify the Properties window for any other default VS project system? Please help me.

    Hi mathikp,
    I don't think you did something wrong while creating the project, but instead it could be the issue of environment, I would suggest you to validate following things:
    1, Try to create another blank app to see if the exception still thrown.
    2, Run with an administrator privilege to check if you can get the project work..
    I would not consider its as a coding issue but try to fix Visual Studio probably helps.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Message no. B1402- Table KONP for object class COND_A is not defined.

    Hi
    I m using BD52 transaction for message type COND_A and am getting this error for table KONP saying it is not defined for COND_A.
    Can you please let me know which transaction is used to update this information.
    Thanks in advance
    Sana

    In note 309342, for error message no.B1402, following solution is given.
    Solution
    The system issues warning message B1402 " Table KONP for object class COND_A does not exist" for each entry with table KONP and you can ignore this by pressing Enter respectively. Then you can maintain the entries or navigate.
    If the KONP entries bother you since you use Transaction BD52 frequently, you can remove them manually. To do this, you can also use Transaction BD52. The functions are not changed by this deletion. However, the issue of the bothering warning message is suppressed. Table TBD62 is client-dependent that is, you have to make the correction on each active client.
    A related problem exists with table TBD22. During the setup of reductions (that is, new output types which only send a subset of the data of output type COND_A), the corresponding entries in table TBD62 (Transaction BD52) are generated from table TBD22. To avoid the same problem as described above with the new output types, remove the entries of TBD22 with MESTYP COND_Y and CDTABNAME KONP. You can do this with the help of view V_TBD. Transaction SM30, as an output type, select COND_A. Here, remove all entries with segment type EKONP and table name KONP.
    Table TBD22 is client-independent.
    A correction of tables TBD22 and TBD62 by means of an R/3 Support Package is not possible since the tables have delivery classe 'G'. SAP cannot delete entries in the tables.
    thanks
    G. Lakshmipathi

  • Class type 022 is not defined for object for BATMAS

    Hi Experts,
    while creaitng the LSMW for batch classification,I faced the error during IDOC processing as "Class type 022 is not defined for object".I am using
    Business Object      BUS1001002
    Method               SAVEREPLICA
    Message Type         BATMAS
    Basic Type           BATMAS03
    Pleas guide how to resolve the error.
    Also ,as I intend to make LSMW for batch classifications.Is this the correct way.
    Please guide on this also.
    Regards.

    Hello Jass,
    Symptom
    The BATMAS03 basis type (message type BATMAS) /FB BAPI_BATCH_REPLICATE  cannot transfer any classification information. Please review note 1070634.
    First Option :
    You should first transfer the batmas and then the clfmas idoc.
    Second Option :
    You could create the batch together with classification. Normally the problem is the missing CUOBJ_BM in table MCH1. It is not necessary in all situations that the field have to be filled, but it can be in some cases (And it is better to store the right  information in the corresponding fields). Especially when you transfer batch/classification information in other system the field have to be filled.
    The way to create the batch TOGETHER with classification by using BATMAS IDOC is to set the following parameters correctly :-
    set E1BPBATCHCTRL-DOCLASSIFY to X and fill the segments with relevant classification information
    E1BP3060_ALLOCATION
    E1BP3060_VALUATION_CHAR
    E1BP3060_VALUATION_CURR
    E1BP3060_VALUATION_NUM
    In this case the field mch1-cuobj_bm should be filled with correct CUOBJ. You can also use function module BAPI_BATCH_SAVE_REPLICA to create batches together with classification.
    Hope this information helps
    Regards
    Amber

  • Class type 022 is not defined for object for batmas in LSMW idoc

    Hi Experts,
    while creaitng the LSMW for batch classification,I faced the error during IDOC processing as "Class type 022 is not defined for object".I am using
    Business Object BUS1001002
    Method SAVEREPLICA
    Message Type BATMAS
    Basic Type BATMAS03
    Pleas guide how to resolve the error.
    Also ,as I intend to make LSMW for batch classifications.Is this the correct way.
    Please guide on this also.
    Regards.

    Hi,
    Go to TCode OMCE and check the batch level.
    If batch is activated at material/client level then use class type 023, if it is at plant level the class type 022.

Maybe you are looking for

  • My songs dont appear in order on my ipod touch

    I bought the 32gig touch yesterday and I love it! But I notice when I transfer a playlist (in song order) it shows up just fine but when you click on the album icon it has the song order disarranged..song 3, song2, song 4, song 5 etc..I clicked on sh

  • J1id - Vendor excise details issue

    Hi All, When I create record in J1ID, for vendor excise. the "change on" fields should be auto populate, but this is not happening. This field doesnu2019t change automatically. I have to do manually. How can i change this, I need when i change record

  • Music Store causes iTunes to randomly crash...

    Ever since upgrading to a video ipod my itunes has been playing up with the music store. I can open iTunes fine, I can access all my files and playlists from both the PC and ipod, however when I click on Music Store, it starts loading then iTunes jus

  • PRINT BUG? ADOBE LIVECYCLE DESIGNER 8

    Can any one help? I have produced a complex form with many text fields all these fields have the same field properties apart from the field name. When text is entered in Adobe Reader 8 or Adobe Acrobat Professional 8 it saves to file as it should. Th

  • ACS 5.0 internat host import

    Hi All! I would like to import some hosts to ACS. I know, the ACS give a template in a cvs file, but I don't upload anything. Can you help me? The template: MACAddress:String(64):Required,description:String(1024),"enabled:Boolean(true,false):Required