Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAPScript/SmartForms Text Search

Former Member
0 Likes
2,577

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,679

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,680

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

Read only

0 Likes
1,679

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

Read only

0 Likes
1,679

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

Read only

0 Likes
1,679

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

Read only

0 Likes
1,679

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

Read only

Former Member
0 Likes
1,679

Would like to know a solution for the smartform text scan.

Read only

0 Likes
1,679

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

Read only

0 Likes
1,679

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

Read only

Former Member
0 Likes
1,679

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.