Restrict the size of attachements,Badi

Hi All,
Is there any badi that checks the size of the fiiles that we are attaching to the attachements in SRM, I want to restrict the files which are more in size than the allowed limit. As well, is there badi to restirct the count (number of attachements )of the attachements that we are attaching to the attachements in SRM?

Hi Lokesh,
I think the BADI BBP_ATT_CHECK will be very useful in your case.
Also have a look at the following OSS Note:
Note 728058 - 3.5-4.0: Additional checks for attachments
Hope this helps.
Thanks,
Pradeep

Similar Messages

  • How to restrict the size of folder in KM?

    Hi All,
    How to restrict the size of folder in KM?
    Suppose I allocated 1 personal folder to every SAP KM Folder. Can I restrict the size of folder with do not allowed the uploaded file to be exceeded certain capacity?
    Thanks & Regards,
    zhixuen.

    Hi,
    Refer this [http://help.sap.com/saphelp_nw70/helpdata/en/62/468698a8e611d5993600508b6b8b11/content.htm]
    Also chk.
    https://forums.sdn.sap.com/thread.jspa?threadID=80571
    https://forums.sdn.sap.com/thread.jspa?threadID=80326
    https://forums.sdn.sap.com/thread.jspa?threadID=80145
    http://weblogs.sdn.sap.com/pub/wlg/3219
    Regards
    Baby

  • How to restrict the size of a km repository

    Hi all,
        How can i restrict the size of a KM repository/folder ?
    Thanks & Regards
      DD

    Hi,
    Please check these link:-
    1.[https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3219]
    2.https://www.sdn.sap.com/irj/scn/thread?messageID=601915
    3.https://www.sdn.sap.com/irj/scn/thread?messageID=135202
    Best Regards,
    Atul Bhatia

  • How to restrict the size of Buffer data object

    Hi everyone.
    How do you restrict the size of the Buffer data object. The byte array that you get by calling getData(). I want to restrict the size to be at most X nbr of bytes. I'm 'filling' the buffer like this:
    Buffer readBuffer;
    PushBufferStream stream;
    stream.read(readBuffer);

    This is my code:
    class DataSourceHandler implements DataSink, BufferTransferHandler {
              private int MAX_DATA_PACKET_SIZE = 2000;
              private DataSource source;
              private PullBufferStream pullStrms[] = null;
              private PushBufferStream pushStrms[] = null;
              // Data sink listeners.
              private Vector listeners = new Vector(1);
              // Stored all the streams that are not yet finished (i.e. EOM
              // has not been received.
              private SourceStream unfinishedStrms[] = null;
              // Loop threads to pull data from a PullBufferDataSource.
              // There is one thread per each PullSourceStream.
              private Loop loops[] = null;
              private Buffer readBuffer;
               * Sets the media source this <code>MediaHandler</code> should use to
               * obtain content.
              public void setSource(DataSource source)
                        throws IncompatibleSourceException {
                   // Different types of DataSources need to handled differently.
                   if (source instanceof PushBufferDataSource) {
                        System.out.println("source instanceof PushBufferDataSource");
                        pushStrms = ((PushBufferDataSource) source).getStreams();
                        unfinishedStrms = new SourceStream[pushStrms.length];
                        // Set the transfer handler to receive pushed data from
                        // the push DataSource.
                        for (int i = 0; i < pushStrms.length; i++) {
                             pushStrms.setTransferHandler(this);
                             unfinishedStrms[i] = pushStrms[i];
                   } else if (source instanceof PullBufferDataSource) {
                        System.out.println("source instanceof PullBufferDataSource");
                        pullStrms = ((PullBufferDataSource) source).getStreams();
                        unfinishedStrms = new SourceStream[pullStrms.length];
                        // For pull data sources, we'll start a thread per
                        // stream to pull data from the source.
                        loops = new Loop[pullStrms.length];
                        for (int i = 0; i < pullStrms.length; i++) {
                             loops[i] = new Loop(this, pullStrms[i]);
                             unfinishedStrms[i] = pullStrms[i];
                   } else {
                        // This handler only handles push or pull buffer datasource.
                        throw new IncompatibleSourceException();
                   this.source = source;
                   readBuffer = new Buffer();
                   byte[] data = new byte[MAX_DATA_PACKET_SIZE];
                   readBuffer.setData(data);
              * For completeness, DataSink's require this method. But we don't need
              * it.
              public void setOutputLocator(MediaLocator ml) {
              public MediaLocator getOutputLocator() {
                   return null;
              public String getContentType() {
                   return source.getContentType();
              * Our DataSink does not need to be opened.
              public void open() {
              public void start() {
                   try {
                        source.start();
                   } catch (IOException e) {
                        System.err.println(e);
                   // Start the processing loop if we are dealing with a
                   // PullBufferDataSource.
                   if (loops != null) {
                        for (int i = 0; i < loops.length; i++)
                             loops[i].restart();
              public void stop() {
                   try {
                        source.stop();
                   } catch (IOException e) {
                        System.err.println(e);
                   // Start the processing loop if we are dealing with a
                   // PullBufferDataSource.
                   if (loops != null) {
                        for (int i = 0; i < loops.length; i++)
                             loops[i].pause();
              public void close() {
                   stop();
                   if (loops != null) {
                        for (int i = 0; i < loops.length; i++)
                             loops[i].kill();
              public void addDataSinkListener(DataSinkListener dsl) {
                   if (dsl != null)
                        if (!listeners.contains(dsl))
                             listeners.addElement(dsl);
              public void removeDataSinkListener(DataSinkListener dsl) {
                   if (dsl != null)
                        listeners.removeElement(dsl);
              protected void sendEvent(DataSinkEvent event) {
                   if (!listeners.isEmpty()) {
                        synchronized (listeners) {
                             Enumeration list = listeners.elements();
                             while (list.hasMoreElements()) {
                                  DataSinkListener listener = (DataSinkListener) list
                                            .nextElement();
                                  listener.dataSinkUpdate(event);

  • How do I restrict the size of Time Machine Back ups?

    I have a WD 500GB FW external drive which I use to store Sample Libraries for Logic Pro. I also use the same drive for Time Machine.
    I now realise that I really needed to set up a partition to restrict the size of Time Machine BackUp's.
    Is there any way of doing this now without having to reformat the drive and then setting up partitions, as this would delete my sample audio files.
    I was thinking of getting a second 500GB hard drive & daisy chaining them then creating alias's and moving my sample audio files to the new drive and leaving the existing one purely for TM backup's.
    Is, as I think it may be, this second option the better method?

    Disk Utility in Leopard can create a new partition without erasing the disk (of course you can't expect to make the existing partition smaller than the files it currently contains). You would then have the existing files on one partition and the new one would be blank, so you would have to move either the Libraries or the TM backup (I'm not sure whether you can do the latter without confusing TM).
    Two separate drives would give you more overall space, and should work fine.

  • Display the size of attached PDF form

    Hi
        I created a form and allow the user to attach an file.No probs with tat.Now i want to dispaly the size of an attached pdf and also want to save a form in local machine.Could anyone help me to come out of this.

    Hi Prabu,
    you can use the pdf viewer or any other (freeware) pdf installed on your client (PC) for display. There is no way to display a pdf inside the smartform.
    Regards,
    Clemens

  • When i login to my banks online access point a new browser is opened and it takes up the full 27" display. ca i restrict the size of web browser screen used by tme online banking service?  imac 27" OSX snow leopard 10.6.8

    Intel iMac OSX Snow Leopard 10.6.8
    I logon to bank via its internet portal and next screen takes up all 27" display.
    Can this be controlled in any way or do I just put up with it, it is really annoying.

    Thank you for your response. Whew...i omitted to say I use Firefox... tried to logon using Safari... same
    result Installed Chrome ...same thing Installed Opera... this browser actually has in its Preferences menu
    the capacity to set JavaScript Options under the Conent submenu... DISALLOWED  all of resizing of windows, 
    moving of windows and ability of script to hide menu bar ... this fixes the screen to available browser size...
    so my issue has at least this resolution. Thank you Flet Cheryl 

  • ADF-BC/JSF How to restrict the size of an ordImage

    Hi all
    I have a table containing two columns with type ordsys.OdImage. One is a small resolution icon and the other the image itself.
    Using Steve Muench s example mo 69, I was able to create a ADF-BC/JSF application that loads images to the database.
    Now my next step is to reject images whose size in pixels is other than the one defined for thumbnails, which is 100x100, I thought that I could do this by tampering with the getter methods of the ViewRowImpl Java class but it didn't work. It appears to me that the framework creates an empty image first and then loads the contents from a file.
    Can anybody give me a clue about how to accomplish this ?
    Thanks in advance
    Thanassis

    Just finished testing the validateEntity() approach and it failed.
    I think that I must be doing something wrong here.
    I use the OrdImageDomain.getHeight() and getWidth() functions and they both return 0 wheither invoked during attribute setter method or during the validateEntity().
    Anybody out there with a clue ....
    Thanassis

  • Modify or restrict the  Value Set attached  to DFF in OAF

    How to add where condition programatically to a valueset attached to a DFF
    For eg: query in the value set is "(select LINE_NUM,po_header_id,po_line_id from po_lines_all )"
    Framework adds a select clause with the column mentioned in the DFF segment on top of this query ,Is there any other way to modify the Value set query?

    Thanks for the Reply Saneep,
    I have a value set attached to DFF and the dff will appear in PO headers page , Query on value set is
    select ood.organization_id,ood.organization_name,ood.operating_unit from org_organization_definitions ood,mtl_parameters mp where ood.organization_id=mp.organization_id) a
    I need to add where condition of the query attached to value set,
    but framework is provides the below query at run time
    select fnd_number.number_to_canonical(a.organization_id) FLEX_ID , a.organization_name FLEX_VALUE , a.organization_name FLEX_DISPLAY from (select ood.organization_id,ood.organization_name,ood.operating_unit from org_organization_definitions ood,mtl_parameters mp where ood.organization_id=mp.organization_id) a where (1 = 1) and 'Y' = 'Y'
    Is there any other way to add condition to valueset at run time?

  • ESS Photo upload: Any way to restrict the size that is uploaded

    Folks
    Our Employees use ESS to upload their photos
    However many employees are loading photos that are very large in size (up to 4MB)
    Does anyone know if there is a way to prevent a user from uploading a photo in ESS thats over a particular size
    Thanks in Advance
    Tony

    there is no standard customisation available as photo are resized once the employee uploads from change own data in ESS etc
    You can use this approach
    If you want to make this change available for all users you should
    personaliza the Iview. This is the path:
    Content Administrator
      > Content provided by SAP
         > End User Content
            > Iview
               > Change Own Data
                  > Preview
                     > Edit Own Data and include a photo
    Then click in the image, press Cntrl + Secondary mouse button:
    Change the values of parameter Width and Height according to your needs.
    Suggestions:
    Width:  150px   or    Width:  170px
    Height: 200px         Height: 227px
    check the note 1289301
    or make some checks in FM HRWPC_RFC_EP_READ_PHOTO_URI

  • Regarding restriction on the size of attachments

    Hi Team,
    I need to restrict the size of the attachment when we create a shopping cart to less than 1MB.
    I am able to restrict it, but it is working fine only for a single attachment.
    When I attach more than one attachment(total size more than 1MB) I can throw an error message to the user but when he deletes the attachment making the total size less than 1MB the message is still there.
    Please share your experience if worked on the same.

    Hi
    try to do with BBP_CONT table and BBP_DOC_CHECK badi validations and find the attachmnet for each sc or item.
    Note 848909 - Size of the table BBPCONT is very big.
    Note 1030777 - Follow-on note to 848909. Size of the table BBPCONT is big
    regards
    Muthu

  • How to Restrict Size of attachment in E-rec

         HI
    In Erec external Candidate Registration process, under candidate profile, when i go for attachments step , we are trying to upload a resume over there.
    My question is how can we restrict the Max size of the file to be uploaded , and the types of files to be attached(such as only doc format should be allowed).
    Can any one suggest where can i Restrict the size of the resume as attachment.
    Regards
    Sandeep

    You need to implement badi HRRCF00_DOC_UPLOAD
    Method CHECK_ATTACH_FILE_SIZE and method CHECK_ATTACH_FILE_TYPE

  • How to restrict the upload file size in me21n/me22n/me23n?

    Hi Guru's,
    I have a requirement to restrict the user from attaching a local file more than 20MB in Purchase Order.
    In standard SAP system, the user can attach a file of any size in PO. How to restrict the size of the file?
    I have no clue how to achieve this? Any kind of help would be great...
    Thanks in Advance...
    Regards,
    Satyam

    Hi Guru's,
    The file size is now restricted in function GUI_UPLOAD. But this function module is used at many places. I want to restrict it only for Tcode: ME22n and ME23n.
    I thought of restricting it by sy-tcode field but sy-tcode value  is not passed to this function module in the run time.
    Could anyone help me on this how to restrict it for the above mentioned tcodes??
    Regards,
    Satyam

  • How do we restrict the Rental Object Mesurement

    Hi Experts,
    Here I am facing ine problem with RE_FX Master data creation .
    Eg:we have defined 100 sqm as a land .Further we have created 4 rental objects of 25Sqm  under  Land.
    Now the measurement is equel
    land (100SQM)  =   4 rental objects of 25SQM each.
    Suppose If I am trying to crete one more rental object with 30 SQM still it is accepting .
    So how do we restrict the size of the Land .
    can any one help me out in this regard.
    Regards,
    MOHAN .

    Hello madan Mohan ,
    My solution is - use the badi of the rental units..
    Like BADI_RE_BD_RO
    Create a new implementation
    use method check_all
    Use the api API_RE_RO_GET_LIST
    Read existings RO and compute the existing rental objects
    in your case 4 times 25sqmu2026
    if there comes the 5 ro or more than 100sqm sent hint / message error over
    the badi..
    Regards Bertram
    Edited by: bertika on Aug 10, 2009 1:05 PM

  • Limit size for attachment

    Hello. Is possible to restrict the size for each attachment? I know that CRM permit upload attachment for 9MB maximum, but I want to restrict my users that every attachment souldn't exceed 1MB.
    Thanks

    There is a way to get round the attachment size issue if you can create an office/LAN filing folder structure (with no spaces in the file path/s and file name) and add the attachment only as a URL to link to the file on your office server. This takes up only about 2K storage space for the URL link in CRM. It will open the document direct from the link entered. There are specific parameters to be met for this but we make this part of our training for users.
    However, the effectiveness of this depends on users only linking files that will open readily from your LAN server. Of course, network access to the folder structure must be developed for the appropriate rights for the CRM users.
    If you have a virtual private network connecting office LANs in various locations, then, if your networks are standardised, you can set up a distributed file system with standardised folder structure (again with no spaces) but might want to advise users to add URLs for files no larger than, say, 500K, or there could be some delay in opening documents across the VPN, depending on the speed/capacity of your VPN connections. So technically we are not "limiting" size, just training users to know what not to do.
    As admin in an international organisation, I ask (train) any users, who want to refer to files which are very large, to enter the basic details in a Note on the record - giving name of document, size, who to contact for a copy to be emailed, brief summary of content etc. Then other users can request a copy of the file by email, either by setting a task for the file owner or sending an email.
    Not sure if this can help in your situation, but it works well for us.
    Robyn

Maybe you are looking for

  • How do I make my wireless signal sucure from others using it?

    How do I make my wireless router secure, so others nearby cannot access it?

  • What programs used to create this site??

    Hey there, I stumbled across this flash site and was wondering if any of you had any ideas which programs would have been used to create this site. Obviously flash for one, but would they be importing rendered clips from say 3ds max? or perhaps swift

  • How to animate from a png tile based image file

    Hi all, I would like to know is there any way to animate from a tile based .png image file? I have multiple images in 1 png file having slight changes in each image, which if cropped and put into layers one over the other, will give the feel of anima

  • Optimizing 780ti CUDA for Adobe premiere cs5.5, cs6, and CC

    I Finally got my video card for my new rig . Found a great deal for the Zotac GeForce GTX 780 Ti OC The only thing now is optimizing the GPU acceleration. I would like to believe that I have performed the cuda hack correctly, but a few things leave m

  • Can I Export Flash for Influxis FMS?

    Hello, I love that Encore can export Flash for Flash Media Server, but why are PlayStream and Level3 the only options available for streaming server? Is there a way I can add Influxis settings to the list? Or, is there a way I can export for Progress