To Limiting the size of the attached document in a "Purchase order"

Does anyone knows how to limit the size of the document indexing in an "Purchase order"?
Let me explain:
By the tcode me23n I can create an annex to attach a file to the Purchase order,
right now there is no limitation on the size of it,
is there any way to limit that someone attach a giant file to a purchase order and leave me the Database trembling?
thanks in advance.

No cross posting
Read the "Rules of Engagement"

Similar Messages

  • How Can I Determine the Size of the 'My Documents' Folder for every user on a local machine using VBScript?

    Hello,
    I am at my wits end into this. Either I am doing it the wrong way or it is not possible.
    Let me explain. I need a vb script for the following scenario:
    1. The script is to run on multiple Windows 7 machines (32-Bit & 64-Bit alike).
    2. These are shared workstation i.e. different users login to these machines from time to time.
    3. The objective of this script is to traverse through each User Profile folder and get the size of the 'My Documents' folder within each User Profile folder. This information is to be written to a
    .CSV file located at C:\Temp directory on the machine.
    4. This script would be pushed to all workstations from SCCM. It would be configured to execute with
    System Rights
    I tried the script detailed at:
    http://blogs.technet.com/b/heyscriptingguy/archive/2005/03/31/how-can-i-determine-the-size-of-the-my-documents-folder.aspx 
    Const MY_DOCUMENTS = &H5&
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objShell = CreateObject("Shell.Application")
    Set objFolder = objShell.Namespace(MY_DOCUMENTS)
    Set objFolderItem = objFolder.Self
    strPath = objFolderItem.Path
    Set objFolder = objFSO.GetFolder(strPath)
    Wscript.Echo objFolder.Size
    The Wscript.Echo objFolder.Size command in the script at the above mentioned link returned the value as
    '0' (zero) for the current logged on user. Although the actual size was like 30 MB or so.
    I then tried the script at:
    http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_27869829.html
    This script returns the correct value but only for the current logged-on user.
    Const blnShowErrors = False
    ' Set up filesystem object for usage
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objShell = CreateObject("WScript.Shell")
    ' Display desired folder sizes
    Wscript.Echo "MyDocuments : " & FormatSize(FindFiles(objFSO.GetFolder(objShell.SpecialFolders("MyDocuments"))))
    ' Recursively tally the size of all files under a folder
    ' Protect against folders or files that are not accessible
    Function FindFiles(objFolder)
    On Error Resume Next
    ' List files
    For Each objFile In objFolder.Files
    On Error Resume Next
    If Err.Number <> 0 Then ShowError "FindFiles:01", objFolder.Path
    On Error Resume Next
    FindFiles = FindFiles + objFile.Size
    If Err.Number <> 0 Then ShowError "FindFiles:02", objFile.Path
    Next
    If Err.Number = 0 Then
    ' Recursively drill down into subfolder
    For Each objSubFolder In objFolder.SubFolders
    On Error Resume Next
    If Err.Number <> 0 Then ShowError "FindFiles:04", objFolder.Path
    FindFiles = FindFiles + FindFiles(objSubFolder)
    If Err.Number <> 0 Then ShowError "FindFiles:05", objSubFolder.Path
    Next
    Else
    ShowError "FindFiles:03", objFolder.Path
    End If
    End Function
    ' Function to format a number into typical size scales
    Function FormatSize(iSize)
    aLabel = Array("bytes", "KB", "MB", "GB", "TB")
    For i = 0 to 4
    If iSize > 1024 Then iSize = iSize / 1024 Else Exit For End If
    Next
    FormatSize = Round(iSize, 2) & " " & aLabel(i)
    End Function
    Sub ShowError(strLocation, strMessage)
    If blnShowErrors Then
    WScript.StdErr.WriteLine "==> ERROR at [" & strLocation & "]"
    WScript.StdErr.WriteLine " Number:[" & Err.Number & "], Source:[" & Err.Source & "], Desc:[" & Err.Description & "]"
    WScript.StdErr.WriteLine " " & strMessage
    Err.Clear
    End If
    End Sub
    The only part pending, is to achieve this for the 'My Documents' folder within each User Profile folder.
    Is this possible?
    Please help.

    Here are a bunch of scripts to get folder size under all circumstances.  Take your pick.
    https://gallery.technet.microsoft.com/scriptcenter/site/search?query=get%20folder%20size&f%5B0%5D.Value=get%20folder%20size&f%5B0%5D.Type=SearchText&ac=2
    ¯\_(ツ)_/¯

  • The size of a XML document stored in a XMLType table

    Is there a way to find out (via SQL) the size of a XML document stored in a XMLType table or XMLType column (storage OR based)?
    For instance in the way you could it retrieve if the XML document was stored in an XMLType column (CLOB based)
    SQL> r
    1 select dbms_lob.getlength(t.gegevens.getclobval()) "SIZE"
    2 from hgo.hgo010_detam t
    3* where rownum < 2
    SIZE
    2750

    Is there a way to find out (via SQL) the size of a XML document stored in a XMLType table or XMLType column (storage OR based)?
    For instance in the way you could it retrieve if the XML document was stored in an XMLType column (CLOB based)
    SQL> r
    1 select dbms_lob.getlength(t.gegevens.getclobval()) "SIZE"
    2 from hgo.hgo010_detam t
    3* where rownum < 2
    SIZE
    2750

  • When converting a document on Pages to PDF, is there a way to shrink the size of the PDF document?

    When converting a document on Pages to PDF, is there a way to shrink the size of the PDF document?

    When exporting you are given 3 options:
    Good, Better, Best
    But I am guessing you are asking something else, just haven't said so.
    Peter

  • Pages 09 document files are 4 x the size of the same doc saved in Word?

    I noticed that if I save a document in Pages 09 native format, it is about 4 times the size as the same document saved as a Word document. None of the documents that I'm working on have graphics, fancy backgrounds or mixed fonts. They are simple one page business letters.
    Any thoughts on this a greatly appreciated.
    Bud James

    I have had concerns about this very same issue. I noticed that a 1 page document of plain text in Pages 09 took up 128KB of space, whereas if I saved the same document to Word 2004 it was 24KB. However it is in fact true that the larger the document the more efficient it is. A 2 page text document in Pages 09 was 168KB. If I add my 1 page document to the end of my 2 page document, the total size of the new document in Pages 09 is 200KB.
    Here's the kicker: I had a 32-page Word 2004 document (plain text) that occupied 220KB of disk space. When I opened it in Pages and saved it as a Pages 09 doc, it was 160KB, which obviously is smaller than the Word doc, but also is smaller than the 2 page document I created with Pages 09! Obviously Pages is more efficient than Word with large documents, but a lot less efficient with small documents.
    The problem is, many of us write a lot of small documents-- notes, letters, etc. I am concerned that my laptop's hard disk space (only 120 GB total) will get used up a lot quicker with Pages than with Word. This makes me very reluctant to use Pages on a regular basis.
    (I can anticipate the response: Get a big hard drive and quit complaining! But still...).

  • Limiting/controllong the size of the attachments

    Hi,
    I have developed a PDF form(which contains a SUBMIT button), and an application that processes it. As the PDF may contain files attached, the problem I face is: is there a way to limit or control the size of the complete PDF(including the attached files) that the user tries to send?
    I imagine it exits, but I'm not able to find it.
    Thanks in advance for your help.

    My research shows that there is no way to limit the size of attachments to a PDF. I suggest you enter it as an emhancement.

  • Is there a possibility print settings ( scaling) to affect the size of the document?

    Dear Friends
    my question is this
    is there a possibility the print settings (scaling in the print window) of a document in AI CS4 to affect the size of the document when is saved as PDF file ?
    the reason i am asking is that we have a dispute with a printer
    the project was designed in Illustrator CS4 and it was saved as PDF
    he claims the pdf document we gave him was scaled down ( due to the scaling we used in the print window when we were printing the document for proof reading )
    he says the document when it was saved as pdf it kept those print settings and it scaled down the document size
    i asked around various people and all of them said thats not possible
    i just want an answer from an adobe expert...
    thank you in advance

    aspyro,
    the printing house that produced our leaflet claims that the artwork we gave them was at a wrong size ( slightly smaller than the intented document size) we carefully examined both illustartor files ( where the project was originally designed ) and pdf ( as it was saved as after completion ) and both of them were correct when it comes to document sizethe printing house claims that the settings we had at the print window ( lets say 50% scaling) affected the output size of the document when it was saved as pdf ( and the document size was reduced at the half)
    is this possible?
    In the PDF Print dialog, there is an option, Expand small pages to paper size; it is necessary to tick that if the PDF is A5 and you wish to print as A4 or similar (you can see by switching it on and off), but it is only relevant if there is a page.
    The opposite option, Shrink oversized pages to paper size, may yield a slight reduction, maybe to 99% or so, even if you seem to have the correct page size.
    Did you Save As PDF or Print to PDF?

  • Beginner question about the size of the documents and fonts

    I have worked with dps a couple of years now and now that Adobe removes Single Edition I have to look at other tools. EPUB3 fixed layout appears to be an alternative solution.
    I've been reading up on the web and checked on Lynda courses, but there is one thing I wonder about.
    How should I think about the size of the InDesign document and the size of the body text when I create a EPUB3 with fixed-layout?
    Regards
    Ake

    A couple things to keep in mind with EPUB3 Fixed Layout:
    Unlike EPUB reflowable, FXL doesn't change size. You'll need to optimize your InDesign layout for the device most likely to view it—for example, an iPad, since it's the dominant device.
    Like with DPS, you'll need to pick a font size larger than you'd use for print.
    As with DPS, it's very important to do some tests on your target device to optimize both dimensions and font size.
    Final Note: If you're in North America, this is a good time to  buy an iPad since there are a lot of Black Friday sales coming up!

  • What is the size and number of documents we can upload to a document library at one time

    HI
    what is the size and number of documents we can upload to a document library at one time.
    like we have scenario , we developed a custom solution to scan and upload documents to sharepoint sites doc library.
    here we face issues when user try to upload 100 documents with the size of each doc 2-3 MB, at one time.
    adil

    Hi Adil,
    The maximum number and size of documents to upload in a document library is determined by a setting in Central administration. You can go to Central administration -> Application Management -> Manage Web Applications -> Select the Web Application
    -> Click on General Settings in the ribbon. Scroll down and you will see "Maximum Upload Size" section. The maximum value that can be set is 2047 MB. 
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • How to adjust the size of the document body in Pages

    Hello all,
    I would like to find out how to change the size of the document body within Pages.
    I encountered this problem when selecting Business Resume from the templates section and after removing the left text box I could not move the main text body to the left, although document margins where set to 0.
    As you can see in the photo the section that says Profile can not be moved to left more than it already is.
    I would appreciate your help
    Thank you

    Several of the Pages 5.5.2 templates are buggy, you have found one of them.
    Create a template from scratch using the Blank tempalte.
    Peter

  • How to reduce the size of the pdf scanned file ?

    Hi, 
    I have canon PIXMA MG2120. I am trying to scan the documents but the size is to big to attach to email. Any Idea how to reduce the size of the PDF file?

    Hello
     For pdf size,you can compress the pdf size if you want to reduce the size of the pdf files.
    Here is the code to do it:
    using System.IO;
    using System.Drawing.Printing;
    using RasterEdge.Imaging;
    using RasterEdge.Imaging.Codec.Compression;
    using RasterEdge.Imaging.PDF;
    DocumentCompression.infile(@"C:\1.pdf");
    DocumentCompression.Outfile(@"C:\2.pdf");
    DocumentEncoder = DocumentEncoder.Group3Encoding
    RasterEdgeImaging Document = new RasterEdgeDocumentg();
    Image. DocumentCompression(@"C:\1.pdf", "C:\2.pdf", DocumentEncoder DocumentEncoder.Group3Encoding);

  • File size of corrected jpegs expands to half the size of the original

    Using a Canon 1Dx, I have an option of utilizing both slots and assigning different file types to each.  In one slot I shoot RAW, and on the 2nd slot I shoot a JPG backup.  Typically though I'll do all my work on the RAW file in Lightroom 5.  The unimported JPG shot on the second slot expands to approx. 51MB.  But the CR2 file, imported to Lightroom 5 and then exported as a corrected JPG, only expands to 28MB.  Am I missing something on import/export that would reduce the filesize of the corrected JPG?  I cannot find a setting that is toggled that augments import/export size.  Is this a bits per channel issue?   Similarly, I have the same issue with Bridge.  When converting a CR2 file to JPG it expands to the same 28MB filesize.  My client wants his JPG to expand closer to that 50MB number.

    dean5432 wrote:
    When the JPG file is opened, it shows as 51MB.  When the CR2 file is opened it's 28MB.  I was under the mistaken impression that the files would produce equally sized JPGs, and that somehow in the output from Lightroom it was constraining the size of the finished image.
    When you say "opened" what  'MB' reading are you reffering to? Lightroom can show the image file's Resolution (5184 x 3456), File Size (MB), and Megapixels. What does LR show for these three reading, in particular you should be interested in the image 'Resolution' value.
    When viewed in PS your Canon 1Dx raw image files should show a 'Document Size' of:
    5184 x 3456 x 3 (RGB) x 2 (16 bit data) = 107,495,424 Bytes ÷ 1,048,576 (# of Bytes in MB) = 102,515,625 Bytes = 102.5 MB
    Your full-size Camera JPEG images should be exactly 1/2 since they are 8bit images = 51.3 MB
    I can confirm these numbers with my Canon 600D, which also uses a 5184 x 3456 resolution sensor.
    You may have your camera set to shoot M-Raw (3888 x 2592) or S-Raw (2592 x 1728) with full-size JPEG (5184 x 3456).

  • How to change the size of the caret in a JTextPane

    I have text of different font sizes and the default caret height is the height of the text with the maximum font size. How do I change the caret height so that it matches the height of the text with the specified font size ?

    This has been a real pain in the butt to figure out, but I think I finally got it. If you create your own caret (subclass of DefaultCaret) then you override its paint() and damage() methods. I was having all kinds of problems with this though. I was getting pieces of carets left behind when I moved with the arrow keys, etc... from the helps I found. The arrow keys were my big problem.
    I think I finally figured out that the damage() simply does need to specify an area a little bigger than the old caret so it can blank it out. Then I think others had a logic problem, and Sun does not make this problem clear. What happens it that I think repaint() calls paint() who then uses the bigger x, y, height and width parameters that got set in damage(), which was causing my problems because the damage size was bigger than the size I wanted to create my caret with. What I do is figure out my area from the font I am using (another trick) and make them (the charWd and charHt) variables class variables. I calculate them in damage, use a bigger area to blank out my old caret in damage, and then used the correct caret size I calculated in damage() in paint(), instead of the rectangle values that seem to get passed from damage() to paint(). That was the problem in other examples.
    Here is my code:
    run with java caretPain
    run with java caretPain -1 to see my fixed version
    run with java caretPain -2 to see some problems
    // written by: Stan Towianski
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Hashtable;
    import java.util.ArrayList;
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import javax.swing.undo.*;
    import javax.swing.plaf.basic.*;
    import javax.swing.text.*;
    import javax.swing.plaf.*;
    import java.net.URL;
    import java.io.*;
    import java.beans.*;
    public class caretPain extends JFrame {
    static caretPain CRTP2;
    JPanel contentPane;
    JTextPane textPane;
    JTextPane textPane2;
    JScrollPane scrollPane;
    JSplitPane splitPane;
    String newline = "\n";
    static final int MAX_CHARACTERS = 300100;
    static int FrameWidth = 500;
    static int FrameHeight = 300;
    String caretType = "blockOutline";
    static int useSpecialCaret = 0;
    DefaultCaret useCaret = new MyCaret();
    public caretPain() {
    textPane = new JTextPane( new DefaultStyledDocument() );
    textPane2 = new JTextPane( new DefaultStyledDocument() );
    if ( useSpecialCaret == 1 )
    System.out.println( "using special caret 1" );
    textPane.setCaret( useCaret );
    else if ( useSpecialCaret == 2 )
    System.out.println( "using special caret 2" );
    textPane.setCaret( new WsCaret() );
    textPane.setCaretPosition(0);
    textPane.setMargin(new Insets(5,5,5,5));
    scrollPane = new JScrollPane(textPane);
    textPane.setPreferredSize(new Dimension(FrameWidth, FrameHeight));
    JScrollPane scrollPane = new JScrollPane(textPane);
    //Create a split pane for the change log and the text area.
    splitPane = new JSplitPane( JSplitPane.HORIZONTAL_SPLIT,
    textPane, textPane2 );
    splitPane.setOneTouchExpandable(true);
    //Add the components to the frame.
    contentPane = new JPanel(new BorderLayout());
    contentPane.add(splitPane, BorderLayout.CENTER);
    setContentPane(contentPane);
    class MyCaret extends DefaultCaret
    int charWd = 30;
    int charHt = 30;
    // draw the caret
    public void paint(Graphics g)
    System.err.println( "entered MyCaret.paint()" );
    if ( ! isVisible() )
    System.err.println( "exiting because not visible" );
    return;
    try {
    JTextComponent c = getComponent();
    int dot = getDot();
    Rectangle r = c.modelToView(dot);
    System.err.println("caret: text position: " + dot +
    ", view location = [" +
    r.x + ", " + r.y + "]" +
    newline);
    g.setColor(c.getCaretColor());
    //g.drawLine(r.x, r.y + r.height - 1, r.x + 14, r.y + r.height - 1);
    System.err.println( "caretType =" + caretType ); //+ " component =" + c.toString() );
    if ( caretType.equals( "blockOutline" ) )
    g.drawRect( r.x, r.y, charWd, charHt );
    else if ( caretType.equals( "block" ) )
    g.fillRect( r.x, r.y, charWd, charHt );
    else if ( caretType.equals( "bar" ) )
    g.drawLine( r.x, r.y, r.x, r.y + charHt );
    catch (BadLocationException e) {
    System.err.println( "bad caret loc" + e);
    // specify the size of the caret for redrawing
    // and do repaint() -- this is called when the
    // caret moves
    //protected synchronized void damage(Rectangle r)
    public synchronized void damage(Rectangle r)
    System.err.println( "entered MyCaret.damage()" );
    System.err.println("caret.damage(): text position: " + getDot() +
    ", view location = [" +
    r.x + ", " + r.y + "]" +
    newline);
    //FontMetrics fm = g.getFontMetrics();
    //System.out.println( "textPane getfont =" + textPane.getFont() );
    //System.out.println( "\n\n read in attribs font size =" + textPane.getInputAttributes().getAttribute(StyleConstants.FontSize) + "\n\n" );
    //int ii = Integer.parseInt( (String) textPane.getInputAttributes().getAttribute( StyleConstants.FontSize ) );
    int ii = Integer.parseInt( String.valueOf( textPane.getInputAttributes().getAttribute( StyleConstants.FontSize ) ) );
    //System.out.println( "textPane input attrib font size =" + ii );
    Font f = new Font( "ff", Font.PLAIN, ii );
    //System.out.println( "textPane input attrib font =" + f );
    FontMetrics fm = getFontMetrics( f );
    //FontMetrics fm = g.getFontMetrics();
    //FontMetrics fm = getFontMetrics( textPane.getInputAttributes().getAttribute( StyleConstants.FontSize ) );
    //MutableAttributeSet inputAttributes = getInputAttributes();
    //String fs = textPane.getAttribute( "FontSize" );
    //System.out.println( "\n\n read font size =" + textPane.getCharacterAttributes().getAttribute(StyleConstants.FontSize) + "\n\n" );
    charWd = fm.charWidth( 'k' );
    charHt= fm.getHeight();
    //System.out.println( "font width =" + charWd + " font height =" + charHt + " font =" + fm.toString());
    if ( r == null )
    System.err.println( "caret.damage() return on rectangle == null" );
    return;
    x = r.x - 2;
    y = r.y - 2; // + r.height - 2;
    width = charWd + 4; //textPane.getColumnWidth();
    height = charHt + 4; //textPane.getRowHeight();
    System.err.println("caret.damage(): set caret width, height, x, y =" + width + "," + height + "," + x + "," + y );
    repaint();
    //repaint();
    public class WsCaret extends DefaultCaret {
    transient private int[] flagXPoints = new int[3];
    transient private int[] flagYPoints = new int[3];
    public WsCaret() {
    this.setBlinkRate(500);
    public void paint(Graphics g) {
    if(isVisible()) {
    JTextComponent component = this.getComponent();
    TextUI mapper = component.getUI();
    Rectangle r = null;
    try {
    r = mapper.modelToView(component, this.getDot());
    catch(BadLocationException exc) {}
    //System.out.println( "rect r =" + r.toString() );
    //g.drawLine(r.x, r.y, r.x, r.y + r.height - 1);
    //g.drawLine(r.x+1, r.y, r.x+1, r.y + r.height - 1);
    g.drawRect( r.x, r.y, 10, r.height );
    Document doc = component.getDocument();
    if (doc instanceof AbstractDocument) {
    Element bidi = ((AbstractDocument)doc).getBidiRootElement();
    if ((bidi != null) && (bidi.getElementCount() > 1)) {
    // there are multiple directions present.
    flagXPoints[0] = r.x;
    flagYPoints[0] = r.y;
    flagXPoints[1] = r.x;
    flagYPoints[1] = r.y + 4;
    flagYPoints[2] = r.y;
    flagXPoints[2] = (true) ? r.x + 5 : r.x - 4;
    System.out.println( "going g.fillPolygon" );
    g.fillPolygon(flagXPoints, flagYPoints, 3);
    protected synchronized void damage(Rectangle r) {
    if (r != null) {
    this.x = r.x - 4;
    this.y = r.y;
    //there must be a better way to doing this, but for now you
    //just increase the width so that it will cover the new caret's size
    this.width = 20; // the original width is 10
    this.height = r.height;
    //this.height = r.height + 20;
    //this.height = 10;
    repaint();
    //The standard main method.
    public static void main(String[] args) {
    if ( args.length > 0 )
    System.out.println( "found arg so will use special caret." );
    if ( args[0].equals( "-1" ) )
    useSpecialCaret = 1;
    else if ( args[0].equals( "-2" ) )
    useSpecialCaret = 2;
    else
    System.out.println( "found no arg so will standard caret." );
    System.out.println( "give arg: -1 to get Stan\'s working caret" );
    System.out.println( "give arg: -2 to get another example\'s caret" );
    try
    CRTP2 = new caretPain();
         catch (Exception ex)
    System.out.println("Error creating CRTP2: " + ex);
    ex.printStackTrace();
    System.exit(0);
    CRTP2.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    public void windowActivated(WindowEvent e) {
    CRTP2.textPane.requestFocus();
    CRTP2.setTitle( "This is my title you" );
    CRTP2.pack();
    CRTP2.setVisible(true);

  • Limit on the size of the flat file in SAP Application Server

    Hi Gurus,
    My requirement is to upload the account payable data to the SAP Application Server.
    The requirement say's like if the size of the file exceeds the limit(is there any limit on file size in SAP?) of SAP then I should upload another file with the remaining records.
    Is there any limit on the file size uploaded into SAP Application Server?If there is limit on file size then what is the value of the limit?
    I guess the file size will depend on the basis configuration and the free size of the Application Server Folder.
    How to check free space in the Application Server folder and proceed further for placing the file in that folder?
    Thanks & Regards,
    Kiran Kumar K

    The limitation (if any) will be on the OS level. Nothing to do with SAP as such. Asking your basis team to provide you with an area with plenty of room will be the easiest option. How big are your files - most OSs can handle files of many GB. Sounds to me like the "requirement" has been written by someone without technical knowledge...

  • How to get the size of the doc in XMLType

    Hi,
    I am using BFile to get an XML document into a table with an XMLType field. To get the content back out through COM I need to specify the size of the content to be returned. Is there a query I can run or function to call that will provide me with the size of the data? Its a 9.2 DB on NT.
    Thanks in advance for your help.
    Mike
    [email protected]

    Custom painting should be done in the paintComponent(...) method of the component. The is known at that time.
    Read the Swing tutorial on "Custom Painting":
    http://java.sun.com/docs/books/tutorial/uiswing/painting/index.html

Maybe you are looking for