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

Similar Messages

  • 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

  • Default Exchange rate type at document type level for parallel currencies

    Hi,
    I have a scenario wherein 2 parallel currencies have been maintained (Grp & index based) against a Co Code and have maintained a default exchange type (Z2) in the Document type settings (OBA7).
    But when I want to post a foreign currency document, system picks Z2 rates for Co Code currency conversion and not for Grp & index based. In fact it picks M rate for these addtional currencies.
    I know that for parallel currencies, the system will always use the exchange rate type defined in transaction OB22 ( "M" rate) which is at Co Code level but I want default exchange rate type Z2 to be picked at Document Type level for all the parallel currencies.
    Please suggest how to archive this.
    Thanks,
    Sam

    Dear Sam,
    The exchange rate type defined in the FI document type (-> field
    exchange rate type in transaction OBA7) is only used for the currency
    translation from transaction/document currency into first local
    currency, not for the currency translation into second local (group)
    currency or for the currency translation into third local currency.
    The exchange rate types for the currency translation into second
    local (group) currency and third local currency are defined in
    transaction OB22.
    Unfortunately there is no option to change the exchange rate of 2nd or
    3rd local currency in our posting transactions. The design doesn't
    regard that requirement. But you have the chance to adjust the parallel
    currencies in OB22 or to change the amounts manually.
    I hope this helps.
    Mauri

  • Can we default Tax code at document type level

    Hi SAP Experts
    Please clear my doubt whether we can have tax codes defined at document type level?
    Thanks
    GKK

    Hi Gkk
    Yes you can do it. you can default tax code by using badi
    Thx

  • Validation for Document type in Vendor Invoice.

    Dear All,
    I need to restrict the user from posting vendor invoice other than document type KR. I thought of using validation with account type and posting key , but looking at more refined solution. Please suggest.
    Thanks & Regards

    Hi,
    Yes, this can be acheived using an validation at accounting document level.
    Validation must be like
    If posting key is 31---Prerequisite: BSEG-BSCHL = '31'
    then the doc type type should be KR---Check: BKPF-BLART = 'KR'
    Else put one error message.
    This will resolve your issue.
    Thanks,
    Srinu

  • Validation of document type in VA01

    23.12.2008
    Hi Gurus,
    We create a Sales Order (eg. ZXXX) through a Z-development. My requirement is that this particular document type should not be created using t.code VA01. Need a validation for VA01 in the first screen itself  ( where the document type, Sales Org, Dist Channel and Divn is entered) to restrict creation of document type ZXXX thru t.code VA01
    Regards

    Dear Sanjay,
    If your requirement is - To restrict Creation of Sales Document Type "ZXXX" with Transaction Code: VA01
    which, I have understood from your query:
    My requirement is that this particular document type should not be created using t.code VA01.
    ...the same could be achieved by changing/ modifying the Transaction Group in to Sales Document type.
    Path: T. Code: VOV8 --> Key-in Sales Doc. Type --> Go in to Detail-page --> Tab: Transaction Flow --> Field: Transaction Group
    If, we maintain entry as "0", the sale doc.will be created with VA01
    If, we maintain entry as "1", the sales doc. will be created with VA11.
    Note: If, you change Transaction Group to "1" for Standard Sales Doc. Type - OR; it will be created with VA11 and not with VA01.
    So, change the Transaction Group from "0" to "as reqd." for Sales Document Type "ZXXX" in VOV8
    Best Regards,
    Amit

  • Field selection on document type level in ME21n

    Hi All,
    from where i can make field mandatory in ME21N at document level. like i want to make an field mandatory for document type UB.
    regards,
    qsm sap

    Hi,
    First check The Field Selection Key for doc type "UB"
    in path
    SPRO->Materials Management->Purchasing->Purchase Order->Define Doc types ( For Standard it is "UBF")
    Then go to path
    SPRO->Materials Management->Purchasing->Purchase Order->Define Screen Layout at Document level
    HereSelect the Field Selection key & Double Click that..
    Then you will see different tabs, just click on them, it will take you to Fields where you need to Tick Reqd, Optional , Display
    as per your requirement...
    Thx
    Raju
    Edited by: Manohar Raju on Mar 2, 2008 9:44 AM

  • Validation complete document level

    Dear All,
    I want to create one validation to restrict user at document type level. if document type DZ system should not allow entires like gl to gl postings.
    Regards,
    Sankar

    I think your requirement can be met through the configuration of Document Splitting through the indicator, "Only Once".  Below are the details of this indicator.
    Item type permitted only once
    If this parameter is selected, the corresponding item category may only be used once in the business transaction concerned. A document of this business transacation cannot be posted if the item category exists more than once.
    You may find this indicator in table V_T8G28 or menu path, "Define Business Transaction Variant" in configuration of Document Splitting.  Define a new variant or change the existing one attached with the Document Type DZ.
    Regards,

  • Validation for doc type for f-43

    Hi,
    I Have created a validation for document type sk for t.code f-43, while creating validation i have taken fb01 it is working fine for f-43 at the same time which is working for f-02 also it should not work for f-02.what to do please help me
    Thanks and Regards
      Radha

    Hi,
    Almost all FI transactions other than the clearing transactions, may apparently have different names like F-02, F-43 etc, but at the backend there is only one mother transaction code FB01.  So any validation on FB01 will impact all FI t-codes.
    I would suggest that you use document type in the validation, if you can have clear demarcation between the doc type used for different transactions.
    Cheers.

  • Document type control

    hi
    in my company i have two prequisitons
    one is used for imports and one for domestic .Ineed to make the field account asignment category an mandatory field for the domestic purchase requisition and for imports i do not how can i do this
    and
    can u also specify how this can be done to a purchase order also
    With regards
    chaitanya

    You can make account assignment category mandatory in configuration. The path in SPRO is <i>Materials Management --> Purchasing --> Purchase Requisition --> Define Screen Layout at Document Level</i>.
    Remember to make it mandatory in the field selection key at Document Type level. In case the field selection key is same at the document type level, change the field selection key in the document type definition (under <i>Define Document Types</i>). This way you can have different field selections at the document type level.
    Same way in Purchase Order also. Menu path in SPRO is <i>Materials Management --> Purchasing --> Purchase Order --> Define Screen Layout at Document Level</i>
    Hope this helps.
    Lakshman

  • Document Type Configuration question

    Hi,
    What does Condition type Line Items (Condition type for copying costs from line items) mean in a sales document type configuration.I am not clear even after reading the F1 help on this field.
    I know that it has something to do with the pricing condition types EK01 and EK02 but still am not able to relate it completely with business point of view.
    I know the differences between EK01 and EK02 and am also aware of the concept but I want to know the usage of giving picing Condition type at document type level.
    It can come directly from the Pricing procedure then why do we give here?

    Laxmi or Bala or Venkat..Anybody can reply if they have some suggestions?

  • To Make WBS element Mandatory for a particular Document type- Contract

    Hi ,
    I have a requiment where I have to make to Make WBS element Mandatory for a particular Document type of Contract . I don't want to use any User exits or Badis for this .
    Please let me know if there is any configuration that can be done to achieve this .
    Regards,
    Hari.

    Hi ,
    It is already made mandatory in account assignment categories  but My requirment is that it should be mandatory for only one particular document type . In the account assignment categories , there is no where we can specify the document type . It is only at account assignment category level but not at document type level .
    Regards,
    Hari.

  • Regarding Document type CS

    Hi Friends,
    If The ADDRESS maintained in one table is taking only for the import of PO s.If we want the ADDREss is valid for
    DOCUMENT TYPE  'CS'     Wha is the suggestion to be done in output program.
    Could u pleasae suggest it.
    Regards
    Kumar

    Your question is not clear, please describe in more detail what you are trying to do and where the problem is.
    Thomas

  • BCS validation at document Level

    Hi all SEM-BCS experts
    We are adopting a matrix consolidation (company & profit center) design. We would like to have a validation at the manual posting document (posting level 10) where all line items can only be posted with the SAME company code only. Posting to different profit center is allowed.
    Currently the system allows the posting of manual document which involves multiple company code with different profit center as system can generate an auto clearing cons unit line item to balance up the document.
    Appreciate any advice on the set up of the validation rule which is assigned to the document type. Thanks
    Cheers
    Lee

    One suggestion is to create a header validation requiring (condition) a company code.

  • F150 Dunning creation without increase Dunning level for document Type

    Hellò everybody,
    I have this request , How I can  do a dunning Letter  and for a specific Document type  , must have always a Dunnng level 1 . I mean do not increase the Dunning Level every time.
    For istance :
    Every week we make one dunning run. This run has to include all open invoices from ordinary deliveries (dunning level 1 to 3) and also  the open invoices for a specific Document type  (dunning level 1).   This Specific doc.type have not dunning level 2 or 3 .
    I have check on BTE and I have update  00001051 DUNNING: Read additional fields for MHND (BSID)  with this Abap code :
    IF I_BSID-BUKRS = 'KC01'.
            IF I_BSID-BLART = 'B2'.
          IF C_MHND-MAHNS IS NOT INITIAL.
            C_MHND-MAHNN = C_MHND-MAHNS.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFUNCTION.
    But nothing happen ...
    Who can help to me ?
    Thanks in advance for everythings.
    Anna Rosa

    Hi Vassy , thanks for your prompt answer ,  I explain better with example :
    first time  Dunning  :  Customer AABB
    Invoice 1  100   lev 1    Special Invoice
    Invoice 2  200   lev 1
    Invoice 3 300    lev 1
    The Customer do not pay nothing
    Second Time Dunning Customer AABB
    Invoice 1  100   lev 1    Special Invoice
    Invoice 2  200   lev 2
    Invoice 3 300    lev 2
    Thirt time Dunning Customer AABB
    Invoice 1  100   lev 1    Special Invoice
    Invoice 2  200   lev 3
    Invoice 3 300    lev 3
    I mean in the same Dunning letter for invoice 2 and 3 the level Dunning increase(as usual)  for Special Invoice number 1 the Dunning Level   still remain 1.
    I know that I can change Manually on open Item the Dunning level but I looking for if it's possible to this automatically.
    Thanks a lot.
    Cheers.
    Anna Rosa

Maybe you are looking for