Script for inventoy document

All,
Technical guy has copied std SAP script for physical inventory document and made minor changes .
Now where to attach this script , means in which ouput type .
Kindly advise.
regards
Message was edited by:
        PVS

Hello Sandeep,
You need to assign the modified SAP form in OMBU transaction code.
Select the appropriate print program and assign there SAP form name.
Hope this will solve your query.
Regards
Arif Mansuri

Similar Messages

  • Script for billing document

    hi all ,
    is there any standard sap script and its print program for billing document (sd).
    and how to find the standard scripts for a particular requirement.
    regards
    reena

    hi,
    Script is RVINVOICE01
    Driver program is : RVADIN01.
    goto trns NACE select the application and click on the output types button and
    click on the output type and select processing routines...
    regards,
    priya.

  • Text extraction script for pdf documents

    Hello Everyone,
    As everyone in the U.S. knows Tax Season has begun.  I am looking to the Apple Community for help with  a script that will help me mitigate the daunting task of manually extracting data from my bank statements to put into my expense tracking software.  The software that I am using at the moment is "Neat Receipts" which will only inport ."pdf" and image files.  I have very limited scripting knowledge at this point, however, I have begun the process of learning the craft.  With deadines steadily approaching I have put off the task of manually combing through hundreds of pages of docs in search of a more eficient way of accomplishing this task.  Therefore, I have turned to the Apple Community for help for myself and possibly millions of others with the same issue.
    Thus far, I have downloaded all of my bank statements for the last year and have organized them into a folder on my desktop.  Each file is labled by a specific name, such a "TD Bank Statement - Jan 2012.pdf".  I would like to go about extracting the data from the pdf in a way as to be able to reimport it back to a seperate pdf file under a new name.  First, I would like to select the folder containing all the bank statements.  Second, I would like to retrieve the "Transaction Date", "Vendor", and "Transaction Amount" from all the stements.  Third, I would like to combine the, Date", "Vendor", and "Transaction Amount" and place it into a new "pdf" file.  Last, I would like to name the new file with the date of the transaction followed by the vendor, a delimiter, and then the file name from which the transaction originated fileNext export a single trasnaction to a new pdf, and give the file the name of its "transaction date.  
    Here is a sample of the data I am looking to capture:
    Sample Data would look like this:
    12/6/13, WAL WAL MART SUPER, $25.37
    Sample file output would look like this:
    12/6/13, WAL WAL MART SUPER - TD Bank Statement - Jan 2012.PDF
    I am actively working on this, as I type this, to test my knowledge and ability to solve this problem myself.  I would like some feedback, input, and help with this
    First, I believe the script should first perform an OCR of the "pdf file
    Second, variables should be set to tell the script what to look for (Date), (transaction Amount), and all lines proceeding until it hits another (date)
    Third, group all lines and insert (delimiter) in place of hard returns and tabs
    Fourth, export grouped data into (new pdf) fie
    Fifth, rename the (new pdf) file with (Transaction date) followed by (delimiter) followed by original file name

    Acrobat can only work with what is present in the file. For instance,
    in some cases there is just a scan, a picture, and no text can be
    extracted.
    Sometimes letters are doubled up when the document's creator used
    "fake bold", where letters are printed twice to make an illusion of
    bold text.
    Aandi Inston

  • Lock the delete function (Trash) for contract documents

    Dear Experts,
    I have Query in SAP CLM :
    I am in need to lock the delete function (Trash) for contract documents after they have been executed. After a user sets the contract document phase at "Executed," they should not be able to click the trash icon and delete that contract document record.
    Thanks in advance.
    Best Regards,
    Iqbal

    Hi Mudit,
    we  have already  script  for Contract Document and Post Phase Change.
    I am not java expert, where to put the code for delete or inactive the trash icon in this programe, Pls Help
    // Author: ABCD
    // Class: Contract Document
    // Context: Document Lifecycle Event
    // Target: Post Phase Change
    // Imports
    import com.frictionless.api.doc.IapiDocumentLockManager;
    import com.frictionless.api.common.types.ObjectReferenceIfc;
    import com.frictionless.api.common.types.TypeFactory;
    import com.frictionless.api.contracts.ContractIBeanIfc;
    import com.frictionless.common.db.PersistentBo;
    import com.frictionless.api.doc.collaboration.*;
    import com.frictionless.api.common.log.Logger;
    import java.math.BigDecimal;
    import java.util.*;
    import com.frictionless.api.doccommon.masterdata.*;
    import com.frictionless.api.common.exception.*;
    import com.frictionless.api.ibean.IBeanIfc;
    import com.frictionless.api.ibean.IBeanHomeIfc;
    import com.frictionless.api.contracts;
    import com.frictionless.api.usermgmt.masterdata.*;
    import com.frictionless.api.common.exception.*;
    import com.frictionless.api.common.types.*;
    import com.frictionless.api.ibean.*;
    ApplicationException ae = new ApplicationException(session);
    // Logger
    logMsg = Logger.createLogMessage(session);
    // Agreement Bean
    agreeBean = doc.getParentIBean();
    if (hasValue(current_phase))
    // Lock the legal approval and workflow fields after draft phase
    if (current_phase.equals("Draft"))
    IapiDocumentLockManager.unlockField(session, doc, "CLAUSE_CHANGE");
    IapiDocumentLockManager.unlockField(session, doc, "LEGAL_APPROVER");
    if (!(current_phase.equals("Draft")))
    IapiDocumentLockManager.lockField(session, doc, "CLAUSE_CHANGE");
    IapiDocumentLockManager.lockField(session, doc, "LEGAL_APPROVER");
    // If contract document phase is not Internal Approval
    if ((current_phase.equals("Executed")))
    agreeBean.getIBeanHomeIfc().upgradeToEdit(agreeBean);
    collaboratorList = agreeBean.getCollaborators();
    for (collabIter = collaboratorList.size(); collabIter > 0; collabIter--)
    // Get the collaborator
    collab = collaboratorList.get(collabIter-1);
    name = collab.getDisplayName();
    if (!collab.getCollaboratorRole().getDisplayName().equals("Owner") @and !collab.getRepresenting().getDisplayName().equals("Legal"))
    collaboratorList.delete(collab);
    agreeBean.getIBeanHomeIfc().save(agreeBean);
    if ((current_phase.equals("Internal Approval")) @or current_phase.equals("Legal Approval"))
    agreeBean.getIBeanHomeIfc().save(agreeBean);
    agreeBean.getIBeanHomeIfc().downgradeToView(agreeBean);

  • Header text is not dispalying in english for billing document print output

    Hi All,
    I am working on script for billing document.
    I am maintain the header text for the document.I have enrted the header text in english text is not displaying in print output.If i maintain the text in french i am able to see the output.
    I am logging into the system with lanauage EN only.Can yo please let me know how can i displzy english text in my print output.

    Pass SY-LANGU as the value for input parameter LANGUAGE in FM READ_TEXT.
    Regards
    Vinod

  • Script for combining multiple documents?

    hi there,
    well I think there's been a lot of discussion going towards this topic. My concerns aren't quite lining up with the topics. We using a script for placing images, and instead of going document to document...I would like to combine all the indd documents...there's usually at least 24...and to import NOT as pdf's, just as individual pages within the one document...insert my images using the other script...and then later choosing to re-export the pages as individuals. With ascending order of page numbers in the correct sequence they were brought in as.
    thanks for the help.

    -Printing by folder only helps when I need to run one copy of the files, typically I need to print multiple copies or save them for future printing.  Also I have had errors printing via that method before because it will sometimes overload the printer queue.
    -It would be great if clients always provided print ready documents, but that is usually not the case and I have to correct it which is why I am here asking how to do this.
    And if you can not do that then you need to insert a blank page into the files with an odd number of pages.
    Right.  That is what I am looking for; something to automate inserting a blank page into files that have an odd number of pages WITHOUT knowing the documents page counts before hand and WITHOUT having to manually insert blank pages.

  • Script for 'Check Links Before Opening Document' preference

    I'm trying to find the VB script for changing the "Check Links Before Opening Document" checkbox on the File Handling panel in the Preferences dialog? I haven't found any documentation referring to the Links items on that panel.
    Bob

    Thanks for the info.
    Was there a document you pulled this from?
    I have an old document from CS2 days that is invaluable for providing a detailed list of available script methods and properties. Obviously things that have been added in subsequent InDesign releases aren't in this document. Later InDesign CS releases offer script SDKs that contain helpful sample scripts but I don't find a detailed summary similar to one from CS2. Have I just not found them? Or how does one find the script method/property for things not contained in the sample scripts?

  • I am new to scripting & I need Script for Document color mode

    Hi,
    Please help me to create a script which should find the Document color mode. I am new to scripting. And please let me know how to use the same.
    Balaji

    Are you using the Extendscript Toolkit Editor (ESTK)? In the Help menu you can find all the properties for Document that can be queried/changed.
    (Personally, I don't use ESTK, because I really really hate it. But I don't want to miss the Help, so I made my own version. I have Illustrator CS4, and it's possible your version doesn't have this, but under Document I find:
    documentColorSpace
    DocumentColorSpace:
    DocumentColorSpace.RGB
    DocumentColorSpace.CMYK
    readonly
    The color space used for the document.
    For the how-to-use I glady refer you to Adobe's own Starting With Scripting guides.)

  • Script for Document Footnote options change before first footnote above space.

    Hi hope u r all fine,
    Please help for this. I want to change the space in Document footnote option.
    That is Minimum space before first footnote = "12 pt"; and Rule above of First Footnote in Column should be Rule off.
    I need script for this.

    @hasvi – look up the properties and methods here:
    Jongware
    InDesign JavaScript Reference Guide
    http://www.jongware.com/idjshelp.html
    I recommend the chm files listed there for easy searchability.
    There is also a HTML version and a online version in HTML.
    Properties like footnoteFirstBaselineOffset, footnoteMinimumFirstBaselineOffset, ruleOn and ruleOffset with their possible values are documented here:
    http://jongware.mit.edu/idcs6js/pc_FootnoteOption.html
    To set the properties and their values you have to address the document.footnoteOptions:
    var myDoc = app.documents[0];
    myDoc.footnoteOptions.properties = {
        footnoteFirstBaselineOffset : FootnoteFirstBaseline.X_HEIGHT,
        footnoteMinimumFirstBaselineOffset : "12 pt",
        ruleOn : false
    Uwe

  • Need help writing script to change version control for all document libraries in all sites

    Hello,
    I found this script, http://get-spscripts.com/2010/10/changing-sharepoint-list-settings-using.html that
    changes versions control for a document library.  However, many sites have many document libraries with different names.  The script below just changes a the settings to a document library that is named "Shared Documents", but does not
    change one if its named something else.  How can change the script to loop through all document libraries so their settings are changed?
    $site = Get-SPSite http://site
    $listName = "Shared Documents"
    #Walk through each site in the site collection
    $site | Get-SPWeb | 
    ForEach-Object {
    #Get the list in this site
    $list = $_.Lists[$listName]
    #Create a version each time you edit an item in this list (lists)
    #Create major versions (document libraries)
    $list.EnableVersioning = $true
    #Create major and minor (draft) versions (document libraries only)
    $list.EnableMinorVersions = $true
    #Keep the following number of versions (lists)
    #Keep the following number of major versions (document libraries)
    $list.MajorVersionLimit = 7
    #Keep drafts for the following number of approved versions (lists)
    #Keep drafts for the following number of major versions (document libraries)
    $list.MajorWithMinorVersionsLimit = 5
    #Update the list
    $list.Update()
    #Dispose of the site object
    $site.Dispose()
    Paul

    Sorry, I agree. It will update Style Library and other out of the box ones. Include the library titles in a collection and run the update against them provided these libraries are common across all sites. If not, you will have to first get an extract of
    all such libraries in all sites say in a CSV file and then update the script below to refer to the CSV records.
    Add-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction Stop;
    #List of Libraries to be updated.
    $Libraries = @("Shared Documents","My Document Library");
    $spAssgn = Start-SPAssignment;
    $site = Get-SPSite http://site -AssignmentCollection $spAssgn
    #Walk through each site in the site collection
    $site | Get-SPWeb -Limit ALL -AssignmentCollection $spAssgn |
    ForEach-Object {
    #Enumerate through all document libraries
    $_.Lists|Where{$_.BaseTemplate -eq "DocumentLibrary" -and $Libraries -contains $_.Title}|Foreach-Object{
    #Get the list in this site
    $list = $_;
    #Create a version each time you edit an item in this list (lists)
    #Create major versions (document libraries)
    $list.EnableVersioning = $true
    #Create major and minor (draft) versions (document libraries only)
    $list.EnableMinorVersions = $true
    #Keep the following number of versions (lists)
    #Keep the following number of major versions (document libraries)
    $list.MajorVersionLimit = 7
    #Keep drafts for the following number of approved versions (lists)
    #Keep drafts for the following number of major versions (document libraries)
    $list.MajorWithMinorVersionsLimit = 5
    #Update the list
    $list.Update()
    Stop-SPAssignment $spAssgn;
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Creating a folder for a document library in SharePoint online

    Hello I am looking for a good place to get started on creating a folder for a document library using a powershell script. Thanks in advance for any help.

    Here is a guide to creating folders and items in a document library for SharePoint Server/Foundation: Creating SharePoint Folders
    and Items with PowerShell. You will need to tailor it to your needs as it's a demo for creating 50,000 items.
    That's step 1 and contains the bulk of what you would need to do. Here's an example of connecting to a library in SharePoint Online using CSOM: Office
    365 - PowerShell Script to Upload Files to a Document Library using CSOM. You won't be uploading files, but the parts where you connect and get a list are what you're interested in.
    Now you'll combine bits from both of these scripts:
    1. Connect to SPO
    2. Get your list (looks like you need to first get the site collection and then the site)
    3. Create a folder
    I figure it would look something like this (note I haven't tested this at all):
    #Specify tenant admin and site URL
    $User = "[email protected]"
    $SiteURL = "https://tenant.sharepoint.com/sites/site"
    $DocLibName = "DocLib"$FolderTitle = "Example Folder"
    #Add references to SharePoint client assemblies and authenticate to Office 365 site - required for CSOM
    Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
    Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
    $Password = Read-Host -Prompt "Please enter your password" -AsSecureString
    #Bind to site collection
    $Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
    $Creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($User,$Password)
    $Context.Credentials = $Creds
    #Retrieve list
    $List = $Context.Web.Lists.GetByTitle($DocLibName)
    $folder = $list.AddItem("", [Microsoft.SharePoint.SPFileSystemObjectType]::Folder)
    $folder["Title"] = $FolderTitle
    $folder.Update();
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Using Scripts to detect document size in inches?

    Is it possible that a script detects the document size in inches not in pixels?
    Thanks for the help!

    The size an Image will print is a simple calulation the numbet of Pixel Wide Devided by the imageg current DPI resolution. And numbet of Pixel High Devided by the imageg current DPI resolution. You can always change the DPI while maintaining the same number of pizels using Image Size with resample NOT checked to change the image's print size. All the information can be retrived in a script and the script can change the image's print size with or without resampling the image.

  • How to Restrict printing the document using IRM for a Single Document?Allow printing for some documents and restrict the printing for particular documents in same document library?

    Can we able to Configure the IRM in Document Level in SharePoint Document libraries?
    The document library contains multiple document sets , Can we restrict the printing according to document sets? Allow printing for some documents and restrict the printing for particular documents in same document library
     Is this possible?Please suggest.

    Yes, that can be done. But note that all administrators will have the same right to print, so you need to make sure the users are not administrators. You can include a macro to disable printing, but if the users disable macro, they can print the documents.
    Hence, there is no foolproof way to prevent printing documents. If you still need a foolproof security, PDF format provides password based security (viewing doesn't require a password) that can be implemented to prevent the document from printing,
    which doesn't require any special scripts and is tough.
    You can have a look at the following links:
    http://msdn.microsoft.com/en-us/library/office/ms458245(v=office.14).aspx
    http://msgroups.net/microsoft.public.word.docmanagement/prevent-printing-of-docum/91353
    http://www.go4sharepoint.com/Forum/prevent-printing-saving-documents-10150.aspx
    The following link explains about the security features in PDF. This is for information purpose only and not for promotion of any products:
    http://www.pdflib.com/knowledge-base/pdf-security/
    Balaji Kundalam

  • Could someone please sketch out this simple script for me?

    Could someone please sketch out a simple java script for me. I will have a document with one background
    layer and a layer set (group) called "Analyze" that consists of 63 adjustment layers. The layer names in that "Analyze" group(folder) will be
    "01" ...through "63" with 01 on the bottom and 63 at the top. Initially, all of the adjustment layers will be invisible and  the
    group will be closed (not expanded). I need a simple  script that will check for the first invisible layer in that group
    and make it visible without selecting that layer nor expanding the group. The script has to check
    for the first invisible layer every time it runs because other actions may have turned off a layer in the set.
    The point of this is so I can hotkey flipping on the layers one at a time without expanding the set or
    changing focus off the  background. It seems it should be a simple loop, but I just can't wrap  my head
    around all the objects (e.g. Layer as opposed to Layers  and  Artlayer as opposed to Artlayers)
    and the constants constants.
    for (i = 63; i>0; i--){                 /* I have found layer indexes 0 are the topmost layer */
      if( layerset[i] == INVISIBLE){
               layerset[i] = VISIBLE;
                  break;
    Could someone please write me a simple script that would do this?
    Edit I found this and its very close to what I need:
    var doc = app.activeDocument;
    for(var i = 0 ; i < doc.layers.length;i++){
      doc.layers[i].visible = (i % 2 == 0);
    From here : Function to show/hide layer with Photoshop script (JSX) - Stack Overflow
    In my case I would rewrite it to this
    for(var i = 62; i >=0; i--){
         if(  !doc.layers[i].visible){
              doc.layers[i].visible =TRUE;
              break;
    My problem is I just need  to traverse the layers in my layerset "Analyze"
    How do  I reference just those? Is there a doc.layersets["Analyze"].layers[i].visible = TRUE?
    Message was edited by: Shawn Laughlin To add more information

    Well this works:
    var doc = app.activeDocument;
    var analyze = doc.layerSets.getByName("Analyze").layers
    for(var i = 62 ; i >= 0; i --){
        if (!analyze[i].visible){
            analyze[i].visible =1;
            break;
    Hard to believe TRUE is not a constant in java.

  • [CS5 Win] Switching to InDesign is slow in CS5 for certain documents. XML links?

    Hi,
    I put this question in the scripting part, since you might be the ones to notice such things as this, and it might relate to importing XML by scripting. Also I got no positive response in one of the other forums, "complaining" about the sluggish performance redrawing the interface when setting focus to InDesign CS5. But now I can more clearly see that it is not slow for all documents.
    Having certain documents open in InDesign CS5 makes it very slow to switch to. The CPU peaks at 80-100% and it takes about a second or two until InDesign responds.
    The documents do not necessarily need to be large in size, but it appears that it mostly occurrs on documents that I've imported data to (or that our customers have), using our own code, which takes care of an XML file and portions it out into templates.
    One strange thing I just noticed was that selecting "relink all" by alt-clicking the relink button in the Links palette, makes InDesign look for (presumalbly) previously imported XML files. How can that be?
    I never store any links to the imported XML - as far as I know. Where should I look for that kind of links?
    How and why would previously imported XML file paths be stored? I just import the XML into the structure, "deal with it", and deletes the node that it was imported to. (The data is left in a structure that I build up myself.)
    Does anyone know if there is a change related to any of the facts stated above, in InDesign CS5?
    I'll attach a screen shot of the links dialogue (above), when it "looks for" an XML file. Could this kind of "missing file" cause the abovementioned "slowness" every time switching to InDesign from another application?
    (InDesign documents that don't relate to XML doesn't make switching to InDesign slow - but it gets slow when such a document is loaded, even under a tab that is not in focus.)
    Best regards,
    Andreas

    I've uploaded a video to demonstrate that InDesign sometimes can keep references to links:
    http://www.youtube.com/watch?v=OoQOSIlfYl4
    It's obvious that there are thousands of "orphans" in the documents. All XML files ever imported are kept in some way... The links (or the names of them) are obviously not removed from the document when deleting the Element in the XML Structure. Since the communication of the code with a database is built around XML import, the number of imported files is very large.
    Can these orphaned link references somehow be removed? When manually checking for missing files, InDesign loops though all of the XML files as seen in the YouTube video above, but ends up saying that there are no missing files. The next time I do the same check, all links are looped through again.
    Perhaps we should "link to file", using .xmlImportPreferences.createLinkToXML = true
    This propery has not been explicitly set, and therfore = false. But is there any way to get rid of all the old link names that's inside the document somehow?
    CS4 does the same thing, but there is "no 2 second lag time" switching from another application to InDesign CS4 with this kind of document open.

Maybe you are looking for