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

Setting status of equipment / functional location and trigger ACI sync

jrgkraus
Active Contributor
0 Kudos
1,162

We use AIN for managing our equipment and functional locations data. Our ERP is connected via the ACI interface. The goal is to change the status of a technical object (from ABAP) and then trigger a sync of data via ACI interface.

I tried to set the status using FM STATUS_CHANGE, which works but does not trigger the data sync because it bypasses the business logic of IE02/IL02. When I do the change in transaction IE02 / IL02, the sync is triggered.

A batch input approach is possible but I try to avoid it because the status screen of IL02/IE02 is not batch input friendly.

The available BAPIs are not able to change the status. 

Is there a function module that maintains the status of a technical object using the business logic of the transactions IE02/IL02 in order to trigger the sync? Or is there a possibility to trigger the ACI sync from ABAP? 

Accepted Solutions (1)

Accepted Solutions (1)

RaymondGiuseppi
Active Contributor

Did you alread look at the (others) BAPI/API of function groups ITOB_BAPI_EQ Equipment and ITOB_BAPI_FL Func location?

  • There are BAPI for some system statuses: e.g. BAPI_EQUI_INSTALL, IBAPI_FUNCLOC_SET_INACTIVE
  • There are some BAPI for all user statuses e.g. IBAPI_EQUI_USERSTATUS_CHANGE, IBAPI_FUNCLOC_USERSTATUS_CHANG

Else which statuses did you try to set or reset?

jrgkraus
Active Contributor
0 Kudos
ibapi_equi_userstatus_change and ibapi_functloc_userstatus_chang did the job. Thanks, you saved my day!
jrgkraus
Active Contributor
0 Kudos
Important: read my next answer!

Answers (1)

Answers (1)

jrgkraus
Active Contributor

I accepted the solution too early - the BAPIs @RaymondGiuseppi mentioned do work, but do not trigger the data sync. 

In the end it was @Sandra_Rossi 's answer that helped out. Using ABAP trace, I found two useful function modules for triggering a data sync

  • /MERP/PM_EQUIPMENT_SAVE_EX for the equipment
  • OPEN_FI_PERFORM_PM000070_E for the functional location

To see how to use them, find the usages in the SAP coding.