Scripts and searching
The find object capability is useful but I do not see an intrinsic means to search code contained in "Before Create", "After Create" and "End of script" scripts? Not that I'm bashful about grepping the XML.
I have been placing breadcrumb comments in my scripts so I can see their provenance in the exported DDL -- a preference enhancement perhaps? (Particularly useful for code review where it would be easy to overlook code attached to objects in SDDM and that would otherwise be needles in a haystack amongst the exported DDL)
So what have I been putting into scripts? Not much since heavy lifting scripts and PL/SQL are best left outside of SQL Developer Data Modeler. My scripting with SDDM has been for materialized view logs since I don't see the means to create them directly in SDDM.
Hi Kevin,
thanks for sharing your thoughts. There will be much more advanced find/search facilities in next version of Data Modeler and scripts also will be covered.
Philip
Similar Messages
-
I have been searching high and low for this one. I have a vbscript that can successfully perform the function if one file is listed. It does a Wscript.echo on the results and if I run this via command using cscript, I can output to a text file
that way. However, I cannot seem to get it to work properly if I want it to search ALL the files in the folder. At one point, I was able to have it create the output file and appear as if it worked, but it never showed any results when the script
was executed and folder was scanned. So I am going back to the drawing board and starting from the beginning.
I also have a txt file that contains the list of string text entries I would like it to search for. Just for testing, I placed 4 lines of sample text and one single matching text in various target files and nothing comes back. The current script
I use for each file has been executed with a few hundred string text lines I want it to search against to well over one thousand. It might take awhile, but it works every time. The purpose is to let this run against various log files in a folder and
let it search. There is no deleting, moving, changing of either the target folder/files to run against, nor of the file that contains the strings to search for. It is a search (read) only function, going thru the entire contents of the folder and
when done, performs the loop function and onto the next file to repeat the process until all files are searched. When completed, instead of running a cscript to execute the script and outputting the results to text, I am trying to create that as part
of the overall script. Saving yet another step for me to do.
My current script is set to append to the same results file and will echo [name of file I am searching]: No errors found. Otherwise, the
output shows the filename and the string text that matched. Because the results append to it, I can only run the script against each file separately or create individual output names. I would rather not do that if I could include it all in one.
This would also free me from babysitting it and running each file script separately upon the other's completion. I can continue with my job and come back later and view the completed report all in one. So
if I could perform this on an entire folder, then I would want the entries to include the filename, the line number that the match occurred on in that file and the string text that was matched (each occurrence). I don't want the entire line to be listed
where the error was, just the match itself.
Example: (In the event this doesn't display correctly below, each match, it's corresponding filename and line number all go together on the same line. It somehow posted the example jumbled when I listed it)
File1.txt Line 54
Job terminated unexpectedly
File1.txt Line 58 Process not completed
File1.txt
Line 101 User input not provided
File1.txt
Line 105 Process not completed
File2.txt
No errors found
File3.txt
Line 35 No tape media found
File3.txt
Line 156 Bad surface media
File3.txt Line 188
Process terminated
Those are just random fake examples for this post.
This allows me to perform analysis on a set of files for various projects I am doing. Later on, when the entire search is completed, I can go back to the results file and look and see what files had items I wish to follow up on. Therefore, the
line number that each match was found on will allow me to see the big picture of what was going on when the entry was logged.
I actually import the results file into a spreadsheet, where further information is stored regarding each individual text string I am using. Very useful.
If you know how I can successfully achieve this in one script, please share. I have seen plenty of posts out there where people have requested all different aspects of it, but I have yet to see it all put together in one and work successfully.
Thanks for helping.I'm sorry. I was so consumed in locating the issue that I completely overlooked posting what exactly I was needing help with. I did have one created, but I came across one that seemed more organized than what I originally created. Later
on I would learn that I had an error in log location on my original script and therefore thought it wasn't working properly. Now that I am thinking that I am pretty close to achieving what I want with this one, I am just going to stick with it.
However, I could still use help on it. I am not sure what I did not set correctly or perhaps overlooking as a typing error that my very last line of this throws an "Expected Statement" error. If I end with End, then it still gives same
results.
So to give credit where I located this:
http://vbscriptwmi.uw.hu/ch12lev1sec7.html
I then adjusted it for what I was doing.
What this does does is it searches thru log files in a directory you specify when prompted. It looks for words that are contained in another file; objFile2, and outputs the results of all matching words in each of those log files to another file: errors.log
Once all files are scanned to the end, the objects are closed and then a message is echoed letting you know (whether there errors found or not), so you know the script has been completed.
What I had hoped to achieve was an output to the errors.log (when matches were found) the file name, the line number that match was located on in that file and what was the actual string text (not the whole line) that matched. That way, I can go directly
to each instance for particular events if further analysis is needed later on.
So I could use help on what statement should I be closing this with. What event, events or error did I overlook that I keep getting prompted for that. Any help would be appreciated.
Option Explicit
'Prompt user for the log file they want to search
Dim varLogPath
varLogPath = InputBox("Enter the complete path of the logs folder.")
'Create filesystem object
Dim oFSO
Set oFSO = WScript.CreateObject("Scripting.FileSystemObject")
'Creates the output file that will contain errors found during search
Dim oTSOut
Set oTSOut = oFSO.CreateTextFile("c:\Scripts\errors.log")
'Loop through each file in the folder
Dim oFile, varFoundNone
VarFoundNone = True
For Each oFile In oFSO.GetFolder(varLogPath).Files
'Verifies files scanned are log files
If LCase(Right(oFile.Name,3)) = "log" Then
'Open the log file
Dim oTS
oTS = oFSO.OpenTextFile(oFile.Path)
'Sets the file log that contains error list to look for
Dim oFile2
Set oFile2 = oFSO.OpenTextFile("c:\Scripts\livescan\lserrors.txt", ForReading)
'Begin reading each line of the textstream
Dim varLine
Do Until oTS.AtEndOfStream
varLine = oTS.ReadLine
Set objRegEx = CreateObject("VBScript.RegExp")
objRegEx.Global = True
Dim colMatches, strName, strText
Do Until oErrors.AtEndOfStream
strName = oFile2.ReadLine
objRegEx.Pattern = ".{0,}" & strName & ".{0,}\n"
Set colMatches = objRegEx.Execute(varLine)
If colMatches.Count > 0 Then
For Each strMatch in colMatches
strText = strText & strMatch.Value
WScript.Echo "Errors found."
oTSOut.WriteLine oFile.Name, varLine.Line, varLine
VarFoundNone = False
Next
End If
Loop
oTS.Close
oFile2.Close
oTSOut.Close
Exit Do
If VarFoundNone = True Then
WScript.Echo "No errors found."
Else
WScript.Echo "Errors found. Check logfile for more info."
End If
End if -
String search in SAP Script and Smartforms
Hi All,
We have an urgent requirement where we need to search for a character string in all SAP Scripts and Smartforms in our system.
It would also help if we can get the names of programs/function modules which are internally generated for the same.
Any pointers on the same would be helpful.
Regards,
SaurabhYou can create a variable window in the main window.
You can restrict the last item of the main window by varying the size of main window. In your wite-form ,
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'ITEM'
function = 'SET'
type = 'BODY'
window = 'MAIN'
EXCEPTIONS
element = 1
function = 2
type = 3
unopened = 4
unstarted = 5
window = 6
bad_pageformat_for_print = 7
spool_error = 8
codepage = 9
OTHERS = 10.
IF sy-subrc <> 0.
DO this. in the bottom of the main window, create a variable window.
you can add your text in the variable window inside main window.
it will be displayed just after the item ends.
Reagrds,
Pritha.
Message was edited by:
Pritha Agrawal -
Script to search PDFs and print report as to contents
I would like to create a script to help me with the following task, I have minimal experience, but am willing to invest some time on making this work, I just need some help getting started.
I have several thousand PDF files that are not text-searchable right now. I want to use Acrobat Pro 9 to batch process the files through its OCR utility. I would then like to use a script to search for certain keywords (names and dates) and generate a report that lists where those keywords appear.
Is this possible?
Thanks in advance,
Andythis piece of script will help you get there:
[code]
set search_for to "part" ---search for this name
set search_here to POSIX path of (path to desktop folder) as string ---- too much to handle
set search_here to "/Users/timmason/Desktop/spotlight scripts/csacsacs/alta__001 copy 2.pdf" ------file to search -not working
set search_here to "/Users/timmason/Desktop/spotlight scripts/csacsacs/" ------folder to search
display dialog searcher(search_for, search_here) ---returns location of doc
on searcher(search_for, search_here)
set the_script to {"mdfind -onlyin '", search_here, "' '", search_for, "'"} as string --converted for vars
set the_text to (do shell script the_script)
set num_records to count of paragraphs in the_text
set x to 0
set all_recs to ""
repeat num_records times
set x to x + 1
set all_recs to all_recs & return & return & paragraph x of the_text
end repeat
return all_recs
end searcher -
When trying to clear the history (Browsing and download history, cookies, form and search history, and cache) firefox freezes and sometimes Ill get a warning for an unresponsive script.
Using MacOSX 10.6.8 on Macbook Pro
Using Firefox 10.0.2Try to exclude the cookies from the clear history settings and let the cookies expire at the end of the session instead.
-
Script to search and relink linked image files that were moved?
Good afternoon
My indesign product catalog has links with a lot of different folders around in my hard disk, not a single folder. And to keep my catalog up to date I must package it.
When I move my linked files in my computer because I change the folder structure or do some cleaning, my indd loses track of its linked files. Currently I need to relink one by one.
Therefore I would like to find a script which would scan the hard disk with the all broken links in mind to detect their new location and relink. Yes I am a lazy person.
Thanks for any clue,Thanks so much! I will try soonest.
How does your script react in the unlikely case of duplicates?
Date: Thu, 18 Jun 2009 12:43:47 -0600
From: [email protected]
To: [email protected]
Subject: Script to search and relink linked image files that were moved?
At least your honest about your laziness.... Here's your reward:
Just a hint, don't select root of your volume, it will loop through every folder in existence, but key to this script is, if you know the general location, select into that folder hierarchy and the script will test for a relative path, otherwise, come back in a few days, and it will be finished.
~mike
var processed = 0
var skipped = 0
var updated = 0
if (app.documents.length > 0){
if(app.activeDocument.links.length > 0){
var mydoc = app.activeDocument;
var mylinks = mydoc.links;
var myRoot = Folder.selectDialog("Choose the volume or server where assets are located", undefined, false);
main();
else
{ alert("No Links present")
else{alert("No Documents Open")
function main(){
if(myRoot != null){
for(var i = 0; i < mylinks.length ; i++){
if(mylinks.item(i).status == LinkStatus.linkMissing){
var linkdata= mylinks.item(i).filePath;
var my_result = linkRepair(linkdata);
if (my_result == false){
var filetype = "." + mylinks.item(i).linkType;
var mysearch = search(linkdata, filetype);
if(mysearch != undefined){
var myswitch = confirm(mylinks.item(i).name + " has been found in a different location, Relink and Update?", "Relinker")
if(myswitch){
mylinks.item(i).relink(File(mysearch));
mylinks.item(i).update();
else{
alert("" + mylinks.item(i).name " was not found\nFolders processed: "processed + "\nFiles skipped: "+ skipped)
else{ alert( my_result + " has been found");
mylinks.item(i).relink(File(my_result));
function linkRepair(linkdata){
var mypath = linkdata.split(":")
my_status = analyzePath(mypath)
if(my_status == true){alert("UPDATED");
updated++
return my_status
function analyzePath(mypath){
var num = mypath.length ;
for(var i = 0; i < num-1; i++){
mypath.shift()
var newpath = pathRebuild(mypath)
newpath = (myRoot + newpath)
if(File(newpath).exists){
return newpath
return false
function pathRebuild(pathArray){
var solidPath = ""
for(var i = 0; i < pathArray.length ; i++){
solidPath += "/" + pathArray+ ;
return solidPath;
function search(linkdata, filetype){
var mypath = linkdata.split(":")
var mylink = mypath.pop();
var OK = confirm("Relative Path does not exist, search folder hiearchy for file?", true, "File Scanner")
if(OK){
var myscanresult = getfiles(mylink, myRoot)
return myscanresult
function getfiles(mylink, myBase){
myBase = Folder(myBase);
var files = myBase.getFiles("*")
for(var i = 0; i < files.length; i++){
try{
var foldertest = files+.getFiles();
processed++
var myfile = File(files+ + "/" + mylink)
if(myfile.exists == true){
return myfile
break;
else{
var myscan = getfiles(mylink, Folder(files+))
if(myscan != undefined){
return myscan
break;
catch(myerror){
skipped++
> -
How can I use a script to search for a list of filenames and copy them to another directory
Hi all,
I'm quite new to using scripts etc and wondered if anyone could help? I've only ever modified preset folder scripts so making one from scratch is a bit new to me, but it would also be great if anyone else has done this before if they could pass on there script and ill modify to suit my needs.
I will be recieving a tab delimited file containing a list of 150 - 200 clips every day and I need to pull those files onto a hard drive.
All of the files are housed in one folder on the internal media drive and I would like to be able to have applescript / automator / whatever either look through the tab file and then move the files in the tab file from the internal media drive to the external transport drive or I copy and paste the filenames into the script and run it and the script moves the files from the internal media drive to the external transport drive.
Hope someone can help,
Many ThanksThere are no other files in the source video root folder nor are there any folders within the subfolders.
I have tested the script and the response I am getting is this....
Could this be something to do with the {} on the set filestoMove command?
In the replies box I get the following....
tell current application
read alias "Macintosh HD:Users:Ben:Desktop:Untitled.txt"
--> "000004_1__4michaeljmcevoy_4iLlBuDjjG0"
end tell
tell application "System Events"
count folder "Macintosh HD:Users:Ben:Desktop:source"
--> 10
count item 1 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> 1
get name of item 1 of item 1 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> ".DS_Store"
count item 2 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> 1
get name of item 1 of item 2 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> "000004"
count item 3 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> 1
get name of item 1 of item 3 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> "000005"
count item 4 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> 1
get name of item 1 of item 4 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> "000006"
count item 5 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> 1
get name of item 1 of item 5 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> "000007"
count item 6 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> 1
get name of item 1 of item 6 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> "000008"
count item 7 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> 1
get name of item 1 of item 7 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> "000009"
count item 8 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> 1
get name of item 1 of item 8 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> "000010"
count item 9 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> 1
get name of item 1 of item 9 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> "000011"
count item 10 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> 1
get name of item 1 of item 10 of folder "Macintosh HD:Users:Ben:Desktop:source"
--> "000012"
end tell
tell application "Finder"
-- 'core'\'clon'{ 'insh':'alis'($000000000152000200010C4D6163696E746F7368204844000000000000000000 000000000000CA40F7FC482B00000006AB3D06736F75726365000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000007FD33CAFABF2E0000000000000000FFFFFFFF000009200000000000000000000000000000 00074465736B746F7000001000080000CA40E9EC0000001100080000CAFABF2E00000001000C0006 AB3D0006AA9B0000BEEC000200284D6163696E746F73682048443A55736572733A0042656E3A0044 657…
--> {}
end tell
Result: -
When comparing scripts and smartforms which is better
hi can you please help out the advantages and disadvantages of scripts and smartforms
Welcome to SCN.
Please read forum rules (you'll see that you must search the forum first (your question is already answered)) -
Creating and Searching index files
Hi,
This is my first posting so apologiese in advance if it is difficult to understand.
Firstly, I am from a development background of some 6 years (c#, asp.net, vb.net, SQL) so i have a solid grounding and am happy to give any new development a try.
I have a client who has 10,000's of scanned pdf documents but no real way of retrieving and searching these documents. In fact another person in my team is involved in making sure these pdfs are searchable by doing some OCR and rescanning work. I have been asked to come up with a way to allow client to retrieve(open) and search the pdf files.
Here is what i am proposing based on what I have leared about Acrobat Pro 9 and Adobe Reader 8/9.
I actually want to do a lot more than above but think that is enough to get me started. In a nutshell the client would like a web based solution to search and retrieve (open) there scanned pdf documents. I have read on other posts in the forum an understand it can be quite difficult to search pdf's (pdx file) from Internet Explorer.
As a start i had the following tasks in mind as needing completed:
Task 1 - Create directory structure on file server for all the scanned pdfs. Create catalog(s) for these documents and then create an index which creates a .pdx file. Given the number of documents it looks like I will have X number of catalogs and X number of pdx files.
Task 2 - create a web application that allows a tree view to be displayed that replicates the directory structure above so a user can open the pdf from the browser.
Task 3 - I know the users can use Adobe Reader advanced find functionality and select the indexes i have created. However, I would like to create a plugin for Adobe Reader that will load all of the indexes into the selectable index list and select all by default. Given the volume of documents it is likely the user will not know exactly what they are looking for so will need to search across all indexes.
Thanks in advance for any help anyone can provide me in getting started with these tasks.Some links that may be helpful.
Acrobat Developer Center:
http://www.adobe.com/devnet/acrobat.html
Forums:
Acrobat SDK
http://forums.adobe.com/community/acrobat/acrobat_sdk
Acrobat Scripting
http://forums.adobe.com/community/acrobat/acrobat_scripting
Various topic specific forums at the AUC
http://acrobatusers.com/forum
Be well... -
Help cleaning up a script to search in Finder with Spotlight?
I don't know much AppleScript at all, but managed to cobble together a script (invoked with Alfred) that opens a Finder window, sets the size, view options etc. and searches for Photoshop documents with the term passed from Alfred.
As it's cobbled together I'm guessing there are much cleaner, efficient, and more elegant ways of doing this. Any help cleaning it up would be greatly appreciated. Here's the script:
-- set q to "wobbly jelly" -- Test search
on alfred_script(q)
set theSearch to q
tell application "Finder"
activate
open computer container
-- Set the folder view
tell Finder window 1
set the bounds to {630, 150, (630 + 1300), (150 + 1100)}
set toolbar visible to true
set the sidebar width to 180
end tell
end tell
tell application "System Events"
-- Focus to the search field
keystroke "f" using {command down, option down}
delay 0.4
-- Type the search
keystroke "kind:photoshop " & theSearch
end tell
-- Arrange by…
menu_click({"Finder", "View", "Arrange By", "Date Modified"})
-- Set to Icon View
tell application "Finder"
set current view of Finder window 1 to icon view
tell icon view options of Finder window 1
set icon size to 128
set shows icon preview to true
set shows item info to true
end tell
end tell
end alfred_script
-- `menu_click`, by Jacob Rus, September 2006
-- Accepts a list of form: `{"Finder", "View", "Arrange By", "Date"}`
-- Execute the specified menu item. In this case, assuming the Finder
-- is the active application, arranging the frontmost folder by date.
on menu_click(mList)
local appName, topMenu, r
-- Validate our input
if mList's length < 3 then error "Menu list is not long enough"
-- Set these variables for clarity and brevity later on
set {appName, topMenu} to (items 1 through 2 of mList)
set r to (items 3 through (mList's length) of mList)
-- This overly-long line calls the menu_recurse function with
-- two arguments: r, and a reference to the top-level menu
tell application "System Events" to my menu_click_recurse(r, ((process appName)'s ¬
(menu bar 1)'s (menu bar item topMenu)'s (menu topMenu)))
end menu_click
on menu_click_recurse(mList, parentObject)
local f, r
-- `f` = first item, `r` = rest of items
set f to item 1 of mList
if mList's length > 1 then set r to (items 2 through (mList's length) of mList)
-- either actually click the menu item, or recurse again
tell application "System Events"
if mList's length is 1 then
click parentObject's menu item f
else
my menu_click_recurse(r, (parentObject's (menu item f)'s (menu f)))
end if
end tell
end menu_click_recurseMainly just grouping the separate cobbles together, although there is a shortcut that gets rid of all that System Events stuff for the find parameter. Note that in Mavericks the icon view won't immediately update - changes will be applied when the window target changes.
on alfred_script(theSearch)
tell application "Finder"
«event aevtspot» "kind:photoshop " & theSearch -- shhh - don't tell anyone...
tell Finder window 1 -- Set the folder view
set the bounds to {630, 150, (630 + 1300), (150 + 1100)}
set toolbar visible to true
set the sidebar width to 180
set current view to icon view -- set the icon view
tell its icon view options -- view options may not immediately update in Mavericks
set icon size to 128
set shows icon preview to true
set shows item info to true
end tell
end tell
end tell
menu_click({"Finder", "View", "Arrange By", "Date Modified"}) -- Arrange by...
end alfred_script -
Debugging the scripts and smartforms
Hi,
Please Tell me How to debug the SAP SCRIPTS and SMARTFORMS.
Thank in advance
AjayDEBUG Smartform:
1) One way to debug smartform is to debug the Function Module of that smartforms.
If you want to debug particular smartform node that the solution would be,
insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.
So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
2) SFTRACE can be used for debugging SMARTFORMS.
Read More here.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
Re: How to Debug a Smartform
Debug of smartform and sapscript.
Debugging SmartForms
LOGO on Smartform
1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
4) Select any picture and set its Resolution in DPI
5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo
6) Set any other parameters if required, save and activate.
7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
8) Use TCode SE78 to upload new pictures and logos.
look at Thread Dynamic Graph in smartforms
Refer the links also -
Re: Dinamic Graph in smartforms
How to get file perperties in Unix server
SMARTFORM-> execute->execute->pass values if require to import & table parameters ->execute-> on the pop up window give Printer name as LP01 and press print preview.
For debugging -
1. Write BREAK POINT in the code window.
2. Put a break point on the call function in the driver program
3. Put a break point in the generated Function module.
OR
1) DEBUG Smartform:
1) One way to debug smartform is to debug the Function Module of that smartforms.
If you want to debug particular smartform node that the solution would be,
insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.
So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
2) SFTRACE can be used for debugging SMARTFORMS.
Read More here.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
OR
Four ways you can debugging.....
1.place SFTRACE inplace where we enter T_CODE and press ENTER.
after that press F8.
2 ./H
3 /SH
4.after generating the function module there is a button DEBUGGING
Refer to these related threads
smartforms debug
Smartforms debug
How to debug Smartforms?
How to Debug the Smartforms
Re: Smartforms Debug
Smartforms
In the Smartform, within the Code Node you can hardcode a normal abap Break Point ..
Please set a break point in side the smartform:
BREAK <USERNAME>.
Then at the time of print/ preview the program stops there.
Example : If you set the break point in initializationas
BREAK <USERNAME>.
Program stops at break point. After that use Serach and set more break points.
>Search the program logic/Textelement/Address via search and set the break point at that code.
Other way to debug smartform is to debug the Function Module of that smartforms. If you want to debug particular smartform node that the solution would be, insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint. So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
or
SFTRACE can be used for debugging SMARTFORMS.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
See the Below thread for how to debug the Smartforms
How to Debug Smartform?
Re: debug of smartfrom
Smart forms
They are two ways to debug the SAPScript.
1). Use Tools - Word Processing - Layout Set (SE71). Enter name of layout set and then Utilities - Activate Debugger.
It is of no consequence which layoutset you enter when selecting the SAPscript debugger. (Menu path: Tools-Wordprocessing - Forms, Utilities - Activate Debugger) The next layoutset called will invoke the debugger.
2). Another way to set the SAPScript debugger is to run program RSTXDBUG.
When you debug Print program it is same as you debug any other ABAP program.
While when you debug SAPScript, you actually debug the code ( scripting) you have written SAPScript Form. -
How to copy the photo with file name at window 7 and search specific one in iphone 4s?
How to copy the photo with file name at window 7 and search specific one in iphone 4s?
Clendenen02 wrote:
2) It would be equally helpful if there was something that would take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments with the same name but obviously has different extention. For an example
In a Pictures folder
Name: Dark Knight, The.jpeg Comment: (2008) Genre: Action... <- copy comment
In a Movie Folder
Name: Dark Knight, The.m4v Comment: <- paste
and do this for all 700 files
This Bash script will do it.
Edit "PicDir" and "MovDir" to the location of your Folders
(Note: The comment is written to the m4v file using xattr, so the Spotlight comment field appears blank in Finder, but the comment metadata is still indexed by Spotlight (If you add a Spotlight comment from Finder, it is stored both as an extended attribute and in a .DS_Store file)
#!/bin/bash
PicDir=$HOME/Desktop/Pictures
MovDir=$HOME/Desktop/Movies
for f in $PicDir/*
do
if [ ! -d "$f" -a "${f##*.}" == "jpeg" ]; then
comment=$(mdls -raw -name kMDItemFinderComment "$f")
if [[ $comment != "(null)" ]]; then
picname=${f##*/}
movname=${picname%.*}.m4v
if [ -e "$MovDir"/$movname ]; then
xattr -w com.apple.metadata:kMDItemFinderComment "\"$comment\"" "$MovDir"/$movname
fi
fi
fi
done -
Deleting Forms and Search History is Dictating my freedom
Is this a trick? I used to be able to freely delete my forms and search history. Now the checkbox on the delete everything dialog box is disabled, and unchecked! When I ask to delete everything, I mean everything, please. I should be able to make the decision myself, not have it made for me by Google, the government, or some script kiddie. Please give our freedom back, and make the delete forms and search history accessible.
Furthermore, please, please, delete everything and shred it, if that is what the user wants (Unlike Microsoft with Pending Deletes, and Google with its Autocratic Internet takeover policies. And what is with all the google and chrome junk in the about:config anyway?)
I used to love Firefox because it seemed like a Freedom Fighter, but now I have deleted it from all Windows systems and all but one Linux system, because it seems like it is selling out. On the sales pitch page, Firefox purports to be working for greater Internet freedom, but the closer you look, it seems two-faced.
I will watch the status of Firefox on that one system, and if it improves, I might allow it back on the other systems. Otherwise, I might just fork it like IceWeasel or even find something else, eventually.No it's not a trick. You should be able to check-mark Form and Search History in Clear Recent History. Any chance that "Remember search and form" history is not selected in the Privacy tab of Options?
I have also seen reports from some users that their security suite on Windows PC "took over" many of the Clear Recent History items and locked out users from changing the status of any item in Clear Recent History, but I can't see something occurring with Linux versions of Firefox. -
SCOM 2012 SP1 Update Rollup 5 - DB and DW SQL script and the Management Packs
Hi,
I am applying SCOM 2012 SP1 update rollup 5 from KB article : 2904680.
Step# 4 and 5 from the "Installation Information" sections says to run the SQL queries(UR_Datawarehouse.sql and Update_rollup_mom_db.sql) located at "%SystemDrive%\Program Files\System Center 2012 SP1\Operations
Manager\Server \SQL Script for Update Rollups\."
But I do not have "System Center 2012 SP1\Operations Manager\Server \SQL Script for Update Rollups\." folder location on my SCOM Management Servers. Similarly I do not have the MPs given in Step #6.
Can someone please let me know from where else can I get these SQL scripts and the MPs. What if I don't run these SQL scripts. Is that OK?You will find it on below path%SystemDrive%\Program Files\System Center 2012\Operations Manager\Server \SQL Script for Update Rollups\.
inside system center 2012 folder> search to Server folder and inside it you will find SQL Script
Please remember, if you see a post that helped you please click (Vote As Helpful" and if it answered your question, please click (Mark As Answer). -
Divide string with ";" and search
hi Need help
Suppose i have a textbox where user is Pasting list of computer name and its separated by ";". So all the name in between the text in need to search.
eg. SRV123;SRV-234;SRV-345
powershell script to search for the SRV123 and SRV-234 and SRV-345
Get-ADComputer -LDAPFilter "(Name=*$CompNameData1*)" | select NameHi Anupam,
I’m writing to just check in to see if the suggestions were helpful. If you need further help, please feel free to reply this post directly so we will be notified to follow it up.
If you have any feedback on our support, please click here.
Best Regards,
Anna Wang
TechNet Community Support
Maybe you are looking for
-
Help Locked out of iPod because we don't know password
My daughter accidentally entered her password incorrectly when she was creating it. (Not sure how she did it twice, but.....) So, now she doesn't know her password. She is locked out of the ipod and we've tried everything that Apple says to do. We
-
I've attempted to get help by calling Adobe customer service. After reaching someone with a very strong, foreign accent and spending 15 minutes giving information, my customer ID and so on, he put me on hold for 30 minutes. Then, another strongly acc
-
Flash Player 10.2.152.32 won't play FLV file
I seem to be having similar problems to several others here. I am running Windows XP, SP3, 32 bit on Dell Pentium 4, 2Gigs of RAM, 3.0Gig HD. Since the March 8, 2011 update I have not been able to play FLV files. Previous to the upgrade, I was able
-
Compatability of optical drive, PowerMac to Mac Pro
I have a PowerMac G5 that I am no longer using. I now use a Mac Pro, I think it's 1.1. Would the SuperDrive from the Mac Pro work in my PowerMac? If so, how do I remove it? (I know how to put it into the PowerMac)
-
Adobe Acrobat XI Serial Number Validation Error
(1) I just downloaded Adobe Acrobat XI (2) After clicking the icon I receive a message that theSerial Number is Valid but product could not be found on computer. (3) There is a dropdown list of Adobe products to look for but Adobe Acrobat XI is not i