‎2011 Oct 17 8:21 PM
How does one search through all SAPScript and SmartForms to find a particular variable being used in its text? I would like to search for the use of the variable BUKRS to see what company codes are hard-wired inside these forms. I have scanned the SDN site for help, as well as, manuals, and other web sites. Nothing pops up. It is a daunting task to do one form at a time. I am hoping for a time-saver approach.
‎2011 Oct 17 8:25 PM
Hello,
for smartform you can download in XML file and search through to get the desired result...
for sapscript I think there is a download option...just now able to remember...
Thanks
‎2011 Oct 17 8:25 PM
Hello,
for smartform you can download in XML file and search through to get the desired result...
for sapscript I think there is a download option...just now able to remember...
Thanks
‎2011 Oct 17 9:10 PM
Hi Patrick,
the only way I know - at least for sapscript - is to write a little program and use function module 'READ_TEXT'.
Here you can find a little example:
[http://www.dv-treff.de/sap-community/default.aspx?g=posts&t=2194]
Hope it'll help!
Regards
Nicola
‎2011 Oct 17 10:32 PM
Nicola, The program link you provided does save time by allowing me to quickly scan a sapscript, one at a time. This will work but will still require entering each sapscript. Much better than opening each form and manually scanning using SE71. I'll play with this program to see if I can expand it's capabilities. I'll post my findings. Thanks, Pat
‎2011 Oct 18 7:58 AM
Hi Patrick,
just select all forms from table TADIR (PGMID = R3TR, OBJECT = 'FORM' for Sapscript or 'SSFO' for Smartforms)
OBJ NAME = 'Z*' for your own forms)
and then use the Read_text within the loop over the above selected data.
Regards
Nicola
‎2011 Oct 18 11:47 PM
Nicola, the sapscript part works great looping through the TADIR table. Now it spins through all the sapscript forms and gives me the results I'm looking for. However, the smartforms piece is not giving results when using SSFO. The READ_TEXT FM returns an exception code of 8. I searched to see if there were other STD FMs out there like READ_TEXT which would give me smartform text. No luck. So, any other ideas would be appreciated, otherwise, I'll have to resort to the solution given by Krishnendu. I appreciate all your responses. Pat
‎2011 Oct 18 11:49 PM
‎2011 Oct 19 5:23 AM
Hi,
Open the Function Module generated by SMARTFORM and search in that.
FOR SAPSCRIPT : -You can use UTILITIES=> fORM inFO => ctrL+F AND PASS STRING TO SEARCH
regards
Deepak.
Edited by: Deepak Dhamat on Oct 19, 2011 6:24 AM
‎2011 Oct 19 8:14 AM
Hi Patrick,
I've looked around a bit and found function module SSFHLP_SHOW_FORM_INTERNAL which shows you everything depending to a smartforms. It's a bit slow and you have to click on expand all to found all variables. But in there are all the tables where smartforms informations are stored.
Hope that helps!
Regards
Nicola
‎2011 Oct 19 8:55 PM
I appreciate all the responses. SAPscripts can now be searched through on a mass scale, but the SmartForms will continue to be a one-at-a-time approach.