DELETE ASSIGNMENT...

Hi,
I have uploaded the Employee Assignment in test...
I want to delete those Employee Assignments....
I have used the API to delete the assignment but it is not deleting....
hr_assignment_api.delete_assignment (p_validate => FALSE,
p_effective_date => l_date_from,
p_datetrack_mode => 'DELETE',
p_assignment_id => l_assignment_id,
p_object_version_number => l_assignment_obj_ver_no,
p_effective_start_date => op_effective_start_date,
p_effective_end_date => op_effective_end_date,
p_loc_change_tax_issues => op_loc_change_tax_issues,
p_delete_asg_budgets => op_delete_asg_budgets,
p_org_now_no_manager_warning => op_org_now_no_manager_warning,
p_element_salary_warning => op_element_salary_warning,
p_element_entries_warning => op_element_entries_warning,
p_spp_warning => op_spp_warning,
p_cost_warning => op_cost_warning,
p_life_events_exists => op_life_events_exists,
p_cobra_coverage_elements => op_cobra_coverage_elements,
p_assgt_term_elements => op_assgt_term_elements);
How can I delete them?
Regards,
Waqas Hassan

Hello,
I solved this creating a new activity in the action box, assigning Business transaction "PMMC - Cancel sale order assignment" and leaving function module blank. It resets the system status "SOAS - Sales Order Assigned".
To do something better, it would be useful to write a custom FM that clears possible fields containing the relationship (such as QMEL-VBELN).
Best regards,
Andrea

