BEGDA of Infotype 0315

Hi,
I have a requiremenet where standard report " RPUAUD00 - Logged changes in infotype data" has to b enhanced with a new column in output report called BEGDA.
For a particular pernr, 2 records are returned from the report where infotype = 0315.
This report refers to PCL4 cluster table to get the employee records but this table doesn't store BEGDA.
But out of that, only reocrd exists in PA0315. How to get the BEGDA for that 2nd record?

Hi kiran,
If BEGDA field value really changes, then only it will store the value in PCL4.
regards,
amit m.

Similar Messages

  • Configuration steps for Infotype 0315

    Hi ,
    My client need to maintain Time sheet data for there employees.for that they need to maintain Infotye 0315.
    Pls let me know what is infotype 0315  (Detailed description) & what are the configuration steps for infotype 0315.How to configure that Infotype .What are the pre-requsite steps to configure infotype 0315.Kindly
    let me know
    << Moderator message - Everyone's problem is important. But the answers in the forum are provided by volunteers. Please do not ask for help quickly. >>
    Edited by: Rob Burbank on Jan 17, 2011 4:22 PM

    Dear SC,
    Infotype 0315 is to make default values in terms of cost center , profile...etc...which will be picked up when you enter time data in CATS.....you can make the infotype called included in infogroup and get it filled at the time of performing initial action......
    Configuration steps are for the CATS profile and other things not for infotype 0315...
    regds

  • How to get Default Activity(Infotype 0315) using BAPI

    Hi Everyone,
    I have a task to get Default Activity by Personal number for my third party application. Unfortunately function HR_READ_INFOTYPE is not allowed for Remote Call.
    Is there any simple way how to get this value from system using BAPI? E.e. using RFC_READ_TABLE function(but i don't know table name ).
    Thanks,
    Roman.

    Table -> PA0315        Field ->LSTAR (Activity Type)
    Class :CL_HRPT_INFOTYPE_0315
    You can also use FM "CATS_GET_INFOTYPE_0315" RFC Enable
    Good luck !
    ~Saquib

  • The Begda of 580 infotype

    Hello experts,
       I need to default the BEGDA of infotype 580 as previous financial year starting date. It is defaulting the hire date. How can I do this?

    Hi,
    For any employee joining in Between the Fin Year system will take the Hire date and for all regular employee the record would be from the start date.
    This is the provision made by SAP, Pls dont try to change this will impact in  the following
    1) The Form16 /Form24 records have start date as the Hire date
    2) The ITax Projection
    3) Inconcistence in records in MIS
    4) If you maintain the Start date ie 01.04.2008 , You cannot enter  the previous earnings & Inconmetax deducted as you are on teh start of the Finy Year so no previous earnings
    Regards
    Hemant V. Mahale

  • Infotype 315

    We are having the following issue:
    In the company there are certain external employees that must register their working hours to two different projects. Is there a way they can register this through CATS Timesheet?We have filled de 0315 infotype with this information: Sender Information (Controlling Area, Sender Cost Center, Activity Type); Supplementary information (Plant); External Employee (Vendor Sending purch. order,Sending PO item)Through cutomizing, the time constaint has been set so that there can be two records. But in spite of this, if one of these records is limited to 30.01.2001, it is still possible to make the registration of hours to this proyect on a later date (eg: 02.01.2001)
    Regards.
    Wilman

    But if the infotype 0315 have two register, how do the system for kwow what of the two registers have that selected?
    What is the best Practice?
    Regards.

  • PM01 Infotype Validation

    Hi,
    I am trying to validate a custom inputfield of infotype 0315. I have added some validation code in the MODULE_PAI_0315 INPUT module. The problem is that all fields are disabled when I display a message of type 'E'. I would have expected the inputfield in question to be open for new input. How can I achieve that?
    Thanks
    /Elvez

    HI elvez,
    1. For such purpose, we have to use logic like this.
    FIELD MYFIELD MODULE MYABC .
    2. then it will remain open for input,
      whenever we issue E message, in this module code.
    regards,
    amit m.

  • BDC PERFORMANCE!!!

    Hi! Kindly check the codes why is it that performance is very very slow. Hope you can give me some advice on how i can improve the performance this program.
    REPORT zheg_hrpae001_mass_execution .
    TABLES: pernr,    "Use Table PERNR to Retrieve the personnel
            bdcdata.  "BDC Table
           INFOTYPES DECLARATION                                         *
    In this section you can declare all infotypes that you are going to *
    use in your program.                                                *
    INFOTYPES: 0000, "Actions
               0315. "Time Sheet Default
           TYPES/TYPE POOL DECLARATION                                   *
    In this section you can declare all types and type pools that you   *
    are going to use in your program.                                   *
    TYPES: BEGIN OF t_errorall,
                msgid LIKE bdcmsgcoll-msgid,
                msgnr LIKE bdcmsgcoll-msgnr,
                msgv1 LIKE bdcmsgcoll-msgv1,
                fldname LIKE bdcmsgcoll-fldname,
                recno(50),
           END OF t_errorall.
           DATA/VARIABLE DECLARATION                                     *
    In this section you can define internal tables,variables and etc.   *
    DATA: i_errorall TYPE t_errorall OCCURS 0 WITH HEADER LINE,
             w_errorall TYPE t_errorall,
             v_recordname(50).
    DATA: i_bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
    DATA: i_error2 TYPE bdcmsgcoll OCCURS 0,
          w_error2 TYPE bdcmsgcoll.
    DATA: v_begda TYPE dats,      "Beginning date
          v_date1(10) TYPE c,     "Converted Begin date
          v_read TYPE i,          "Counter for identifying total records
          v_process TYPE i,       "Counter for identifying no error record
           v_error TYPE i.         "Counter for identifying total errors
            CONSTANTS DECLARATION                                        *
    Constants are named data objects that you create statically using   *
    a declarative statement. They allow you to store data under a       *
    particular name within the memory area of a program.                *
    The value of a constant cannot be changed during the execution of   *
    the program.                                                        *
    CONSTANTS: c_a(1)       TYPE c VALUE 'A',       "A Value
               c_n(1)       TYPE c VALUE 'N',       "Background
               c_date(4)    TYPE c VALUE 'DYMD',    "Date format
               c_msgtyp(1)  TYPE c VALUE 'E',       "MSgtype E
               c_endda      TYPE dats VALUE '99991231', "End Date
    ***Start of Modification SIR-16196 by FEDERISOV 03/11/2005
               c_active     LIKE p0000-stat2 VALUE '3', "Active Employees
               c_inactve    LIKE p0000-stat2 VALUE '1', "Inactive Employees
    ***End of Modification by FEDERISOV 03/11/2005
               c_x          TYPE c VALUE 'X',       "X Indicator
               c_zero       TYPE n VALUE '0'.       "Zero value
    TYPES: BEGIN OF t_0315,
            pernr LIKE p0315-pernr,
            endda LIKE p0000-endda,
            stat2 LIKE p0000-stat2,
          END OF t_0315.
    DATA: i_0315 TYPE STANDARD TABLE OF t_0315,
          w_0315 TYPE t_0315.
           START-OF-SELECTION                                           *
    This event occurs after the selection screen has been processed and*
    before data is read using the logical database.                    *
    START-OF-SELECTION.
    GET pernr.
    PROVIDE pernr FROM p0315
             endda stat2 FROM p0000  BETWEEN pn-begda AND pn-endda
                           WHERE p0000-endda = c_endda
                           AND ( p0000-stat2 = c_active
    **Start of Modification SIR-16196 by FEDERISOV 03/11/2005
                            OR p0000-stat2 = c_inactve ).
    **End of Modification by FEDERISOV 03/11/2005
    PROVIDE pernr endda  FROM p0315 BETWEEN pn-begda AND pn-endda
                            WHERE p0315-endda = c_endda.
                           AND ( p0000-stat2 = c_active
    ***Start of Modification SIR-16196 by FEDERISOV 03/11/2005
                            OR p0000-stat2 = c_inactve ).
         CHECK p0000-stat2 eq c_active or p0000-stat2 eq c_inactve.
       IF p0000-endda = c_endda
         and ( p0000-stat2 = c_active or p0000-stat2 = c_inactve ) *
        IF p0315_valid = 'X'.
         and p0315-pernr = p0000-pernr.
         PERFORM f_determine_date.   "Determine the effective date
         PERFORM f_convert_date.     "Convert the effective date
         PERFORM f_upload.           "This will update the infotype 0315
          w_0315-pernr = p0315-pernr.
          APPEND w_0315 TO i_0315.
          CLEAR w_0315.
        ENDIF.
      ENDPROVIDE.
            END OF PROCESSING                                            *
    End of program processing.                                          *
    END-OF-SELECTION.
      LOOP AT i_0315 INTO w_0315.
         PERFORM f_determine_date.   "Determine the effective date
         PERFORM f_convert_date.     "Convert the effective date
         PERFORM f_upload.           "This will update the infotype 0315
      ENDLOOP.
      PERFORM f_report.  "Print / Audit Report
         FORM f_determine_date.
      Use to supply the effective date supplied in the selection screen
    FORM f_determine_date.
      IF pnptimr1 = c_x.
        v_date1 = sy-datum.
      ELSEIF pnptimr6 = c_x.
        v_date1 = pnpbegda.
      ENDIF.
    ENDFORM.
        FORM f_convert_date.
      Use to covert the date in the standard format
    FORM f_convert_date.
      CALL FUNCTION '/SAPDMC/LSM_DATE_CONVERT'
           EXPORTING
                date_in             = v_date1  "Date In
                date_format_in      = c_date
                to_output_format    = c_x
           IMPORTING
                date_out            = v_date1  "Converted Date
           EXCEPTIONS
                illegal_date        = 1
                illegal_date_format = 2
                no_user_date_format = 3
                OTHERS              = 4.
      IF sy-subrc <> 0.
      ENDIF.
    ENDFORM.
        FORM f_upload.
      This will update the existing record in infotype 0315
    FORM f_upload.
      CLEAR i_bdcdata.
      REFRESH i_bdcdata.
    PERFORM f_dynpro:
          USING 'X' 'SAPMP50A' '1000',
          USING ' ' 'BDC_CURSOR' 'RP50G-PERNR',
          USING ' ' 'RP50G-PERNR' w_0315-pernr,
          USING ' ' 'BDC_CURSOR' 'RP50G-CHOIC',
          USING ' ' 'RP50G-CHOIC' '0315',
          USING ' ' 'RP50G-TIMR6' 'X',
          USING ' ' 'BDC_OKCODE' '/00'.
      PERFORM f_dynpro:
          USING 'X' 'SAPMP50A' '1000',
          USING ' ' 'BDC_CURSOR' 'RP50G-PERNR',
          USING ' ' 'RP50G-PERNR' w_0315-pernr,
          USING ' ' 'BDC_CURSOR' 'RP50G-CHOIC',
          USING ' ' 'RP50G-CHOIC' 'Time Sheet Defaults',
          USING ' ' 'RP50G-TIMR6' 'X',
          USING ' ' 'BDC_OKCODE' '=INS'.
      PERFORM f_dynpro:
           USING 'X' 'MP031500' '2000',
           USING ' ' 'BDC_CURSOR' p0315-begda,
           USING ' ' 'P0315-BEGDA' v_date1,
           USING ' ' 'P0315-KOSTL' p0315-kostl,
           USING ' ' 'BDC_SUBSCR' 'ZP031500',
           USING ' ' 'BDC_OKCODE' '=UPD'.
    *Runs transaction on background
      CALL TRANSACTION 'PA30' USING i_bdcdata
                              MODE c_n UPDATE c_a
                              MESSAGES INTO i_error2.
      IF sy-subrc <> 0.
        PERFORM f_bdc_error.
        ADD 1 TO v_error.
      ELSE.
        ADD 1 TO v_process.
      ENDIF.
    ENDFORM.
         Form  f_dynpro
         Subroutine used to populate the BDC table.
    FORM f_dynpro USING  fp_dynbegin
                         fp_name
                         fp_value.
      IF fp_dynbegin EQ 'X'.
        CLEAR bdcdata.
        bdcdata-program  = fp_name.
        bdcdata-dynpro   = fp_value.
        bdcdata-dynbegin = fp_dynbegin.
        APPEND bdcdata TO i_bdcdata.
      ELSE.
        CLEAR bdcdata.
        bdcdata-fnam = fp_name.
        bdcdata-fval = fp_value.
        APPEND bdcdata TO i_bdcdata.
      ENDIF.
    ENDFORM.                    " F_DYNPRO
         Form  f_bdc_error
        Check BDC Error when processing
    FORM f_bdc_error.
      CLEAR w_error2.
      READ TABLE i_error2 INTO w_error2 WITH KEY msgtyp = c_msgtyp.
      IF sy-subrc EQ 0.
        MOVE: w_error2-msgnr TO w_errorall-msgnr.
             w_error2-msgv1 TO w_errorall-msgv1,
             w_error2-fldname TO w_errorall-fldname.
    *Capture errors in BDC background processing
        CALL FUNCTION 'MESSAGE_TEXT_BUILD'
             EXPORTING
                  msgid               = w_error2-msgid
                  msgnr               = w_error2-msgnr
                  msgv1               = w_error2-msgv1
                  msgv2               = w_error2-msgv2
                  msgv3               = w_error2-msgv3
                  msgv4               = w_error2-msgv4
             IMPORTING
                  message_text_output = w_errorall-fldname.
        CLEAR v_recordname.
        CONCATENATE text-001
                    w_0315-pernr
                    INTO v_recordname SEPARATED BY space.
        MOVE: v_recordname TO w_errorall-recno.
        APPEND w_errorall TO i_errorall.
        CLEAR i_errorall.
      ENDIF.
    ENDFORM.                    " f_bdc_error
                         Form F_OREPORT
          Writes the summary report of the program that will provide the
    number of records process, number errors and the location of errors
    in the BDC.
    FORM f_report.
      v_read = v_process + v_error.
    *Output Report
      WRITE: text-006.
      ULINE.
      WRITE:/ ,
            /5 text-007,
             36 v_read,
            /5  text-008,
             36 v_process,
            /5  text-009,
             36 v_error.
      NEW-PAGE.
      WRITE: /5 text-003,
              20 text-010,
              60 text-004.
      ULINE.
      CLEAR w_errorall.
      LOOP AT i_errorall INTO w_errorall.
        WRITE: /5  w_errorall-msgnr,
                20  w_errorall-fldname,
                60  w_errorall-recno.
        CLEAR w_errorall.
      ENDLOOP.
    ENDFORM.

    Hi,
    Maybe instead of using call transaction you could insert the transactions onto the SM35 BDC queue.  You could then batch the transactions (into groups of 10 for example) and submit RSBDCSUB for each batch.  This would means that you process the BDCs in parrallel rather than the sequential approach you have now.
    It could go something like:
    FORM F_UPLOAD
      IF w_session_open IS INITIAL.
        CALL FUNCTION 'BDC_OPEN'.
        CLEAR: w_record_number.
        w_session_open = 'X'.
      ENDIF.
      <insert BDC logic here>.
      CALL FUNCTION 'BDC_INSERT'.
      w_record_number = w_record_number + 1.
      IF w_record_number >= 10.
        CALL FUNCTION 'BDC_CLOSE'.
        SUBMIT RSBDCSUB (passing unique BDC session name) AND RETURN.
        CLEAR: w_session_open
      ENDIF.
    ENDFORM.
    As RSBDCSUB creates a background job to process the BDC session, your program would continue whilst the BDC session was being processed.
    As the sessions are being handled in SM35 you would also get a much nicer record of the errors, and it would allow you to replay them and correct interactively (rather than just having an error report).
    Of course, this is just a quick sketch of a possible solution, but you could adapt the technique to suit the specifics of your implementation.
    Hope that helps.
    Cheers,
    Brad

  • Creation of Appointment letter

    Hi to all..
    I have to Create Appointment letter for HR.For that I have Created Infotype 9001 and Standard Object for Appintment letter.But i m not getting how to use that infotypes and Standard object in Smartform for displaying that letter,
    i have checked some module pools like MPXXXX01  were created by system.how to handle these 
    Please help me to understand the procedure for Creating Appointment letter..
    Thanks in Advanced
    Somnath

    Hi Somnath,
    I hope you have an idea about module pool programming as its based on the same.
    Regarding the procedure steps
    Create a infotype with some fields that u may want to show in the letter and want the end user to enter along with a field
    of type PCLKEY
    Now let the use enter the fields that can be captured in the letter. and when the use presses create letter the letter should appear
    For this you may use function modules of sap script like INIT_TEXT , EDIT_TEXT inorder that the user edits the text directly.
    After editing use when the person presses save you may call SAVE_TEXT.
    And take the contents of the letter and save it in cluster with a key.
    you may use the pernr/begda/endda/infotype/seqno for the key formation of the pclkey
    and use import and export statements to export it to cluster.
    You can also retrieve the letters from the import statement with the key stored in the infotype.
    Regards,
    Divya

  • Employee as a customer-How to Delete?

    Hi All
    Please suggest on the following.
    Where do we create & delete 'Employee as a Customer' & 'Employee as a Vendor'.
    It's been created in my system. I want to delete 'Employee as a Customer'.
    How to do this?
    Please Suggest.
    Thanks & Reagrds

    It is very common to almost every organization to hire people for short terms , normally on an hourly based payment (SAP consultants for instance).
    For those people you allocate a dedicated employee group (PERSG) and create infotype 0315 where you can define Cost Center, WBS etc..and maintain a table with names of the "real" employers of this
    people.
    Zeev Gavish

  • CATS_DA kind of report per Vendor

    I have an extra requirement for the CATS_DA report and just wondering if same thing can be managed within standard functionality:
    We have many contractors using CATS and they come from some 15-20 different companies.  In CATS_DA kind of report we would like to see it company by company or having any attribute for that.
    There is a Vendor field in the InfoType 0315, but is not transferred anywhere.  If we will maintain it, will it help?
    It sounds like quite common or even natural requirement, what is the best practice to get it?
    Thank you!

    CATSXT_DA

  • How to default G/L account into Service Entry Sheets

    Hello All,
    I am trying to set up a Framework order with account assignment U for services. I use this for our contracted employees via infotype 0315. When I generate the service entry sheet in the background via tcode CATM, and try to release the service entrysheet, I get error, because the G/L account field is blank and the goods movement cannot be perfromed for it. How can I manage the framework PO so that the G/L can default into the service entry sheet automatically..
    thanks
    Qazi

    Hi,
       In SproMMPurchasingMaterial masterentry aid for item w/o material master...maintain the valuation class for the Material group.
    In OBYC maintaing the G/L account for this Valuation class in GBB--VBR.
    Enter this materila group in the service order.System will automatically determine the G/L.
    Even if you enter acct assignment U...while posting the service entrt sheet this GL will be fetched.
    Rajesh

  • User exit CATS0003 on loading of record working time screen

    Hi Experts
    this is continuation to my last thread
    ESS CA-TS Missing time sheet,
    the requirements remains the same and I just need to confirm below thing
    Does cats enhancement user exit CATS0003 will trigger initially at the time of loading the data entry page (record working time screen) in ess? so that before entering the time itself users will get to know that they need to fill previous weeks time before continuing,
    experts pls confirm.
    Jo

    If you want the end user to know what attributes to save time on, Try to make use of template
    or A worklist!
    Other than this you can just use Default values from Cac1 and Infotype 0315, Just check the docs
    on this
    Also a simple cats0002 can be used to supplement the recorded data

  • CATS_Actuals posting problem when costcenter is changed.

    Dear All,
    PN (e.g 10) is booking his time in CAT2 for the month of May. He is assigned to costcenter 101. From 13th May, Persons costcenter changed to 102.
    When time is transferred to CO, if I see KSB1, I see that some hours are still posted to CC 101 for dates after 13th May (14th & 15th May). Strictly these hours should have been posted to CC 102 as from 13th May, employee is assigned to this CC.
    I constructed this senario in Development. I book some Hrs for the PN for some dates. Then changed his CC (InfoType 0315). I realise that if I book time for dates even after 13th to the existing lines (for which employee has already booked the times) then time gets posted to earlier CC. Only if I enter the time in the new line, then the time is posted to the new CC.
    So if the CC is changed in between and the time is already booked the system is taking the old costcenter. actually it should take the new CC from the chenged date while transferring the time to CO.
    Pls suggest what can be done now. user complaining that even after changing the CC for some employees, their report shows that the time is booked to the old CC.

    Hi,
    Regardless of where you copy the default values from, (e.g. from infotype 0001 or 0315), the default value is populated when the line is created. One way is to try copying the line again to enter time from May13th, in your example, to create a new line to enter those hours. But, this may not be practical in production.
    The best will be to set a time for the cost center change process, such as the beginning of the time entry period. So, you will always make the cost center move effective at the beginning of the week/month so all the week's time will be charged to a single cost center.
    Reward points if helpful.
    Regards,
    Venkat.

  • Cost rates maintained in ERP system and cost elements from PPM 5.0

    Hello experts,
    I will appreciate it if  you could help me with this subject below.
    I want to search in ERP system what cost rates are maintained for each approved worked hour in PPM system. But, I do not know where should I look for this.
    I take a look on the report of the created internal order:
    You can see, that the actual posting of 25.000 is booking in the ERP PROD system on cost element IT-HOURS
    When I display the booked working times I find 5 Hours taht I booked on my personnel number on Internal Order :
    I want to know where in the system  is  maintained the cost rate that calculates automatically the 5 hours booked on cost element IT-HOURS to 25.000 . So each hour costs 5.000. I want to change the amount of each hour from 5000 to 50. 
    I’m not an ERP expert so I don’t know where such rate can be maintained in ERP. I need your expert help!
    Thanks a lot,
    Ruxandra P.

    Hi Ruxandra!
    You have to distinguish plan costs from actual costs. By doing time confirmation (e.g. via CATS) on your internal order the system posts actual costs.
    Using the Role concept of PPM (role-based or task-based) you are dealing (generally spoken) with plan costs. Derived from your entry message I suppose you are already using accounting integration.
    Accounting Integration is a big topic, that is very difficult to generally describe in a posting. Please have a look to the general information in help.sap.com => General Information About Accounting Integration - SAP Portfolio and Project Management - SAP Library
    Please beware: There are many accounting integration scenarios, therefore there are several aspects and places to maintain cost/revenu rates. On the PPM UI you have the possibility to maintain differing cost/revenu-rates per role/task.The rates in general (plan and actuals) are maintained in KP26.
    Also have a look to your business partner (role-based scenario), if there is a cost/revenu rate.
    For time confirmation you can have a look to PA30 => infotype 0315 for your CATS suggestion values (activity type, costcenter, etc...).
    Please come back with any detailed questions, you would like to have answered.
    Regards,
    Peter

  • Error when trying to enter time data for hourly employees using CAT2

    Hi Experts!
    I'm trying to enter time data for an absence type using CAT2 for hourly employees and it's giving me an error saying "for attendance type, function or/and one of the URA is required".
    I'm not sure what that means, the system has no functions available. Entering time data for full-time salaried employees is working just fine.
    Any insight would be greatly appreciated!
    Thanks.

    hI,
    Firstly check infotype 0315
    In that check sender cost centre
    Next chek whether the Attendent / Absende Tyep which you are trying to enter is configured
    That meas it should pop up (F4) when u try to enter using CAT2
    in the Attnendence /Abence field
    REWARD POINTS

Maybe you are looking for

  • I am a newbie,Please help me.

    Can anyone give me some samples about c# vb.net by using .net connector? Actually I need something like manual let me do it step by stey. Thank you. Yi Wang

  • ADF Bounded Task Flow

    I have created a bounded task flow which has the following activities: Method Call (default activity and it calls a custom method in a request scoped backing bean), a controlFlow to a jsf page, a controlFlow to a Task Flow Return. Here is the xml cod

  • My iPod won't do anything at all

    I'm sure this has been discussed somewhere, but my iPod absolutely refuses to do anything but play music through iTunes when connected to my laptop. I can't format it, restore it, delete anything, or add anything. Does anyone have any suggestions as

  • OT Fonts not working in Flash, Framemaker

    I am using an OpenType version of the Univers Condensed family in a number of applications. It works fine in InDesign, Photoshop, and Illustrator, but certain weights of the fonts don't work in Flash CS3 and FrameMaker 8. (We're using Windows XP.) In

  • IPhone 6 plus list same music genre multiple times

    I Finally got my iPhone 6 plus delivered today but while synching with itunes 12.0.1 version I ran into an annoying problem. Every thing synced great (photos, videos etc.) except my music. I have around 8 genres of music but one of them is listed 5 t