15
How to check Switch Framework activation result and how to fix issues Page 1 of 15 You manually activated a Business Function in customizing (transaction SFW5). While testing the newly activated feature, you realize that not all documented features are available or even experience system core dumps. Different tools are available for you to check the result of the Switch Framework activation. How to find inconsistent objects in SFW_BROWSER It is always a good idea to check the business function state in the Switch Framework Browser (transaction SFW_BROWSER). It can be called separately from the command line: Or called from the customizing transaction ‘Switch Framework: Change Business Function Status’ (TA SFW5): From the Help menu, you have access to the Application Help for the transaction where you will find an explanation of the different icons. In the Switch Framework Browser, you can filter by ‘Activated Functions’ or even ‘Inconsistent Functions’.

How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

  • Upload
    lelien

  • View
    223

  • Download
    5

Embed Size (px)

Citation preview

Page 1: How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

How to check Switch Framework activation result and how to fix

issues

Page 1 of 15

You manually activated a Business Function in customizing (transaction SFW5). While testing the newly

activated feature, you realize that not all documented features are available or even experience system

core dumps.

Different tools are available for you to check the result of the Switch Framework activation.

How to find inconsistent objects in SFW_BROWSER

It is always a good idea to check the business function state in the Switch Framework Browser

(transaction SFW_BROWSER).

It can be called separately from the command line:

Or called from the customizing transaction ‘Switch Framework: Change Business Function Status’ (TA

SFW5):

From the Help menu, you have access to the Application Help for the transaction where you will find an

explanation of the different icons.

In the Switch Framework Browser, you can filter by ‘Activated Functions’ or even ‘Inconsistent

Functions’.

Page 2: How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

How to check Switch Framework activation result and how to fix

issues

Page 2 of 15

When displaying ‘Activated Functions’, you can perform a consistency check for all business functions or

for a particular one:

The business functions marked with a green check mark ( ) are consistently switched on.

The business functions marked with warning ( ) may require further attention and should be

checked in detail.

The ones marked with errors ( ) must be checked.

The ones marked with the icon have yet to be checked.

Tooltips: The tooltips are displayed when moving the mouse over the ‘Activation status’ icon and

‘Check Status’ icon. They are especially useful for the Switch BC sets.

As of SAP note 1829633, tooltips have been enhanced to give extra information on the activation

status for Switch BC set.

Page 3: How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

How to check Switch Framework activation result and how to fix

issues

Page 3 of 15

Example:

You may have different business functions in your system than the ones displayed in the screen

captures below. The list of business functions depend on the software components installed on your

system.

From the Switch Framework Browser, you can see all objects assigned to the business functions by

expanding the sub trees.

Look for the inconsistent objects shown by warning icon ( ) or error icon ( ) by expanding the sub

trees. The Expand Subtree button ( ) can be used on any level in order to expand all nodes at once.

Examples:

Expanding one level ( ) of the business function displays the switches assigned to this business

function:

Page 4: How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

How to check Switch Framework activation result and how to fix

issues

Page 4 of 15

Expand Subtree ( ) :

Page 5: How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

How to check Switch Framework activation result and how to fix

issues

Page 5 of 15

Levels of inconsistencies

1. At Business Function:

For example, the business function shows switched off ( ), but assigned switches show that

they are switched on ( )/stand-by ( ).

This is an abnormal situation, please contact SAP for further analysis.

Possible reasons:

Client copy including Switch Framework settings. See note 1345847.

Switch Framework is activated at client level. See note 1554318.

2. At Switch:

A switch shows switched off ( ) while its business function shows switched on ( ).

Expand the Switch sub-tree to visualize the inconsistent objects.

If all objects in the sub-tree are also switched off ( ), SFW activation most probably ended up in

error or was terminated.

What to check:

Check the job log

In transaction ST22, check for dumps

What to do: Analyze the dumps or job log and see if you can find and fix the error. If not, report the

problem to SAP.

3. At Package:

Objects switched via Package assignment are switched off while the switch is switched on.

Reason: Switch Framework activation was interrupted.

What to check:

Check the job log

In transaction ST22, check for dumps

In transaction SFW5, check SFW logs. See SFW5 – Check logs.

Page 6: How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

How to check Switch Framework activation result and how to fix

issues

Page 6 of 15

What to do: Analyze the dumps or job log and see if you can find and fix the error. If not, report the

problem to SAP.

4. At Enh. Impl. BAdI:

Objects under node Enh. Impl. BAdI show switched off.

Reason: Post processing of Switch Framework activation was not performed.

What to check: Entries are remaining in table SFW_ENH_IMPL

What to do: See Continue activation in SFW5.

Check if SAP note 1789901 is relevant

5. At Switch BC Sets:

Non-cascading Swich BC sets are activated in reference client only to avoid

overwriting customer entries-> might be OK.

If you start up a new system or feature, you may need these customizing entries in the logon client.

You need to determine if the customizing entries are needed in the logon client and if there are

conflicts with your existing entries.

For this, use the ‘Compare’ button ( )from the Switch BC set which compares the BC sets

entries and the data contained in your system for these tables.

To activate Switch BC sets dependent on a switch and avoid activating each of them individually, you

