T Code OB28 Validation of Accounting Document

Hi,
I am trying to maintain the validation rule for instituting the check for duplicate AP invoices (i.e. Invoices with same Reference field which is mandatory while accounting for AP Invoices). When I am trying to create the validation check using the aforesaid T Code OB28, after entering the Co. Code and Call Point etc. when I click on Validation under "Environment" tab, the system prompts for Message ID to be configured. In the drop down list I find number of  message ids but am unsure as to which one is to be used. Could any one advise as to how can I proceed further?
Thanks in advance.
Best Regards,

Hi Eli,
When I am trying to create the Message, the systems prompts for certain fields to be maintained -
Message Class
Short Description
Package
Application Component
Could you guide as to what are these meant for and how to maintain these? I understand Application component refers to FI etc.
Thanks,
Regards

Similar Messages

  • Using 'validation in accounting documents' set up in IMG in an abap program

    In IMG, we've set up accounting document validation at the item level - it seems that the information gets stored in GB* tables.  We need to access these validation rules in an abap program - does anyone know what SAP function modules to use to invoke these validation rules?

    Ok Les, use G_VSR_VALIDATION_CALL FM to call SAP´s validation rules routine.
    Here you got a sampe code:
    * used for the validation function module
      gc_co_validation TYPE tkaze-valid   VALUE 'CO_ITEM',
      gc_co_valuser    TYPE gb03-valuser  VALUE 'CO',
      gc_valid_event   TYPE tkaze-event   VALUE '0001',
      gc_line_no       TYPE mesg-zeile    VALUE '000',
      gc_cobl          TYPE rgbl5-tabname VALUE 'COBL',
      gc_cobk          TYPE rgbl5-tabname VALUE 'COBK',
      gc_parking       TYPE cobl-hkont    VALUE '0000420274',
      gc_rfbu          TYPE cobl-glvor    VALUE 'RFBU', " FI postings
      gc_bkpf          TYPE cobl-awtyp    VALUE 'BKPF',
      gc_coin          TYPE cobk-vrgng    VALUE 'COIN',
      gc_zb            TYPE sy-msgid      VALUE 'ZB',
      gc_023           TYPE sy-msgno      VALUE '023',
      gc_all           TYPE sy-msgv1      VALUE 'all'.
      REFRESH:
          gt_val_tabnames.
    * For validation rules check, populate itab
    * with the structure names
      APPEND: gc_cobl TO gt_val_tabnames, " COBL
              gc_cobk TO gt_val_tabnames. " COBK
    * Set up COBL & COBK structures
      gs_cobl-glvor = gc_rfbu. " FI postings
      gs_cobl-vorgn = gc_rfbu. " FI postings
      gs_cobl-awtyp = gc_bkpf. " FI header
      gs_cobl-kokrs = gc_mit.  " MIT controlling area
      gs_cobl-hkont = gc_parking. " G/L 420274
      gs_cobl-zfbdt = sy-datum.   " later validate against each reservation
      gs_cobk-orgvg = gc_rfbu. " FI postings
    * COIN = CO: Interface (FI transactions create this transaction code)
      gs_cobk-vrgng = gc_coin.
      CASE g_co_type.
        WHEN gc_cctr.
          gs_cobl-kostl = g_kostl.
        WHEN gc_intord.
          gs_cobl-aufnr = g_aufnr.
        WHEN gc_wbs.
    *       internal PSPNR assigned above when selecting from prps
      ENDCASE.
      CALL FUNCTION 'G_VSR_VALIDATION_CALL'
        EXPORTING
          callup_point  = gc_valid_event " 0001
          tab_data1     = gs_cobl
          tab_data2     = gs_cobk
          validation    = gc_co_validation " CO_ITEM
          valuser       = gc_co_valuser " CO
          zeile         = gc_line_no " 000
        TABLES
          tabnames      = gt_val_tabnames " COBL & COBK
        EXCEPTIONS
          abend_message = 1
          errormessage  = 2
          not_found     = 3
          OTHERS        = 4.
    I really hope this to be helpful.
    Kind regards,
    Federico Alvarez.

  • Validation for accounting document during MIGO

    Hello experts,
    I would like to force the user to choose document type: FR while trying to post a credit memo via MIGO.
    How can I do it ?
    Thanks a lot.

    Hi, sorry, I wrote for miro.
    But for migo you can use badi MB_MIGO_BADI, method CHECK_HEADER.
    Also you can try ob28, but the main problem is how to know movement type.
    And 'post a credit memo via MIGO' - you mean move type 102?

  • Tax code Blank on Inter-company Accounting Document

    The Tax code field in Intercompany Accounting Document is Blank though MWST has A0 ( Zero Tax) as tax code but PR00 & PI01 have no tax codes . The Accounting document of Commercial Invoice has tax code  A2 which has MWST & PR00 with tax code A2 ( Full tax) & PI01 as Blank, even at the time of condition record creation for PR00 & PI01 there is no place to enter tax code as these I believe come from customer master record - tax classification. the customer record for Sales Org Ireland has been maintained as Tax exempt.
    Sales Flow-
    Irish Customer orders to Sales Org Ireland
    Sales Org Ireland  - has Plant UK as delivery plant- delivers goods to customer
    Sales Org Ireland Invoices - Irish customer with correct tax code
    Sales Org UK creates Intercompany Invoice to Sales org Ireland with blank tax code in accounting doc
    IV Invoice creates RD04 with fullprocessed IDoc in Ireland which does correct Invoice verificiation posting in Ireland.
    the only problem is when UK creates IV invoice the a/c document generates has tax code as blank where it should with A0 ( tax exempt) code.
    Kindly help

    Use SAP Note 10560 & 112609

  • 2 accounting documents generated with MIRO

    Hi all,
    A customer made a purchase order, receipted it (MIGO) and entered incoming invoice (MIRO). During the incoming invoice, sap generated 2 accounting documents. I explain one of them, taking expense and accounts of stokcs; but the other generated 0,01EUR on a material account in return of an acccount of inventory change.
    I don't understand why i have this second accouting document.
    Have you already solved this kind of problem?
    Thanks in advance.
    Regards.
    Aurélie.

    Hi Aurélie,
    This can be caused by some cases:
    -> Manual/total-based invoice reduction : See column "CorrectionID"
    If an invoice is reduced, a credit memo is posted for the amount of the reduction in a separate accounting document.
    -> You post an invoice relating to a PO without account assignment to the previous period (or you post directly to the material).The material is subject to moving average price control. In the previous period you have stock coverage; in the current period there is undercoverage (you are short of stock). An additional price change document is posted in the current period.
    -> Cross-company-code invoice In the case of cross-company-code invoices, a separate accounting document is posted for each company code.
    Hoipe this helps
    Tarek

  • Change Validation to complete document level

    SAP experts,
    In tcode F-65 the business is using account assignment model to post recurring entries by filling in the template. Here it has a validation "Amount is Zero - line item will be ignored" at the Line item level. Business wants this validation to be changed from Line item level to the whole document level (at the time of save).
    The message no. is -- FX090
    "Amount is Zero - line item will be ignored"
    How can I change this validation settings?... please help asap.
    Thanks in advance.

    Dear Sameer,
    You would need to implement it at header level.
    For example in IMG under
    Financial Accounting -> Accounts Receivables and Accounts Payable -> Business Transactions -> Posting with alternative Reconciliation accounts -> Carry out and check document settings -> Validation in Accounting Documents.
    You can see some of the validations are implemented at item level and some at header level.
    Regards,
    Naveen.

  • Complete billing document without accounting document

    Hi guys!
      We have some billing without account document because a erro in billing. The user instead of correct billing document and generated the account document, he created a manual account for this billing.
    Someone now how to complete this billing and liberated the value in a credit management.
    Best regards,
    Julio César

    Hi,
    First reverse that accounting document by using the T.Code:FB08.
    As your accounting document doesn't have any clearing document,so reverse it using the T.Code:FB08
    Enter the document number,Company code and Fiscal year and Enter the Reversal reason.
    Enter.
    After this complete your billing document.
    Create a new accounting document using VFX3 T.Code.
    If your accounting document has clearing document then reverse and reset it using FBRA T.Code.
    Regards,
    Krishna.

  • Enhancement for validating bank account number

    Hi,
      I have written code for validating bank account number based on bank Key.In the enhancement <b>SAPLSSRV</b>. Now i have a requirement that when the enhancement is triggered, i need to check whether the <b>account holder</b> field is entered or not in the transaction.
    But in the enhancement i have only BANK_ACCOUNT, BANK_CONTROL_KEY, BANK_COUNTRY and BANK_NUMBER as the import parameters, no more changing or tables parameters.
    i.e., i dont get account holder name as input. Is there any way to capture the <b>account holder</b> field.   
    Regards,
    Vidya.

    Hello,
    Go for BADI's,
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    Regs,
    Venkat

  • Accounting Document against material document.

    What is the t-code for checking the accounting document for multiple material document in a single view?

    Hi
    In BKPF Table there is one field called AWKEY which contains Material document number concatenated with year
    Refer the secondary index 4 , AWTYP field value will be MKPF
    Regards
    Amuthan M

  • Error in Account Document - company code

    Dear Experts,
    While i am creating Enter GL account document for Company code XXXX (T Code - FB50), i am getting the belOW  error...
    DOCUMENT DOES NOT CONTAIN ANY VALID  LINE ITEMS
    For the same i have maintained GL accounts,
    can anybody let us know what exactly i missed.
    Thanks
    Raju

    Hi Raju,
    In FB50 you have to select the Debit and Credit line items options manually, it will not popup automatically. in Header level the debit and credit cell values total shold be the same then only the document will save.
    you can also use F-02 to post any journal entry
    Vara

  • OB28 validation: not possible to clear future documents

    Hi dudes,
    I'm looking for how to build an FI validation (if possible) on OB28.
    The purpose is to block users to clear a document of a future year.
    Ex.
    billing document y. 2009
    payment document y.2010
    the users create a clearing document with y.2009
    It's possible to block this action with a simple OB28 validation?
    I tried with a BKPF-BUDAT < BSEG-AUGDT but possibly I can't use two different tables on the same validation step.
    Thanks.
    Regards

    You can use a exit in your validation.
    1. Check that you have declared the form pool for application area "GBLR" validations in View V_T80D_SL. If not, then enter the name of the form pool (e.g. YRGGBR000) and copy the standard program RGGBR000 to the new program (e.g. YRGGBR000).
    2. Declare the exit (the exit name, by convention is U9<XX>, where <XX> is a serial number.) after data statements in "FORM get_exit_titles" as follows:
    form for Future Clearing
      exits-name  = 'U9<XX>'.                  "Description/ Purpose
      exits-param = c_exit_param_none.       
      exits-title = text-9<XX>.                     "Name of the exit
      APPEND exits.
    3. Put your Code/ Logic in a new form "U9XX"  as follows:
    FORM U9<XX>  USING b_result.
    <PUT YOUR OWN CODE HERE>
    *All fields of Tables BKPF, BSEG, COBL, GLU1 & ANLA are available here>
    *REMEMBER - Some of the field values might not have been populated>.
    ENDFORM.
    4. Maintain text symbol U9<XX>, activate the form pool/ text symbol and exit.
    5. Use OB28 to create a new step in a new or existing validation at suitable call up point.
    6. Enter any pre-requisite, if required.
    7. Select the "Check" node of your validation step. select "Exits" tab. You will find your exit U9<XX> here. Double click on it to insert in the "Check" code.
    8. Select the "Message" Node of your validation step and enter the message type, no and variables. Save & Exit.
    Regards
    K.K. Tripathi

  • Validation of a reference field when posting accounting document using FB50

    Hi all,
    We hada requirement to restrict the users from entering japanese caharaceters in the reference field of a accounting document. The validation for this was done using the transaction OB28. when the user posts the accounting document using transaction FB01 or changes the accounting document using transaction FB02, the validation provided in OB28 does work(it throws an error restricting the user from entering japanese characters if he has done so). But whenthe user pots the accounting document using the transaction FB50, the same error message comes as information message although the coding is for giving an error message.
    This however does not happen when the user logs on in English. In English logon the error mesage does appear.
    When the user logs on in Japanese the message comes as an information message but at the same time does not allow posting of the document.
    Debugging this revealed that the OSS note 197329 has been applied to the standard SAP program SAPMF05A.
    Any pointers to how this can be rectifiied would be appreciated.
    Thanks in advance.

    I think it would be best if you opened an OSS message on this.
    Rob

  • Tax code update in Accounting document

    Hi All
    I have a situation like this, During MIGO, tax code say V1 is given in Header and also at Line item and also in the PO.
    Now Accounting document generated like this.. say
    Vendor -XYZ   Credit 100   -- Tax code ** (Star Star / Asterix)
    GR/IR               Debit  90          Tax code  V1
    Price diff         Debit 10            Tax code V1.
    Why tax code against Vendor is updated as  * *   Instead of V1 mentioned during MIGO. (In BSEG also it is updated as ** against vendor)
    I checked few other vendors where tax code is updated as V1 for the same above said scenario.
    Thanks
    Aravind

    Alex, i cleary mentioned Only ONE Item.
    One PO
    One Vendor (Credit)
    One Material ( Debit)
    Same Tax code @ Header and also in the Item.
    Debit - GR/IR - 10  Tax code - V1
    Credit - Vendor - 11 tax code - **
    Debit - Price diff - 1 Tax code **

  • OB28 - Validation for the G/L Account creation year

    Hello,
    Is there any possible way of doing this validation? Validate G/L Account by the year of creation?
    Ex: No G/L account cant be used if created in 2008!??
    Regard, and thanks in advance,
    Rui Ribeiro

    OB28-Validations can only be maintained for accounting documents(transaction data) not the master data.
    For your requirement go for authorizations by creating new authorization groups/profiles.Please coordinate with the basis(security) team

  • BAPI/FM to update accounting document (FB02 transaction code )

    Hi ,
    Please let me know is there any BAPI/FM to update base line date and discount at header lelvel in accounting document
    (FB02 transaction code ) . basically to update vendor open invoices documents
    thanks
    Naveen

    Ok i finally figures out how to get around this issue.
    USe FM: PRELIMINARY_POSTING_DOC_WRITE

Maybe you are looking for