cancel
Showing results for 
Search instead for 
Did you mean: 

Service order status issue in sap.

gagan_narendra
Product and Topic Expert
Product and Topic Expert
0 Kudos
960

reset.pngHi,

I have changed serivce order status from TECO to NOCO and then to CLSD and later set the Delete status for that order. Now the issue is once the delete status is set for that order we are not able to reset the deletion flag which we had set. This can be done when we manually change the status of order through IW32.

Once delete flag is set THROUGH CUSTOM PROGRAM using FM STATUS_CHANGE_INTERN, the reset option in grayed out. please find the screenshot attached.

Accepted Solutions (1)

Accepted Solutions (1)

peter_atkin
Active Contributor

GAGAN N,

You cannot function module STATUS_CHANGE_INTERN to update the system-status in PM/CS orders as it doesnt updated the AFIH-IPHAS field value resulting in inconsistent order statuses.

Have a look at FM /ISDFPS/WO_SYSTAT_SET instead.

PeteA

gagan_narendra
Product and Topic Expert
Product and Topic Expert
0 Kudos

This FM works perfect for this scenario.

Thank you.

Answers (1)

Answers (1)

RaymondGiuseppi
Active Contributor

Don't use a non released status such as STATUS_CHANGE_INTERN

  • Some fields are not updated in order tables
  • Some impact on related notifications and operations are not processed

Look at BAPI_ALM_ORDER_MAINTAIN (many statuses can nowadays been handled, since OSS notes 1991913 and 2032068) (Hint: Look in BAPI documentation for available values for field METHOD of IT=_METHODS.)

gagan_narendra
Product and Topic Expert
Product and Topic Expert
0 Kudos

Sure thank you.