Function to change CATS status to released for approval

I have a requirement where I need to change in batch cats records from status 10 to status 20 'released for approval'
I can't find how to change the status in  BAPI_CATIMESHEETMGR_CHANGE
and another function CATS_APPROVAL only works for approving or rejection of records.
is there another bapi or function which I can use to change the record status of cats ?
or the other way around is also acceptable that I can set the status back from '20' released for approval to '10' locked.
kind regards
arthur de smidt

when debugging cat2 I found a form which handles the release for approval. but I'm nog sure if there is more to it. for so far I can see it updates the status directly and that's it. when I go further on I come in the screenpainter prog. any clues if it's normal to use this code for my own abap ??
further on I don't understand the function of ASSIGN_FIELDS_IN_ICATSD ?
can somebody explain this one ??
include : LCATSF33
      FORM FREE_ONE_CELL                                            *
      free one cell on dynp                                         *
FORM FREE_ONE_CELL USING U_NUMBER
                         U_WORKDATE LIKE CATSDB-WORKDATE.
assign the correct fields
  PERFORM ASSIGN_FIELDS_IN_ICATSD USING U_NUMBER.
  IF <STATUS> = STATUS-LOCK OR <STATUS> = STATUS-REJE.
count records
    TOTAL_RECORDS = TOTAL_RECORDS + 1.
date in the future ?
    IF TCATS-FUTURE IS INITIAL.
      IF U_WORKDATE > SY-DATLO.
        FUTURE_RECORDS = FUTURE_RECORDS + 1.
        MESSAGE S024 WITH FUTURE_RECORDS TOTAL_RECORDS.
        EXIT.
      ENDIF.
    ENDIF.
    READ TABLE ICATSDB WITH KEY MANDT = SY-MANDT
                                WORKDATE = U_WORKDATE
                                COUNTER = <COUNTER>
                                BINARY SEARCH.
    IF SY-SUBRC = 0.
      ICATSDB-STATUS = STATUS-FREE.
      IF ICATSDB-ACTION IS INITIAL.
        ICATSDB-ACTION = ACTION-UPDATE.
      ENDIF.
      MODIFY ICATSDB INDEX SY-TABIX.
      <STATUS> = STATUS-FREE.
set global marker that data have been unlocked
      FREE_DATA = YX.
    ELSE.
      MESSAGE X030.
    ENDIF.
  ENDIF.
ENDFORM.
kind regards
arthur

