Validation foe blocking document types in FY 2009

Hi All,
Please help me to set the validation for the document types used in FY 2009.
We want to block document type DG, KZ , Z3 & ZK for posting in FY 2009 for all the users. But the same document types would be continued to use for posting the entries related to FY 2008 We have already created one validation as follows -
Application Area - FI
Call up point - 1
Perquisite-
User Name = '1010FIN' OR User Name = 'CONSULTANTS' OR User Name = 'BASIS'
Check -
Document Type <> 'DG' AND Document Type <> 'KZ' AND Document Type <> 'Z3' AND
Document Type <> 'ZK' AND ( Fiscal Year <> '2009' )
Message - Document type blocked for posting.
But with the above validation it is giving me the same error message whenever i m trying to post the documents in FY 2008 with the above document types.
Please guide me in setting the logic so that system will allow me to use same document types in FY 2008 & not in FY 2009
Thanks
Sonal

Hi Sonal,
The other approach will be to not authorize the users to the document type (which u require)
The following is the object for document type:
F_BKPF_BLA -
Accounting Document: Authorization for Document Types
Instead of *, include all the docs which u require the authorization for.
And for year...
Only open the year for the users u desire
Regards,
Kiran

Similar Messages

  • Validation according to Document type

    Hi all,
    i have defind validation in sales order using transaction notification stored procedure. ex:- sales order should be based on sales quotation etc. and code is as follows
    --- Sales Order Not Based On Sales Quotaion
    IF @transaction_type = 'A' AND @object_type = '17'
    BEGIN
    IF EXISTS (SELECT T0.ItemCode FROM [dbo].[RDR1] T0 inner join [dbo].[ORDR] T1 on T0.DocEntry = T1.DocEntry
    WHERE T0.BaseType = -1 AND T0.DocEntry = @list_of_cols_val_tab_del and T1.DocType= 'I')
    BEGIN
    SELECT @Error = 1, @error_message = 'Sales Order not based on Sales Quotation '
    END
    END
    now i want to apply this validation to only 'ITEM' type document instead of 'SERVICE' type document.
    how to do it?

    hi,
    Execute stored procedure in MS SQL Studio management on demo database first
    and then incorporate it in live db.
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    ALTER proc [dbo].[SBO_SP_TransactionNotification]
    @object_type nvarchar(25),
    @transaction_type nchar(1),
    @num_of_cols_in_key int,
    @list_of_key_cols_tab_del nvarchar(255),
    @list_of_cols_val_tab_del nvarchar(255)
    AS
    begin
    declare @error  int                    
    declare @error_message nvarchar (200)           
    select @error = 0
    select @error_message = N'Ok'
    IF @transaction_type = 'A' AND @object_type = '17'
    BEGIN
    IF EXISTS (SELECT T0.ItemCode FROM dbo.RDR1 T0 inner join dbo.ORDR T1 on T0.DocEntry = T1.DocEntry
    WHERE T0.BaseType = -1 AND T0.DocEntry = @list_of_cols_val_tab_del and T1.DocType= 'I')
    BEGIN
    SELECT @Error = 1, @error_message = 'Sales Order not based on Sales Quotation '
    END
    END
    select @error, @error_message
    end
    Jeyakanthan

  • Validation for Document Type

    Hi,
    I want make a validation for document type wise posting for particular users like user ABC only post JV doc.type document. Please suggest me how I will make it.
    Thanks & Regards,
    Hemant Kumar Maurya

    Hello Hemant,
    You can manage this with authorization or validation (T Code OB28 or GGB0), for validation:
    1 - Create a validation at document header level.
    2 - You can create a set (table BKPF and filed - user name) with T code u2013 GS01 wherein you can give list of users for which you want to restrict posting only with document type u201CJVu201D. Attached this set or a single user in u201CPrerequisiteu201D section of validation.
    3 - In u201CChecku201D section of validation validate the document type u201CJVu201D syntax u201CBKPF-BLART <> JVu2019
    4 - Create and attach error message for above validation.
    5 - Attach this validation to your company code in OB28
    Since i donu2019t have SAP log on credential therefore cannot give you exact validation code syntax.
    Please try, hopefully this would help.
    Regards,
    Parag

  • Document Posting restriction using posting key,document type combination

    Hi
    We have a authorization restriction issue using posting key&document type&Accoutn type  combination.
    Requirement is
    User A should be able to post to vendors only for particular posting key&document type.He should be able to post to with any other posting keys and document types to vendors.
    We have tried with document type authorization object/vendor authorization objects from user profile but it does,t work.
    can any one suggest some way please/
    r
    regards

    Hi
    I think you should be able to achieve the same through Validation rule:
    Prerequisite
    Document Type - XXXX
    Check
    User name = 123 and Posting Key = XX
    You can set a an error messsage which would be bleeped when the check fails
    Regards
    Sanil Bhandari

  • Validation Rule for Accounting Document type

    Hello Experts
       I have an requirement  to block certain accounting doc type to get vendor line item post in that. For that I tried to block direct through OBA7 but not be able to also can't delete number range as it is shared by another doc type. My last option is Validation rule but i never work on this ,so any suggest how to create validation rule " To Block Accounting Doc type SO THAT THERE WILL NOT BE ANY line item posting occur in that doc type.
    Regards.

    ok sure.  OB28 callpoint 1.  Create a step under this callpoint.
    1)  Prerequisite is as follows:  note XXXX is your company code and ZZ is your doc type.
    BKPF-BUKRS = 'XXXX' AND
    BKPF-BLART = 'ZZ'
    2)  Then you need to enter the check.  Here you can just put FALSE.
    3)  The last part is to create your message.  Message type E so they get an error and then create a message number in the class that you choose and give it a description:
    Document Type 'ZZ' is not allowed
    Save it and wah lah! 
    Let me know how it goes.
    Thanks,
    Jes

  • Payment block only document type UE

    Hi,
    My client requirement is to block payment only for UE type. How to achieve this? can anyone suggest me on this.
    govind

    Hi Govindraj,
    For blocking the payments for UE document types write a validation for any newly created documents.
    For the already posted documents try to create a test case using the transaction SCAT and record for FB09.
    where give the company code and fiscal year and select the account type lets suppose 'K' and click on document list and give the document type UE and execute and try to change the payment block as Bloack for payment i..,e "A" and save.
    If you already have the document numbers then try to record in that fashion and save.
    Then download the variant accordingly and execute.

  • Block Accounting Document Type

    Hi,
    I want to block accounting document type. Please let me know which tcode or path I use for the same.
    Thanks & Regards,
    Hemant Kumar Maurya

    HEllo,
    The solution provided by S. Viswanatha R...  is possible, but it would be a problem for the users ( it sounds as a workaround). Maybe the user try to post the document and will not understand why they cannot post.
    The solution suggested by mr. Joshi would be more feasible, since you can define a custom message to your validation rule and the users will understand the constraints about the document type.
    REgards,
    REnan

  • Block clearing of FI document by document type

    Could somebody tell how to block the clearing of an FI document by document type.
    We need to do this for a sales invoice type which has a specific FI document type.

    Hello,
    I am afraid a single validation will not work.
    You might try some user exit.
    Best regards

  • How to block or restrict document type

    Hi friends
    How to block or restrict document types .
    My Business people will not use document types in feature

    Hi,
    The documentation about the authority check within posting is given in the online documentation for the posting ta eg. FB01:
    Perhaps you would like to read the documentation from IMG on the authorization:
    Financial Accounting > Financial Accounting Global Settings > Document > Document Header > Check Display Authorization for
    Document type
    Defining Authorizations for Document Types
    Use
    You can define a special authorization for every document type. To do this, you need to determine what document types in which
    form employees are allowed to process. Authorizations are checked for the following activities:
    Posting documents
    Document display and line item display
    Changing documents
    Programs that evaluate documents.
    The system does not check the authorization for document types that are not assigned an authorization group.
    Procedure
    In Customizing for Financial Accounting, carry out the activity Maintain Enter an authorization group in the document type. You then assign autho For each document type, you can specify whether users are required to enter.
    The same for check of the authorizations of gl accounts.
    PLease check in OMR4 and in OBA7 that for the document types the athorizations groups are maintained.
    F_BKPF_BLA Accounting Document: Authorization for Document Type
    F_BKPF_BES Accounting Document: Account Authorization for G/L Account.
    For example:
    The transaction FB01 includes the above objects - you can see this in Trx. SU24, also as transaction F-02 is a parameter transaction with the original being FB01 these objects would be valid for F-02 also.
    Please also refer to the following NoteS
      150496     F_BKPF_BLA: Authorization for document types
      198238     FI reporting: Authorization check for documen
    I hope this helps to solve the problem.
    Regards
    Ravinagh Boni

  • Customization + SD + Add a Document Type as Valid

    Hi Experts
    This is related to Customization in SAP.
    I have the requirement that under Sales Document types, I need to remove a Blocked status of a document type and add this type as Valid document.
    I followed the below path:
    SPRO-> Sales & Distribution -> Sales -> Sales Documents -> Define & Assign Reason for Blocking.
    But, I could not make out where and what to do?
    Plz help.

    No response. Closed!

  • Validation document type

    Hi All,
    Please help me to set the validation for the following validation.
    We want to block postings with document type ZA unless company-ID is assigned to the account. We have already created one validation as follows -
    Application Area - FI
    Call up point - 1
    Perquisite-
    BKPF-BLART = 'ZA'
    Check -
    BSEG-VBUND = ''
    Message - Error. You must post to a company-ID
    But with the above validation no error message is given when trying to post with doc.type ZA in FB50 and not entering anything in field VBUND.
    Please guide me in setting the logic so that system won't allow me to post without company-ID when using document type ZA.
    Thanks
    Åsa

    Thanks!
    But what should I change to?
    I have never used validations before, so it's a bit tricky!

  • Validation at Document Type level

    Dear Seniors,
    We have a requirement to have a validation for posing various documents by different users.
    Document type  JV should be posted by only a set of users USERS1.
    Document type GB should be posted by only a set of users USERS2.
    Document type CV should be posted by both the sets of user viz., USERS1 and USERS2.
    How to put this validation.
    Regards
    KVKR

    Hi,
    Apart from the above given solutions, there is an alternative and easy solution available, which can be done without the help of ABAP / BASIS members.
    Create a set in GS01. (Table name: USR01 and field name BNAME)
    in GS01, create set IDs like GROUP1, GROUP2, (create one by one, using above said table and field names and by choosing BASIC SET selection.
    Then in the next screen,  assign the users to each set ID. and SAVE.
    Now in GGB0, create a validation rule (in FA ->header level), under that create 3 steps like
    STEP1:
    Prerequisite: IF BKPF-BLART = 'JV'
    Check:          BKPF-USNAM IN GROUP1
    Message: Put Error message according to your requirement.
    STEP2:
    Prerequisite: IF BKPF-BLART = 'GB'
    Check:          BKPF-USNAM IN GROUP2
    Message: Put Error message according to your requirement.
    STEP3:
    Prerequisite: IF BKPF-BLART = 'CV'
    Check:         BKPF-USNAM IN GROUP1 OR BKPF-USNAM IN GROUP2
    Message: Put Error message according to your requirement.
    And activate the validation rule in OB28 to your company codes.
    I really hope that your requirement can be fulfilled with this.
    Regards,
    Srinu
    DOCTYPE_VALIDATION_SRB

  • Billing block for customer for sales document type OR

    Hi
    I want to block a customer for a particular sales document type OR
    How to do it?
    Regards

    Hi Nikhil
    There is a field called "Check Partner Auth.", but it is necessary to create the order from a contract. This field is in sales document customizing VOV8.
    SAP Documentation:
    Check partner authorizations
    This check determines whether a partner is authorized to release against a contract.
    Procedure
    Here you can specify whether the check is to be performed against the partners in the contract or the partners in the customer hierarchy. If you do not want the check to be performed, leave the field blank.
    When you create a release order for a contract, the system determines whether a partner is authorized to release against the contract. The check is performed at header level. Depending on the rule you enter in this field, the system checks against one of the following:
    Partners in the contract
    If the partner has the partner function AG (sold-to party) or AA (sold-to party authorized to release) in the contract, the system accepts the partner as the sold-to party for the release order.
    Partners in the hierarchy
    If the sold-to party of the contract is at a higher level in the customer hierarchy to the partner who wants to release against the contract, the system accepts the partner as the sold-to party for the release order.
    Note
    If you create a contract with reference to another contract, the system does not run a check and it copies all the partners created in the target contract. If you do not want it to do this, use copying control in Customizing to change it.
    Regards.
    Mikel

  • How to block one of the purchasing document types for certain period

    My client asked me to block the one of the purchase order documents for certain period.In what way i can do it? and also it shouldn't be displayed in the purchase documents list when we do me21n?
    Advanced thanks,
    Sateesh

    Hi Sateesh,
    Here u cann't block the Document type,
    U can do this,only the way to delete that document type for certain peroid.
    Thanks & Regards
    Suresh
    > My client asked me to block the one of the purchase
    > order documents for certain period.In what way i can
    > do it? and also it shouldn't be displayed in the
    > purchase documents list when we do me21n?
    >
    > Advanced thanks,
    > Sateesh

  • How to block a Billing Document Type?

    Hi forum
    I need to block the billing document type FV-Invoice Contract.
    Is there some configuration to do that?  I found VOFA where you can change billings documents, but I cant find how to block it.
    Thanks for your support.

    If I am correct, go to IMG Sales and Distribution --> Billing --> Billing document --> Define Blocking reasons --> Aassign blocking reasons to billing types.
    Right now I dont have access to SAP and hence not sure on the path.
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Debugging in "strict mode" while using external library assets

    Hi everyone. A new ActionScript-3 user here with a question on strict mode.    I have multiple Flash pages which use the same art assets. To support modularity and possibly decrease total download time, I have implemented this by placing the shared a

  • Adapter monitoring with central SLD!

    Hi , we have central SLD in our landscape(different host from XI server),and our basis guys installed PI7.0 SP12.And AE is local as I can see under Integration server. I can see JPR in adapter in adapter monitoring. I have question here! should it ne

  • VMWare Fusion partition software doesn't work in Yosemite, why?

    VMWare Fusion partition software doesn't work in Yosemite, why?

  • OBIEE Mail Delivery Problem

    Hi everyone, I am trying to schedule an analysis to send an email in daily basis to a specific group of people. People can change according to their position in the company so the list must be dynamic. I tried to use option 'Get Recipients from the A

  • How to hide a tab in WBS?

    Dear Gurus, In my project Cproject is activated. So, If i click WBS element, it is showing last Tab as cProjects. I want to hide the tab? How to do it? Regards Suresh