Similar Messages

  • Function to Delete assignment of HU from outbound delivery in VL02n

    Hi,
    in my scenario the objective is delete assignment from the delivery and not cancel the HU.
    Using the functions
    HU_GET_HUS
    V51P_DELETE_RELATIONSHIP
    HU_POST
    I can delete assignmento of  the HU from the delivery but when I want to cancel the delivery into VL02n and return tells me that this is not possible because there are still  HU attributed to the delivery.
    There are alternatives to these functions, or to accidentally enter data into these in order to solve the problem?
    Thanks

    Hemanth,
    I recall that we used to update the HU status as well when we dissociated HU from delivery,  though can't remember the reason now.
    Pls check the VEKP-STATUS for HU after you have done with these 3 FM calls, I believe you have to update the status to 'BLANK' with the help of some FM, try it first if it works for you by direct updating it in table in Dev.
    BR,
    Diwakar

  • Delete assignment of HU from outbound delivery (VL02N) not working

    Hi All
    I have searched many threads to find the solution to be above problem but none of them was working for me, so posting the query again.
    I hava a dummy pick HU that I create for some purpose, finally i want to delete the assignment of the HU in the outbound delivery.(not to delete the HU completely). For me, the assignment of the HU vanishes from outbound delivery with 3 FM's. 'HU_GET_HUS' , 'V51P_DELETE_RELATIONSHIP' and 'HU_POST'.
    The problem is, when i PGI the delivery, the HU appears again in VL03N. I am not able to understand this strange behavior.
    I have tried all FM's like bapi_hu_delete etc, but they delete teh HU completely which is not my req. I heard abt this FM BAPI_HU_DELETE_FROM_DEL, but am workng in Ecc 5.0 and the FM doesnt exist.
    Pls help
    Thanks

    Hemanth,
    I recall that we used to update the HU status as well when we dissociated HU from delivery,  though can't remember the reason now.
    Pls check the VEKP-STATUS for HU after you have done with these 3 FM calls, I believe you have to update the status to 'BLANK' with the help of some FM, try it first if it works for you by direct updating it in table in Dev.
    BR,
    Diwakar

  • Delete Assignment of Sales Order to Service Notification

    Hi,
    I would like to delete the assignment of a sales order to a service notification (not delete the sales order itself). Can this be done without development?
    For the assignment of a service order to a service notification, this deletion is possible via the dropdown menu in the service notification.
    When I look at the business processes for system/user status, I do see a business process "Cancel sales order assignment". I tried to trigger it using a user status but that trick does not seem to work.
    With regards,
    Dan

    Hello,
    I solved this creating a new activity in the action box, assigning Business transaction "PMMC - Cancel sale order assignment" and leaving function module blank. It resets the system status "SOAS - Sales Order Assigned".
    To do something better, it would be useful to write a custom FM that clears possible fields containing the relationship (such as QMEL-VBELN).
    Best regards,
    Andrea

  • How to unassign(delete assign) Organization Unit to User?

    How to <b>Unassign Organization Unit to User</b>? Is there any furnction module to do this ? <b>What are the function modules to update org unit of the user & to update the attributes of the user</b>? Update org unit means we have to delete & recreate org unit or else directly to update org unit of User any function module existed? Please help me out asap. Thanks in advance.
    Thanks & Regards,
    Nagaraju Maddi

    Hi Cardo,
    I am developing a function module. In that one I have to write the code for the below case.
    Suppose user was assigned to 'XYZ' organization unit. Now I want to change his organization unit as 'ABC'. How to handle this programetically? Later I have to update that user attributes. I think now u understand my requirement. Please help me out.
    Regards,
    Nagaraju Maddi

  • Delete assigned material to an equipment

    Hi,
       we assigned a material and serial number to an equipment (material and serial number fileds on serial data tab of IE02 transaction). Now we want to delete this assignation because we made a mistake (it was not the right equipment). We tried to use the path menu "IE02 Transaction -> Edit -> Special serial number functions -> Change material number", but we only can change material number, it is not possible delete it.
       Does anyone know how can we delete it?
       Thanks in advance.

    Hi,
    I donu2019t think you can delete this assignment but you can create a dummy material with dummy serial number and change this information on the equipment; if the equipment is not in use you can archive the equipment
    Regards
    Carlos

  • Deleting Assignment Block dynamically as per requirement

    Hi All
    I  need to hide a assignment block (added it to overbiew page view area and component usage used) dynamically based on some condition.
    I have redefined DEATTACH_STATIC_OVW_VIESETS and added the view to deattach 
    , but still that view internal table contains the deleted view in REATTACH_OVW_VIEWSETS  so I have removed there also but still some where that internal table picking up that view and showing in screen.
    Can any body please guide me

    Hi,
    this may be useful:
    http://wiki.sdn.sap.com/wiki/display/CRM/Dynamcallyhidinganassignmentblock
    Regards
    Ajay

  • Delete assignment of work approval document to Maintenance Order

    Hello Experts,
    In wcm(enhanced model), I have created and assigned one work approval to Maintenance order.
    Now I am not able to delete the assignment to the maintenance order. I have checked both the cases when work approval is set as prepared and also when it is not set as prepared.
    Is there any possibility..
    Thanks

    Hello Experts,
    The requirement here is - whether we can extend the validity of a work approval document after setting to status 'Prepared'. WAP is assigned to a maintenance order.
    Thanks for your input on this.

  • Switch To Manaul Assignment / Delete Assignment in cProjects

    Hi Experts
    I'm looking for the function module that runs in the back end that switches the cProject to Manual assignment in the Accounting tab, and the function module that deletes the assignment in the back end.
    If it is a block of code, could you please then tell me where it sits?
    Thank you in advance
    Johan Kriek

    Hi,
    The ZUONR is filled by the Sort key in the account's master data. This sort key is defined in the OB16.
    And check the path below: Accounts Receivable and Accounts Payable -->  Customer Accounts -->  Line Items --> Display Line Items --> Display Line Items without ALV.
    JPA

  • [CS3] Observing assigned story deletion

    I'm attempting to monitor the deletion of assigned stories but am having trouble finding out which protocol and/or boss to monitor.
    I've created an observer on kDocBoss and from the spy & command logger in the debug build, it looks like I should be able to watch for kDeleteAssignedStoryCmdBoss in my Update() method. However, the observer isn't catching this change. I've had it attach on any protocol that I think might apply (e.g., IID_STORYLIST, IID_IHIERARCHY_DOCUMENT, IID_IASSIGNMENTMGR,...) but I haven't seen kDeleteAssigned[Story|Frame]CmdBoss on any of them.
    Does anyone know the right boss, protocol, and change to monitor for deleted assigned stories? More generally, is there a way to find more information about which bosses & protocols to observe for any given command?

    Please describe the situation in UI terms, e.g.
    In the assignment panel, select an assignment story and choose the "Unlink Content" menu.
    This will cause a
    kRemoveLinksCmdBoss, which sends a
    kBeforeRemoveLinksSignalResponderService signal before firing off a
    kRemoveAssignedStoryCmdBoss that notifies
    kDocBoss observers as change=kRemoveAssignedStoryCmdBoss, protocol = IID_IASSIGNMENTMGRCHANGED.
    In earlier versions (until CS2) there used to be a wildcard protocol, but unfortunately that has gone the way of optimizations, probably too many uses in production code slowing down the application.
    Dirk

  • Delete HU Assignment in VT02N is disabled

    Hi,
    We would like to use the Delete HU Assignment in the transaction VT02N, but the Delete Assignment button is in disabled mode.
    Please let me know how to enable this button in Processing of Handling Units for Shipment.
    Regards
    Venkat

    HI Venkat,
    Vt02n is a transaction for shipment change, enter shipment number, enter.
    Click on forth Icon from left like a box ( packaging)
    In that you will find assignment of HU , select the line and click on delete.
    Hope it will work
    Regards,
    Om

  • STO - Unpack HU assigned to an outbound delivery

    Hi SAP experts,
    I'm trying to unpack a HU assigned to an outbound delivery created for a STO.
    The material packed is WM managed.
    I would like to know what are the steps to perform ?
    - I've created and confirmed a TO from 916 to 923 with LT09 transaction
    - What are the nexte steps ?
    I've read what's mentioned in this link Repacking Unpacking of Handling unit material but I don't succeed with HU02 ? How am I suppose to use it to unpack ?
    Regards,
    Bahia
    Edited by: Bahia M. on Jul 26, 2011 10:31 AM

    Hi,
    In VL02N, go to Edit--->pack.
    Select the HU and  "delete assignement" and save the delivery.
    Unpacking is done.
    Later put the HU back in the original storage bin by creating the TO in LT09
    please let me know if this is not what you are looking for
    regards

  • HU assignment to Outbound Delivery

    Hi Experts,
    I am facing a problem with the assignment of HU to Outbound Deliveries.
    I'm working with WM module.
    When my HU get to my shipping area (standard 916 with dynamic storage bin), it is assigned to the Outbound Delivery.
    In my process, I delete the assignment to the outbound delivery in order to pack the belonging HUs (box) into another HU (palet).
    Then this palet is put in another Storage Type until we want to post the Goods Issue.
    The problem is that I cannot assign back the HU to the Outbound Delivery.
    The systems tells me that I need to do another TO for this Outbound Delivery.
    The Outbound Delivery does modify the picking quantity nor the picking status when we delete assignment, and I cannot create another TO.
    Does anyone has an idea on how I could manage to reassign the HU to the Outbound Delivery.
    Thanks in advance,
    Best Regards.
    Remi

    Hello,
    I did what you described me in your answer but my problem is still the same.
    When HU is in Storage Type 923 and Storage Bin PACK.BIN, when I try to do the HU02 transaction, the system tells me that it is impossible to repack, because my HU is already assigned to an Outbound Delivery.
    Message HUFUNCTIONS 191.
    If you have another idea or if I am missing something please tell me !
    Thanks very for your help.
    Regards,
    Remi

  • How to delete repair full request

    Hi,
    There was a delta load scheduled in background. By mistake before the delta load a repair full load with particular company code selection was run. So after the delta load, data is duplicated in the system. Now the request is compressed. I want to delete this repair full load request from the ODS. Please let me know step by step solution for this.
    Thanks.

    Hi,
    from where u r loading data into cube from ODS or R/3. if u run a repair full load then it will not check the data mart symbol although it is successfull so the next delta will brings data again, so u have to run init with out data transfer to make deltas 0 in source. this happened in ur case .
    but the cube is compressed so u cant delete data request based
    is there any PSA there if there is PSA then u can use REVERSE POSTING from PSA this will brings key figure values with - values so the records will be nullified
    in manage of the cube -> select that repair full request -> click on monitor button -> u can find an icon in the top(psa request symbol with red mark) click on that and execute.
    if there is no PSA then u have to do selective deletion.
    assign points if it helps,
    thanks,
    pavan.

  • Need to delete data from  FND_USER_RESP_GROUPS_DIRECT

    Dear All,
    Because of some Audit reasons I would like to delete assigned responsibility to a user (in user form which are end dated)
    I tried using FND_USER_RESP_GROUPS and FND_USER_RESP_GROUPS_DIRECT views to delete data but failed.
    Please suggest how to delete responsibility assigned to a user.
    Best Regards
    Amit

    934101 wrote:
    Dear All,
    Because of some Audit reasons I would like to delete assigned responsibility to a user (in user form which are end dated)
    I tried using FND_USER_RESP_GROUPS and FND_USER_RESP_GROUPS_DIRECT views to delete data but failed.
    Please suggest how to delete responsibility assigned to a user.
    Best Regards
    Amit
    We don't support deleting responsibilities and ending-date those responsibilities for those users would be sufficient.
    Thanks,
    Hussein

Maybe you are looking for