Restrict GOS attachments in IW32 for specific doc type

My requirement is we would like to restrict the Services for object
attachments for specific doc type in IW32 transaction.
Can blocking be made on doc type level?
In this case jpg, bmp, and gif should be allowed, but blocking dwg, doc, xls, pdf etc.
Didn't find any option in SGOS transaction or SGOSATTR table.
Any suggestions are welcome..

PARAMETERS: p_key TYPE swo_typeid OBLIGATORY,
p_type TYPE swo_objtyp OBLIGATORY,
p_file TYPE c LENGTH 100 OBLIGATORY,
p_desc TYPE so_obj_des OBLIGATORY.
data wa_kan1 type kna1.
DATA: ls_fol_id TYPE soodk,
ls_obj_id TYPE soodk,
ls_obj_data TYPE sood1,
ls_folmem_k TYPE sofmk,
ls_note TYPE borident,
ls_object TYPE borident,
lv_ep_note TYPE borident-objkey,
lv_offset TYPE i.
DATA: it_objhead TYPE STANDARD TABLE OF soli,
it_content LIKE STANDARD TABLE OF soli,
wa_content LIKE soli.
ls_object-objkey = p_key.
ls_object-objtype = p_type.
**if objtype = kna1 then 
HERE I CHEK CUSTOMER NO U PUT YOUR OBJ ID AND USING SELECT QUERY U CAN CHECK DOC.TYPE
select *from kna1 into wa_kna1
where kunnr = p_key
if sy-subrc <> 0.
exit.
endif.
TRY.
OPEN DATASET p_file FOR INPUT IN BINARY MODE.
WHILE sy-subrc = 0.
READ DATASET p_file INTO wa_content.
APPEND wa_content TO it_content.
ENDWHILE.
CLOSE DATASET p_file.
CATCH cx_sy_file_access_error.
MESSAGE 'Error reading file' TYPE 'E'.
ENDTRY.
CALL FUNCTION 'SO_CONVERT_CONTENTS_BIN'
EXPORTING
it_contents_bin = it_content[]
IMPORTING
et_contents_bin = it_content[].
Edited by: kk.adhvaryu on Mar 9, 2010 10:54 AM

