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

Similar Messages

  • 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

  • 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

  • How I restrict Scheduling agreement type for specific Purchase organization.

    Hello Experts,
    I have created Scheduling agreement type (ZLT). I want to restrict this agreement type for specific purchasing organization.
    I have search many threads but I didn't get solution.
    Is it possible through Configuration or user exit.
    Kindly give me solution in details.
    Thanks,
    Ranjit Kumar.

    hi,
    I don't think that there is standard configuration to restrict Purchasing document type for purchasing group. you can restrict this trough user authorization or you can make user exit development.
    Regards,
    mukesh

  • 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

  • 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.

  • 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;

  • Set Output Type for specific Vendors Only

    Hi,
    I have created an output type to send external mail for PO. I want to restrict it to send the email to only a specific number of users. So I created consition records based on Companycode/vendor num/doc type.
    I entered the records for say x and y vendor only .
    But , Still when i test it with some other vendor whose record is not maintained it still sends the email?
    Is it the rt path I am on ? Is it the rt way to do this ? Based on the info available online and sdn i tried these steps ...I m not sure if thats correct.
    Pls let me know how to achieve this restriction ?
    Thanks,
    Shilpi

    Hi
    You check the access sequence for purchase order output type. Access sequence will determine which condition record to be checked first. If any other condition table with records has priority (defined in access sequence) then your condition record will not be taken into account for output type.
    Bala
    Note: Award points if helpful

  • Restrict F4 search results for specific plants / sales org / purchasing org

    Hello All,
    We have a project where a particular plant / sales org / purchasing org needs to be restricted because of the top secret data for that business.  We would like to be able to restrict the search results that are displayed based on sales org / plant / purchasing org in the F4 help.  If a user does not have access to the data / documents related a plant / sales org / purchasing org, we do not want the user to be able to see doc numbers, ship-to's, material numbers etc... My question is where do we restrict F4 results for the Sales and Distribution, Finance, Materials Management, Production Planning, Logistics, etc... modules?  Thanks in advance for the help.
    Jordan

    We can set authorization for specific plants and other organization levels,contact the basis team and discuss about the authorization

  • 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

  • Stop Automatic creation and confirmation of Transafer Order for a doc type

    Hello All,
    There is a requirement that I need to stop Automatic creation and confirmation of Transafer Order for a particular document type.
    The issue is that sometimes the cycle goes upto creation of Invoice automatically but sometimes this does not happen. More over the user wants that the transafer order needs to be confirmed manually.
    Can u please provide the .steps involved for thie case.
    Thanks
    Chandrashekhar

    Dear Steve,
    Thanks a lot for giving reply with what I need to do, but I am unable to see result.
    I have down configuration like below even though system not processing Auto TO creation. Can you explain me if I have down any mistake below.
    Click on ‘Assign’ button,
    Press on ‘New entries’
    WhN = ‘900’
    Reference Movement Type = ‘101’
    Movement indicator = ‘B’
    Movement type for Whse Mgmt = ‘101’
    TR create Transfer Requirement = ‘X’
    Immed.TO Creation
    Mail confirmation for background processing = ‘01’.
    GR date = ‘2’

  • How to change exchange rate type for specific pricing condition type

    Hello every one,
    I have a requirement for billing ie VF01.
    currently  all the exchange rate are being calculated with exchange rate type 'M' by default.
    but now client want it should calculate exchange rate with type 'E' for two pricing condition type for all others it should calculate with type 'M'
    Please any body can help me with the exit and code which i can use.
    I have checked exits SDVFX008.
    but how to change exchange rate with type 'E' only for two conditions.
    as changing exchange rate at document header will change exchange rate for all condition type.

    You need to assign KOMK-KURST = 'E', for those two condition types. If it had been item number specific, you could have used USEREXIT_PRICING_PREPARE_TKOMK(RV60AFZZ).
    Do one thing, put a breakpoint on FM 'PRICING' and then do selective runtime analysis.
    Check whether any user exit/BADI/ explicit enhancement are available when condition types are processed in a loop. If nothing is available, try implicit enhancement.
    Link to refer for selective runtime analysis - Runtime Analysis for VOFM
    Also try with VOFM requirements ( not sure whether changing KOMK-KURST is permissable in requirement as normally  we only set sy-subrc values to suppress/allow condition types ). Don't forget to assign requirements against condition types in pricing procedure.

Maybe you are looking for

  • Flex Ant SDK giving compile warnings not present in Flex Builder

    We have a project when  we complie from Flash Builder 4 it compiles as expected with no errors. However when we do an ANT build on a build machine with no Flash Builder installed, the same code (checked out from SVN) and same Flex SDK we have started

  • Licensing with a volume license while offline

    I have installed Photoshop on my target computers with no internet access and now need to license them, I have a volume license but this does not provide the key needed to add to the request code to generate a response code, therefore HOW DO I LICENS

  • Considering switching to Firefox - help!

    Whilst I do love Safari (over Explorer) I am interested in trying Firefox as everybody keeps on about how good it is! I've had a basic look and it seems fairly similar (although i like the ability to add email alert links on the brower etc and a few

  • Sum of all order amts

    I want to be able to find the sum of all order amts from an itab that I read. The total needs to be 12 digits left filled with zero and decimal dropped data: totalorderamt(12) type n value 0. in the loop should it be totalorderamt = totalorderamt + t

  • Using the remote on a powerpc

    Has anyone got the remote that comes with the intel macs to work with older powerpc macs? I presume you'd need a usb infra-red receiver, but is there more that is needed? We've got a load of spare remotes at work and I'm thinking that it could be use