cancel
Showing results for 
Search instead for 
Did you mean: 

How to check weather FM is Called by Migration Cockpit

master1980
Explorer

I have a Questen regarding SAP Migration Cockpit. How can I undoubtedly determine, weather a piece of Code (e.g. Function Module) is called from the Migration Cockpit Framework? E.G. SD_SALESORDER_CREATE_EEW can be called either from BAPI, CRM-Interfaces or Migration Cockpit. The SYST-Structure does not contain nothing at all during debugging.

We have 2 Problems, the solving of which needs me to create implicit Enhancements or Modifikations in which i have to check out if we deal currently with a Migration session or not.

I think there must be some kind of a "Singleton" of the migration Framework I could use:

Like This:

if CL_DMC_MIG_RUNNING=>GET_INSTANCE=>IS_MIGRATION_RUNNING( ) = APAB_TRUE.
do somesting different..........

endif.

View Entire Topic
master1980
Explorer

Hello,

maybee I have found a solution myself: CL_FS4MIG_CONTEXT=>IS_ACTIVE( ) (?)

ThomasZloch
Active Contributor
0 Kudos

Looks fine, as the call to the setter method is generated into the OLO function modules before the BAPI calls.

Good to know 🙂