‎2009 Dec 02 7:21 AM
I have to set an user status directly when creating an order(production order). Cannot use IWO10009 since while creating the order has got no instance in database tables. I need any function module to update the status internally or any exit that is invoked when we open the order for viewing(Since it cannot be set during creation, it can be set on opening and the user would have the same feel!!). Please Help.
Thanks in advance for your responses.
‎2009 Dec 02 8:36 AM
I think your exit EXIT_SAPLCOIH_009 should actually work fine. Please try to use function module STATUS_CHANGE_EXTERN and feed it with the temporary object number that you should have in the customer exit. Basically the status management is done in memory using temporary numbers (if there's no early number assignment) and upon save all the status information is updated correctly.
Cheers, harald
‎2009 Dec 02 8:36 AM
I think your exit EXIT_SAPLCOIH_009 should actually work fine. Please try to use function module STATUS_CHANGE_EXTERN and feed it with the temporary object number that you should have in the customer exit. Basically the status management is done in memory using temporary numbers (if there's no early number assignment) and upon save all the status information is updated correctly.
Cheers, harald
‎2009 Dec 02 9:20 AM
Thank you for the reply.
But the orders don't have a same status number as different orders lie in different status profiles.( A configuration used here). SO with the temporary object number i cant hit databse tables for the status profiles.
The status number is the input for the function module you stated.
Is there any method by which I can update the user status internally while remaining in that exit?
Waiting for responses.
Thanks in advance.
‎2009 Dec 02 10:30 AM
Not sure if I understand you correctly. Basically the function module that I gave you will update the user status. If you need to figure out the status code based on the short text for a user status, you can derive that via table TJ30T; the parameter CAUFVD_IMP-STATS contains the status profile (assuming that you're not looking for a status profile on a different level like operation). Is this what you're looking for?
‎2009 Dec 03 6:35 AM