Similar Messages

  • MM-Restrict particular Mat type for specific Doc type

    How to restrict particular material type in particular Purcharasing document type...

    Go to OMS2 and Select Material type and in Internal / External Purchase Orders and in External Purchase Order tab Set the Value 0 No External Purchase Orders allowed and Save.
    I dont know how far we can Control this for a Particular Document type.
    Coz if you Set this this will be applicable to all Purchaisng Documents

  • Restrict display and posting for specific document types

    Hi,
    Is it possible to restrict display and posting for specific document types? I want to restrict authorization to SM document type in FS10N, and KSB1 tcode. Please help
    Best Regards,
    KIRAN.

    Sandipan Choudhury wrote:
    FS10N checks for this object ("Check" in Su24) but when user doesnot has this authorization object he gets access to all doc types and when the user is restricted to specific doc types (object present in user's authorization) he will get access to only those doc types. This is how the authorization check for F_BKPF_BLA works, in other words this authorization is Optional.
    Sorry, but this is not true and seems to be an invention of how you would like it to work...
    The coding works like this (generally):
        if sy-subrc ne 0.
          select single * from  t003 where blart = postab-blart.
          check sy-subrc = 0.
          blrtab-blart = t003-blart.
          blrtab-brgru = t003-brgru.
          append blrtab.
        endif.
        if blrtab-brgru ne space.    "<--- important condition!!
          authority-check object 'F_BKPF_BLA'
               id 'BRGRU' field blrtab-brgru
               id 'ACTVT' field actvt.
          if sy-subrc ne 0.
            rcode = 4.
          endif.
        endif.
      endif. 
    The "optional" aspect is whether or not the document type has an auth group on it in T003, failing which the check is suppressed.
    If it reaches the check, then it found something and then checks that selected value.
    Moral of the story:
    --> Do not believe SU53.
    --> Do not make assumptions from ST01 traces.
    --> Read the documentation carefully.
    --> Read the code to see how it really works (you can jump to the coding location from the trace).
    Cheers,
    Julius

  • Default Excel File for Particular Doc type

    Hello Everyone,
    Your intervention is required in one of my requirement where i need to attach one Excel file as a default file ( in specific doc type ) with some format. How can i achieve the same.
    Pls provide ur inputs.
    Regards
    Gaurav

    Hi Gaurav,
    Have you done the configuration in the workstation application for Microsoft Excel formats?
    You can even do 'INPLACE' for change mode also. Either way it will work.
    And moreover you need to right click on the original and select 'Edit' to make changes.
    Regards,
    Ravi

  • Error in attribute changes for a doc., type

    Hii experts,
        I'm trying to change the attributes for a doc., type DF and while i'm saving i'm getting an error
    Doc., type AN: number range is used for ledger Z1 withdoc., type Z1
    Doc., type EU: number range is used for ledger Z1 withdoc., type Z1
    Doc., type EX: number range is used for ledger Z1 withdoc., type Z1
    Doc., type KN: number range is used for ledger Z1 withdoc., type Z1
    Doc., type ML: number range is used for ledger Z1 withdoc., type Z1
    Doc., type NT: number range is used for ledger Z1 withdoc., type Z1
    Doc., type RA: number range is used for ledger Z1 withdoc., type Z1
    Can you please tell me what to do. I appreciate your help and points will be given

    Hi,
    Is this happening for all the types of Transactions like Sales, Service, etc.? Is that data that you are using is proper? And can you check if the countries are properly maintained in the system? Check if the country is a mandatory parameter or some country specific checks are executed in the system.
    You can check for the countries in the System from transaction code - SPRO -> SAP NetWeaver    -> General Settings -> Set Countries -> Specify Countries for mySAP    Systems.
    Hope this will help.
    Thanks,
    Samantak.

  • Stop user creating process order with material for specific order type

    Hey Team,
    Is there a way where I can stop creating process order with material for specific order type says Z*. We are using ZNMA  order type to create trial batch and we do not want to create process order with material for this order type.
    Any ideas?
    Thanks
    Bhavesh Patel.

    You can restrict the order creation in CO01 based on authorization, Remove the authorization for Z order type for the particular user,  Check with your basis Guy

  • Limit Account Assign to a Specific Doc Type

    Hi, is it possible to limit a specific account assignment to a specific doc type?
    For instance,  account assign P can only ba used by PO/PR doctype A.

    Hi,
    There is no setting in standard SAP. You have to use userxit for the same.
    Cheers,
    Satish Purandare

  • BOM not exploding for CR doc. type while creating sales order.

    Hi Experts,
    I have a problem in BOM. When created the BOM with sales doc. type OR, then BOM exploding as usual and picking pricing for main item.. But when I tried for sales doc. type CR, then the BOM is not being exploding and also pricing is also not picking. Can any one help me for this problem.
    Thanks in advance,
    Raksha.

    Hi,
    Go to VTAF billing to sales document copy control and check below settings:
    Header:
    Data Transfer -052 Billing doc header  
    Data Transfer Buis - 103 Billing bus header data
    Data Transfer Part - Billing Header Partner
    Copying requirements - 021 Billing Header
    Check Copy item number
    Uncheck complete reference
    Item:
    Item Cat proposal G2N Request
    Item TAN - Standard item
    Data Transfer -153 item from Billing doc
    Data Transfer Buis - 104 Billing bus Item data
    Data Transfer Part - 004 Billing Item Partner
    bl.pl - Leave it blank
    Copying requirements - 303 Billing Header
    uncheck copy schedule lines and do not copy batch
    check update document flow
    Pricing type - D
    Leave blank - Campaign Deter.
    Points to add: If you create without reference to an invoice then it would not explode BOM in RE return order because the configuration not set in REN item category.
    As a standard business process return orders always create with reference to invoice.
    regards
    rc gopi

  • Search For Specific File Type (eg .txt)

    I know how how to find files in a folder using Java but how do you search for specific file types. I am looking only include files with the extension .txt in my search.

    Cheers. I already looked at that. Got a program that parses a XML and had a play about with it. Can print the contents of tags in my XML. Its just that im trying to parse my XML and have the contents of the starts_with tag to appear in startsWith(or a variable to which this has been assigned) and the contents of the extension tag to appear in endsWith. Totally clueless on how to go about it.
    Below is my class. Would be greatful if you have any ideas.
    import java.io.File;
    public class FindLatestFile {
                 public static File getLatest(File thisDir){
                         long latestModDate = -1;
                         File latestFile = null;
                         File[] fileList = thisDir.listFiles();
                         for(int i=0; i < fileList.length; i++){
                             File file = fileList;
         if (file.lastModified() > latestModDate & (file.getName().startsWith("A") & file.getName().endsWith(".txt"))) {
         latestModDate = file.lastModified();
         latestFile = file;
                             return latestFile;

  • Restrict creation of sales order for specific customer

    Hello All,
    I want to restrict creation of sales order (of particular sales order type) for specific customer, please let me know how can I do it.
    Your early reply will be highly appreciated.
    Thanks & Regards,
    Mahavir

    HI
    As per My knowledge it is not possible in Standard SAP , you need to go with Enhancement
    Go to SE38 : MV45AFZB, User Exit: USEREXIT_CHECK_VBAK
    Regards,
    Prasanna

  • Restrict User for Particular Doc Types and GL Account

    Dear Experts,
    I want to restrict few users with Doc type JV and Posting to GL Account 1 - 1000
    I created a set for Username fo be restricted and i have written a Validation for Line Item  saying
    Prerequiste
    BKPF-BLART = 'JV' AND BKPF-USNAM IN T_DOC_USERS
    Check
    BSEG-HKONT >= '1' and BSEG-HKONT >= '1000'
    Mesaage
    User Resticted for Doc Type JV and GL Account
    Can someone please advice on priority
    Thanks in Advance !!!!
    Regards
    Rahul

    HI
    1.You can restrict the user to document types by authorization settings Transaction Code PFCG
    Note : This will not hide entries in a drop down list.
    2.You can restrict the user to view the General Ledger reports like FBL3n,FBL1N like wise
    Hope this will help you

  • Validation for GL 23876 to to post only for KG doc type

    hi all
    i want to write a validation for a GL 238760 this must only be posted only in KG document type it must not post in other doc type like KR nd KZ
    i want to write a validation for this.
    in the GGB0 screen which message type shall i select and what steps shall i use for this.
    please let me know the validation for this function.
    Kind regards

    Hi:
        Please go to GGB0...Create a validation in financial accounting at line item level by selecting line item and create a step. It will open 3 further drop down for you. Select the 1st one and proceed as follows
    Prerequisites:
    BKPF-BLART = 'KG'  (here you can make it transaction code specific as well)
    Check:
    BKPF-HKONT = '23876'
    (you can give set of GL account by creating it in GS01 and specifying it here)
    Message:
    Assign an error message to it with category E.
    Please check this will work .
    Regards

  • Block GR through MIGO for specific PO type

    Hi all,
    I have a scenario to block the GR for specific purchase order type as it has to be done through VL32N.
    System has to throw an error message when user tries to do the GR for this type.
    I am looking for an user exit where system has to throw an error msg for MIGO only.
    Users are already blocked to do GR through transaction MB01.
    Please help me out to resolve this issue. Please let me know if any user exists are available before saving MIGO transaction.
    Regards
    Gowri Sankar

    Well I can suggest a work around, if you want all PO's with Confirmation control Inbound Delivery be GR through VL32N, then in IMG screen go to Inventory Management - Settings for enjoy transaction - Settings for Goods Movement - Settings for Transactions and reference Docs and there you remove Inbound delivery as a reference document for MIGO & MIGO _GR.
    This will solve the purpose.
    Edited by: Chandra Shekhar Singh on Feb 26, 2011 9:21 PM

  • CProjects - DMS integration:26 036 You are not authorized for with doc.type

    Hi Experts,
    I need to use cProjects integration with DMS. When I try to create a link to an existing document I find the following error:
    26 036 You are not authorized for with document type DRW
    My user has authorization to the doc type in the DMS system (linked by RFC to cProjects system). I also have defined the object link in the document type.
    Do you know which configuration may be missing?
    Thanks in advance!
    Neil

    Hi Niel,
    How is the RFC connection established between DMS and cProjects system? Do check the authorizations of the RFC user through which the connection is established.
    Regards,
    Vivek Pandey

  • Plant Not permitted for selected Doc Type

    I have created new plant and assigned to existing Purchase organization. i am able to create PR but while creating Purchase order i am getting error
    Plant Not permitted for selected Doc Type

    what is the error message number? double click the message to obtain.
    I have not seen any assignment of doucment types to plants, nor a message like mentioned.

Maybe you are looking for

  • I updated my iPod touch 4 to the latest OS and now the admin doesn't come up. How can I access the iPod admin?

    I have unplug and plugged in my iPod to my pc 100 times and admin never comes up. When i go to iTunes I don't see anyway to get to the iPod admin.  I copied quite a few of my CD's into iTunes but can't find a way to sync the player with the itunes on

  • Hai abap gurus...

    difference bet'n simple and interactive reports? what are the events in interactive reports? what is the first event that will be triggered in a report? what is the use of Initialization event? give one example. what is the use of start-of-selection

  • Administrator Role Deleted in Portal???

    Hi all, Accidentally administrator role deleted in UME.When i login j2ee_admin i deleted administrator role in UME what i do Now  plz tell me. How i found administrator role ???.Because sap predefined administrator role to j2ee_admin So i am not able

  • Updated Lightroom +  OS X to Yosemite, now files are missing!

    Hey folks- Updated both my copy of adobe lightroom and my OS X to Yosemite, but when it opened back up dozens of image files from a recent photo shoot were either lost or corrupted. Is there any way to recover them? Please help!

  • Subscription Purchase- Help!

    I purchased Photoshop CS6 as a subscription, but when I click download under my order history, the download link opens up the Apps & Services Adobe Creative Cloud page - it won't download Photoshop and there is also no serial number provided for my s