Script to run an action?

Hi, I'm not too familiar with JavaScript but I just need to be able to run an action X amount of times.  Batch dose it only with external files when I need to have action go through numerous layers in one file.
In script event manager I tried making a new event that runs my action.  Then just run a script to run that event so many times but so far no luck.  This is what I had for my script:
for (var i = 0; i < 50; i++){
  happening
but it just said 'happening is undefined' when I tried to run it.
Any help appreciated!

Im not too sure what you are asking for here? This would run an action 50 times… See comment about your strings to change…
#target Photoshop
if ( app.documents.length > 0 ) {
          for ( var i = 0; i < 50; i++ ) {
                    doAction( 'testing','test set' ); // Case Sensitive Action Name, Set Name
But you mention layers… do you need to apply to all… If this is the case you would need to supply more detail about types and where they can be found etc.

Similar Messages

  • Need to Run Photoshop Action on every image in Export!

    I would really save a ton of time if I could select a specific PS action to run automatically as a last step in the export process, like Image Processor script, only populated with the current set being developed.
    The process would go like this: Lightroom develops raws, then communicates with photoshop by opening it, if not already open, and then running the action(s) identified in the export settings, without any user input. For example, process raws to jpgs then run a smart sharpen action on the newly created folder of images.
    Thanks! And let me know if anyone has written a script to do this feature yet. -Dave

    Figured out how to get rid of the save as prompt. This may cause confusion with others out there, so I'll post it.
    1. You have to record a "save as" step in your action (I also recorded the "close" step), dont worry about the name here, just set the JPG setting you want in your action.
    2. Then when you create your droplet, the key is to check the override save as box.
    The combination of these two steps will get PS to sub your original filename/location recorded in your save as step in the action with the current filename (variable) the loop in the droplet passes.
    Doing only one or the other will get you a JPG prompt. Do both together. The logic here confused me. I would rather be able to specify the JPG settings in the Droplet dialog and have that written to the script without recording any save as step in my action. (like Image Processor script)

  • How do I create an Application with Automator that will open files in Photoshop Elements 11 and run an action?

    Here's what I'd really like the Script to do when I select one main folder:
    Look through all the subfolders, find all the PNG files and convert them to TIFFs, replacing the original PNG files.
    Open the converted TIFF files in PSE 11.
    Run an action on them in PSE 11 (which I already created that adds a white fill layer below the TIFF file.)
    Save each file in their original location and Close each file.
    Import them into LR.
    Anybody?  Bueller?  Bueller?
    If that's not possible, I'd love an Automator action that can convert the PNG files to TIFFs that can be viewed in LR 4.4.  If I convert them in PSE 11, LR can view them, but if I convert them using Automator, LR cannot.
    Thanks so much for any help you can provide.
    -Jen

    LabVIEW 7 added a property to get a command line argument. For older versions see http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DA5B56A4E034080020E74861.
    I'm not sure I understand you problem with the Run button. If you set the execution mode to Run When Opened from VI Properties, it should execute once whenever it's called. I think that when building an executable, it changes the property to this if it's not already set. If the application does not have this set, it will not be running at all. I'm assuming that you are talking about the Run button on the toolbar and not a run Boolean that you've created on the front panel.
    Since you have the app builder, your other option is to create a DLL. If you can call a DLL in Matlab, then that would probably be simpler.
    Message Edited by Dennis Knutson on 11-28-2005 02:46 PM

  • Getting a script to run in automator

    Thanks to Hiroto I have a script that does what I was looking for. The discussion on it is at http://discussions.apple.com/thread.jspa?threadID=1566429
    I am now trying to put this script into an automator workflow. By itself the script works fine. The automater workflow works by itself. Put the script into automator using the run applescript action and it gets skipped.
    This is what the script looks like inside the automator action. What I do not understand is why virtually the entire script is grayed out. The 1st line and the last two lines are the only ones that show as colored type when compiled in automator, like the rest is being commented out for some reason. When I compile it in the automator window it doesn't give an error.
    on run {input, parameters}
    (* on run
    --main((choose folder with multiple selections allowed) as list)
    main((choose folder) as list)
    end run
    on open aa
    main(aa)
    end open
    on main(aa)
    (* list aa : list of folder aliases *)
    script o
    property ff : {}
    -- confirmation for safety
    set AppleScript's text item delimiters to {ASCII character 0}
    set aa to (aa as Unicode text)'s text items
    set AppleScript's text item delimiters to {""}
    set aa to (choose from list aa default items aa ¬
    with prompt ("You're renaming pdf files in following folder.") ¬
    with multiple selections allowed)
    if aa = false then error number -128
    -- process each folder
    set k to 0
    repeat with a in aa
    set a to a as alias
    -- get pdf file aliases' list (= ff)
    set ff to {}
    tell application "Finder"
    tell item a
    if its class is in {disk, folder} then
    try
    set ff to (files of entire contents whose name ends with ".pdf") as alias list
    on error
    set ff to (files of entire contents whose name ends with ".pdf") as alias as list
    end try
    end if
    end tell
    end tell
    -- process each pdf file
    repeat with f in my ff
    set f to f's contents
    tell application "Adobe Acrobat Pro"
    --open f
    open f with invisible -- open it invisibly (?)
    tell document 1
    set p to count pages
    close
    end tell
    end tell
    tell application "Finder"
    set n to f's name
    set f's name to (n's text 1 thru -5) & "_" & p & ".pdf"
    end tell
    set k to k + 1
    end repeat
    end repeat
    -- decent notice -- remove -- on four lines below to get confirmation window when done
    -- tell application (path to frontmost application as string)
    -- display dialog ("Total of " & k & " pdf file(s) renamed successfully.") ¬
    -- with icon 1 giving up after 5
    -- end tell
    end script
    tell o to run
    end main *)
    return input
    end run
    Now the difference I need to figue out how to adjust for, once the script works in automator, is that the script operates based on the folder selected and performs the desired functions to the enclosed pdf files. The automator action I have acts on the selected files themselves. I will need to also get the script to recognize the selected files rather than the selected folder and contents of this folder.
    Any help would be greatly appreciated,
    John

    Hello
    You may try something like the code below.
    It assumes the input from the previous action is a list of pdf files.
    Hope this may help,
    Hiroto
    --SCRIPT (for Automator Action)
    on run {input, parameters}
    list input : list of alias of pdf files
    record parameters : dummy
    main(input)
    return input
    end run
    on main(aa)
    list aa : list of alias of pdf files
    script o
    property ff : aa
    -- process each pdf file
    repeat with f in my ff
    set f to f's contents
    tell application "Adobe Acrobat Pro"
    --open f
    open f with invisible -- open it invisibly (?)
    tell document 1
    set p to count pages
    close
    end tell
    end tell
    tell application "Finder"
    set n to f's name
    set f's name to (n's text 1 thru -5) & "_" & p & ".pdf"
    end tell
    end repeat
    end script
    tell o to run
    end main
    --END OF SCRIPT

  • I want to run an action on a folder with a bunch of subfolders

    i created an action to change the color space from rgb to cmyk. i have one folder with 52 subfolders in it. rather then run this action 52 times I would like to run it once and have it apply to all the subfolders. when i go in the bridge and choose tools. photoshop. batch i get a message
    folders cannot be used for this command
    any ideas

    Use Dr. Browns 1-2-3 process but only when using it through PSCS File - Scripts you get the option include subfolders.
    If you don't have the script visit Russel Brown his website, you can download it for free :-)

  • Repeating a script for an advanced action

    I've created and advanced action for a click button. The properties are if the textbox is empty (v_null) to display a failure messge, if not display a correct message. The advanced action is working perfectly but it won't repeat it's self. So for example, if the user doesn't type something in text box  and clicks the button, the script runs and gives the correct message, but if the user  attempts to write someting after the first message pops in the text box and clicks on the button again, nothing displays. It's like the scipt will only run once.
    Is there a way to have an advanced action repeat it's self?
    Here is the script:

    Captivate's Advanced Actions are event-driven.  So you can only trigger them via some kind of on-screen event.
    All of the events available to you are listed here:
    http://www.infosemantics.com.au/adobe-captivate-advanced-actions/run-time-events
    Once you've triggered the advanced action as a result of clicking a button, then you need another button click or event of some kind to run the action again.  Captivate does not currently allow you to call an advanced action from another action.

  • Newbie Q: Setting scripts to run on Start Application

    Please help!
    CS3 says you just check the Enable Events to Run Scripts/Actions checkbox and choose Photoshop Event: Stat Application to run your script on startup but for me it's like Photoshop has had it's memory wiped if I close it and reopen it!
    The Script Event Manager looks like it does when you've only just installed Photoshop.
    How do I get PS CS3 to remember my choices so it runs my setupWorkspace script when it opens?
    It's my first ever PS script, design to compensate for the fact that even though PS shows that my saved workspace is the current one on restart up it is in fact the default workspace until I reselect it from the Workspace menu.
    I'm on a MacBook Pro and my scripts are in a folder, which I created and chose in PS using Browse to path, called Users/myName/Library/Application Support/Adobe/Adobe Photoshop CS3/Presets/Scripts
    Would love to get in to scripting but if I can't even get scripts to run I'll be v sad.

    Here is how to attach a script to an event:
    http://ps-scripts.com/bb/viewtopic.php?t=58
    Larry

  • Unable to Configure a PowerShell Script to Run as a Scheduled Task

    Hi ,
    I have a powershell script from Dieters blog http://scug.be/dieter/2011/07/06/scom-2007-how-to-backup-your-unsealed-management-packs/#comment-1058 which backups the unsealed management packs in SCOM. I am able to run the script successfully in the powershell
    prompt but when i schedule it as a task it fails with an error code 1.
    "Task Scheduler successfully completed task "\Backup Unsealed Management Pack" , instance "{xxxxxxxxxxxxxxxxxxxxxxxxxxxx}" , action "Powershell.exe" with return
    code 1."
    I am running the task using the highest privilages and have tried bypassing the script using and have configured the script as per http://www.metalogix.com/help/Content%20Matrix%20Console/SharePoint%20Edition/002_HowTo/004_SharePointActions/012_SchedulingPowerShell.htm
    -ExecutionPolicy Bypass c:\scripts\myscript.ps1
    Still i am unable to run the task without errors. Kindly assist.
    Jesty

    Hi Jesty,
    Please make sure you have followed these steps to schedule a powershell script task:
    1.  Save the powershell script as .ps1 in local computer.
    2.  Right click the .ps1 file and run with powershell and check if the script can run successfully.
    3.  schedule task->action:Start a program->Program/script:powershell.exe->Add argument:-ExecutionPolicy Bypass c:\scripts\myscript.ps1
    Best Regards,
    Anna

  • What script to run after installation

    Hi gurus,
    I 'v just installed 11.5.5 "prod". Is there any script to run or i can start my implementation straight off.

    You must complete the following tasks to successfully install Oracle Applications 11.5.5:
    - Check the installation manual to complete the post installation steps
    - Read the Known Product Issues section of these release notes and determine when to take the actions listed there
    - Read the Installation Update Notes for your platform
    - Follow the instructions in Installing Oracle Applications to complete your installation of Oracle Applications Release 11i
    - Use AutoPatch to apply AD mini-pack F
    Note: You may be required to apply AD mini-packs as a part of your Oracle Applications installation, even after you have completed your implementation.
    Oracle Applications databases included in Rapid Install 11.5.5 have invalid objects in both the fresh-install production database and the Vision Demo database. You can safely ignore these errors.
    Note: 155875.1 - Release 11.5.5 Release Notes
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=155875.1

  • Add a script to Automator's actions, or add an action to Automator's librar

    Total Applescript newbie here. My end goal is to write a script or automator that automatically trims 10 seconds off selected podcasts.
    I know that Doug's Applescript website has something along those lines, but it's not truly automatic.
    What I'd really like to do is attach a folder action so that as soon as they download the end credits are trimmed.
    With automator, it's easy enough to get the finder items in the folder, and pass them to the Set iTunes Info library action, but the Start and End times of iTunes tracks aren't in there.
    I tried to edit the actual script that that calls, but it's not-editable.
    I tried to edit Doug's script, but I can't figure out how to tell it to pick a file from a folder as the selected track to edit.
    I was thinking of an automator action that basically goes along these lines:
    Get Specified Finder Items (preselecting the download folder the podcasts are dumped to)
    Get Folder Contents
    Run this script. (but this is where I can't figure out how to run a script and use the results from the last two automator actions)
    Any ideas appreciated, or suggestion on how to just go pure Applescript on the task. I know the Applescript would read something along the lines of:
    Tell application Finder
    get the folder contents?
    maybe set the file name or track name as a variable
    Tell application iTunes
    Set start of selected file/track to 15

    Ah, you've made me a happy man this evening. I missed the Run AppleScript action in Automator, but knew there had to be a way to do something like that.
    Your particular script doesn't function, it gives an unknown error on completion, but I was able to modify a Doug's AppleScript that lets you trim start or finish on items you manually select and use it as you suggested.
    So here's what I ended up doing.
    Automator Action which is saved as a plug-in to the Folder Actions for the folder for the Podcasts I want to trim. The Automator action reads as follows:
    *Find Sources in iTunes*
    -Find Songs Whose Album Contains MyPodcast
    *Get Selected iTunes items*
    -it's pulling all tracks in that folder, which is fine
    *Filter Sources in iTunes items*
    (I had to do this because before I added this step my selected podcasts showed up in results, but so did any item I had highlighted (such as the current playing track) in the results, and was passed to the final action)
    *Run AppleScript*
    <pre style="font-family:Monaco, monospace;border:2px inset #99f;overflow:auto;width:500px;padding:.5em;color:#000;background:#ccf;">
    on run {input, parameters}
    tell application "iTunes"
    set trackers to input
    repeat with theTrack in trackers
    set start of theTrack to 11
    set finish of theTrack to ((get finish of theTrack) - 18)
    end repeat
    end tell
    return input
    end run</pre>
    There's probably a more elegant way to do this, and faster, as this one takes several seconds to go through the entire iTunes library each time it's ran. That's why I was trying to pass the folder contents directly to the set info action. It's kind of annoying that the built-in Automator action for this is limited on the info items it sets. It would be really cool if Apple didn't make those scripts non-editable. I could have learned exactly what I was after just by picking apart their script.
    Anyways, my motivation for this was partly to learn, but inspired from a particular podcast from a local public radio station that I listen to where they bracket the beginning and end of the podcast with the typical "please donate" stuff. Normally I don't mind a short pre-roll or pledge request, but this particular one the woman has such an annoying voice, it's like fingernails on chalkboard to me, otherwise I wouldn't have bothered spending hours trying to learn how to do this to save 30 seconds of listening on a weekly podcast. LOL.
    Thanks again for your pointer, I'll probably play with this some more if anyone else wants to chime in on better methods, but I'll mark it as answered as it did point me to a working solution.

  • I run an action converting an a4 jpeg into web size 500px long side @72DPI. When I run the action the DPI is 240! Why?

    So as I said I run the action and for some reason PS makes the DPI 240 when I originally put it as 72. I have done this loads of times and no problems and now it does this. Any ideas? I have recently reinstalled PS due to a crash so........ could this be something to do with it? have I not set something up correctly?
    Any help is greatly appreciated

    Please show the action, expand the action fully in the actions palette so all the action step show and you can see all the options recorded. Capture the scree and post the action her. It should look something like the one I just recorded.
    Crafting Actions Package UPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    More then a dozen Scripts for use in actions
    Example
    Download

  • Cant get any Batch Script to run

    Hello together,
    first of, Thank you for this community.
    It´s a shame, i can´t get any Batch script to run.
    For example a PDF making Batch with a folder selection.
    I always get the alert, no matching files found.
    I use cs 5  on a  g 5 with osx 10.8.2
    here is the script..  should not be a big thing !?
    why does no file fit in the "mask" ?
    here is the script
    ADOBE SYSTEMS INCORPORATED
    Copyright 2005-2006 Adobe Systems Incorporated
    All Rights Reserved
    NOTICE:  Adobe permits you to use, modify, and
    distribute this file in accordance with the terms
    of the Adobe license agreement accompanying it. 
    If you have received this file from a source
    other than Adobe, then your use, modification,
    or distribution of it requires the prior
    written permission of Adobe.
    Export to PDFs.jsx
    DESCRIPTION
    This sample gets files specified by the user from the
    selected folder and batch processes them and saves them
    as PDFs.
    Edits by Patrick Mineault:
    - only .ai files processed
    - files saved in same folder as the input files
    - export files have name (oldname)_export.pdf
    - PDF settings: non-editable / acrobatLayers=false
          for maximum compatibility with Preview
    // Main Code [Execution of script begins here]
    // uncomment to suppress Illustrator warning dialogs
    // app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    var destFolder, sourceFolder, files, fileType, sourceDoc, targetFile, pdfSaveOpts;
    // Select the source folder.
    sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator .ai files you want to convert to PDF');
    // If a valid folder is selected
    if ( sourceFolder != null )
        files = new Array();
        fileType = "*.ai"; //prompt( 'Select type of Illustrator files to you want to process. Eg: *.ai', ' ' );
        // Get all files matching the pattern
        files = sourceFolder.getFiles( fileType );
        if ( files.length > 0 )
            // Get the destination to save the files
            //destFolder = Folder.selectDialog( 'Select the folder where you want to save the converted PDF files.', '~' );
            destFolder = sourceFolder;
            for ( i = 0; i < files.length; i++ )
                sourceDoc = app.open(files[i]); // returns the document object
                // Call function getNewName to get the name and file to save the pdf
                targetFile = getNewName();
                // Call function getPDFOptions get the PDFSaveOptions for the files
                pdfSaveOpts = getPDFOptions( );
                // Save as pdf
                sourceDoc.saveAs( targetFile, pdfSaveOpts );
                sourceDoc.close();
            alert( 'Files are saved as PDF in ' + destFolder );
        else
            alert( 'No matching files found' );
    getNewName: Function to get the new file name. The primary
    name is the same as the source file.
    function getNewName()
        var ext, docName, newName, saveInFile, docName;
        docName = sourceDoc.name;
        ext = '_export.pdf'; // new extension for pdf file
        newName = "";
        for ( var i = 0 ; docName[i] != "." ; i++ )
            newName += docName[i];
        newName += ext; // full pdf name of the file
        // Create a file object to save the pdf
        saveInFile = new File( destFolder + '/' + newName );
        return saveInFile;
    getPDFOptions: Function to set the PDF saving options of the
    files using the PDFSaveOptions object.
    function getPDFOptions()
        // Create the PDFSaveOptions object to set the PDF options
        var pdfSaveOpts = new PDFSaveOptions();
        // Setting PDFSaveOptions properties. Please see the JavaScript Reference
        // for a description of these properties.
        // Add more properties here if you like
        pdfSaveOpts.acrobatLayers = false;
        pdfSaveOpts.colorBars = false;
        pdfSaveOpts.colorCompression = CompressionQuality.AUTOMATICJPEGHIGH;
        pdfSaveOpts.compressArt = true; //default
        pdfSaveOpts.embedICCProfile = true;
        pdfSaveOpts.enablePlainText = true;
        pdfSaveOpts.generateThumbnails = true; // default
        pdfSaveOpts.optimization = true;
        pdfSaveOpts.pageInformation = false;
        pdfSaveOpts.preserveEditability = false;
        return pdfSaveOpts;
    is my problem really that stupid ?
    is it only working in cs 3  ?

    Mr. Schneider, Brilliant =) and weired
    on windows 7 it runs perfectly. even with the prompt commented out ?!?!?!
    Why is it not working on a maC ?
    now i have so many more ideas to optimize my workflow...
    i´am not shure how to get into this ..
    if i have to send out datafiles i have to do several things.
    1.collect images and fonts
    2. throw unused colors away
    3. check if there is white overprinted,if yes fixing it.
    4. put black on overprinting
    5.clean up empty textfields, unfilled objects, and usesless anchorpoints
    6.unlock everything
    7. save the ai
    8.convert in paths
    9.save an *_path.ai
    10.make a printable PDF with our XYZ. Joboptions
    11. preview pdf, optional with a watermark sized 100% 100% to the artboard / artboards
    12. wonderfull would be a print out
    this is just a wishlist.. i want to learn it. . how to do
    will be a hell of scripting or not ?
    is it usefull to do somethings in an action and load the action as a script ?
    In scriptinghappiness best greetings from Germany..

  • Applescript for running specific action from action wizard...

    Hi Forum,
    using this applescript I m running my "INDEGN" action from action wizard...
    the first step is activated through the applescript.. (ie. INDEGN action is correctly picked)
    but how to "click next button" to proceed to next steps..
    tell application "System Events"
        tell application process "Acrobat"
            tell application "Adobe Acrobat Pro" to activate
            click the menu item "INDEGN" of menu 1 of menu item "Action Wizard" of the menu "File" of menu bar 1  ## here it is not cliking next button.....
            click button "Next" of window "Action: INDEGN"
    click button "Close" of window "Action: INDEGN"
        end tell
    end tell
    many thanks for the support..

    HI DAVE,
    thanks for the reply,,
    Is there any other way to run "my action" from action wizard. using script....
    Would be  a great help if advised....
    Many thanks...

  • Firefox is taking a long time to open. When it does open, I get a pop up box with "Script not running". Bookmarks on my tool bar don't load. Scrolling is unreliable--it will stop in the middle of a page

    What is causing the "script not running"? Why so long to open? Etc.

    Hi Donekes,
    First off I need a little more information to help with troubleshooting.  You say that an error occurs when you "try to re-open the same problem app before the old session completely exits".  Does the error have an error code or dialog display?  It may also be possible to receive an error log.  Here is a knowledge base that explains how to retrieve error logs.
    http://digital.ni.com/public.nsf/websearch/54E361E3FF477EC186256C320068184F?OpenDocument
    If you are able to get that information then please post.  Have a good day.
    Brian K.

  • Dump error while running termination action

    I'm facing a dump error while running termination action, please, if some one wud help me out of this error. here when im termination action the system is opening action infotype when given the date of termination and try to save, system shows a warning message that "Record valid from 08.08.1995 to 31.12.9999 delimited at end" then I press enter and system is asking me to save. when I do so, rather than it taking me to another screen its throwing a dump error.
    Runtime Errors         SYNTAX_ERROR
    Date and Time          21.10.2008 18:54:05
    Short dump has not been completely stored (too big)
    Short text
         Syntax error in program "SAPLCACS_BU_PARTNER ".
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "SAPLBUD_CHECK" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
         The following syntax error occurred in program "SAPLCACS_BU_PARTNER " in
          include "LCACS_BU_PARTNERU44 " in
         line 19:
         "The key of internal table "LT_BUT0BK" contains components of type "X" "
         "or "XSTRING". The "READ TABLE LT_BUT0BK" statement is not permitted fo"
         "r such tables in a Unicode context."
         The include has been created and last changed by:
         Created by: "SAP "
         Last changed by: "SAP "
         Error in the ABAP Application Program
         The current ABAP program "SAPLBUD_CHECK" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
    Error analysis
         The following syntax error was found in the program SAPLCACS_BU_PARTNER :
         "The key of internal table "LT_BUT0BK" contains components of type "X" "
         "or "XSTRING". The "READ TABLE LT_BUT0BK" statement is not permitted for
    "r such tables in a Unicode context."
    ger Location of Runtime Error
    Program                                 SAPLBUD_CHECK
    Include                                 LBUD_CHECKF01
    Row                                     1.129
    Module type                             (FORM)
    Module Name                             RLDEL_CHECK
    ce Code Extract
      SourceCde
    9
    0 *------ ... Funktionsbausteine ermitteln -
    1   CALL FUNCTION 'BDT_TBZ1F_GET'
    2     EXPORTING
    3       iv_objcn  = gc_objcn_bupa
    4       iv_objap  = gc_objap_bupa
    5     TABLES
    6       et_tbz1f  = lt_tbz1f
    7     EXCEPTIONS
    8       not_found = 1
    9       OTHERS    = 2.
    0   READ TABLE lt_tbz1f INDEX 1.
    1   IF sy-subrc = 0.
    2     CALL FUNCTION 'BUP_PARTNER_GET'
    3       EXPORTING
    4         i_partner    = is_but100-partner
    5         i_cp_exclude = gc_x
    i_is_exclude = gc_x
    PORTING
    e_but000_int = ls_but000_int
    CEPTIONS
    OTHERS       = 1.
    ... Funktionsbausteine aufrufen -
    T lt_tbz1f WHERE     ztpkt =  'RLDEL'
                 AND NOT fname IS INITIAL.
    Datümer alt = neu = SPACE => Löschung, sonst Update -
    (Einschränkung der Gültigkeit)
    FUNCTION lt_tbz1f-fname
    PORTING
    i_partner        = is_but100-partner
    i_partnerguid    = ls_but000_int-partner_guid
    i_role           = is_but100-rltyp
    i_dfval          = is_but100-dfval
    i_calltp         = iv_calltp
    i_valid_from     = is_but100-valid_from_dats
    i_valid_from_old = iv_valid_from_old
    i_valid_to       = is_but100-valid_to_dats
    i_valid_to_old   = iv_valid_to_old
    PORTING
    e_result         = lv_result.
    ... Ergebnis merken, wenn höher als bisheriges Zwischenergebnis-
    v_result > gv_wu_result.                          "#EC PORTABLE
    wuresult = lv_result.
    F.
    ... Ergebnis ist 'Nicht löschen': Zeitpunkt abbrechen -

    HI Mallik,
    for termination action the operation that i've set is
    lis9  0001
    cop  0002
    lis9  0007
    cop  0008
    lis9  0014
    lis9  0015
    lis9  0587
    so just want to know if the set format for termination action is right
    and other option is that if there is some change to settings of infotype charateristics in table v_t582A this may cause change in the date that is cause of error.
    can u please suggest the above alignment of operations and infotype is right and provide me the idle settings for infotype characteristics which may solve my query.
    thanks mallik.

Maybe you are looking for