Time Management Data Read Using Class & Methods?

Master data & Cluster data how to read using Class & Methods

Hi Ajay
To my knowledge this is caused because there are locks on registrations for these employees in R/3, probably because there using the system at the time of extraction.
To my knowledge the only way to handle this is to set "yellow" status to "green" this can be done automaticly on the InfoPackage.
I know this problem from two companies and i have not experienced any inconsistancies on data due to this proceeding.
Chris

Similar Messages

  • Time management data upload

    Hi,
    I have to design a data uploading strategy for the HR infotype 2011(time management). Am new to HR.
    1. let me know in which tabe can i see the fields for this infotype.
    2. Which upload technique is best for Time management data .
    3. We are taking the upload excel from a time machine where time-in and time-out is supposed to be maintained. But suppose if a person coomes and checks-in but forgets to check-out, then his entries for chek-out wont be  uploaded into the excel but rest other will be .
      can at this time I can code in to make the check-out to be +8 (eg he comes @ 2 and no check-out time then can we give check-out time to be 10 ), just for the moment . The logic will be told laater .
      Also is it configurable by the functional team ? to induce this logic .
    Thanks in advance.

    Hi abap,
    1. let me know in which tabe can i see the fields for this infotype.
      Table is PA2011.
    2. Which upload technique is best for Time management data .
    Make a z program,
    and use HR_INFOTYPE_OPERATION
    to upload data into this infotype.
    regards,
    amit m.

  • A simple ALV report using classes & methods ...

    i want a  simple ALV report using classes & methods ...
    my requirement : i have to use classes & methods instead  of calling a function module to display in grid or list format.
               plz send me with explanation ASAP...it's very urgent..
               Thanks in advance .

    Hi
    Please refer
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    U can use methods for vreating ALVs.
    There is a method named set_table_for_first_display in OOP Concepts.
    Use this Object Oriented Approach for ALV Creation
    Calling the method set_table_for_first_display
    CALL METHOD cust_alv->set_table_for_first_display
    EXPORTING
    is_layout = gst_layout
    CHANGING
    it_outtab = gt_list
    it_fieldcatalog = gt_fcat
    EXCEPTIONS
    invalid_parameter_combination = 1
    program_error = 2
    too_many_lines = 3
    OTHERS = 4
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Object Creation and all
    Creation of Object for Container
    CREATE OBJECT cust_container
    EXPORTING
    container_name = 'ALV_CONTAINER'
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    others = 6
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Creation of Object for ALV Grid
    CREATE OBJECT cust_alv
    EXPORTING
    i_parent = cust_container
    EXCEPTIONS
    error_cntl_create = 1
    error_cntl_init = 2
    error_cntl_link = 3
    error_dp_create = 4
    others = 5
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Layout settings
    gst_layout-zebra ='X'.
    gst_layout-cwidth_opt = 'X'.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
    I_BUFFER_ACTIVE =
    I_STRUCTURE_NAME = 'ZCS_INACTV_CUST'
    I_CLIENT_NEVER_DISPLAY = 'X'
    I_BYPASSING_BUFFER =
    CHANGING
    ct_fieldcat = gt_fcat
    EXCEPTIONS
    INCONSISTENT_INTERFACE = 1
    PROGRAM_ERROR = 2
    OTHERS = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Calling the method set_table_for_first_display
    CALL METHOD cust_alv->set_table_for_first_display
    EXPORTING
    is_layout = gst_layout
    CHANGING
    it_outtab = gt_list
    it_fieldcatalog = gt_fcat
    EXCEPTIONS
    invalid_parameter_combination = 1
    program_error = 2
    too_many_lines = 3
    OTHERS = 4
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    For object oriented concepts refer this link https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47
    Reaward if helpful

  • Update infotype using class method

    Hi All,
    I need to update an infotype using a Class method. I need to pass a file as input to the Class Structure.
    How can we pas a file as input to the Class structure.
    Any pointers on this would be really helpful.
    Thanks,
    Saher

    Hello,
    You can update/insert records in Info type thru below code using FM: HR_INFOTYPE_OPERATION, but you need to get the data from the file to internal table for the same.
      LOOP AT t_insert INTO w_insert.
        w_pernr = w_insert-ownnum.
        CALL FUNCTION 'HR_READ_INFOTYPE'
          EXPORTING
            pernr           = w_pernr
            infty           = c_infty                           "'0105'
          TABLES
            infty_tab       = t_0105
          EXCEPTIONS
            infty_not_found = 1
            OTHERS          = 2.
        READ TABLE t_0105 INTO w_0105 WITH KEY pernr = w_insert-ownnum"#EC *
                                                       subty = c_subu.
        IF sy-subrc = 0.
          MOVE w_0105 TO w_p0105.
          w_p0105-usrid = w_insert-lanid.
          CLEAR w_0105.
        ELSE.
          w_p0105-pernr = w_pernr.
          w_p0105-usrid = w_insert-lanid.
          w_p0105-begda = sy-datum.
          w_fnr = 'X'.
        ENDIF.
        CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
          EXPORTING
            number = w_pernr.
        w_p0105-pernr = w_pernr.
        IF w_fnr = 'X'.
          CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
              infty         = c_infty                           "'0105'
              number        = w_p0105-pernr
              subtype       = c_subu                            "'0001'
              validityend   = w_p0105-endda
              validitybegin = w_p0105-begda
              record        = w_p0105
              operation     = c_oprn  "'INS'
              tclas         = 'A'
              dialog_mode   = '0'
            IMPORTING
              return        = w_return.
        ELSE.
          CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
              infty         = c_infty                           "'0105'
              number        = w_p0105-pernr
              subtype       = c_subu                            "'0001'
              validityend   = w_p0105-endda
              validitybegin = w_p0105-begda
              record        = w_p0105
              operation     = 'MOD'  "'MOD'
              tclas         = 'A'
              dialog_mode   = '0'
            IMPORTING
              return        = w_return.
        ENDIF.
        CLEAR w_fnr.
        CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
          EXPORTING
            number = w_pernr.
    endloop.
    Hope it helps.
    Thanks,
    Jayant

  • Can I copy time capsule data and use new external HD

    Hi All-
    I've been scouring the net and cant seem to find an answer. Hopefully someone here can help.
    I have a Time Capsule that is nearly filled. It is giving me error messages each night it tries to backup saying that there is too much on my computer to backup.
    So, I went out and bought a 4TB Western Digital external drive. I want to copy all the data from the time capsule onto the new hard drive (so I dont loose any of my older backups) and then have the time capsule use that same WD drive as my new backup.
    I have seen there are ways to copy from time machine drives to new drives, but I was under the impression time machine uses a different kind of backup method than a time capsule. Is that true? Can someone point me to a place that explains how exactly I would copy the drive in the time capsule... (I understand I need to use Disk Util, but I cant get the TC drive to show up in that program)...
    Also, is there a way to instruct time capsule to stop using its own internal drive and use the drive connected to its USB for the backups? I think Apple's answer is no, but I dont know if thats really the case or not...
    Thanks much-
    Daber

    David Bertman wrote:
    The backup was via an ethernet cable from the mac to the TC. (I also have it set up to run via wifi. Would that affect things?) Would there be different symptoms if the backup had stalled midway through?
    Just trying to rule out a bad WIFI connection, and it will be much faster via Ethernet.
    I didnt repair the backups first (I'm not really sure how to do that --- is it through disk utils and repair permissions like a normal drive?) I get nervous messing around with the "Backups.backupdb" files so I generally leave them alone.
    Close. It's +*repair disk+*, not permissions. See #A5 in Time Machine - Troubleshooting (or use the link in *User Tips* at the top of this forum), for a brief explanation and instructions.
    If the backups on the TC were corrupted, that would have been copied to the external HD, potentially causing Time Machine to start a new set.
    But, I did enter time machine and saw that the old backups were there (and when I did your other suggestion of going to the browse option, it now shows two identically named backups -- one from the original TV and one from the new 4tb drive. But when I enter each they are separate backups -- the original one with the older backups and the new one with the single 1 day backup.
    That confirms it -- for whatever reason, Time Machine started a new set.
    You asked if there were two sparce bundles... I dont see any sparce bundles. I'm ONLY seeing the "backup.backups" folders when I mount the drives... Should I be seeing sparce bundles? Could that be an issue?
    The Backups.backupdb folder should be inside a sparse bundle named the same as your computer. All backups done over a network (via Ethernet or WIFI) are done that way; those done to a locally-connected drive have that folder at the top level of the drive.
    If you look at the external HD via the Finder, you'll see them; if you then double-click either, it will mount, and you can see the Backups.backupdb folder inside it. And you're right; be +*very careful+* not to move, change, or delete anything there.
    I'd suggest this: Turn Time Machine off, and use Airport Utility to disconnect the external from the TC (start Airport Utility, click +Manual Setup,+ then Disks in the toolbar, then +Disconnect all Users.+ Each user will then get a message).
    Then connect the external directly to your Mac. Repair the old sparse bundle, per #A5 (it will take a long time, but be much faster this way). If it has errors that Disk Utility can't fix, see the pink box in #A5.
    If there are no problems, or they're fixed, delete the new sparse bundle via the Finder. That may take a while. Then eject the disk, reconnect it to the Time Capsule, and do a "full reset" per #A4 in Troubleshooting. Then re-select the external as your TM volume, and start a backup. Open the external disk via the Finder; if Time Machine again creates a new sparse bundle, you're pretty much stuck with it making a separate set of backups.

  • ALV Reports using Class Methods

    Hi Experts,
    How can we generate ALV report using class and in that How can we define SLIS_EVENTS.
    Can I provide all the that functionality the way I used to by calling FM
    SLIS_ALV_REUSE_LIST_DISPLAY  ?
    - Like Header comment, event, data grouping , sort etc.
    You may please send any url or document or any example.
    Thanks in advance.
    Regards,
    Tushar Choksi

    Hi,
    The ALV object Grid methods allow the same functionality as ALV grid report function modules but are displayed within
    a screen (dialog program). SAP has provided a suit of programs which demonstrate how to For examples see standard SAP
    programs as detailed below:
    BCALV_EDIT_01 This report illustrates the simplest case of using an editable/noneditable ALV Grid Control.
    BCALV_EDIT_02 This report illustrates how to set chosen cells of an ALV Grid Control editable.
    BCALV_EDIT_03 In this example the user may change values of fields SEATSOCC (occupied seats) and/or PLANETYPE.
    The report checks the input value(s) semantically and provides protocol messages in case of error
    BCALV_EDIT_04 This report illustrates how to add and remove lines to a table using the ALV Grid Control and how to
    implement the saving of the new data.
    BCALV_EDIT_05 This example shows how to use checkboxes within an ALV Grid Control. You learn:
    (1) how to define a column for editable checkboxes for an attribute of your list
    (2) how to evaluate the checked checkboxes
    (3) how to switch between editable and non-editable checkboxes
    BCALV_EDIT_06 This example shows how to define a dropdown listbox for all cells of one column in an editable ALV
    Grid Control.
    BCALV_EDIT_07 This example shows how to define dropdown listboxes for particular cells of your output table.
    BCALV_EDIT_08 This report implements an ALV Grid Control with an application specific F4 help. The following aspects
    are dealt with:
    (1) how to replace the standard f4 help
    (2) how to pass the selected value to the ALV Grid Control
    (3) how to build an f4 help, whose value range depend on a value of another cell.
    some links.
    www.sapgenie.com
    www.abap4u.com
    http://help.sap.com/saphelp_nw2004s/helpdata/en/5e/88d440e14f8431e10000000a1550b0/frameset.htm
    download the PDF from following link.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf
    Regards,
    Satish

  • Can UCP(Utility Control Point) and MDW(Management Data Warehouse) use together?

    Hi,
    Can a server join a MDW and UCP at the same time? It seems that after i enrolled a instance which has joined a MDW, the collection data uploaded to UCP data warehouse only.
    So can UCP use exist MDW data directly?
    thanks.

    Hi mark.gao,
    UCP system uses the Data Collector feature from SQL Server version 2008.
     If you’ve implemented the Management Data Warehouse feature in SQL Server 2008, you’ll either have to break that relationship and start pointing that data to your UCP instance, or you won’t be able to monitor it with this utility.
    When enrolling an instances in UCP that is already using MDW, the UCP enrollment routine will change all the collections to go to the sysutility_mdw. 
    We could change the collection set to send data, including UCP data to our MDW database , the UCP utility on the manager would not see the MDW database. So in personally, UCP not use the MDW data directly.
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Whether can we upload Trasactional data by using any method of LSMW or not?

    Hey SDN's
    Have you ever tried to upload data in Tcode 'FBCJ' (Csh Journal in FI) by using
    LSMW.?
    If you uploaded the data successfully, please let me know.
    Because 'FBCJ' is for transactional data.  so, Is it possible to upload any sort of  transactional data by using LSMW?
    Because I've been trying to upload the data but at 14th step it saying like ''There is no input field for the screen number 100''
    please try to solve this problem.
    thank you verymuch.
    Regards,
    Ali

    Hi Ali,
    1) We can use Transactional and master data in LSMW.
    2) As of my understanding the error u r getting because of ( its guess try check this what i am telling -
    > if ur using recording method, while recording if u have not recorded the field in a particular screen '100' and if u want to upload it by specifying in the input file, (in this case u can get this kind of error) and .
    3) when u have done recording at that time the particular field is in change mode/input mode (we can enter the value) , but while uploading if that particular field is in gray mode/display mode(we cant enter value) in this case also it will show this kind of error.
    so first check , by taking 2-3 records and run in foreground ,
    and anlyze where exactly ur strucking if this is the case, do changes as per the need.
    if this is not the case anything else excuse me and eloborate it .
    Reward points if helpful
    Thanks
    Naveen khan

  • Triggerinng of WF using Class-Method delays for 12 hours

    Hi Everyone,
    I am facing a strange issue. I am using a R/3 application where WF is triggered using the FM "SWE_EVENT_CREATE", the WF gets triggered instantly. Then I created a WD application and used the method CALL METHOD cl_swf_evt_event=>raise to raise an event to trigger WF.
    Even now the WF gets triggered but the delay is highly unacceptable. It takes 8-12 hours to get the Wok Item into my inbox. I refreshed the buffer using transaction SWU_OBUF but still it didn't help.
    When I test my WF template in SWDD, by manually triggering WF using F8 functionality, it works instantly. Also, once I confirm WF item from inbox, it takes a lot of time for my application to know that WF is completed.
    Please help me to resolve these 2 issues.
    Many Regards,
    RAVI.

    Iam not asking you to uncheck the Event linkage , instead, ok let me give you an example,
    Suppose
    1. IN t he SWE2 txn you have a entry like
    BOR OBject type ---> <BUSXXXX> -
    ><BUS-EVENTNAME> -
    > WS9XXXXXXX ---> <Type linkage is Active> ---> <Enable EVENT QUEUE is active>
    so what i want you to check is the last but one column should be deactivated if it is active , column name is Enable Event Queue

  • Blocking a customer using class method CMD_EI_API= MAINTAIN_DIRECT_INPUT

    Hello Experts!
    I am using the method CMD_EI_API=>MAINTAIN_DIRECT_INPUT to block a customer when it fails export compliance checks. It only works when the user creating an order has privileges to block the customer, which is usually not the case.
    I was hoping that since this runs as part of creating an order, the system would take over to block the customer and not check the user's privileges.
    Does anyone know any setting in the structures passed in where the block will take place as part of an SAP process and not under the user's role/privileges? I'm currently setting the structure element CMDS_EI_SALES_DATA-LIFSD to 'ZC' which is our custom block setting, and when the customer service rep has privileges to block the customer it works, when they don't it should still work, but it doesn't and the message returned is: You are not authorized to use Transaction XD02.
    Thanks,
    Scott

    Dear Ashok,
    possibly structure CMDS_EI_TAX_IND_KEY
    Greetings
    Winfried

  • Warning Messages when extracting Time Management Data using 0HR_PT_1,2

    Hi,
    When extracting data using 0HR_PT_1 and 0HR_PT_2 extractors it comes up with the following errors and warnings even if the records in the source system are correct.
    "No Personel Work Schedule for personnel number XXXXXXX" and
    "Personnel number XXXXXXX could not be locked".
    Did any one of you face the same issue? If so, please do let me know how to fix these!
    Thanks,
    Ajay

    Hi Ajay
    To my knowledge this is caused because there are locks on registrations for these employees in R/3, probably because there using the system at the time of extraction.
    To my knowledge the only way to handle this is to set "yellow" status to "green" this can be done automaticly on the InfoPackage.
    I know this problem from two companies and i have not experienced any inconsistancies on data due to this proceeding.
    Chris

  • Using class method in JSP

    Is it possible to use method from ordinary .class file in jsp file?
    If it is, please explain.

    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

  • Logging all used classes + methods?

    Hi
    I want to be able to show the control flow of my program, so I was wondering if there is a way to log all classes and methods that are being called?
    Since the program is 1500+ files I dont wanna make any code changes (like adding a logger to all methods).
    I'm using Borland Jbuilder developer 2005 and JDK 1.4 (but could upgrade to a later java version if that makes a difference)

    Use LimpidLog from http://www.acelet.com/limpidlog/
    You do not need to hard-code any log statement. You can Get everything without doing anything!
    It is a revolutionay logging system. It is open source.
    SuperDebugger from http://www.acelet.com/super/SuperDebugger/index.html can read records of LimpidLog. It is a GUI debugger.

  • Time Management... using ZES table...

    Hi experts!!
    I need help with this dates problem....
    I have to read the cluster B2, specifically ZES table, and I want to print the data for three differents weeks that I have in selection screen. When I see the information of the cluster in RPCLSTB2 I can see in table ZES the concept and the date but when I try to catch the date in the table ZES I only have the day...how can I reference to the program the date?
    I explain....
    Selection-Screen....
    Week1  (select options).........
    Week2...................
    Week3.........
    Now I need to go with one of the weeks to the cluster and catch the data that are between Week1 , Week2 and Week3, but when I access to this table I only have the day...no the month.... how can I do this?
    Thanks a lot!
    Regards,
    Rebeca

    Hey Rebeca,
              Just  look into below information.if this info usefull for u thats gr8.
    DATA: T_ZL TYPE PC2BF OCCURS 0 WITH HEADER LINE.
      data: begin of tgetbuff occurs 0,
          x(10),
      end of tgetbuff.
      CALL FUNCTION 'HR_TIME_RESULTS_GET'
           EXPORTING
             GET_PERNR     = PERNR
             GET_PABRJ     = YEAR
             GET_PABRP     = MONTH
            GET_CLTYP     = '1'
           TABLES
             GET_TBUFF     = TGETBUFF
             GET_ZL        = T_ZL
           EXCEPTIONS
             NO_PERIOD_SPECIFIED   = 1
             WRONG_CLUSTER_VERSION = 2
             NO_READ_AUTHORITY     = 3
             CLUSTER_ARCHIVED      = 4
             TECHNICAL_ERROR       = 5
             OTHERS                = 6.
    Regards,
    Lakshman.Annamaneni

  • Class method for XI data into R/3????

    Hi Experts,
    I have a very big problem..please help me!!!!
    We need to create a program that will call data from XI interface and populate the internal table in R/3?
    Can any1 of u give me the steps to go forward with it?
    I read some documents and found that we need to use Class METHOD.. but I am new to OOPS and dont know anything in it.
    Its about server proxies I guess!!!
    I need to finish this in 1 day...
    Please help.. answers will be rewarded with points...

    Hi, Thanks for the reply. I cannot use IDOC.
    I have data in XI interface in form of XML data and i want to populate internal table in R/3 with this XML data(From XI).
    If anybody can give me the steps to do the same, it will be very helpful.
    my mail id is [email protected]
    please try to send me the steps with an example...

Maybe you are looking for

  • MIRO - Business Area not getting updated in Vendor Line item

    Hello friends, I am posting Vendor invoice in MIRO transaction. After Posting if i see the financial document generated, Business area has not got updated in Vendor Line item. What could be the problem ? Please help me out. Hari Prasath

  • Error occurred (-45054) in iTunes

    When I now start up iTunes, I get this message "An unknown error occurred (-45054)" and then iTunes quits. I have v.11.1.2 of iTunes running on a Mac with OSX10.6.8. I've tried reinstalling iTunes but keep getting the same error. Thanks for any help!

  • Override databse connection in CR Server 11

    Post Author: NickT CA Forum: Data Connectivity and SQL We have a report which calls a stored procedure with parmaters using SLQ Server 2000. One of the parameters is an indicator for an update. The stored procedure is structured as follows UpdateYN a

  • What am i supposed to do with my awful X-FI fatali

    Since you guys state this message that nvidia nforce4 motherboards are the cause and not your card what am i supposed to do? The box never listed such incompatibilites when i bought it. Aside from the awful crackling/pop i also can't even enable eax

  • My ipad is telllling me to plug into itunes, how?

    my ipad is locked on a screen that wants me connect to itunes??? how