Skip to Content

1.PNG

Scanning program is used to scan the overall smart forms and display the hard coded values used in windows and initialization and teaches you how to find the nodes exactly where it is placed when you know the name of the node.


2.PNG


  • Reduce manual search through every windows that saves lot of time while migrating old sales organization to new sales organization.
  • Display The Styles Used In The Smart forms
  • Display the sales organization or any other hard coded value details used in conditions of window or code lines.
  • Display with the exact node, window and page of the search string in the ALV format.


3.PNG

  • Need to pass the downloaded XML file in the selection screen or we can use standard program RFRECPSFTLXML and the smart form into XML format.

4.PNG

  • It uses the class “CL_XML_DOCUMENT” to read the inputs that have been provided in the selection screen. This tool converts Parses DOM to XML Stream (String) using the method “RENDER_2_XSTRING”.
  • Using the function module “SMUM_XML_PARSE” it will converts the XML file data into the SAP internal table.
  • Form “SCAN_CODE” is used to find the hard code used in the global data declaration, initialization and form routines.
  • After that we will get the details of pages, windows and nodes used in the smart forms.
  • Table “ZSF_HARDCODE” used to maintain the entries to search for the old sales organization or string need to be searched.
  • It displays Styles used in this particular smart form.


How to Find the Exact Node of the Smart Form:

Please refer the below link,

Trick to Find Any Node in Smartforms – ABAP Help Blog

Note/Need Help:

For temporary purpose I created this program within a week to avoid manual check for so many forms if you have any suggestions to improve the performance or any other feedbacks are always welcome.

One main disadvantage I am facing is if same window name used for next page the name of the form is not coming inside the internal table, system itself assign some unique window name and assign in its internal table.

Not able to find how many standard include text (SO10) are used in the smart forms,

8.PNG

Last But Not Least:

1.PNG

2.PNG

In This table we will give the requires sales organization text

3.PNG

The code have been attached in the document for your reference please find the below sample screenshots. This article has been created due to doubt asked by me in SDN(http://scn.sap.com/thread/3614818).

Special thanks to “Eitan Rosenberg” who shared the following threads and makes me to think about the possibilities. Thanks for each SDN members support.

1.    http://scn.sap.com/community/abap/blog/2014/09/07/basic-smart-form-source-scan

2.    http://scn.sap.com/docs/DOC-55861.


I am not able to attach more than three files I have make Top include and selection screen in same file please copy and create separate includes.Thanks for understanding.




To report this post you need to login first.

17 Comments

You must be Logged on to comment or reply to a post.

    1. Ravi Shankar Post author

      Hi Manish,

      Yes that part have been studied from somewhere exactly I have not remembered it.After results have been displaed in ALV users needs to go to that node for that only I have pasted actually I am having it in my wordpad only exactly not know the address.

      No problem I will delete that part and provide the link you mentioned.

      Sorry for the problem caused.

      Regards,

      Ravi Shankar.L

      (0) 
    1. Ravi Shankar Post author

      Thanks for using this,First credit received from SDN members….

      As per my knowledge there is no scanning programs available for search smartforms by window,Node and page.Here after we can expand this code by our own custom logic.

      Thanks for your time for using this.

      Regards,

      Ravi Shankar.L

      (0) 
  1. Yuvaraj Shanmugam

    Hi Ravi,

    You have done quite a bit of research and played around XML, strings and smartforms etc. Things like this fuel my interest towards programming since they lie beyond just application development.

    Reading your blog reminded about me about an infamous quote about us programmers,’Our ability to build something exceeds far beyond our ability to know what to bulid

    If I want to do a search for hardcoding in a single smartform I can easily open the smarform and go to Utilities -> Form Information and do a search there? This utility basically displays the same XML data that we generate, but in a very readable format.

    Your program could have been even better if the users dont have to deal with the hassle of generating XML and if it could do a hardcode searches on more than one smartform at a time.

    Cheers,

    Yuvaraj S

    (0) 
    1. Ravi Shankar Post author

      Thanks for your feedback…. I will try to implement this things… basically we get that from Information details but my problem is they are changing the sales organization to some other name it is hardly 380 counts of sales organization changing.. So I need to check all 380 in a short and need to get approval where it is hard coded and than only we start doing changes we are having around 230 smart forms.

      So manually checking this in information tab is little though.. Here after we can download that in excel and get approval and do the changes 🙂 .

      Here after any one can write is own logic … I am little busy now once I get time I will change the things you have mentioned and update.It has been developed within a week that’s why not able to add some more functionalty.

      Thanks for your time and you gave new insights to the program 😉 .

      (0) 
      1. Andrea Olivieri

        Hi Ravi,

        4 years ago, I was involved in a spin-off project of an Italian company of the automotive sector.

        My task was to identify and modify the ABAP interfaces, programs, printing forms, text, etc … containing references to the company to be dismissed.

        A few years later another customer asked me out a very similar analysis and the same programs have been very useful.

        The ABAP programs included in this wiki, perform a RegEx search within the following objects:

        • ABAP programs (Programs / Includes, Function Groups and Classes)
        • Text elements in SAPScript modules
        • Text elements in ABAP programs
        • Code Nodes, Initialization, Form Routines and Global Types in SmartForm Modules
        • SAPScript (standard) Text
        • SmartForms text

        Cheers,
        Andrea

        (0) 
  2. nancy perez

    Hello Ravi Shankar,

    Thanks You Very Much

    Very Useful Document…

    SAP Smart Forms tool can be used to print and send documents. This tool is useful in developing forms, PDF files, e-mails and documents for the Internet. The tool provides an interface to build and maintain the layout and logic of a form. SAP also delivers a selection of forms for business processes such as those used in Customer Relationship Management (CRM), Sales and Distribution (SD), Financial Accounting (FI) and Human Resources (HR).

     

    (0) 
  3. nancy perez

    Amazing Document..Very Useful

    SAP Smart Forms tool can be used to print and send documents. This tool is useful in developing forms, PDF files, e-mails and documents for the Internet. The tool provides an interface to build and maintain the layout and logic of a form. SAP also delivers a selection of forms for business processes such as those used in Customer Relationship Management (CRM), Sales and Distribution (SD), Financial Accounting (FI) and Human Resources (HR). 

    (0) 

Leave a Reply