Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Order user exit..

Former Member
0 Likes
663

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
571

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

4 REPLIES 4
Read only

Former Member
0 Likes
572

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

Read only

0 Likes
571

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.

Read only

0 Likes
571

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?

Read only

0 Likes
571

Thank you very much . It solved my problems.