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,
Jagadish
Hey 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...
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 -
BAPI_ALM_ORDER_MAINTAIN - Change User Status in Operation u00BF?
IT´S POSSIBLE CHANGE USER STATUS OF THE OPERATION?
I SEE THAT FILL IT_METHODS AND IT_USERSTATUS BUT ONLY CHANGE THE USER STATUS OF HEADER ORDER.
ANY CAN HELP ME?
THANKS IN ADVANCE.Hi,
Use the FM "ALM_ME_ORDER_CHANGE"
There you can change the operation details including the User status.
Hope this may help you.
Regards,
Smart Varghese -
How to change the status of the system programmatically with Function Module
I Was trying to change the status of the notification through STATUS_CHANGE_INTERN function module . But It is not changing the status of the notification.
Can any one help to understand what is going wrong ... or any other function module to change status of Customer complaint notification ..Hi KK,
Please can you take clues form the below discussion thread -
http://scn.sap.com/thread/775169
Thanks to all original contributors of this thread!!
NOTE: Please note that the main point explain here is that, if you are willing to change to a status Ex, NOPR, NOCO, etc then you will need to pass on the value 'I0070', 'I0072', etc. I will also go ahead and like to add one more point here to make the language check as well like "EN", 'DE', etc as these statuses are language dependent too.
Thanks,
Arijit -
To change user status profile on sales order at run time.
Hi Experts,
We have defined status profile for Sales returns ( Doc type RE) which blocks the return order on creation. There are two statuses here which are to remove the delivery block and to remove the billing block by authorised users.
The requirement is now to have a three level block ( three statuses ) on the same document. We can create a new status profile and assign it to a new return sales order tpye but we want to avoid creating new document types. Since this document type is used across various companies in the group we can not assign a new profile on the existing RE document as well.
My question to all experts is
Is it possible to dynamically change the status profile assigned to the document type based on characterstics like sales org or company code etc? If any body has done this please let me know the user exit , function module, BADI etc where the necessary coding has been done.
Helpful answers will be rewarded with points.
I look forward to your co operation.
Regards,
Kartik ShahHi Liam,
In the Program MV45AFZZ in the FORM userexit_save_document
you use the following fn module to change the user status
'STATUS_CHANGE_EXTERN'
Example
IF t180-trtyp = 'H'. "Only creation time
READ TABLE xvbap WITH KEY matnr = c_matnr.
IF sy-subrc = 0. "If above material exist then change status
LOOP AT xvbap WHERE cuobj NE space
AND matnr = c_matnr.
l_objnr = xvbap-objnr.
CALL FUNCTION 'STATUS_CHANGE_EXTERN'
EXPORTING
objnr = l_objnr
user_status = 'E0013' "Send ej IDOC
set_chgkz = 'X'
EXCEPTIONS
object_not_found = 1
status_inconsistent = 2
status_not_allowed = 3
OTHERS = 4.
ENDLOOP.
ENDIF.
sy-subrc = 0. "Restore the previous condition
ENDIF.
Reward if helpful ********* -
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 -
Changing User Status by activity confirmation
Hi Experts,
In my project , User status is maintained for WBS.
My client want to Change the User Status of all the WBS when one activity is confirmed .
lets get an example: In project there are WBS A, B and C. In WBS A there are Activity number 1 and 2.
The WBS has user status Z and X. When Activity 1 is confirmed , all the user status of WBS will be Z.
When the acvity 2 is confirmed , all the user status of WBS will be X.
Please help how to do this. is there any enhancement or BAPI.
BR,
Morshed AlamYou have to do development for this. Use BADI "Workbreakdown Update" to change the user status on WBS, whcih can be called during WBS save. The development needs to pick the correct user status from Activities. Status are stored in table JEST.
Hope this helps.
Sarang -
Change User Status in the sales Order
Hello Experts,
I hope that somebody can help me.
I search to change the field User Status in the sales Order in the transaction VA02 before that the order be displayed.
I have searched in the UE MV45AFZZ, but i didn't found any form that i can use for my issue.
I found one form 'USEREXIT_FIELD_MODIFICATION ' by what the program pass when i press enter in the transaction VA02. but the problem that the status is changed in the data base only and not in the screen. In the screen i have always the same status as what was before, to have the new statut i must leave the transaction and execute it another time.
I don't want use forms for saving. What I want is the new status will be set when i press enter in the transaction VA02.
If doesn't exit one form that can resolve my problem, Can i use the Profile Parameters? In this case How use them?
Thank you very much.Hi,
U can choose ur status in change status profile. Go to IMG-CRMTransactionsBasic SettingsStatus ManagementChange Status Profile for User Status.
Here u hv to define ur new status for the transacxtion and assign it to ur transactio. If u r not clear tell.
Reward points.
Thanx
Chinmaya -
How to trigger event when changing user status?
hi,
I'm having problems in triggering my workflow.
In CIC0, When a status of a service request is changed to 'solution provided' then after saving service request, it should send a notification mail. I'm using ZBUS200116 which is deligated to BUS2000116. I've created event 'change' in ZBUS200116 which is in the start events of my workflow.
I've tried creating an action profile which uses my workflow. The action profile is attached to the transaction but still it doesn't trigger my workflow.
i've checked other existing workflows which uses the same object type BUS2000116 or ZBUS200116. These workflows were triggered by 'created' and 'completed' events only. Other added events in ZBUS200116 like 'changed' is not triggered. How is this possible when ZBUS200116 is deligated to BUS2000116?
Your response would be highly appreciated.
Thanks in advance.hi juan
so here we are,now i got complete understanding of what u r doing and why
you know you need not have created that change event because it wont serve your purpose anyway
the reason is that because the way process in your workflow is flowing ,it wont happen that way using change event
you just follow these steps:
1, use created event in your workflow
2. that way when your contract ios created in rpocess status the event will be triggered only because you are creating a transaction whatever may be the status,so in all such cases you should use event created.
3. now coming to the point of change in status or documents in contract
in this case using loop will put you in deadlock and you will only be haing the error in such case
you use WAIT step instead ,inside it use wait using conditions out of every option
there you give your condition as change in whatever status
like if you are chaning the status from in process to some other status ,put that status inside the condition
as soon as that conditioon is met ,the WAIT step will be executed,
that way you will be able to trigger the change in status through thje workflow
so thats the solution with the approach you are using
there are many approaches you can follow in workflows ,so depending upon that you can follow the different worlkflow tools u have there.
also remember when your wait step gets executed there is always the time lag of 20-25 minutes after which changes will be reflected
hope it will solve ur probs
best regards
ashish -
Change user status for WBS Elements
Hi All,
I am working on a workflow related to PS milestones.
When a milestone is achieved the user status has to be set for that WBS element and to all the WBS elements that are next to it.
I have tried to use the FM (ran FM independently as standalone), CJDW_INTEGRATED_USRSTAT_CHANGE with PROJECT NUMBER as input, but it throws an error NOT FOUND.
I have gone through the documentation of it also, which says that user has to prefil the structure PROJ before this FM is called, which i could not understand.
So can please anyone tell me, about the usage of this FM and how to run it so as to change the user status.
Thank you all in advance,
regards,
vijayit is possible to have status with radio button and check box, by keeping status with status number and without status number.
But I doubt about your requirement whether it is possible in standard or not.
Please search SDN forums for some exit / BAdii which you can modify status profile. -
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 -
IDOC for changing user status to 'HIST' on Functional Location
Hi.
Can anyone please support me with an inbound IDOC for changing status on existing Functional Location?
Thanks.Hi ,
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 -
User exit to change user status in IQ01/02 after full installation EG31
Hi Experts,
In iq01 there are two fields 1 device status 2 user status . device status will be automatically changed (avlb to insl) by system after full installation but i need to change the user status (AVLB, NTAV) in iq01.I have created one bdc for iq02 and that will be properly changing the staus if i run seperately but when i am calling this bdc in user exit(EDMDI001,EDMDI002,EDMDI003) this shows one error '
device is already blocked bu user ---" reason being i have to use that device at the time of full installation and user exit that will change the staus also working on the same device during full installaion .
So Please resolve.
Thanks in advance
Edited by: dilipgupta on Jan 12, 2011 3:02 PMHello
dilipgupta
try this:
Exit Name Description
E07 IS-U: Geräteinstallation und Anlagenstruktur
EDMDI001 Kundeneigene Vorschlagswerte für Einbau, Ausbau, Wechsel
EDMDI002 Kundeneigene Prüfungen für Einbau, Ausbau, Wechsel
EDMDI003 Kundeneigene Daten zur Warenbewegung bei Ein-und Ausbau
regards
Chris -
Regading function module to change User Status IN CJ02
Hi All,
I need to chage System status from Budget Assigned(BDAS) to Release. Can any body help me is there any FM to change this status.Tell me ASAP
Thanks,
Sagar.Hi,
BAPI_BUS2001_SET_STATUS: For Project Defn, WBS
BAPI_BUS2002_SET_STATUS: For Networks
Regards -
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.
Maybe you are looking for
-
E-mail forwards and downloads flicker and are slow to download
Never had this problems until last night after I downloaded 4.ob12. When downloads are moved to either side for visibility, it returns to original position and the e-mail also flickers off and on--very disconcerting. I've also had problems when I del
-
Hello, In Dreamweaver CS3 we have a drop-down list in a form. When the user selects an element in the list, we need to determine which element was selected; specifically we need the text string of the selected element. How do you do this? The raw cod
-
Print to Linux Server Running Samba & CUPS
Trying to get iMac to print to the shared printer on home Linux Server running Samba and CUPS 1.2.10. The printer shows up as a shared printer, however, in looking in my logs, I see that the destination packets are being sent to ip 255.255.255.255, i
-
How to set the ToolTipText to the titlebar of the JInternalFrame.
Hi I have the requirement to set the ToolTipText on the Title Bar of the JInternalFrame. When the internal frame is minimized when we keep the mouse on the top of the Title Bar of the internal frame the tool tip should come. Please suggest me how to
-
Ipod will not update even though itunes shows that copying is complete
Good morning all, Today I purchased an album from itunes and tried to copy it to my ipod. I have the manual set up where the ipod does not update automatically. Today as soon as I connected the ipod to the pc and itunes opened I saw in the display "i