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

Getting PM Order Number While Saving

Former Member
0 Likes
1,337

Hi All,

Im developing a program to send a SMS when a PM order is released & saved. What i want is to get the generating order number in the user exit. only thing i get is AUFNR = 00000000001. How to get the number which is going to be saved in the user-exit.

Thanks..

Malinda

4 REPLIES 4
Read only

Former Member
0 Likes
883

Hi,

In what transaction, or better Module/Function pool, you are looking for an User Exit. When you know the Module/Pool, open it via either SE80 or SE38, and find

CALL CUSTOMER-FUNCTION

.

You will find CALL CUSTOMER-FUNCTION '001', '002', .......

Each number is linked to an FM with the name EXIT_<Module/Function Pool>_001, 002, .....

Look at the IMPORTING and EXPORTING parameters and choose an FM which fits your needs best.

exit for iw32 transaction.

IWO10012 Maintenance order: Priority handling on central header

Thanks&Regards,

Naresh

Read only

0 Likes
883

Hi Naresh,

I have already found the user-exit for save event in IW32, what i want to know is there any way to find out the document number that is going to be generated, because before saving the number is displayed as '000000001'.

Thanks

Malinda

Read only

paul_meehan
Product and Topic Expert
Product and Topic Expert
0 Likes
883

Hi,

You are getting a temporary order number, this is all that will be available in the exits until the order has gone through update mode and saved.

One option might be to prevent the order release from IW31, use exit IWO10009 to do this. That will force users to use IW32 to edit and release the order which will now have a proper order number. Same exit IWO10009 can then be used to generate a email.

Usually workflow functionality would be used to generate email a some event such as order save or release.

-Paul

Please use Enterprise Asset Management (EAM) forum for PM/CS specific topics

Read only

0 Likes
883

Hi,

Could you please share what solution you implement?

Now I was asked by the client to also perform such an action of sending an SMS while saving the message