SAP Community Network Forums » Industries » Healthcare

Thread: how to change the status of clinical order header

This question is answered.


Permlink Replies: 1 - Pages: 1 - Last Post: Nov 3, 2009 11:39 AM Last Post By: Manel Casadesus
Manel Casadesus

Posts: 311
Registered: 2/15/07
Forum Points: 152
 
how to change the status of clinical order header  
Posted: Nov 2, 2009 12:52 PM
Click to report abuse...   Click to reply to this thread Reply
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
Manel Casadesus

Posts: 311
Registered: 2/15/07
Forum Points: 152
 
Re: how to change the status of clinical order header  
Posted: Nov 3, 2009 11:39 AM   in response to: Manel Casadesus in response to: Manel Casadesus
Click to report abuse...   Click to reply to this thread Reply
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

Point your RSS reader here for a feed of the latest messages in all forums