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

Doing TECO / CLSD without using BAPI

Former Member
0 Likes
560

Hi Expert,

In my requirement, there are some logic check on the consistency of some fields before doing TECO / CLSD the works order.

I have encounter a problem that the system is too old to have the bapi IWO_AER_DL_ORDER_TECO or BAPI_ALM_ORDER_MAINTAIN.


So i would ask....

1. Is there any risk to update the SAPKW70017 package to produdction server?

2. Is there any alternative way that I can do the TECO or CLSD in a background mode manner? besides the auto TECO options ?

3. Any non-ABAP way if possible?

(since I don't know how to insert the logic in that auto process).

BR- Chris

1 ACCEPTED SOLUTION
Read only

Katan
Active Participant
0 Likes
450

Hi Christopher,

You could use Functions STATUS_CHANGE_INTERN for system status and STATUS_CHANGE_EXTERN for user statuses. 


I am only suggesting this, as you say the BAPIs you require do not exist in the current system.  Make sure to read the FM documentation before using these. 


Note, these functions do not care about any underlying business logic that would occur during processing of the change of status within the application. So please make sure that there is no impact to the works order processing if you use this.


Cheers,


Katan


1 REPLY 1
Read only

Katan
Active Participant
0 Likes
451

Hi Christopher,

You could use Functions STATUS_CHANGE_INTERN for system status and STATUS_CHANGE_EXTERN for user statuses. 


I am only suggesting this, as you say the BAPIs you require do not exist in the current system.  Make sure to read the FM documentation before using these. 


Note, these functions do not care about any underlying business logic that would occur during processing of the change of status within the application. So please make sure that there is no impact to the works order processing if you use this.


Cheers,


Katan