HR_MAINTAIN_MASTERDATA start date 00.00.0000

Hi,
I am trying to post multiples infotypes 0000, 0001, 0002, 0008, based on infotype group at same sequence using FM: HR_MAINTAIN_MASTERDATA, and when I just start to fill out 0001, I got the message saying that start date is 00.00.0000, I am adding data to 0000-BEGDA. I understand it is because nothing is saved yet, but how do I fix it? Even if I put each infotype separated on the FM, because of the infotype group it does not work.
Can somebody help me, pleeeeeeeaaaasssseee.
Thanks anyway,

Dear Debora,
You will have to pass the beginning date from the variable or parameter from the program instead of 0000-begda. The same start date that you had passed for infotype 0000 and enque pernr.
Also, make import parameter NO_EXISTENCE_CHECK = X.
You could also use the following method:
1. It works because, pa40 locks the pernr,
which is very much compulsory.
2. it is compulsory to lock the pernr,
before using any FM for updating/inserting infotype.
3. Its better to use the fM 'HR_INFOTYPE_OPERATION'
4. this is the full coding.
5. just copy paste in new program.
6. U can change the pernr and amount values as per requirement.
7.
Report abc.
Data
DATA : P0015 LIKE P0015.
DATA : RETURN LIKE BAPIRETURN1.
DATA : KEY LIKE BAPIPAKEY.
DATA : RETURNE LIKE BAPIRETURN1 .
Values (Change as per Requirement)
P0015-PERNR = '1'.
P0015-BEGDA = '2061101'.
P0015-ENDDA = '2061101'.
P0015-LGART = '3075'.
P0015-PREAS = '01'.
P0015-WAERS = 'INR'.
P0015-BETRG = '2500'.
*----- First Enqu
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = p0015-pernr
IMPORTING
RETURN = RETURNE.
Update
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0015'
NUMBER = P0015-PERNR
SUBTYPE = P0015-SUBTY
OBJECTID = P0015-OBJPS
LOCKINDICATOR = P0015-SPRPS
VALIDITYEND = P0015-ENDDA
VALIDITYBEGIN = P0015-BEGDA
RECORDNUMBER = P0015-SEQNR
RECORD = P0015
OPERATION = 'INS'
TCLAS = 'A'
DIALOG_MODE = '0'
IMPORTING
RETURN = RETURN
KEY = KEY.
IF RETURN IS NOT INITIAL.
WRITE :/ 'Error Occurred'.
ENDIF.
Dequeue
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
NUMBER = P0015-PERNR
Thanks and Regards,
Naveen.

Similar Messages

  • PROCESS CHAIN error "Incorrect start date"

    hi sap gurus,
    I have parent chain in that a newly created meta chain is creating problem.I am getting error in the process chains since two days i am not able to solve this.Can anybody try to help me.
    error: Incorrect start date: 00.00.0000; Start time 00:00:00 RSM     847
    After that the process chain is turning red,but when i manually execute the process chain its running properly.
    Please help me its urgent.

    hi gurus,
    Its working fine now.
    Solution:
    first exchange the variant with the smae and then activate and run.After that it will work in the process chain.
    Thanks a lot to every body,especially MOHAN KRISHNA,

  • Pa-30 edit  start date

    Dear SDN Team,
    In PA-30 txn , when i change  start date field (01.10.2010), system showing error message "Employee active since 01.06.2010'.
    Can you pls tell how can i change the start date?
    Rgds
    sp
    kolkata

    Hi,
    You cant change the start date in action(0000) and 0001 infotypes.. if u are in same action i.e Hiring .. system saves start date once u enter and saved the date for that specific action and it allows u to change the date because the employee became active from that date.. thats because it wont allow u to change the start date and also  it is because of time constraint 1 no gaps no over laps ..   that is the reason bedhind that error message.. since the employee is active in company it wont allow u to change the start date.... but  U can do the modifications for date changes in infotype 0041.. 
    hope this helpful to u
    all the best
    regards
    hima bindu

  • Error AA168 Ord.dep.start date not allowed in dep.area 60 (Please correct)

    Hi experts,
    We upgraded to ECC6 from 4.7 version last month.
    For some assets we have start deprecation date filled for area 60 with deprecation key LINV.
    We would like to modify deprecation key to 0000 but we have error "AA168 Ord.dep.start date not allowed in dep.area 60 (Please correct)"
    Have you any idea to resolve this issue.
    Thank you in advance
    Kind Regards.

    Dear Shankar
    here is what i have in transaction
    001     01/01/02/02          01     01     02     02
    002     01/01/01/01          01     01     01     01
    003     01/06/02/02          01     06     02     02
    004     06/06/02/02          06     06     02     02
    i do not anderstand any thing in this transaction
    Can you help me resolving this issue?
    Thanks in advance.
    Kind regards

  • Error: "Depreciation start date required in old assets data (please enter)"

    When , I use transaction AS91 , for an asset , with book depreciation key  = 0000, the system shows this error:"Depreciation start date required in old assets data (please enter)",
    somebody could help me with this please?

    Check if the depreciation start date has got populated in the tab for depreciation areas in AS91.
    Usually this gets populated based on capitalization/creation date.If not then try to enter this manually.
    Thanks and regards
    Kedar

  • Restriction of Validity start date in Scheduling agreement

    Hi,
    I am not able to convert the message 06 170( Start of validity period is in the past) in error message , when i am going to define attributes of system messages in purchasing and converting this message into error , system still does not give error message when i am selecting  back  validity start date in the header of Scheduling agreement (me32l)
    What can be the possible reason.
    Regards
    Sachin

    Hi,
    I believe the message 06-170 is hard-coded in Include "MM06EFRP_EKKO-KDATE" in the Program SAPMM06E
    Laufzeitbeginn in der Vergangenheit -
        IF ekko-kdatb < sy-datlo.
          MESSAGE w170 INTO gl_dummy.
          mmpur_message 'W' '06' '170' '' '' '' ''.
    Please consul your ABAP Team on this to change it to Error.
    But SAP does not recommend changing standard Programs, so please discuss this and see that its really required and will not have any effects to your business process, because there may be instances wherein you might require to create scheduling agreements with a past validity date sometime in future based on business requirement.
    Regards
    Chandra Shekhar

  • Change in start date of tax depreciation not for posting in mid of year

    Hi Experts,
    Tax depreciation area is not for posting. The fiscal year is from Jan to Dec. I want to calculate tax depreciation from May 2011 based on Net Book Value of tax depreciation as on 30.04.2011. But once I change the start date of tax depreciation in asset master to 01.05.2011, the system ignores the previous depreciation so I am not getting the NBV of tax depreciation of 30.04.2011.
    Is any setting is required to get this. I can not do changes in posting rules since this tax depreciation is not for posting any thing.
    The fiscal year 2010 is closed and NBV of tax depreciation as on 31.12.2010 of one asset is 80000, If I change the start date of tax depreciation from 1.1.2011 then system correcly take NBV of 31.12.2010 for further depreciation calculation. But if i change the start date of depreciation in between of year the system is calculating depreciation based on NBV of 31.12.2010 but ignores the tax depreciation from 1.1.2011 to 30.04.2011, which I previously run using AFAB.
    Need your assistance to know is it feasible to do this.
    Thanks and Regards,
    Harshad

    Hi Harshad
    The behaviour of the system is very much correct, it is designed to behave that way...
    One, you should not have changed the dep start date....
    two, NBV in SAP is always taken to be NBV @ the start of the year....
    The best wayout I can suggest here is, if you are on EhP4 and EA-FIN active
    a. Change the Dep Key in the asset... You can maintain Time Dependant Dep Terms in asset master i.e. Dep Key X from Jan-Apr and Dep Key Y from MAy onwards
    b. This will however, calculate dep based on NBV at the start of the year, but based on new useful life
    c. Considering your eg: The system is posting more depreciation i.e. 5333 instead of 5155.... So, calculate this amount outside the system and post a Manual Write up ABZU inorder to reduce the Dep and increase the NBV
    Even if you are on not on EhP4, you can follow the same approach as above.... i.e.
    a. Change the Dep Key in asset master.... This will throw up new dep figure, on the basis of New Useful life and NBV at the start of the year
    b. Post a write up from ABZU....
    No need to do Asset to asset transfer in my opinion
    Only diff between EhP4 and Non EhP4 is that the differential depreciation would be lesser if you are on EhP4... i.e. instead of 5333 now, system may throw up depreciation amount of 5666.. So, you may need to post write up of 5666-5155
    br, Ajay M

  • Change in start date of tax depreciation in mid of year

    Hi Experts,
    Tax depreciation area is not for posting. The fiscal year is from Jan to Dec. I want to calculate tax depreciation from May 2011 based on Net Book Value of tax depreciation as on 30.04.2011. But once I change the start date of tax depreciation in asset master to 01.05.2011, the system ignores the previous depreciation so I am not getting the NBV of tax depreciation of 30.04.2011.
    Is any setting is required to get this. I can not do changes in posting rules since this tax depreciation is not for posting any thing.
    The fiscal year 2010 is closed and NBV of tax depreciation as on 31.12.2010 of one asset is 80000, If I change the start date of tax depreciation from 1.1.2011 then system correcly take NBV of 31.12.2010 for further depreciation calculation. But if i change the start date of depreciation in between of year the system is calculating depreciation based on NBV of 31.12.2010 but ignores the tax depreciation from 1.1.2011 to 30.04.2011, which I previously run using AFAB.
    Need your assistance to know is it feasible to do this.
    Thanks and Regards,
    Harshad

    Hi Harshad
    The behaviour of the system is very much correct, it is designed to behave that way...
    One, you should not have changed the dep start date....
    two, NBV in SAP is always taken to be NBV @ the start of the year....
    The best wayout I can suggest here is, if you are on EhP4 and EA-FIN active
    a. Change the Dep Key in the asset... You can maintain Time Dependant Dep Terms in asset master i.e. Dep Key X from Jan-Apr and Dep Key Y from MAy onwards
    b. This will however, calculate dep based on NBV at the start of the year, but based on new useful life
    c. Considering your eg: The system is posting more depreciation i.e. 5333 instead of 5155.... So, calculate this amount outside the system and post a Manual Write up ABZU inorder to reduce the Dep and increase the NBV
    Even if you are on not on EhP4, you can follow the same approach as above.... i.e.
    a. Change the Dep Key in asset master.... This will throw up new dep figure, on the basis of New Useful life and NBV at the start of the year
    b. Post a write up from ABZU....
    No need to do Asset to asset transfer in my opinion
    Only diff between EhP4 and Non EhP4 is that the differential depreciation would be lesser if you are on EhP4... i.e. instead of 5333 now, system may throw up depreciation amount of 5666.. So, you may need to post write up of 5666-5155
    br, Ajay M

  • Issue on Ordinary Depreciation Start Date and Disposal of Asset

    Hi All.
    I am facing the following the issues.
    Fiscal Year is from July - June
    First Problem: Company acquired the asset Vehicle on 26.Dec.2008. System proposes Ordinary Depreciation Start Date as 01.Jan.2009 rather then proposing Ordinary Depreciation Start Date as 01.Dec.2008.
    Since depreciation for previous year has been posted the client later found out that instead of calculating depreciation for 7 months depreciation was only calculated for 6 months. I tried to manually change the dep. start date but the system doesnot update the previous years values, it's still calculating depreciation for 6 months and not 7 months. Is there anyway in updating the previous fiscal years depreciation values.
    2nd Problem: I created a test case scenario today i.e. 16.09.2009 by creating and capitalizing an asset vehicle. Once I capitalized the asset the system automatically proposed the start date as 01.10.2009 and not 01.09.2009 which is what i require. What setting do i need to check or maintain in order to solve this issue because the user does not want to manually change the date each time an asset is created.
    3rd Problem: Similar to this now when client disposes of an asset suppose on 10.Feb.2009 (FY2009). The system calculates depreciation till the month in which disposal takes place (February), the client does not want this, their requirement is that depreciation should be calculated one month before disposal takes place i.e. in this case Dep should be calculated till Month of January.
    Your assistance will be highly appreciated.
    Mohammed Ali Khan.

    Hello Khan,
    The depreciation start date will get determined based on the period control method assigned to depreciation key,
    Period control methods are defined in transaction code : OAVH
    In period control method we will mention the depreciation start date for acquisition, additions and also depreciation end date for disposals, retirements.
    SAP has given some default period control keys. If any of these are not suitable to your requirement you can create on your own period control methods.
    THanks
    Sai

  • Issue with Ord Start Date

    Hi,
    I am having issue with Ord Start Date.
    When i create XYZ Asset now when i do the acquasation for that new asset. Example: Using FB01 i enter todays date and i do the posting.
    Now when i go to DEP Area TAB for the DEP Key (M200) - The Ord Dep Start Date is 15 Dec 2010.
    For this DEP Key Period Control Methods (T code - AFAMP) - Acquisation Entered is ( 6 that is - at the start of year) and the Period Control is ( T code - OAVS) (4 that is - First year convention at half year start date).
    Our client is using the fiscal year as 1 June 2010 to 31 May 2011.
    So when i do acquistion for the asset as per the period contol the Ord Dep Start Date should be 1 Dec 2010, but here it is talking 15 Dec 2010.
    Why is system talking 15 days more.
    Regards.

    Hi
    Which Fiscal year variant are you using??
    Did you maintain it in OAVH? Copy the existing entry in OAVH for K4 to your Fisc Yr var and try again
    And also, 04 does not figure for Acquisitions in AFAMP under 0004.... Whatever you specify in OAVH must also be a part of AFAMP
    Regards
    Ajay M
    Edited by: Ajay Maheshwari on Oct 28, 2010 2:31 PM

  • Start Date for AP trial balance report

    Hello
    Am working on generating the Trial balance report in the Payables. I am running the "Accounts Payables Trial Balance report. For this report, in the parameters, there is "As of Date" parameter, but I do not have the "Start Date" parameter. I wanted to get a trial balance report for a given analysis period, like between Jan 03 and Dec 03.
    Can any one please let me know about this.
    Thank you
    Bob

    Hi Bob.
    I'm affraid such report is not available.
    You may get something similar by running the RX-only: Payables Invoice Register by Detail. You also have the option to change the way data appears on the report on it is an RX report.
    Octavio

  • Process/Production Order WIP Reverse on Month starting date with postiing d

    Hi Experts,
    Is it possible to reverse the WIP of Production/Process Order at month starting date eg. 01/07/09. Posting date & Document date should be: 01/070/09.
    In my current project production is batch management system. Some of the batches start at month ending days (Eg. 29/06/09) for we calculated WIP at dated: 30/06/09.
    My Client wants to reverse that WIP next day, month starting hours Eg. 01/07/09 but while reversing the WIP system is posting the WIP reversing doc. posting date is 31/07/09.
    Same batch which started production on 29/06/06 is closed at 03/07/09 as well as goods received same date. FG Stock A/c updated in accounting books.
    At the same day If I print my trail balance system showing the Stock value double (WIP stock as well as FG stock)
    First Month
    Eg. Process Order WIP at 30/06/09                              : 50000/-INR
    Second Month
          WIP Reversal Posting date:31/07/09 by system     : 50000/-INR
          FG Stock received at 03/07/09                               : 50000/-INR
    If I Print Trail Balance on 03/07/09 system shows        : 1, 00, 000/-INR (based on Posting date)
    Which is wrong..
    Please tell me the way for Change the Posting date of WIP reverse document. OSS guys are replying as consulting issue. 
    I am waiting for your valuable reply.
    Thanks & regards
    Bhagiradha

    In KO88, CO88 Select Menu bar Extras-> Posting date
    Enter Posting and execute
    Thanks for Rajesh (SAP Labs)
    Thnaks & Regards
    Bhagiradh

  • How to calculate a number of calendar days from a start date (e.g. 60 days from 3/10/2012)

    How to calculate a number of calendar days from a start date (e.g. 60 days from 3/10/2012)

    DT,
    If the starting date is in Column A, and you want to calculate what the date would be 60 days later, in Column B, write in Column B:
    =A+60
    Couldn't be much easier.
    Jerry

  • Can i restrict apple mail client from downloading all emails...and allow it to pick a start date for gmail mail to sync? i am flooded with old emails, thousands on them ...eating hard drive space of my macbook pro and un necessary overhead

    can i restrict apple mail client from downloading all emails...and allow it to pick a start date for gmail mail to sync? i am flooded with old emails, thousands on them ...eating hard drive space of my macbook pro and un necessary overhead

    The genius bar technicians can check your MBP for possible hardware problems and specific software issues that you may have.  The diagnosis will be free.  Any extensive repairs will not be free.
    If you have minor software problems, you essentially will have to deal with them yourself.  Examine these two comprehensive documents for possible problem definition and solutions.  If you encounter problems that you are unable to cope with, start a new discussion and there will be persons willing to assist you in solving them.
    https://discussions.apple.com/docs/DOC-3521
    https://discussions.apple.com/docs/DOC-3353
    Ciao.

  • Fiscal year variants in co.code  have inconsistent start date.Msg no AC531

    Hi Experts
    We went  with 24 periods after Go live.  I am trying to assign the TAX basis fiscal year variant(TX) at Depreciation area level. But it's not letting to add with the following error message.
    Fiscal year variants in co.code  have inconsistent start date
    Message no. AC531
    Diagnosis
    The first day of the fiscal year for variant TX (24periods) in company code in Asset Accounting differs from the first day of the fiscal year for variant  D1(12 periods) in General Ledger Accounting.
    However, both variants must have the same start and end date! Only the periods within the fiscal year can be different in the two variants.
    Please guide me how to fix this error message.
    Thanks in advance
    Meenakshi.N
    Edited by: Meenakshi.Nakshatrula on May 3, 2010 5:45 AM

    Hi,
    Message no. AC531  says:                                                                               
    The first day of the fiscal year for variant K4 in company code in Asset     
    Accounting differs from the first day of the fiscal year for variant NL      
    in General Ledger Accounting.                                                                               
    However, both variants must have the same start and end date! Only the       
    periods within the fiscal year can be different in the two variants.         
    The error is described in note 844029 :-                                                                               
    In the NewGL in Asset Accounting, it is still not possible for               
    depreciation areas to have fiscal year variants with different start and     
    finish dates. If you try to assign a fiscal year variant to an area,         
    whereby the fiscal year variant infringes this restriction, the system       
    issues error message AC 531.                                                 
    Regards Bernhard

Maybe you are looking for