How to change the status of a trip to open when it is rejected

Hi,
I have a requirement in travel management where when manager rejects a trip or if there is no response from manager , then the status of trip will be changed to " not modifiable". I want to change the status to open .
Any body could help me . I tried with BAPI_TRIP_CHANGE_STATUS , but it is not working .
Thanks and Regards
ravi

HI Ravi,
Did you use BAPI_TRANSACTION_COMMIT after calling BAPI_TRIP_CHANGE_STATUS. If you didn't use then the data will not get updated to the database.
It is mandatory that we call BAPI_TRANSACTION_COMMIT after every BAPI call to have the changes reflected in the database.
Try it and then let me know whether it worked or not. I'll try to solve.
Reward if useful.
Thanks and Regards,
Maddineni Bharath.

Similar Messages

  • How to change the status of a production order

    Dear All,
    May i know how to change the status of a production order.I want to de-active the status like OPGN (Operation generated).This status is updated as there was no routing assigned to that particular production order during its creation
    Thanks and Regards,
    Varun Siddharth

    Dear,
    When you create a production order, an operation created by the system is generated automatically if no routing is used for the creation. As a result the order header receives the status HOGAN; the operation created automatically also has this status.
    If you delete the operation created automatically and then do not have the status HOGAN.
    To avoid this maintain the Routing for the material or delete the setting of default operation from OPJG.
    Regards,
    R.Brahmankar

  • How to change the Status CRTD of the Inspection Lot?

    Dear all.
    I want to Complete an Inspection Lot 10000000005 In the T-CODE qvm2.When I select the Inspection Lot 10000000005 and press F8 to Complete the Inspection,the SAP show an error message "Status check error".
    And the detail info show that the error was cause by the Status CRTD of the Inspection Lot.I check the Status of the Inspection Lot 10000000005 and found that it's Status was CRTD CHCR SPRQ.My question was how to change the Status CRTD of the Inspection Lot?
    Regard
    Yoda

    Hi
    CRTD means ...
    In material master QM vew-inspection setup->Inspect with task list tick is there.
    Now to change status,
    Go to Qp01>create a task list for material(If not exists)>remember date of creation of task list must be prior to date to creation of inspec lot
    If task list is created/exists>go to QA02.<inspection specification -->click on Inspec Spec
    and attach task list
    go to sample tab....click on sample.
    Now save it.
    Status will change to REL
    Regards
    Sujit

  • How to change the status in the table kssk

    Hi ,
    In document management system - for a doc type pdf, I am maintaing the class (cl_xxx) in img setting. some charateristics are assigned to that class (with entry required).
    My problem is While  creating the document (cv01n). I am  not assigning the value for that char ( i.e in addition data), eventhough it is mandatory .
    In the table kssk , For that particular document , status is set to 5 . how to change the status .
    note :
    In cv04n - if i search wrt to that charateristic in the classification tab. i am not  able to get the value.
    Please help me to solv the problem.
    Regards,
    Rani.

    hi you can do like this also if it is a test server..and y had the authoridation..
    togo the table -supposekkkk-execute-select a particular record--double click it ---then it will display it in the vertical line..
    then put /h in the tcode listbox and put enter--debugg it and change this    if code = 'SHOW'  as EDIT. execute it and change it and save it..
    regards,
    venkat.

  • How to change the status of Serial number

    Hi Experts,
    Would you please help in solving this problem.
    How to change the status of Serial number?
    I have material stock in a storage location: recieved from Intercompany through outbound delivery, when PGIed material document is created when I am checking the serial numbers of the recieved ones status of the serial numbers are ESTO, I want that into AVLB.
    How can we do that?
    Regards
    Sri

    Hi,
    Go to IQ02 on Header tool bar you will find edit(2nd option on header tool bar) => edit manually=> Click from Customer=> and then to Stock you will find the expected results...
    Generally Serial number Status use to change along with the movement of material linked with that serial number... So if you are changing serial number with manual trasaction then please remove all the details from IQ02 like plant storage location Batch and master batch so that i will not provide you error while doing next transactions.
    Regards,
    Ninad Kshirsagar

  • How to change the status of updated record?

    Hi All,
    how to change the status of updated record?
    new record should be active version(X) and old version will be deleted.
    Plz suggest..
    Thanks in advance...

    Steve,
    In the actual question, you mentioned that the old record needs to be deleted and hence the solution provided.
    Now, you are talking about field. May I know which field are you talking about??
    Jst get in to ABAP Editor and try debugging the code with the solution provided and let us know if that is working fine or not.
    Also, I recommend you to take a look at the transaction ABAPDOCU. There you wil find hell lot of examples explaining all the scenarios. You will get a good idea .
    Please check that and try to implement it yourself. You will be able to make it after doing mistakes.
    If you stuck up again after many attempts, paste your code here. We will help you out
    Hope you got my concern.
    Thanks,
    Babu Kilari

  • How to change the status of IDOCS from 29 status to 53

    Guys
    how to change the status of IDOCS from 29 status to 53
    Thanks in advance

    Hi Krishna
    IDOC_STATUS_CONVERT Use this FM and reward me

  • How to change the status of test cases in Test Plan from Design to Ready using Excel VBA

    HI,
    How to change the status of test cases in Test Plan from Design to Ready using Excel VBA

    Thanks Florin,
    Your piece of code has worked alot, and it was very helpful in changing the Status of the Workitem to "READY" for all the Users fo the workitem.
    Points have been rewarded for your help.
    Process: We have acheived this using the "Work Item Exits", Usng "AFTER_EXECUTION" Method.
    Note: The Exit will be executed if "exit_cancelled"  statement is present/used in the work item method. if not it is not taking to the exit code. I'm unable to find the reason for it. Florin can u please explain this point.
    Please check the link for adding the code in Work Item Exits.
    http://wiki.sdn.sap.com/wiki/display/ABAP/ProgramExitsIn+Workflow
    Please find the Code:
    method IF_SWF_IFS_WORKITEM_EXIT~EVENT_RAISED.
    Get the context of the workitem
      me->wi_context = im_workitem_context.
    After execution of the workitem call the method AFTER_EXECUTION
      if im_event_name eq swrco_event_after_execution.
        me->after_execution( ).
      endif.
    endmethod.
    METHOD AFTER_EXECUTION.
    This method acts as the Event Handler for SWRCO_EVENT_AFTER_EXECUTION
      DATA: LCL_L_WID TYPE SWW_WIID,
            L_STATUS TYPE SWR_WISTAT-STATUS,
            L_NEW_STATUS  TYPE SWR_WISTAT,
            L_SWR_MESSAG  TYPE STANDARD TABLE OF SWR_MESSAG,
            L_SWR_MSTRUC  TYPE STANDARD TABLE OF SWR_MSTRUC.
    Get work item
      CALL METHOD WI_CONTEXT->GET_WORKITEM_ID
        RECEIVING
          RE_WORKITEM = LCL_L_WID.
      L_STATUS = 'READY'.
      CALL FUNCTION 'SAP_WAPI_SET_WORKITEM_STATUS'
        EXPORTING
          WORKITEM_ID    = LCL_L_WID
          STATUS         = L_STATUS
          USER           = SY-UNAME
          LANGUAGE       = SY-LANGU
          DO_COMMIT      = 'X'
        IMPORTING
          NEW_STATUS     = L_NEW_STATUS
         RETURN_CODE    = SY-SUBRC
        TABLES
          MESSAGE_LINES  = L_SWR_MESSAG
          MESSAGE_STRUCT = L_SWR_MSTRUC.
      IF SY-SUBRC EQ 0.
      ENDIF.
    ENDMETHOD.
    Thank You Once Again,
    Ajay Kumar Chippa

  • Hi, I recently changed my username for my iTunes/iCloud account. Can anyone tell me how i change the username on my iCloud iPad? When I go onto setting to change it it keeps the username grey so I can't even select it?

    Hi, I recently changed my username for my iTunes/iCloud account. Can anyone tell me how i change the username on my iCloud iPad? When I go onto setting to change it it keeps the username grey so I can't even select it?

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > iTunes & App store, scroll down and tap your ID)
    If you are using iMessages or FaceTime, you will also need to log out and into your ID there too.

  • How to change the node's icon in a tree when the node collapse or expand?

    how to change the node's icon in a tree when the node collapse or expand?

    Hi,
    You may need to use custom skin for that.
    -Arun

  • How to change the status of clinical order header

    Hi all,
    I need to change the status (N1CORDER-WLSTA) of the clinical order header. I have found the way to change the status of the items and it works, but i dont know how to change the header status.
    Now, for the items i do:
    1- Create an object type cl_ishmed_prereg
    2- Load the item (n1vkg-vkgid)
    3- Use set_status method
    4- Save the object
    5- Commit work
    So, do you know how i can change the status of the header? Im looking for other methods but...
    Thanks,
    Manel

    In order to change the clinic order header status u have to:
    1- Obtain the instance from item instance:
        CALL METHOD lv_prereg->get_corder
          IMPORTING
            er_corder = lv_corder
            e_rc      = rc.
    2- Create a var type rn1_corder_x
    3- Modify:
    is_n1corder_x-wlsta = 'RE'. " new status
    is_n1corder_x-wlsta_x = 'X'.
    4- Use change mehod:
        CALL METHOD lv_corder->change
          EXPORTING
            is_corder_x     = is_n1corder_x
          IMPORTING
            e_rc            = rc
          CHANGING
            cr_errorhandler = cl_error.
    5- Save:
    CALL METHOD lv_corder->if_ish_objectbase~save
    6- Commit work
    Regards,
    Manel

  • How to change the status of an incident, after it is "Confirmed"

    Hi, I'm new to ITSM and the client asking me how he can change the status of an incident, after he change it to "Confirmed".  Is there a way to change the status of an incident after it is set to "Confirmed"?  Or can I change the configuration of the Status field to allow that change?
    Thank you

    hi
    I dont think, you can reopen the confirmed ticket by standard, but please try with the report CRM_SOCM_SERVICE_REPORT.
    if not try with the status profile customization, remove the FINI settings from the confrimed status  also change the highest and low values also accordingly.
    please try.
    Thanks
    Jansi

  • How to change the status value?

    Hi Experts
    We landed in the starnge situation. We defined a multi task EE Monitor activity to change the status attribute to past due when particular internal event code is overdue. We forgot to assign the correct EE monitor Activity to EE Profile and the report /SAPTRX/EE_MONITOR converted the internal event code to overdue but did not change the status to past due for lakhs of records.
    Now we assigned the correct EE Monitor activity to the EE profile. How do we change the status to past due for already processed records? Is there any standard program available for this purpose or shall we need to write any custom program for it?
    Your quick response is much appreciated.
    Thanks
    Ravi

    Hi Ravi,
    the coding in the EE Mon activity SET_STATUS can be used as template. The method is unfortunately protected.
    It depends if you use EE History (Setting in EH Type Customizing). If yes it is importatnt to update also EE History table and the counter in the EH header for the History.
    Maybe the easiest way would be to send with a report messages to the EH and do the update in the rule set with the standard activity.
    You could use a new event code and react on it in the rule set.
    Best regards,
    Steffen

  • How to change the status in emigall

    Hi All,
       Can any body please let me know how to change the blocking status of each object to '000' instead of the default '100'(Blocked) in emigall.
    Thanks

    Hi,
    a blocking status ending with 1, 2 or 3 does not allow further changes on object level. In order to 'unblock' the object you must execute the following steps (let's assume you change the blocking status of migration object PARTNER):
    (1) copy the migration object PARTNER either into the same migration company (with a new name) or into another migration company in order not to loose the customizing of the blocked migrationobject PARTNER. The name of the copied migration object might be PART_TEMP. A copy allways sets the blocking status of the copied migration object to 100. You can now continue working with the copied migration object for follow the steps (2) - (4) to have a migration object back with the original name.
    (2) Delete the migration object PARTNER with the blocking status 002. For this select Utilities -> Delete MigObjects and delete the migration object PARTNER
    (3) copy the copied migration object PART_TEMP back with the name of your original migration object PARTNER.
    (4) Delete the migration object PART_TEMP.
    Alternatively, if you changed the blocking status accidentially in the development system, you may change the field TEMOBS-SPERRSTATUS back to 000 with a direct update.
    Kind regards,
    Fritz
    PS: There will be a correction soon warning the user with a confirmation popup.

  • How to change the status of a process chain

    Hi,
    I went through Siegfried's blog and knew how to restart a process chain at a failed step which doesn't have "Repeat" option.
    But is there any other function module through which we can change the "Actual State" of the process chain, in siggi's method we can change only the "i_state" of a particular process but not the "Actual State"(refer to RSPCPROCESSLOG table) of the process chain.
    Please do give your suggestions if there is any way to change the "Actual State" of a process chain.
    Regards

    hey Vamshi,
    We can directly change the status of the process chain.
    there is a specific way to do it, you can go in se38 and change the status from one to another ...go to se38 .... type....rspcprocessmonitor*.........presss f4...
    you will get a standard program ..
    now go to this program ...and give the set of inputs .... like PID and all from RSPCPROCESSLOG table ..
    and in the state give the state you want and press f8.
    this should work.
    Assign points if it answers your queries.
    Thanks,
    Dennis

Maybe you are looking for