Set User-status for PP order
Hi All,
How can I set the user-status for a PP order, also let me know which user exit suits this requirement, as I know I have to make use of a FM or a BAPI which sets the user-status in the user-exit somewhere.
Thanks
Mark
Hi,
Try the following enhancements/exits for setting the status for PP order.
STATTEXT
CCOWB001
COIB0001
Regards,
Anji
Similar Messages
-
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 -
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 -
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 everybody,
I have created a user status for PM orders. the problem is when Order status in CNF ( confirmed ) and I use IW45 to cancel confirmation, the user status doesn't change to Release and still remain CNF. I couldn't find any business transaction for that.
what do you do for such case?
thanks in advanceHi Daniel,
I doubt that some communication gap is going on.
System Status
- An Order with status TECO CNF ... converts to REL CNF ... when the TECO cancels.
- This status further changes to REL PCNF when you cancel any Operation Confirmation (IW45).
- Similarly TECO PCNF also possible.
If I remember correctly, you were asking about User Status trigger upon change of System Status,
If you agree with the very 1st line of this post, you may start a fresh by explaining the requirements again, if possible more clearly. The probability for fresh thinking and responding from forum would increase.
Best wishes
Jogeswara Rao K -
Need help on to set User status for Operations in Maintenance order
Hi experts,
i am new to PM module.
i need to do BDC for IW31. i want to know some inforamtion
on user status for each opertaion.
my problem is ,, what is user status.
why it is saying order is not yet released when saving and status can not set.
in this cases how can i do BDC.User status are something set in the configuration and specific to the company which SAP hasn't given in the system status.
May be in your system user status are configured to set only after the release of the order.
For doing the userstatus you may need to release the order, you can release the order thru bdc and then do bdc for user status. Also see below link
http://www.sap-img.com/plant/user-status-set-date-in-maintenance-order.htm -
Extracting User Status for Sales Orders
I am trying to extract user status transactional data for sales orders (at both the header and item level). I have been following SAP note 300300 to configure the status extractors and map the BW objects to sales order status data sources (2LIS_11_VASTH & 2LIS_11_VASTI). I think I have set up both R/3 and BW correctly according to note 300300 and the IMG documentation, but I am not getting any values in the info source for the new user status info objects, when I run the extract.
Has anyone successfully done this? If so, do you have any documentation or pointers on how I can get this to work? Or, am I better off creating a generic extractor? Thanks for your consideration.
Sincerely, Hashi ChakravartyHello Ravi,
well yes, I can derive the status for that order in the update rules if i show the status as an attribute of the 0pm_order; but basically there will be only the last status shown.
My problem:
a. i report on day 1, the status of the order is REL
b. on day 2 i load the master data for the orders, new status is TECO
c. on day three i want to report in the past and see the status of day 1; that's not possible in this scenario because i'll see the current status (TECO).
So that's why I want to have the statuses in the cube...
The 2lis_17_i3hdr extractor is only sensitive to CRT and TECO statuses, but not to the others (like REL / BLC and so on... :_(( )
I could read the statuses from the JEST and TJ02T tables...but still, if a document status is changed, no delta record is written in the queue...
Thanks,
Tudor -
Set User status of Maintenance order
Dear All ,
I m trying to update the user status of Maintenance order via a report .I m using the BAPI "BAPI_ISUSMORDER_USERSTATUSSET" for it.
Code details are as follows :
USR_STATUS-STATUS_INT = 'E0006' "TJ30T-ESTAT
USR_STATUS-STATUS_EXT = 'WIPR' "TJ30T-TXT04
USR_STATUS-LANGU = 'EN'.
CALL FUNCTION 'BAPI_ISUSMORDER_USERSTATUSSET'
EXPORTING
NUMBER = WA_FINAL-AUFNR
STATUS = USR_STATUS
INACTIVE = 'X'
IMPORTING
RETURN = WA_RETURN.
Bapi is executing successfully but it is not updating the status when I check it from IW33 .
Suggest me for it....
Thanks
AlokThanks SARAVANAN ,
I have done the bapi commit . But it have some other problem and now I have done it.
Thanks for ur suggestion. -
User status for production order
From which table i can get the USER STATUS for a production order?
Hi
Use the TableS:
JEST - Pass OBJNR of the Production ORDER (AUFK, AFKO tables)
or from
TJ02
TJ02T
reard if useful
regards,
Anji -
User status for investment order to block settlement to final asset
Hi,
I try to set up a user status to avoid user to settle internal/ investment order to final asset. I cannot find a user status that will let me make the distinction between the automatic settlement to AuC and the partial or full settlement to final asset.
The process we are using is that we do automatic settlement from investment order to AuC on a weekly basis and as soon as the final asset has been entered via KOB5 (distribution of line item) we would like to setlle it.
Do you know a way to set up a user status on an internal order to allow settlement to Asset under construction but not to final asset?
Thanks
SabineHi,
I do not want to send the costs directly to final asset. Costs booked against the investment order should always first go to AuC and then to final asset. What we try to avoid is to have the 2 settlements immediately one after the other. We would like to have the settlement to AuC on a weekly basis and the other one only when capitalization is required. But if the final asset is already entered in the settlement rule of the order via KOB5, then there is a risk to settle to final asset. We would like to only run the second type of settlement only when the asset is ready to be capitalized. To be able to do that we thought about using the user status. For example, if status is "release", we could settle to Auc but not to final asset and if status is "approved", we could settle to final asset.
Do you see what I mean? I need a status that allows me to perform some transactions and another one that allows me some other business transactions. The problem is that the 2 settlements I am talking about are not recognized as business transaction but as processing type.
Any ideas?
Thanks
Sabine
Edited by: Sabine Janssen on Oct 14, 2009 10:46 AM -
Maintain User Status for Maintenance Order
Hi,
I want to maintain User Status along with System Status. For that i have created a user profile for Maintenance and can view and modifiy define user statuses on the Maintenance Order. I have define following three statuses.
- Created
- Released
- Completed
Initially "Created" status is set on the Maintenance Order but so far i am unable to configure system to automatically change the status into "Released" when the order released and change it to "Completed" when the order is tech completed.
In short, how to link business transactions with the User defined statuses?
Regards,
ShahHi,
Thanks Dhavan, it was really helpful..
My requirement was to have a report on Maintenance order in terms of only three statuses "Created" , "In progress" and "Completed" to have a Pie Chart view of maintenance orders. The problem i was facing was that System Status shows multiple statuses depending upon the sequence of the business transactions conducted on the maintenance order and ultimately it ends up creating serveral statuses depending upon the sequence of actions performed on the order. That is why i opted to go for User Defined Statuses. And i linked those statuses with my Business Transactions i.e. like whenever i Release the order it automatically sets my User Status to "In Progress" and now i can have the report as per my requirement.
Regards
Shah -
User status for crm order in bw
Hello
There is a customized status profile in crm for sales orders.
I'm using extractor 0crm_order_i for loading orders into bw.
How can I get this user status in the data source through sbiw customization ?
Thanks,
Rita ArkinIf you want to extract additional fields, you need to extend the
corresponding extract structure and possibly the communication
structure, fill the field with the user exit EXIT_SAPLRSAP_001,
etc.
Also, you will find additional information about such enhancments in:
http://service.sap.com/bi
> Documentation
> Business Content Documentation
> Extracting Sales and Distribution Transaction Data - vers. 2
Chapter 7 of this document provides further information about the
enhancement of extract structures.
See transaction RSA5
Colin -
BAPI to set user status for PS
Hi,
I need to set the status as approved "E0002" from BAPI ( from workflow) for Project definition (BUS2001)
I got BAPI " BAPI_BUS2001_SET_STATUS" and gave import parameter for project definition but i couldnt able to give value for set_user_status as it takes only 4 char but my status(JEST) is 5 char (E0002).
Please help me how to use this bapi and what are all other bapi's i need to call to work correct.
AshuUse this FM I_CHANGE_STATUS for changing status.
CALL FUNCTION 'I_CHANGE_STATUS'
EXPORTING
OBJNR = v_objnr
ESTAT_INACTIVE = 'I0001'
ESTAT_ACTIVE = 'I0002' -
User exit to set user status for quote
Hi,
I need to update the user status in the header of quotation (using VA22) 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 put the conditions before upating user status in header
Thanks
Thang TranHi,
Is there anyone can give me some suggestions?
Thanks in advanced
Regards,
Thang -
Any Pointers to set user status in iw31 and iw32
Hi all,
I am working on an enhancement where I need to set the user status for an order every time a new order is created(iw31) or an existing order is changed(iw32) and a material in that is flagged as a retirement unit material.
Is there any function module to do that?Hello Anu
I would like to point to the BAPI documentation where a useful BAdI (<b>IBAPI_ALM_ORD_MODIFY</b>) is mentioned:
FU BAPI_ALM_ORDER_MAINTAIN
Short Text
Process Maintenance-/Service Order
Functionality
This Business Application Programming Interface (BAPI) is used for
changing maintenance- or service orders and their lower-level objects.
The following objects of an order can be processed (for restrictions,
see the note at the end of the documentation):
o Order header
o Partner
o User status
o Order operations
o Relationships
o Components
o Long texts for order header, operations, and components
Function
Calling up this BAPI once allows you to perform all the operations. For
this the system supplies the function module with a method table
containing the methods to be performed. The entries in the method table
refer to data records in the optionally filled-out data tables. All the
methods from the method table are performed. Alternatively, just lower-
level objects from existing orders can be changed.
You can process the transferred data with the Business Add-In (BAdI)
IBAPI_ALM_ORD_MODIFY to, for example, merge data from the external
system with data from the R/3 system. The BAdI is called up as soon as
the transferred data is converted into the internal format. The tests
then take place after this.
Construction of Method Table
o REFNUMBER Reference number for linking object methods - attributes
The reference number is the line of the database which contains the
corresponding data. The data table is determined by the object type.
o OBJECTTYPE Object category
The object category specifies which object from the order should be
processed. The key words listed here are not language-dependent and
must be transferred exactly as they are. The following objects
exist:
- HEADER Order header
- PARTNER Partner data
- USERSTATUS User status
- OPERATION Operation data
- RELATION Relationships
- COMPONENT Components
- TEXT Long texts
- (empty) ,General BAPI functions (save)
o METHOD Methods
The methods with which the data should be processed. The following
functions exist:
- CREATE Create objects
- CHANGE Change objects
- DELETE Delete objects
- RELEASE Release
- TECHNICALCOMPLETE Technically complete
- ATPCHECK Availability check
- CALCULATE Calculate
- SCHEDULE Schedule
- DELELTEDSEX Delete the status for external scheduling at
operation level
- SAVE Save all data
- DIALOG Call-up dialog. See explanation below.
- TRACE Write trace file in the specified file to the
frontend
o OBJECTKEY SAP external object key
This key is for assigning the lower-level objects correctly to the
corresponding objects, as there is always just one key in the data
table. The key must have the following structure:
- 1-12 Order number
When creating orders with internal number assignment, a
reference number beginning with % must be entered here. The
BAPI then returns this number and the number actually assigned.
- 13-16 Operation number
- 17-20 Sub-operation number
For relationships, the key is structured as follows:
- 1-12 ,Order number from
- 13-16 Operation number from
- 17-28 Order number to
- 29-32 Operation number to
The following methods are permissible for the individual objects:
o HEADER:
CREATE, CHANGE, RELEASE, TECHNICALCOMPLETE, ATPCHECK, CALCUALTE,
SCHEDULE
o OPERATION
CREATE, CHANGE, DELETE, DELETEDSEX
o PARTNER, RELATION, COMPONENT, USERSTATUS, TEXT:
CREATE, CHANGE, DELETE
o (empty):
SAVE, DIALOG, TRACE
Data tables and update tables
The objects have one or more data tables. For some objects you can
specify which of the fields specified in the structure should be
changed. For this you must set the field in the corresponding table to X
as in the data table. If no update-table is transferred, then only
those fields are set that have a value that is not initial. This
simplifies the transfer data. However, this means it is not possible to
delete fields. If an update structure should only be specified for some
data records, the table with the update fields must nonetheless have the
same amount of lines as the data table. The empty lines are then
treated as if no update structure was transferred. The objects
"Partner", "User Status", and "Text" have no update tables. The whole
data record is always copied here.
References
The objects use the field REFNUMBER from the method table to refer to
the lines in the data table. Counting always begins with 1. In doing
this, REFNUMBER also refers to the update table. However, in the method
table there is a second reference to higher-level objects for
lower-levels objects. The field OBJECTKEY must be filled with order
number, operation number, and sub-operation number, as specified above.
If lower-level objects of a newly-created order should be changed, then
you must enter a temporary order number that must begin with %. Several
orders can be numbered serially, for example, with %00000000001,
%00000000002 ... .
The following objects have special treatment for REFNUMBER:
o Partner
o Texts
Partners have an order number in the data table. During processing of
the method table, all those entries in the data table are processed
which have an order number that is the same as that in the line to which
the method refers. Thus, through just one entry in the method table,
several partners can be changed.
Texts are composed of two tables. The first table (IT_TEXT) is made up
of the header data of the text. Here you must specify the object and the
first and last line of the text table (respectively inclusive, counting
from 1). Through this, a line segment is specified in the text line
table (IT_TEXT_LINES).
Peculiarities in processing
The BAPI processes the transferred methods in a particular sequence,
which must not correspond to the sequence in the methods table.
o Write trace file
o Change user status time period 1
o Delete objects (dependent first)
o Create new objects
o Change existing or newly-created objects
o Change user status time period 2
o Status change of order
o Save data
The methods are performed such that lower-level objects can also be
assigned to newly-created objects. For example, first the operations are
created, and then the components. Long texts can also be created for the
objects.
Components have an exceptional position. Components are created through
the assignment to an operation, that is, using the "key" order/
operation (item number). However, as this is not the unique component
key, you can only access the components to change them, delete them, or
add long texts by using the reservation number/-item, which is only
given after saving. This means that, for example, you cannot create a
long text when you create the component.
User status changes can take place at two different time points. Time
point 1 is before the object changes, time point 2 is after the object
changes and before the status change of the system. These time points
should be defined in the transfer table in the field CHANGE_EVENT. The
field documentation contains the possible values.
The external scheduling is offered by the BAPI as a special function.
THe BAPI can set the date field directly at the operation level, and
select the operation with the status DSEX "Date set by external system".
This status prevents any further scheduling of the operation, it keeps
the transferred dates. For this, set the category 'X' in the restriction
categories. When reading the operation, this category is also returned,
independent of the category of restriction set in the dialog. To delete
the status, you can call up the method DELETEDSEX for the object
operation. The external scheduling cannot be influenced in the dialog.
All changes to the scheduling restrictions in the dialog are saved as
normal, but are not relevant for the scheduling as long as the status
DSEX is active.
Every time the BAPI is called up, a SAVE or DIALOG method must be
transferred. Normally, calling up a BAPI is seen as a transaction. All
data that is changed in the BAPI should be saved to the database
immediately. The BAPI checks whether a SAVE method exists, otherwise it
terminates processing. A test run of the BAPI is composed of a normal
call-up using the SAVE method and a subsequent
BAPI_TRANSACTION_ROLLBACK. To call up the BAPI without the SAVE method,
for example, to realize dialog transactions, the BAPI can be called up
with the DIALOG method. This switches off the check for the SAVE method.
The processor must then ensure that later either a SAVE method or a
BAPI_TRANSACTION_ROLLBACK is called up.
A BAPI_TRANSACTION_COMMIT without SAVE method terminates processing in
the update to ensure that no inconsistent data is written to the
database. The processor who called up the BAPI does not receive any
confirmation for the termination of the update in the target system.
This logic is necessary as the order data was flagged for updating with
BAPI_TRANSACTION_COMMIT through the SAVE method. However, the status
information was already flagged for updating when the BAPI was called
up. A BAPI_TRANSACTION_COMMIT without SAVE method then just saves the
status information and would generate inconsistent orders, if the
updating was not terminated.
Customer Enhancement
The BAdI IBAPI_ALM_ORD_MODIFY can be used to change the transferred
data. The BAdI is called up after the conversion of the transfer
structure into the structures used internally. Additional data can be
transferred using the table EXTENSION_IN. Only then is the data checked.
Example
The following examples should clarify the use.
Creating an order
OBJECTKEY should be filled with a temporary key. The BAPI returns this
key together with the assigned order number in the return table
ET_NUMBERS . The order number in the HEADER table should also be filled
with the number. For external number assignment, the external number
should be specified. The update structure can be transferred if
necessary.
Methods table
REFNUMBER OBJECTTYPE METHOD OBJECTKEY
1 HEADER CREATE %00000000001
IT_HEADER
ORDERID ORDER_TYPE PLANPLANT ...
%00000000001 PM01 1000 ...
Creating an order with operation and long text
Methods table
REFNUMBER OBJECTTYPE METHOD OBJECTKEY
1 HEADER CREATE %00000000001
1 OPERATION CREATE %00000000001
1 TEXT CREATE %000000000010010
IT_HEADER
ORDERID ORDER_TYPE PLANPLANT ...
%00000000001 PM01 1000 ...
IT_OPERATION
ACTIVITY SUB_ACTIVITY CONTROL_KEY WRK_CNTR ...
10 PM01 MECHANIC ...
IT_TEXT
ACTIVITY ... TEXTSTART TEXTEND
10 ... 1 2
IT_TEXT_LINES
TDFORMAT TDLINE
* Longtext for operation 10, line 1
* Line 2 of the long text
Notes
Using the BAPI to process the order data cannot support all the functions
of the transaction. This applies in particular for the following
functions:
Order header data
o The object list cannot be processed.
o Refurbishment orders are not supported.
o The estimated costs cannot be processed - only the estimated overall
costs of the order.
o Notification data cannot be processed with the order BAPI. Even if
the settings in Customizing are such that the orders and
notifications can be maintained on one screen, no notification is
created for the order.
o Permits cannot be processed.
o The order addresses cannot be processed.
o Individual partner addresses cannot be maintained.
o The settlement rule cannot be maintained.
Order functions
o Printing the papers is not possible.
o Locking and unlocking the order is not possible.
o Accepting and rejecting quotations is not possible.
o Business completion is not possible.
o Flagging for deletion is not possible.
o The log cannot be displayed.
o User default values are not used.
o The field selection is not checked.
o The Customer Exits/BAdIs are not executed completely.
o Joint ventures are not supported.
o Funds Management is not supported.
o Investment orders are not supported.
o No integration of service products with task lists possible.
o No integration of configurable service products possible.
o Assignment of sales document items with service products in
accordance with the aforementioned conditions.
Operation data
o A change of the control key in the operation is not possible, if
this leads to a change of the processing type (internal-/external
processing)
o User status change not possible.
o Production resources and tools cannot be processed.
o Service lines cannot be processed.
o Task list integration is not supported.
o Linking operations with object list is not supported.
Component data
o User status change not possible.
o BOM data cannot be processed.
o The delivery address cannot be processed.
Further information
See also the documentation for the individual transfer tables.
Parameters
IT_METHODS
IT_HEADER
IT_HEADER_UP
IT_HEADER_SRV
IT_HEADER_SRV_UP
IT_USERSTATUS
IT_PARTNER
IT_PARTNER_UP
IT_OPERATION
IT_OPERATION_UP
IT_RELATION
IT_RELATION_UP
IT_COMPONENT
IT_COMPONENT_UP
IT_TEXT
IT_TEXT_LINES
EXTENSION_IN
RETURN
ET_NUMBERS
Exceptions
Function Group
IBAPI_ALM_ORDER
Regards
Uwe
Maybe you are looking for
-
GL account and Cost Centre Info
Hi All Where does the GL account / Chart of accounts / Cost centre information gets stored in SRM System? Are there any specific tables for this.. Thanks and Regards
-
Acrobat Pro 9 with Mozilla Firefox....plugin?
I am running Acrobat Pro 9 on my Windows Vista laptop. I noticed when I installed it , it automatically installed a plugin for Internet Explorer, that allows selection of frames on a webpage and then converted and saved as .pdf files. Is there a simi
-
How to fix a Syntax Error?
I have a problem with my MXML Application. I keep getting an error: 1084: Syntax error: expecting rightparen before rightbrace, But I don't know what that means. Here's my MXML, <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://
-
http://www.oracle.com/technology/pub/articles/vohra-jdev-xmlpub.html I used the above link to create XML's and from there a formatted report of data from the database. I accomplish this by connecting to the database inside the XMLPublisher.java file.
-
Is it possible to 'lock' a Safari window?
I don't think this is possible at present, but I think it would be a very useful feature if implemented. I frequently upload large video data files to online storage sites like FilesAnywhere etc, which is done by selecting a video file and then uploa