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.
Similar Messages
-
LSMW for changing user status on work order(IW32)
Hi All,
I have created a LSMW for changing user status on work order using transaction IW32. It does not change the status when i run the LSMW. In the recording for the LSMW, i select the radio button on the user status i want to select.
When i run the LSMW in the foreground, it does everything except select the correct status.
Is there a way to fix this or is it a problem with LSMW. I'm using ECC6
Kind Regards
EmanuelHi ,
I am not sure whether it would work with LSMW but if your on ECC 6.00 ,Enhacement Pack 3 then you have BADIs which allow you to make collective status changes in IW38 .The below are those BADIs :-
BADI_EAM_RIAUFK20_FCODE_CUS1 :Implement Customer Function Code in Order List
BADI_EAM_RIAUFK20_FCODE_SAP1 :Implement SAP Function Code in Order List
Else if your on lower version then write up a batch programme which checks the PM Order types with specific status and sets user status using FM STATUS_CHANGE_EXTERN[This is used to set or delete User Status] in SE37 ..
regrds
pushpa -
How to Set User Status of Sales Order at item level.
How to Set User Status of Sales Order at item level by default to 'Purchase Req Not Created' (example)while creating order. Please tell EXIT Name to be triggered & Internal table to be populated.
Thanx,
Srini
Moderator message: please do your own research before asking.
Edited by: Thomas Zloch on Feb 21, 2011 11:19 AMMathew,
Here is a document that should help you get started on enhancing 2LIS_11*
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09d5356-d8c4-2d10-8b84-d24723fc1f0a?QuickLink=index&overridelayout=true
Good luck! -
Hi
I want to change the user status from X - > Y - > Z - > X based on config... so in doing that my system status would be set to released.
I am doing the updation each time from X--> Y and calling crm_order_maintain, crm_order_save, commit work and save , wait up to 20 seconds, crm_order_initialize.
Without doing wait up to 20 seconds, i am getting an error "Order cannot be changed" when i am updating the user status from Y->Z next time for same guid object ( contract item ).
My questions are
1. How do we identify whether we can change contract, for next user status using any FM. It says contract cannot be changed as "Transferring not completed". I used FM "CRM_ORDER_CHECK_CHANGE_ALLOWED" , but it always gives message "in transferring in middleware". Is there any other way to avoid wait up to 20 seconds , instead determine whether the contract can be changeable.
2. Can we update X>Y>Z--->X in single crm_order_maintain.. can system track this changes that contract item has gone through various user status. When i checked it only keeps Y status. I am passing all user status as active. Can we pass in any other manner?..
3. When i call order initialize after each update of status , the lock is getting released and for next status chnage when i call order maintain, if some other user opens same contract in that time... lock error comes.. when i pass Keep lock in order initialize it is not working.. does that work and why does its not working....
Regards,
DDeepthi,
Dont pass all the statuses at once to CRM_ORDER_MAINTAIN,
For eg :
To get to status Z from X->Y->Z , you can follow below procedure
take staus - X
fill it_status and it_inputfields with a record each corresponding to status X.
Call CRM_ORDER_MAINTAIN
take staus - Y
fill it_status and it_inputfields with a record each corresponding to status Y.
Call CRM_ORDER_MAINTAIN
take staus - Z
fill it_status and it_inputfields with a record each corresponding to status Z.
Call CRM_ORDER_MAINTAIN
After reching Z , call ORDER_SAVE and COMMIT.
Please use a internal table for all your status and place the order_maintain in loop , so that each status gets maintained while you navigate to next status.
Regards,
Nithish
Edited by: nithish P on May 17, 2011 8:15 AM -
How to update user status in CRM Order depending the delivery status in R/3
Hi All,
In my scenario the partial delivery allowed to the customer while creating the CRM Order. But as per my requirement the status should be updated when the complete order and delivery takes place.
Let me describe you clearly:
Suppose I want to deliver 5 quantities products to the customer but initially I want to deliver only 3 quantities and rest 2 quantities later. When I do the post goods issue of 3 quantities in R/3 system the status should not change in CRM system. When I will do the rest 2 quantities in post goods issue in R/3 then the user status should change in CRM Order. But in current when I do the delivery of 3 quantities the user status is changing in CRM Order.
I need the user status should change in CRM only when the entire deliverytakes place in R/3.
Thanx
ChinmayaWhenever an item is fully delivered, by standard, a "Completely Delivered" status will be updated into the item. If the I suppose by referring to that you will know an item is partial or completely delivered. When all items in the order is fully delivered, the standard header status will set to "Completed". So, you will also know if the whole order is partial or completely delivered.
If you want to add a user status, the simplest, you can make use of the ORDER_SAVE Badi. Just call the function CRM_STATUS_MAINTAIN_OW. You can update both header and item status. -
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,
ManelIn 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 -
Detect change user status on sales order
Hi,
I have a requirement that a custom program must start when a user puts a certain user status on a sales order.
Problem is that I cannot detect on which event I can trigger this custom when the user status is changed. There seems not to be an entry in the change documents table, or an event triggered,...
Does someone has already encountered such an issue ?
thanks in advance !
kind regards,
BjörnHi Carl and Shiromani,
thank you for your fast reply!
I guess I will give it a try to do this with functions if I just can get it running with the cl_crm_mktpl_appl_base-class.
As you suggested Shiromani the Save_and_commit gets an error in the assignment checks in the check_attributes-method.
So I probably have to take a closer look why this method is returning an error-flag. Unfortunately I am not getting an error message - only an error flag is set.
I will take a closer look at it today and keep you informed if I find out anything useful.
Cheers,
Dennis -
How to get system status and user status of service order
Hi,
I want to show user status and system status for service order in my report and i am using CRM_ORDER_READ function module to read the status, but it is returning lot of status records, could anyone please suggest how to get the system status and user status for service order.
I did not find any clue for how to get user status, i can see the user status when i open the transaction using CRMD_ORDER.
Regards,
Kamesh BathlaHi,
Go to CRM_JEST table give your service order guid and get the status, pass this status into TJ02. You will get the status of your order.
Regards
Srinu -
How to change system status of order created in IW31
Hello All,
I created a maintenance order in IW31. System status of that Order is like this,
Now i have a requirement to change the system status.
But the BAPI : BAPI_ALM_ORDER_MAINTAIN has option to change user status. Please suggest what i have to do?
Thanks in AdvanceEXIT_SAPLBSVA_001 will fulfill your requirement.
Try to change your system status inside this exit.
You will get both User status and System status. -
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 SiddharthDear,
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 -
User Status for process orders
Dear Experts,
We are using user statuses for process orders & with this we are resricting or allowing certain business transactions.
My question is can we automatically set the two consecutive user statuses ?
Means when the GR for process order is done i have set the user status as GR.
Next user status is CLSD.
So after completing the closing of process order by settlement transactions can i set the staus as CLSD automatic?
I am trying to do it but i am getting error as-
"Status CLSD is not allowed (ACT 30000292 0010)"
Your help is highly appriciated
Regards
VivekHi,
1) Still your order is carrying cost, it has not settled properly
2) you can check in CO02 itself, Go to tool bar at top
3) here Go to > Costs > Analysis & check whether order is set to Zero
4) you can check in KKBC_ORD also
Also, pls refer below link
Re: HOW automatic order status change to CLSD
regards,
Sankaran -
Remove the user status in Sales order
how to remove the user status in sales order header? could you give the function module or BAPI to get this?
Hi,
You Can try this-
BAPI_SALESORDER_CHANGE,
FM 'I_CHANGE_STATUS'
Regards,
Sujit -
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 VBAThanks 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 -
Change User status of Task of Follow up function
Hi All,
Does any one of you know how to change the User status of Task through customizing or programming.
Basically I want to change User status from 'TINI' to 'TSNT' once the email is triggered. I could send the email but I am unable to change the status.
Thanks in advance,
JagadishHey Thomas,
This should solve your problem..
CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN'
EXPORTING
client = sy-mandt
objnr = wa_new_user_status-guid
user_status = wa_new_user_status-status
no_check = 'X'
SET_INACT = ' '
SET_CHGKZ =
XNOAUTO =
EXCEPTIONS
object_not_found = 1
status_inconsistent = 2
status_not_allowed = 3
OTHERS = 4.
In this FM NO_CHECK parmeter must be set to True, else u wil not be able to set the Status.....
Sample is given above...
Reward points for usefull answer...
Regards,
Anand... -
Activation of User status for Prod. order
Hi,
I have created a status profile with a status as a user status for production order. Now the thing is how to activate this user status for a specific transaction.
the requirement is after settlement the user status should get activated for production order.
Regards
Amit ParkhiHi Amit,
As told by Ajay , after assigning Status Profile in OPJH you can assign User Status to production order as below:
Pls. go through the following procedure for activating the User Status :
Activating User Statuses
Use
You can activate a user status at order header and at operation level.
Procedure
Order Header Level
Go to the order header.
Choose .
Choose Edit ® Direct entry.
The system displays a dialog box in which you can select the permitted user statuses.
Position the cursor on the required user status and choose Choose .
Operation Level
Go to the operation overview.
Select the operation in question.
Choose .
Choose Edit ® Direct entry.
The system displays a dialog box in which you can select the permitted user statuses.
Position the cursor on the required user status and choose Choose .
Pls. follow the above procedure as per rquirement and set user status accodingly.
Pls. revert if any doubt and reward if useful.
Regards,
Tejas
Edited by: Tejas Pujara on Jun 23, 2008 8:10 AM
Edited by: Tejas Pujara on Jun 23, 2008 8:11 AM
Maybe you are looking for
-
8.1.6 install fails during linking
OK, after about 3 hours, I'm at a loss... I'm getting a bunch of linking errors after the Installer finishes copying over the files. Specifically, it says 'Error in invoking target ntcontab.o of makefile ... 8.1.6/network/lib/ins_net_client.mk'. Note
-
Handling events in javascript which are generated by embedded applet
I am having an tipical requirement , In my HTML page there is an embedded applet . This applet is going to generate custom events . I would like to handle that events in javascript which are generated from applet . I mean that javascript has to get a
-
I've just installed Leopard on a MacMini that is used as a desktop machine for a network of computers. We've got 3 MacMini's - 2 of which running Tiger (10.4.11) and now one running Leopard. The machine running Leopard is able to authenticate using L
-
Hi, I purchased a whole album and all the songs but one downloaded just fine. Every time I try to re-download that song, I get "There was an error downloading your purchased music. An unknown error occurred (-50)." When I write Apple Music Store supp
-
Hi Friends, i am preparing for a project and my supervisor asked me to use BPEL in that. and i don't have clue about it. project is online ticket management system(call log)...i am using servlet,JSp, xml... how and where to use BPEL? Thanks,