can activate them in the logon client from the switch maintenance transaction SFW1.

a. Press button ‘Activate Dependent BC Sets’ ( )

b. On the pop-up screen, accept preselected option ‘Activate Switch BC Sets’

c. On the next pop-up screen:

i. For ‘Cascading BC Sets’, choose option ‘Only in Logon Client’

ii. For ‘Non-Cascading BC Sets’, choose option ‘Only in Logon Client’

iii. For ‘Cross-Client BC Sets’, choose option ‘Do Not Activate’

iv. For ‘ Ignore Previous Activations’, this option can be chosen to reactivate the Switch BC set

v. For ‘Ignore Table Delivery Class’ : This option can be selected in case some table entries were not copied due to delivery class which does not allow SAP to

Page 7: How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

How to check Switch Framework activation result and how to fix

issues

Page 7 of 15

override customer data. This is the case for tables with delivery class ‘G’ or ‘C’. If this option is chosen, you have to ensure that you compare the BC set content and that there are no conflicts. In case of conflicting entries, your data might be overritten when this option is chosen. Please see SAP notes 1808606, 877008.

Example:

Within transaction SFW_BROWSER, you can double-click on the switch, and press button Activate

Dependent BC sets ( ). Press ‘Continue’ on the next pop-up screen, keeping the selection ‘Activate

Switch BC Sets’.

Page 8: How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

How to check Switch Framework activation result and how to fix

issues

Page 8 of 15

In the next screen, leave the radio buttons as selected and check the options:

Activation job ‘SFW_ACTIVATE_BC’ is launched.

Page 9: How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

How to check Switch Framework activation result and how to fix

issues

Page 9 of 15

Switch BC Set activation log can be displayed from the switch using menu: Goto -> BC set logs.

Swich BC set is inactive and Error occurred

Double-click on the Switch BC set and check its activation log using ‘Display Activation Log’ button

( ).

Page 10: How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

How to check Switch Framework activation result and how to fix

issues

Page 10 of 15

Activation error in Dictionary: clear up the inconsistencies

Continue SFW activation After a manual activation in transaction SFW5 or after importing Switch Framework settings, you

encounter a message ‘ Activation error in Dictionary: clear up the inconsistencies’

when using transactions for Switch Maintenance (TA SFW1), Business Function Maintenance (TA SFW2)

or Switch Framework customizing (TA SFW5).

This message is available in the above transactions as of the following SAP_BASIS releases/support

packages:

702 SP11

720 SP08

730 SP07

731 SP03

This message shows up when the SFW activation is interrupted or when the SFW activation job is not yet

finished. First Check job logs.

From transaction SFW5, you can display the objects that still need to be activated by using button

‘Display Outstanding Tasks’.

Example:

Depending on the objects that still need to be activated, different options are displayed in the pop-up

screen.

In case post-processing objects were not activated, you can press `Continue Activation’. A new job will

be created with jobname ‘SFW_ACTIVATE_FINISH’.

Page 11: How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

How to check Switch Framework activation result and how to fix

issues

Page 11 of 15

In case the pop-up screen does not show any object, check whether SAP note 1853915 is relevant for

your SAP_BASIS release and support package.

In case the ‘Continue Activation’ button does not show, check your authorizations. You may not be

allowed to perform Switch Framework activation. Review SAP KA 1641394 for details.

Also see Correction DDIC Activation Errors.

Page 12: How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

How to check Switch Framework activation result and how to fix

issues

Page 12 of 15

SFW5 – Check logs

Different Switch Framework logs are available from transactions SFW5, using menu: Goto

DDIC logs – Displays the log for the data dictionary objects that were activated during previous

SFW activation. The technical Data Dictionary log can be displayed by pressing the ‘detail’ icon

( ).

Example:

Switch Framework logs – These logs display all manual SFW activations which happened in the

current system. They are sorted by date and time.

By choosing one of these logs, you will see the detailed SFW activation log messages. Look for

errors. Icon on the error message line means that a long text is available and can be

displayed by double-clicking on the long text icon. Follow instructions available in this long text.

Import logs – These logs are related to transport requests that were imported in the logon

system which contain object type SF02 – Switch Framework settings. The important logs to

check are:

o ‘ABAP Dictionary Activation’

o ‘Method Execution’

Example:

Page 13: How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

How to check Switch Framework activation result and how to fix

issues

Page 13 of 15

Check job logs

In transaction SM37, look for job names with ‘SFW*’.

Check the statuses of the jobs and whether they finished successfully.

Page 14: How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

How to check Switch Framework activation result and how to fix

issues

Page 14 of 15

Display a job log to see what error happened.

Page 15: How to find inconsistent objects in SFW BROWSER · PDF fileAs of SAP note 1829633, tooltips have been enhanced to give extra information on the activation status for Switch BC set

How to check Switch Framework activation result and how to fix

issues

Page 15 of 15

SFW5 – History

In transaction SFW5, you can review the history of the Business functions that were activated.

From the transaction main screen, use menu Goto -> History.

Activation date and time are displayed for each business functions that were switched on or off. Restart

mode indicated whether option ‘Activate Restart’ was used. Result and return value give information

concerning the dictionary activation status.

Example: