Trick to Find Any Node in Smartforms

By | September 9, 2013 | Tricks | 11,133 | 5

Smartforms has a nice tree display but it doesn’t provide Search functionality in the tree. This trick provides way to find the node easily.

Scenario

You are getting a short dump from a SmartForms. You able to find out the line of code which gives short dump from ST22. This reveals that the error is in the one of the program lines node in the Smartforms. Now, you scroll a bit up to find out the name of the Node. For example, the error is coming from the line # 40, of Program lines GET_ITEM_CONF of Smartforms SD_SDOC_FORM02.

Most of the time, only this information is not enough – as you would need to fix it. As now you need to locate that node in the Smartforms Tree so you can make necessary changes. Certainly you can start doing the back tracking by doing the where used and looking for the subroutines and from where its called, till the time you get the original node. Since this too much manual and boring here is the easy trick to find the node.

Activate the Additional Service for Control

The Key point here is to activate the additional services on the Controls. This Part of the SAP GUI. You can do it via, GUI Options > Interactive Design > Control Service. Here you would need to activate Enable Additional Control Services.

If you don’t have services active, you would get this context menu on the control

When you have Services active, you would get this menu

Print the Tree and Search

Now, use the print option to generate the Print. Since this print function is part o the GUI, it calls up the default browser to display the tree. The print web page also has nice ICONs as you see them in SAP screen. Use built Search functionality of the browser to find the node.

Steps to follow:

  1. Expand the tree. Context Menu > Expand
  2. Print the Tree. Context Menu > Services > Print
  3. Search. Web Browser’s built in Search to locate the node

Conclusion

Now you can easily find out node’s location in the Smartforms tree using this trick! This is applicable to all the tree controls.

Like It? Share!!

Don't miss an Update

Get notified of the new post, right into your inbox

Naimesh Patel{274 articles}

I'm SAP ABAP Consultant for more than a decade. I like to experiment with ABAP especially OO. I have been SDN Top Contributor.
Follow :

Explore all of his 274 articles.

Load comments

5 Comments

  • Fawcs

    Holy crap, I love you.

  • Naimesh,

    Thank you for sharing this trick. I tried, it works.

  • @Fawcs and @Tuncay,

    Gald you guys like it .. 🙂

  • Mohinder

    Hi Naimesh,

    Good learning, we can also search node via FM generated for Smartforms in attributes-> Include.

    Thanks
    Mohinder

  • Hello Mohinder,

    Yes, we can find it by using the Search functionality similar with steps mentioned in Smartforms Breakpoint. As I mentioned in the article, the issue with search functionality is, it doesn’t give you the Hierarchy of where exactly that node belongs. By using this Print function, you can easily navigate through the nodes.

    Thanks,
    Naimesh Patel

Comments on this Post are now closed. If you have something important to share, you can always contact me.

You seem to be new here. Subscribe to stay connected.