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

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

  • HT1040 I'm from united kingdom but iPhoto from america, how to change the country before i order them.

    I'm from united kingdom but iPhoto from america and postage, post code, how to change the country before i order them?...i need post code from untied kingdom, i don't know how to change from zip code(USA) into post code (UK)?

    iPhoto Menu -> Preferenes -> advanced
    Select the UK at the Print Store dropdown.

  • Unable to change the status of Internal order.......

    Hi,
        I am trying to change the status of Internal order from Technically completed to Release. But i am getting an error that ---Status REL is not allowed (order 4564564).
    We have created this order and till now zero value is used of actual budget means we not used even single amount till now for this order and we want to change the status of order from Tech to REL again.
    Is it possible.
    Please suggest.
    Regards,
    R.

    Hello,
    You can release the Order by the following method:
    Go to KO02
    Enter the Internal Order name
    Go to Control Data Tab
    There we have one screen area as Status: there we have one push button(like); click it and from there you can set the staus of the internal order to Released(or you can also change the current status of the internal order)
    Please let me know if you I am missing something in my reply.
    Thanks,
    Anurag Singh Rathore

  • How to change the look and feel for Heading of quick launch menu in project server 2010

    Hi
    can someone tell me how to change the look and feel of Header names in quick launch.
    I want the header to be displayed in Bold with Underline to it.
    could this be possible for just header in quick launch in project server 2010. 

    Hi Rohan
    It does not work this way. You have to use a content editor webpart.
    See references below that might help you starting with this customisation:
    Http://go4answers.webhost4life.com/Example/sharepoint-2010-quick-launch-look-feel-78379.aspx
    Http://m.sharepointpromag.com/sharepoint/four-ways-add-or-remove-quick-launch-menu-control
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Change the tax code at order header level that reflect the change in all it

    Dear consultant,
    Change the tax code at order header level that reflect the change in all items lines under this order
    Facts:
    Define tax code,
    Assign it to bill & ship to customers,
    I do all setup in oracle receivable guide for defining tax
    Examples: I navigate to order management to create order
    First I select the customer and order type after that I navigate to tab line
    I enter the item in the first line the tax code coming by default
    I enter the second items line also the tax code coming by default etc three ,four, five until line 40
    Now I want to change the tax code for all items but not by enter and change it in each line? No,
    I want the way that I change Tax Code at order header after that the change is reflect in all items line
    Business Impacts:
    Suppose I create order include 40 items , I want to change the tax code that coming by default , that require me to enter in each line to change tax cod 40 times ,this not logic and not acceptable from my customer

    Hi,
    The defaulting rules apply only for the first time when you are adding new lines on to the Sales Order. Respective field vaues will be defaulted from the SO header level.
    In case, if you want to update all the 40 lines for Tax Code in one shot, then please select all the lines on the sales order, try Mass Change.
    (Navigation: Tools->Mass Change).
    Regards,
    Hemanth

  • How can I change the status of refund order to complete from CRMD_ORDER?

    I can I manually (Force) change the status of a refund order from within CRMD_ORDER?.
    Jason

    When doing that from the order's Status screen against User status I only get the dropdown status of 'Request Payment' that can be set. Hence the reason for thinking that there's more to do to correct this problem.
    Jas

  • How to change user status in maintenence order

    Hi all,
    I want to change system status in maintenence order by customizing kindly share how we can change it.

    Once you print the order, system status will get changed automatically to PRT.
    What else you are expecting to change?? You can't change the system status by any business transaction as per your wish. System status changes have been defined by SAP directly.

  • 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.

Maybe you are looking for

  • System is not accepting commands from autoit

    Hi, I've developed an application in autoit. It is for opening an application and sending some key stroke automatically and reading the title of the new windows that comes after sending keystroke. It worked well in windows xp as well as some windows

  • Can't open my PB on my Windows PC anymore!

    Interesting. I've been doing this for a while and now suddenly I can't open it. It shows up in the network list... but gives a file/path error. Tried rebooting everything of course. Turned WiFi sharing on/off (which dropped the icon and then it reapp

  • How do i clear my cache from a failed mac 10.7.5 download

    Hi all, I tried to update from OSx 10.7.3 to the combo 10.7.5 through software updater and it failed at 99% saying its corrupt.  How do I delete this attempt from my cache so I can try again?  It says its still at 99%.  Any help is greatly appreciate

  • I'm getting green flashes when I compress my mpeg2 files....

    Does anyone know why I'm getting green flashes when I compress my movie for DVD Studio Pro? It plays (relatively) fine in FCP, but when I compress it (using Compressor) for DVD output I got a movie full of green flashes. It's really annoying and I ca

  • Calculate avg for each record

    Hello, what i want is: i have a table SCHOOLBOY (id, first_name, last_name, ...) and another table MARKS (id, schoolboy_id, discipline_id, mark, mark_type). a schoolboy on a discipline (e.g. Maths), a schoolboy can have more marks. i wanna calculate