Similar Messages

  • Header status say "waiting for approval".

    Hello Team,
    We have contract with 10 line items. All line items are approved. ie the status say approval finished.
    However in the header status say "waiting for approval".
    We have approval at header level.
    System details we have SRM 7.01 ie Ehp 1.
    Thanks in advance.
    With Regards
    Divakar V

    Hi,
    Check in IMG >>>> "Check Event Type Linkage" check whether "linkage enabled" got unchecked or not.
    Ganapathi

  • How to change Contract Status to Release from Held

    Hello SRM Guru,
    We are on SRM 5.0. In our production system we have some contract (GOA) which were not automatically trasnferring to backend when we release it (After approval). They are in held status only so we transfer them by FM BBP_pd_CTR_Transfer. But in SRM still the GOA status is held.    Could you please suggets how (any table) can I schange contract (GOA) status from held to release manully.
    Thanks,

    Hi
    You can manually change the status of contract from held to released status using FM 'CRM_STATUS_UPDATE'. Enter your status parameters in structure JEST_INS and execute the FM.
    Regards,
    Sanjeev

  • BOM STATUS only released for costing

    Dear gurus ,
    i need create a BOM STATUS only for CK11N ( COSTING) but when a created the new BOM STATUS whit only the flag "released for costing" but when i run the CK11N
    the system don't find the bom .
    Are there the other customzing setting?
    Thanks a lot
    Daniele Pistilli
    PP TEAM

    HI
    Check with BOM usage 6 for your requirement.also check in OKKN for your costing variant and qty structure  control> BOM application> selection Id for your BOM
    Regards
    Anupam Sharma

  • Change in Work item Text for Approval Workflow WS14000133

    Hi,
    I need to change the work item text for Shopping Cart Approval Workflow WS14000133.
    I have created an Attribute in Business Object BUS2121 and called the same attribute in work item text.
    In PFTC -> Redefine Work item text - > and i have defined the work item text as well called the attribute from the container.
    what  the problem over here is - when I am passing the attribute in the work item text in the task, I am unable to see the work item text with the Dynamic Attribute but I am able to see the work item alone (not with the Dynamic attribut)
    But when i debug the workflow from SWI1 then i can see the dynamic attribute in the Container of the workflow but nt in the approver's inbox in portal..
    Can you please tell me - that why is this a strange behaviour that i can see the Dynamic attributed created initially in the workflow container of the Business Object but nt in the Approvers inbox either in Backend nor in the front end...
    Thanks,

    Hi,
    Maybe this SAP note/KBA will help :
    1470761 - How to change the text of the SRM approval links in inbox or UWL
    Kind regards,
    Siobhan

  • Shopping cart not editable when status is "awating for approval"

    Hi SRM Experts,
    All the shopping carts which are "awaiting for approval" can be editable as per SRM. I am not able to edit any shopping cart which is awaiting for approval.
    Please note that there are no follow on documents have been created.
    Is there any settings we need to do for eanbling the change icon in shopping cart.
    Thanks
    Ravi

    Hi Kathirevel,
    Still i am not able to edit the shoping cart. Even i am not able to see change button whenshopping cart statu is " awaiting approval".
    I have done the same steps which you have explained in above thread.
    Please suggest me
    Thanks
    Ravi

  • Absnce status is pending for approval, but supervisor dont get request

    Hi experts
    If i apply for absence and sumbit it, dann staus = PEnding for Approval, but my supervisor didn't get my request to approve my holidy request.
    Question: Why he /sehe will not get any entry in his page (Action pending for approval).
    Any suggestion????.
    Thx

    Hi Mehdi,
    I think in this case the approver to whom you are expecting approval request will go, its not going to that person, instead of that it is going to someone else.
    To find from backend to whom it is going
    Give this query
    select * from HR_API_TRANSACTIONS
    find out the item_key (Make sure item key is of your transaction only)
    select * from WF_ACTIVITY_STATUSES where item_key = (as got from above statement)
    now under this find the username that is specified against 'NOTIFIED'..
    This is the username with whom the notification is pending,
    Approve from this user, transaction will proceed further.
    Rupali

  • Change message status after release purchase order

    Hi,
    I'm a newbie in MM...
    When a purchase order is created, the message status is not processed (yellow light) until the purchase order is released. Then the message is printed and the status changes to green light.
    As far as I see, I can't find in the spro where is this customizing set or if there is a user-exit or badi for changing the message status depending on the release indicator.
    Thanks in advance!
    Jen

    Hi Jen,
    Complete the condition record, for example, like this:
    - Transaction: MN04
    - Output Type: NEU
    - Choose third option: Purchasing Output Determination Document Type
    - Document Type: NB
    - Function: VN (Vendor)
    - Medium: 1 (Print output)
    - Date/Time: 4 (Send immediately (when saving the application))
    Select the line and press button "Communication". Complete the output device and mark the option "Print immediately"
    So, when the PO is created the system generates the message with yellow status. Then, when the PO is released, the message status will be green
    Regards,
    Fernando

  • CATS - Status after changing the approves times

    Hi gurus,
    Scenario -
    1) Employee enters time through ESS   with profile lets say ZESS
    2) MAnager apporves the times
    3) HR administrator can change the apporved times, if they want to lets say with another profile ZADM
    What happens:
    1) What would be the the statf us of the records changed by Time administrator after approval by Manager. Would it be in process or approved.
    CAC2 - I did not find any settings under the cats profile definition where we can determine this behaviour
    Requirement
    we want the status to go to In process so that manager approves ti again
    Any ideas if ther eis any setting to do this.
    regards
    Raj

    Hi,
    The status of the records changed after approval becomes 50 "changed after approval". you can view the records and its status in table CATSDB. Goto SE16 and give CATSDB.
    For those records which have been changed, system will automatically create new records in CATSDB table with status 20 "released for approval".
    Now, these records will be picked up for approval by the manager.
    The connection between the old and the new records is the reference counter field in CATSDB. Check the fields "counter" and "reference counter" for the connection.
    I hope this helps.
    Thanks
    Manoj Krishna

  • Cancelling a absence request haas not changed the status by the user

    Hi experts,
    An absence request has been cancelled,. Looking in Status Monitor, i will see that the reuest has been cancelled, but the user see the status stay on "Pendig For Approval". Normally the user will see the Absence Category set to Cancelled, but not "Pending For Approval". The reason is unknown to me. Thus i need your support.
    Thanks in advance
    Mehdi

    Just to confirm my understanding, are you saying that:
    1) Employee requested an Absence through SSHR Leave of Absence
    2) An administrator queried the absence in the Workflow Status Monitor and Cancelled it
    3) Now that absence is showing to the Employee as 'Pending Approval'
    Is that right? You mention 'Normally the user will see...'. When you say 'normally' what is the behaviour you expect?
    If I've understood you correct this is the behaviour I would expect: cancelling a workflow does not change the status from 'Pending For Approval' and it definitely does not change the Absence Category on the absence. Cancelling an absence via this route isn't really recommended because - as you are seeing - it gets stuck. It's best to get the approver to reject the absence instead.
    To remove this cancelled absence, take a look at these Oracle Support articles:
    Unable To Remove Cancelled Workflow Item Related To LOA Transaction [ID 1123714.1]
    How to Purge Obsolete Workflow Runtime Data (FNDWFPR) for HR Workflow Completed Processes [ID 237564.1]
    How to Run the HR Workflow Cleanup Process (HRWFDFCT) [ID 237524.1]

  • Change the status of a Support Desk Message in Sol. Man.

    Hello,
    On the Solution manager system I have configured the service desk functionality. So end users are able to create support messages from the satellite systems as well on the solution manager system. For the confirmation of a proposed solution I want to use a workflow which asks the creator if the proposed solution is correct yes or no.
    Is there a BAPI or function which change the status of the support desk message? If so how does this BAPI or function work. An example would be great.
    Kind regards,
    Richard Meijn

    decveloped the custom rfc

  • Can we manually change the status of request which is already approved?

    Hi,
    we are using standard Record Working Time and approal  ESS MSS Application.
    can we change the status of request which is approved     to      not approved or released for approval?
    (in our case,  request released for approval is displayed on weekely basis in approval page and
    on review page (approval) we have number of hours recorded for particular day in that week is displayed.)
    the problem we are facing is,
    user submitted  data for a week and manager approved it.
    but now we have to change the data entered for that week, only for a particular day and submit it again for approval.
    we have changed the data for that particular day  using HR-TSADMN. and submited it again for apparoval.
    but this time only the record (particular day) which has been changed is shown in the approval review page of approval iview MSS.
    but our client needs data of all the days in that week displayed.
    can we get the approved + edited data for the week displayed on the review page of approval??
    if can't, then if we change the status of the approved data for that particular week then the user can again submit the data for that week and data of all the days in that week will be displayed on the review page for approval.
    plz help me.
    Edited by: madhu1011 on Nov 30, 2011 2:23 PM

    to change the status by user, he can modify the hours in the application and resubmit
    For administrator purposes, you should cats_appr_lite, you can reject the all time and do it,
    Do not make any changes directly to CATSDB< it might cause inconsistency
    So better use standard transaction like cats_appr_lite or cats_da

  • Need to capture a Status date and keep it unchanged if I change the status

    Hi,
    I have a task list with multiple status like NOT STARTED, IN PROGRESS, WAITING FOR PROOF, WAITING ON SOMEONE ELSE, APPROVED, COMPLETED.
    Now, I wanted to capture the WAITING FOR PROOF date so that I can compare it with TASK DUE date and set if it is "On Due" or Over Due" so I used the following syntax:
    =IF(OR(Status="Waiting for proof",Status="Waiting on someone else"),DATE(YEAR(Modified),MONTH(Modified),DAY(Modified)))
    This works, but if I change the status from WAITING FOR PROOF to COMPLETED, the captured date is changed to "No" which I do not want to happen. I want to retain the same date captured even if I change the status.
    Many thanks,
    Vasanth

    
    Vasanth, your issue is because you are using the "modified" field whichchanges anytime you open the record. What you may need to add is a datefield that you control and will hold the date you which to compare against. You could initially capture the "created" date in that field then update it ONLY if specific field changes happen so you can change the Status field without disturbing your date comparison. This would require some calculated fields to update this date field only when it is necessary. Good luck!

  • After Rejected still Status 'Awaiting for approval'..

    Hello Friends,
      I am in SRM 5 and SP07..
      After SC has been rejected.. The status shows awaiting for approval but inside when i click on the item the status shows 'Rejected'.. And the workitem is not come to back to requestor inbox inside of that the next level approver pull out from the list and error message through as 'Approval step without ad-hoc capability.no preview possible'..
      I am using n-step Badi with WS14000133..
      and also i checked in SWI2_FREQ with TS10407972.. in the Agent 'No agent Available' but i can see the created_by cointainer has got filled with 'USJOHN'.
    please give your thoughts..
    Thanks,
    John.

    Hello,
    We had also faced this problem.
    You need to raise an OSS.
    but we were on 4.0.SP08
    surprised for 5.0SP07 this problem is continued
    you will get a note from SAP to apply
    the note which we got may not be applicable to you
    BR
    Dinesh
    <b>Reward if helps</b>

  • Timesheet pending for approval

    Hello Guys,
    I have a scenario wherein time entered will go either to Project Manager (Person responsible in WBS) or to Supervisor maintained in HR for approval.
    A person is assigned to an activity and he will book time against that activity and release for approval. It will go to either Project manager assigned in WBS element or if person responsible is not maintained in WBS element, it will go to Supervisor assigned in HR master data for approval.
    My question is, in which report/transaction I can see the time is pending with whom, Project Manger or Supervisor.
    Deepak

    Thanks Sanjeev.
    I checked in CAC1, where I have see if  user profile is enabled for this approval process?
    I have checked both CADO and CATS_DA reports.
    I think I am failing in telling my requirement, I want see with whom the time is pending with (User ID, Salary Code etc...) for approval. Is there any report?
    I can see the status of time sheet on both above reports but these reports does not show with whom these timesheet are pending for approval.
    Deepak

Maybe you are looking for