Deletion HR - Infotype records using BAPI

Hi experts,
I sucessfully added infotype crecords in HR-ABAP using function module HR_INFOTYPE_OPERATION.   For deleting the same record using the same function module (operation = 'DEL'), i got error message as <b>009No data stored for 0008 in the selected period</b>.  What is the problem...?
Can any one pls solve it.
<b><REMOVED BY MODERATOR></b>
Thank u.
Regards,
Murugan Arumugam
Message was edited by:
        Alvaro Tejada Galindo

HI Murugan,
        Following is the sample code for deletion of a record using the FM...'HR_INFOTYPE_OPERATION'
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
       EXPORTING
           INFTY            = '4002'
           NUMBER           = RECORD_4002-PERNR
           SUBTYPE          = RECORD_4002-SUBTY
           OBJECTID         = RECORD_4002-OBJPS
           LOCKINDICATOR    = RECORD_4002-SPRPS
           VALIDITYEND      = WENDDA
           VALIDITYBEGIN    = WBEGDA
           RECORDNUMBER     = RECORD_4002-SEQNR
           RECORD           = RECORD_4002
           OPERATION        = 'DEL'
           TCLAS            = 'B'
           DIALOG_MODE      = '0'
      IMPORTING
           RETURN           = RETLIST.
Regards,
Ranganathan.

