cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function Module/BAPI to Close Orders (CLSD)

peter_atkin
Active Contributor
0 Likes
5,105

Hi all,

Does anyone know of a single function module that will close a PM/CS order (system-status CLSD) and also update the AFIH-IPHAS field at the same time.

We have tried various scenarios (including BAPI_ALM_ORDER_MAINTAIN, IMAS_CHANGE_STATUS_SINGLE, STATUS_CHANGE_INTERN, etc) without luck..

Note 1: if both aren't updated, then it messes up order processing and reporting...

Note 2: we have used the same method as IW38, but it uses BDC and we don't want to use that..

PeteA

View Entire Topic
Former Member
0 Likes

Hi Pete!!

If your desire to close your work order technically, the field PHASE is filled up as '3', which means 'Technically completed', by using IW32 T-CODE, in SAP.

Have you tried to use the method value "TECHNICALCOMPLETE" in the BAPI_ALM_ORDER_MAINTAIN? I guess it works!

Regards,

Evandro Costa Neves.

peter_atkin
Active Contributor
0 Likes

Evandro Costa Neves.

We know how to do TECO via BAPI_ALM_ORDER_MAINTAIN.

However, we want to set CLSD ensuring the AFIH-IPHAS field is also updated.

Anyone else got any ideas?

PeteA