BAPI_ALM_ORDER_MAINTAIN Operation User Status Update
Hi All,
I am trying to use this BAPI_ALM_ORDER Maintain to update the user status at the Operation level, but am facing the following issue:
In the IT_METHODS table, I am passing the USERSTATUS CHANGE (with the right object key - aufnr + vornr), and SAVE Method.
And am filling the User Status table (IT_USERSTATUS) with the correct user status to be updated at the Operation Level.
But when I execute the BAPI - it throws an error saying that the User status XXXX doesnt exist in the XXXXXX (This is the wrong profile. This profile is at the Header level and not at the operation level) Profile.
So somehow its trying to update at the Header level and not at the operation level.
Any idea what can be the reason?
Regards
Ankur
Hi,
BAPI_ALM_ORDER_MAINTAIN user status Change
check out this link..
Thanks & regards.
Similar Messages
-
Hi
can anybody tell me the FM for updating the order operations user status in transaction IW37N.
regards
vijayHi
Check the fun modules for updation of order Status
STATUS_UPDATE_DJEST
STATUS_UPDATE
ALM_ME_PUSH_STATUS_UPDATE
STATUS_OBJECT_UPDATE
STATUS_UPDATE_ON_COMMIT
Reward points for useful Answers
Regards
Anji -
Block Order TECO on the basis of operation User Status
Hi Experts,
I am trying to restrict the TECO of maintenance order on the basis of order operation status. I have configured the user status profile and assigned it to order operation. This user status profile have two statuses, INCL - Incomplete and another is CMPL - Complete. I have prohibited the TECO for user status INCL. But when I create an order and try to TECO, the system allows me TECO it enenif the operation user status is INCL.
Could you Pl. tell me, have I missed something in configuration?Dattatraya,
Actually you can control TECO by completion confirmation of order operation as PCNF ( partial confirmation) for operation which you have mentioned in Order. So you can set up in configuration like allow TECO only once CNF ( Full confirmation ) for all operations mentioned in Order.
For your mentioned scenario , I dont feel based on user status you can stop the TECO, anyway you can check with other experts as well.
Riyaj -
IW31/32 Operation User Status visible as a field on Operation tab table
Hello,
Is there a way to add the "Operation User Status" as a field visible on the Operation tab table for IW31/32.
Your help will be very much appreciated.
Thanks.jay23r
Not as standard.. and its the same with the used-fields which should be displayed on the Operation tab table (it is in the task list..)
I don't know why SAP haven't sorted these out...
Open an OSS Message to SAP - the more requests they get, the more chance there is of them fixing it in the future
What we have done a few times in the past is to utilise the Header Enhancement tab (user-exit IWO10018) to add a table control to show these fields. Its not elegant, but it works
PeteA -
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 -
STATUS_UPDATE error to update USER STATUS - Update termination error
Hi All,
I am using status_update FM in sales order user exit MV45AFZZ in a perform routine for updating user status in line item for sales order. There are 4 custom statuses created for the sales order line item. 1,2 3, and 4 by configuration. My job is to select one of those based on user selection.
Scenario: During change order process using VA02, I have to change the existing status to a third status when user selects the second one. That is for example, in VA02, user selects status 4 from previous status 3, and save, I have to make the status 4 inactive and save the new status 2 instead of 3 though user selected 3. How do I achieve this.? ????Any programming example is really appreciated. Thanks!!!
I am right now using STATUS_READ and reading the existing status 4. Then making it inactive using status_update FM. And updating the new status 2 as active one and 3 as inactive again. Two inactive updates and one active update is throwing an update termination error while saving the sales order.
Any help is really appreciated.
Thanks
RickyHi ricky,
For saving any changes you need to have a Z-table.
In programs we can't store the user selection. In your case you can create a z-table and store the status there and delete the last status. The process would be faster as you will always have one record in the table.
. One more advantage is you can even track the changes through the Z-table(User who is changing it.)
Hope this solution will surely help you.
Cheers
Suvi -
CRM to ECC i object user status updation.
Hi Friends,
I want to know details of SAP objects involved:viz: BADI's to have SAP CRM Iobject user status updatio , I have successfully replicated the ECC CRM Equipment to CRM I Object and even getting the user status from ECC To CRM..
I am facing difficulty in doing the vice versa action from CRM to ECC.
Please let me know your suggestions and opinoins which I can try executing.
Thanks,
DevanshFor replicating user status from ECC to CRM we have done the following:
1) Replicated all related BPs and reference products.
2) defined the settings (ex Object family for equip etc ) in SPRO
3) Activated CRM_EQUI_LOAD BADI
For Upload you have to also :
Activate DNL_EQUIPMENT and DNL_EQUI_CONFIG and assign Adapter object DNL_EQUIPMENT to Object family 401.
I hope this would be good enough for Getting your User Status in CRM.
My problem is of updating / replicating user status from CRM to ECC.
Pl see if something can be done for this.
Devansh -
Dear Gurus,
I want to update equipment user status with PM Order Status.
for example, if i close the PM01 - Maintenance Order , equipment user status will be updated "001-Fixed".
how can i update the user status like above example? I have found some user exit (STATTEXT) but it is not working in PM order. Is there any user - exit for this case?
thanks for your help.Mahee,
you are right, i guess my example is not clear for this case. I wrote this basic example for easy understanding.
anyway, i wanna write a scenario, we have 4 user status for equipments. we wanna run with PM order status and good movements. equipments are on our customers so that we can refurbish and fix on the field or our refurbishment center.
1. if equipment is come from customer for refurbishment , equipment status will be updated "001-waiting for refurbishment" with good issue.
2. if equipment is refurbished, (refurbishment)order will be completed so equipment status will be updated " 002- refurbished"
3.if equipment is not refurbished, (scrap) order will be opened for removing equipment's spare so equipment status will be updated " 003- scrap"
4.if equipment's spare is removed, (scrap) order will be closed and equipment status will be updated " 004 - write off"
I hope it will be cleared.
there is a bapi for updating equipment user status"BAPI_EQUI_GETSTATUS" but i don't want bapi because of locking the equipment. which can i use user-exit or badi for this case?
thanks for your help -
User Status update on Header and Item in Sales Order
Hi,
I need to update the user status in both the header and Item based on some conditions. I checked the user exit's under 'MV45AFZZ' but no use.
Could any one please provide me where I can write the code to upate user status in header and Item.
Thanks
Srihari.
Edited by: SrihariKonduru on Dec 23, 2009 4:21 PMHi,
Thanks for quick reply.
But I think this will be updated the satus using a report program. But in my case if the user creates a sales order or he is in change mode based on the selection of Distribution channels and Dunning key's I need to update the satus.
For this I need a exit to write the code. And also I required sample code snippet to update the status in user exit. If that availble it will be great help to me.
Thanks
Srihari. -
System Status Vs User Status updates from ECC to CRM
Hi Frnds,
Am facing a problem in Status Management , We have ECC as Backend , When ever we save the order in CRM it is Relicated to ECC thrgh CRM Middleware.
(I) I have created User Status 'Z' Status Profile in CRM and Assigned that Profile to Status Triggering Business Transaction and to the Transaction Type.
I have assigned this Status to INProcess and Released , with my 'Z' Status.
I have Maintained the Same User Status Profile in ECC also.
My questions are
1) How can i Maintain the System Status with User Status in ECC (For example in CRM we maintain thrgh Business Transaction ,last field in Status Profile.) ?
2)When ever i change the status in ECC that Status as to be update in the CRM?
But here Order in CRM is not updated , For example , if i change the status to "COMPLETED" in ECC ,the Status "COMPLETED" is not triggered in CRM.
Here i need write a BadI or is there any Config settings that i need to Mainatain ??? or anything different approach ??
Helpful Answer will be Rewarded with Points .
Thanks in Advance
Reagards
RamHello Charitha,
In txnn:R3AC4 of CRM , check INACTIVE flag for object MATERIAL (and any other objects whose data is not required in CRM)
for your RFC destination (ECC).
This would prevent any automatic data flow for this object from R/3 to CRM.
Hope this helps!
Best Regards,
Shanthala Kudva. -
User Status update on Sales Order Header
Hi all,
I need to update the "User Status" on sales order header when a sales order is saved. As user status reside in JEST, what available user exits are there to change/insert new user statuses? I don't believe the common exits like MV45AFZZ would do.
To clarify, to get to these user statuses, you go to the header of the sales order, select on the 'Status' tab, then click on the "Object Status" pushbutton.
Any help would be greatly appreciated in the form of points!
Thank you.
LiamHi 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 ********* -
How to modify operation user status
Hi Team,
I am created an order from IW31. Is there any way to change the user status of its operation.
I mean I am looking for any enhancement or BAPI by which I can change the user status of operation.
MainakHi
BAPI to change user status is "BAPI_ISUSMORDER_USERSTATUSSET"
and BAPI to change system status "BAPI_ISUSMORDER_SETSTATUSTECHN"
Thanks,
Prajakta -
Badi to track user status update
I have requirement to call smartform when the user status of the item for the service quotation changes to complete. Is there any BADI to track the item user status?
ThanksI have tried CRM_ORDER_STATUS, however the BADI is not usefull as it is not getting called when I save the transaction. It is triggering as soon as I change the status. I think I need a BADI which is triggered on save and I should be able to access the new and old status in the BADI. Please help some one.
-
Automtic User Status updation in Service Order
Hello ,
Whenever I do "TECO" of service order , User status should automatically change."TECO" is a business transaction
Do anyone have done this . Which exit is user to achieve above.
Regards,Hi,
Check the below FMs :-
STATUS_CHANGE_EXTERN : This is used to set or delete User Status
STATUS_CHANGE_INTERN :This is used to set or delete System Status
STATUS_READ : This is used to read system status or user status
First check up via User status , with proper status numbers
If ur having many different than better u can go for user exit : IWO10009 PM Order: Customer Check for 'Save' Event. to check at save and set status accordingly ...
For reading latest status - u may have to read from structure i think ..
Tables :- JEST, TJ02T,TJ20 etc
regards
pushpa -
To update user status of an operation in Plant maintenance
Hi
I ma trying to update the user status of an operation of an order using function module status_update but it is not working properly. Although the same function module is working fine for updation of user status of order. Can somebody please tell me some other function module to update the user status of operations?
Thanx in Advance.
Richa.Hi Richa,
I have the same requirement like which you had. updating the operation user status in work order.
How did you attend this requirement. Please let me know your solution.
Thanks in advance.
Maybe you are looking for
-
Mini-DP on X1 Carbon 2014 Not working.
Hello, On Friday I received my new X1 Carbon Model (20A7) with the WQHD non-touch display. I have used two different HP 27" ZR2740w displays (one at a time) using the Mini-DP port on the device. This is the same setup I had with the previous gen X1
-
Party Merge ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE
Hi gurus, i am using 11.5.10.2 on linux. while running the party merge concurrent program , we are getting below error, please help. Errors in Merge : Application: Receivables_ Error: Merge failed in Receivables (HZ_STAGED_PARTY_SITES ) with the foll
-
XML generation and nls_numeric_characters
DBMS_XMLGEN generates the numbers in the xml based on the nls_numeric_characters where as DBMS_XMLQUERY always generates the numbers in a raw format. Following is the piece of code along with the output: ****SCRIPT TO GENERATE XML USING PACKAGE DBMS_
-
[SOLVED]Conky cutting words off
I've been working to set up conky on my Arch + Openbox installation, and I've run into a strange issue - conky is getting cut off at the end. See this picture, at far top-right - the seconds are cut off. I've tried adding various options, such as tex
-
I cant restore mi iphone 5s, i have "error 1669" or "2005" please help meeeee
few days ago i lost the signal of my phone by 2 min and the signal come back after 2 min again lose the signal and i decided to upgrade to 7.1.1 and i cant restore the iphone (5s) apple send an alert "error 2005" or "error 1669" please help me i dont