Use ABAP Code to Generate a Where-Used List of Smart Styles

  • by Muhammad Ramzan, SAP Certified ABAP and NW Portal Development Consultant, Ejada Systems, Saudi Arabia
  • December 27, 2012

You can use ABAP code to create a utility that allows you to generate a where-used list of Smart Styles. With it, you’ll be able to find where a Smart Style is used in Smart Forms at any node level, eliminating a normally laborious process.

Smart Styles are used to define paragraph and character formats, which you can then assign to text and fields in Smart Forms. You do this globally for the entire Smart Form in its form attributes. In addition, you can assign a Smart Style locally to a node, such as a text node.

You can apply a Smart Style to one or many Smart Forms in the system.

When any information in a Smart Style is changed, it affects all Smart Forms in which text nodes are using that Smart Style. In view of such a situation, it becomes necessary to find out which Smart Forms is using the specified Smart Style.

A where-used list of Smart Style enables you to find out the names of those Smart Forms in which one or all text objects are using that Smart Style. Once the Smart Style is used in a Smart Form at any node level, the name of that Smart Form will be included in this where-used list of Smart Styles. There is no standard functionality that does this for you.

There is no third-party tool involved; it is completely based on the SAP system. To run it, you should have some basic knowledge of ABAP. The code has one limitation, which is that it only accepts the name of one Smart Style at a time.

Muhammad Ramzan

Muhammad Ramzan is an experienced SAP Certified Consultant in ABAP and Portal development. He has more than five years of development experience in SAP. His current affiliation is with EJADA Systems at the Saudi ARAMCO Project in Saudi Arabia. Previously, he was a senior SAP Development Associate in DESCON Engineering Limited in Pakistan, which is a leader in the Engineering & Construction, Chemical, and Power industries. His career experiences in the software development industry as well has made him capable of integrating SAP and non-SAP solutions successfully.

See more by this author


No comments have been submitted on this article. 

Please log in to post a comment.

To learn more about subscription access to premium content, click here.