Similar Messages

  • Change Scheduling Agreement and Info Record using Bapi

    Hi Experts,
    Can anybody say how to change the Scheduling agreement and Info Record using Bapi.
    I use BAPI_AGREEMENT_MAINTAIN to change Scheduling Agreement .
    But it does not changing Scheduling lines.

    Hi,
    Please find the below link check the setting are correct or not
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02cb00a-bfb4-2c10-98aa-e33e7f64ba28?quicklink=index&overridelayout=true
    Reagrds,
    Pramod

  • Read infotype records using the classes

    Hi All,
    In my system i can see many classes with cl_hrpa*
    Here i want to read a infotype record using these classes. I want finally the data in PA0008 or a record in P0008 format.
    i tried using the various classes like
    cl_hrpa_masterdata_factory
    if_hrpa_infty_bl
    hrpad_infty_container_tab
    I tried using the sevaral calsses passing one class type to other. finally i get is the class cl_hrpa_infotype_0008_in.
    can any one suggest how i should be reading the data for any infotype.
    Pls do not suggest the function module HR_READ_INFOTYPE. I want to use these classes to read the data.
    Pls suggest
    Regards,
    Umesh Chaudhari.

    Hi,
    Did you get any replies to this or have you found an answer on your own?
    Regards,
    LC

  • Delete InfoType records using Idoc HRMD_A05?

    Hello,
    We have some unwanted 167 and 168 infotype records in our database that we would like to clean up.  Can we use HRMD_A05 to delete them?  I can't seem to find a delete function in the Idoc fields...I would truthfully like to use the LSMW, anyone know a way other than a simple recording?
    Thanks.
    --Jack

    Hi Eswar
    Thanks for the reply. I could not get what PFAL is. Actually, I am using IDocs to migrate data through LSMW. And I want the new HR objects to be numbered internally. However, if I leave the object ID field null and use 'Insert' for operation (OPERA) it gives error and does not post the application document (IDoc). It also gives error for operation 'Update'.
    I was expecting it would generate new numbers but it did not. And what I had in the IDoc documentation does not work.
    So do you or anybody has experienced such an issue before?
    Thanks

  • 4-eye principle for Deletion of Infotype records

    Hello,
    Can anyone let me know if we can implement the 4-eye principle to delete Infotype records ?
    Regards
    Jai

    Hi,
    Yes possible through Asymmentric authorization principle.
    Good Luck.
    Om.

  • 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

  • Uploading the pricing master records using bapi

    Hi I have to transfer the pricing database from legacy to SAP using bapi but I am not able to find a bapi for that. Pls guide.

    Check BAPI: BAPI_PRICES_CONDITIONS. You can also find sample codes in SDN for the BAPI.
    Check this link [Example for Price Conditions|Re: Sample code for  BAPI_PRICES_CONDITIONS]
    Regards
    Eswar
    Edited by: Eswar Rao  Boddeti on Sep 22, 2008 3:52 PM

  • Updating Loading Group on plant record using BAPI

    I am using BAPI to extend to a plant
    BAPI_MATERIAL_SAVEDATA
    I am passing                     
      plantdata-loadinggrp   = wa_plantdata-loadinggrp.
      plantdatax-loadinggrp  = 'X'.
      plantdata-plant        = p_p_plant.
      plantdatax-plant       = p_p_plant.
    At the time of the BAPI call the data is in the table
    All other plant data gets created except for this loading group field (Sales/general plant)  and only when I am usign a specific plant.   It works fine for other plants
    Anybody know any config or setting related to this ?

    solved it

  • Sending mail of infotype record using dynamic actions

    Hi
    How can we send mail of info type record using dynamic actions if possible give me one example
    Mail to me: [email protected]
    Thanks & Regards
    santhosh reddy

    Hi..
    Already Standard Entries exists for the same.. pls check T588Z

  • How can I  delete and update records using where conditions?

    I want to delete and update the coherence records with some conditions, I describe it to use SQL as follows:
    delete from "contacts" where getStreet() = "dsada";
    update contacts set getStreet() = "dddd" where getCity() = "ssss";
    Can I use the filter like query to achieve this requirement as follows:
    ValueExtractor::View vHomeStateExtractor = ChainedExtractor::create(
    ChainedExtractor::createExtractors("getHomeAddress.getState"));
    Object::View voStateName = String::create("MA");
    Set::View setResults = hCache->entrySet(
    EqualsFilter::create(vHomeStateExtractor, voStateName));
    I know I can use get and put to achieve this requirement , but it Requires a two-interaction between the client and coherence server. Does it have And another way?
    Thanks very much, and please Forgive my English is not very good.

    Hi,
    You have a couple of options for updating or deleting using a Filter.
    For deleting you can use an Entry Processor and the cache invokeAll method. Using "out of the box" Coherence you can use the ConditionalRemove entry processor. I'm a Java person so the C++ below might not be exactly right but you should get the idea.
    ValueExtractor::View vHomeStateExtractor = ChainedExtractor::create(
    ChainedExtractor::createExtractors("getHomeAddress.getState"));
    Object::View voStateName = String::create("MA");
    hCache->invokeAll(EqualsFilter::create(vHomeStateExtractor, voStateName),
    ConditionalRemove::create(AlwaysFilter.getInstance());For update you would either need to write custom Entry Processor implementations that perform the updates you require or you can use out of the box POF or Reflection ValueUpdaters that update specific fields of the entries in the cache. These valueUpdaters would be wrapped in an UpdaterProcessor so the call would be very similar to the code above.
    JK

  • Why we can't use provide to retrieve Time Infotypes records?

    Hi experts,
    I read some meterials that in HR report we can not use provide statement in LDB to fetch time infotypes records,
    use Loop instead,can anybody explain why and give a example.
    Thanks.

    Hi
    For time infotype records use RP_READ_ALL_TIME_ITY
    (RP_READ_ALL_TIME_ITY beg end)
       DATA: BEGDA LIKE P2001-BEGDA, ENDDA LIKE P2001-ENDDA.
       INFOTYPES:  0000, 0001, 0002, ...
                         2001 MODE N, 2002 MODE N, ...
         GET PERNR.
       BEGDA = '19900101'. ENDDA = '19900131'.
       RP_READ_ALL_TIME_ITY BEGDA ENDDA.
       IF PNP-SW-AUTH-SKIPPED-RECORD NE '0'.
          WRITE: / 'Authorization for time data missing'.
          WRITE: / 'for personnel number', PERNR-PERNR. REJECT.
       ENDIF.

  • Error when creating a employee record with Bapi BAPI_HRMASTER_SAVE_REPL_MUL

    Hi All,
    I am trying to create employee record using BAPI 'BAPI_HRMASTER_SAVE_REPL_MULT',
    I am getting bellow error messages from BAPI.
    Object 01,P,00026746 does not exist: infotype 0006 cannot be created
    Object 01,P,00026746 does not exist: infotype 0017 cannot be created
    Object 01,P,00026746 does not exist: infotype 0105 cannot be created
    Does this require any prior configuration?
    Please advice.

    hi,
    try to execute in foreground then you wil come to know where the error is.
    thanks,
    vasu.

  • Attach document from application server using BAPI

    Hi,
    I am trying to attach files to Document Info Record using BAPI
    BAPI_DOCUMENT_CHECKIN_REPLACE2. When i execute the z program that calls this BAPI on
    presentation server in foreground by giving path of documents which are locating on local pc it works
    fine and check in the file in document infor record
    But when i run program in background and file path is of application server.It gives error that
    Program no longer started via RFC. No return possible.
    I want to know the cause of this error.
    Please help.

    i think u need to pass Storage category  = FILESYSTEM.
    check the documentation of data element -
    DE CV_STORAGE_CAT
    but i'm not 100% sure abt it.
    regards
    Prabhu

  • Deleting a condition record

    hi guys,
    i want to delete a condition record using VK12, am selecting the row and pressing the icon 'Delete Row' but its not working out, and the row still remains the same(the condition record not getting deleted). More over, the 'Deletion ID' is selected in the condition record.
    how do i delete the condition record in this case. this is very urgent. plz send the replies ASAP.
    thanks in advance.
    kumar.

    Dear Kumar,
    There are two possible procedures for deleting conditions. There is either immediate deletion or a deletion flag for archiving at a later date. You enter the type of deletion that should be proposed during condition maintenance into Customizing for a condition type, . When deleting immediately, a dialog box can be created which indicates immediate deletion but offers a deletion flag as an
    alternative.
    <b>Deletion Flag</b>
    You can mark condition records for deletion. These are then no longer taken into consideration during automatic pricing. However they remain as condition records in the system until the next archiving update. This means you can reset a deletion and reactivate a condition record.
    <b>Physical Deletion</b>
    If you use physical deletion, the condition record disappears immediately. It is no longer available during condition record maintenance or pricing. This deletion cannot be reset once it has been carried out. You have to recreate the condition record if you need it again. To be more exact, the reference to the condition record for pricing and condition record maintenance is deleted completely with physical deletion. The actual condition record must be kept for old documents.
    Recommendation:
    SAP recommends the physical deletion procedure. The deletion flag improves upwards compatibility in the system.
    A pricing error can occur when using hierarchical accesses in combination with the deletion indicator (See the hierarchical access documentation in the SAP library).
    The deletion flag used to be used as a replacement for a missing release procedure. This is no longer necessary, as there is now a separate release procedure available (see the release procedure in the SAP library).
    Physical deletion can be included using the change documents – for example deletions in a specific period (Report RV16ACHD).
    Reward points if this is helpful.
    Regards,
    Naveen.

  • HR_INFOTYPE_OPERATION - Need help w/Deleting infotype records

    Hello all,
    We have an issue where infotype records got created where the ENDDA is less than the BEGDA (ENDDA = 06/30/2006 and BEGDA = 07/01/2006).  We are trying to delete these using HR_INFOTYPE_OPERATION but we are getting message PG-009 (No data stored for 9001 in the selected period) returned in our tests. 
    BTW, 9001 is one of our customer infotypes. 
    I know I can remove these records using a direct SQL statement, but I would prefer to remove them more gracefully if possible.  Is there a way around this error?  I actually think function module HR_READ_INFOTYPE is raising the error.
    Any suggestions would be greatly appreciated.
    Thanks,
    Al

    You can check report RHRHDC00, I think it can help you with custom infotype too.
    Otherwise you might need to delete the records forcefully using DELETE statement, which is not suggested since all the  standard FM consider BEGDA and ENDDA and in your case they will always return blank.
    You can also check FM -
    HR_ECM_DELETE_INFOTYPE
    Regards,
    Amit
    Reward all helpful replies.

Maybe you are looking for

  • 865pe Neo2-V problem. need some help, please

    i clocked my CPU [email protected](box culer-40C idle) and i believe that i can raise FSB more but i have problem.my Kingmax(512ddr400) goes to 505 MHz, and i can't stop her. i can't put FSB/DRAM 1:1. it is allways 4:5. My old Transcend too. So it is

  • HT1766 I update my iPhone to ios6 and now it won't download anything why

    I update to the ios6 and now I can't download anything why

  • Saving file to database

    Hello i am designing a website for my company  so my clients can easily view project reports and progress. i want to create a database that will allow me to upload updated drawing files and provide a download link and description so my clients can do

  • Problem with decimal numbers..

    hi i posted the other day with a problem I had. I thought it was all sorted but I have just realised that there is another problem. I have the following code for an applet: import java.applet.*; import java.awt.*; import java.awt.event.*; public clas

  • WEP or WPA security

    D-Link DI-624 offers either mode. The WEP mode is easier to understand and relatively painless for setting up under 64-bit passwords. Do 128-bit passwords offer a much greater level of security? (The network is home based, in a small town.) Should I