OB28 line item validations

Hi Experts ,
Please help me for the following scnerio
My OB28 line item validation is as follows .
Prerequiste
BKPF-TCODE = 'FBVB' AND ( BSEG-KOART = 'S' ) AND (
BSEG-BSCHL = '40' OR BSEG-BSCHL = '50' )
check
BSEG-SAKNR = '' "
message
Error! SAKNR is initialised. Please delete this line and re-create again.
For the above scenario  I need validation as follows .
<b>I am  implementing validation to ensure when user performed posting of parked document (tcode FBVB, FBV0), the field SAKNR is not being initialised with any value when the line items contained posting key(BSCHL) 40/50.
]As I am  unable to create a wrong document with the above scenario, I  need a program to create such an entry (this entry should not hardcode the information) so I could test if the validation rightfully trigger and stopped such wrong entry from being created.</b>
may be I need to  write user-exit for the above scenario , how I can validate SAKNR field with value and with out value ,
I debugged the program ZGGBR000 , and I inserted the field  SAKNR  with value , then the FI validation was triggered . but I want to implement the above bolded information.
Please help me as early as possible.
Thanks & Regards
Mohan

Hi Mohan,
First of all, I'm not sure if you can park a FI doc without a GL a/c (SAKNR) in a productive system? and therefore what's the use of this validation??
Anyways, you could change the values in the debugger (SAKNR = ' ') in program ZGGBR000 when you are trying to park a document. After changing values of the variables the validation should give you the correct error message.
Other way is to write a BDC program with SAKNR = ' ' but before reaching the validation the standard program will issue an error message...so I dont think this would be the correct approach.
Reward points if helpful.
Regards.

Similar Messages

  • Line Item Validation

    ESO Experts,
    I have this particular requirement to make the location field as blank during Add Line Item (not during Add Material). I have already tried following logic on:
    Collection validation - Target - LINE ITEMS
    Validation Life cycle - Target Validate.
    Iterating through each line item I am checking if Location has value then make it null. But there is a standard validation on Plant field  which runs first and throws an error before the script runs:
    "The selected plant location does not match the location of selected for this line item"
    Your help in this will be highly appreciated.
    Best Regards,
    Adarshpal Brar

    Hi
    Unless you have written a custom code, Location is picked from enterprise default location and not user profile. Kindly verify.
    In either case initially Location field in the header tab would be  pre populated once you create the document and then when you create line item, it would pick up the location from header location field.
    Posiible solution would remain the same that you leave the Location field in the header tab blank. This would, in turn make sure that when you create a line item no location would get added by default.
    Regards
    Mudit Saini

  • Multiple line items validation

    Hi all
          Here I have a problem in validating the line items while submitting an invoice.
    the current logic in the program is validating the line items available only in the current page ie if we are submitting an invoice from the second page it will validate the line items of second page only, it will not validate the line items of first age and the other pages.can any body suggest me the solution.
    Note: this module pool program is using the steploop concept.
    Thanks & Regards
    srini

    In a somewhat similar situation, which was updating the Foreign exchange rates, SCATT was initially used to record the transaction which required recording the modification of the field in Header data of a document.
    Similarly, I believe and assess, you would have to omit out the details of the document, but you could map document number versus the amounts. SCATT works good on two amounts.
    Laters, you export the variant; and as suggested above, and against the document number list the amounts.
    Award points if useful.

  • Forms Recognition Line items validation

    Dear all
    I'm working on a Forms Recognition POC whose delivery date is on 10/10. I want to disable the validation of the amounts from the line items and total amount, how can I do so?
    Thanks and Best Regards

    There are few things i believe you need to do here. One being search the AP Project PDF that comes with the solution, i believe there are a few settings in the INI that will set default Non-PO which should disable the line item matching portions of the scripts thus never having to validate the line items.
    To disable to total's validations, open the script editor for the invoices class, search and comment out all instances of the following function 'fnValidateAmount', that should remove all the totals validations. Or you can modify that function to fit your projects needs

  • Validation between line items in a Document

    Dear Experts
    I have created a Validation to restrict the Users not to select two different Company Codes in the line item level for a particular Document Type.  The Validation is as shown below:
    Prerequisite : BKPF-BLART = 'SA'
    Check : "BSEG-BUKRS1 <> BSEG-BUKRS2"
    Message : Cross Company Transactions not allowed with Doc. Type 'SA'
    I activated the above in OB28 with Call Point Option '2 - Line Item'.  When I am testing, the system is allowing me to post the transaction with two different Company Codes in the line item level and it is generating the Cross Company Document also.  Please let me know where I am missing the logic.
    Thanks
    Madhu

    In case you have made changes in OBA7, it should be working fine.
    If you even then want to define validation, you should define at complete document level using exit and in exit you should define the exit parameter using BOOL_DATA table which will contain the details of BKPF and BSEG for that document and there you can compare the company code of one line with the company code of another line.
    Regards,
    Gaurav

  • FI Validation rule error message problem at line item level

    Hello all.
    I have created a step within an FI Validation rule (OB28) at the document line item level.  I have set the  message to "E" for an error.  I have generated the validations.  When I test my step, the error is triggered, but triggered as an Information popup - warning and does not give me a hard stop.   Does anyone have an idea why this may happen?   I need this to be a hard stop but not a cancellation of the document entry.  I am using FV60 to enter my document.
    Thanks for help.
    mvp0821

    OSS note # 863267 explains answer.  Cannot create "error" message on ENJOY transactions - FV60 is included in this list.  "E" works on classic transactions.  
    Thanks for thinking about this.

  • Validation on line items  not triggering for F-32 tcode

    Hi Experts,
    I am trying  to put a validation on F-32.  using OB28   but not able to trigger OB28 while simulating the selected documents in F-32.
    Also i want to know how systems comes to know what all documents has been selected by the user in
    F-32 for clearing ,so that i can apply check on line items of that particular selected documents.
    Any ideas on how to do it?
    Thanks in advance.
    Regards,
    Abhinav

    Hi Friend,
    Check that you have activated the validation or not?
    Put '1' in activation flag of OB28; And test with F-32 again.
    Regards
    Krishnendu Laha

  • Validation on line items not triggering for MR41 tcode

    Hi,
    I have to put a validation on MR41 to check the amount entered on the screen. I am using OB28 to define the validation. Also, I have created user exit in the validation/substitution program where the necessary checks are done. But the validation is not triggering at the line item level. I have another validation of MR41 at header level, that is working perfectly. I want the validation to trigger at line item level also.
    Any ideas on how to do it?
    Thanks in advance.
    Regards,
    Arun Mohan

    Hi,
                  Try with user exit MM08R002 under this u can find thease exits.
    EXIT_SAPLKONT_002
    EXIT_SAPLMR1M_001
    EXIT_SAPLMRMC_001
    <b>Reward points</b>
    Regards

  • Validation for Business Place in line item wise

    Dear All,
    I have written one validation for Business Place is mandatory
    my requirement BUPLA mandatory what are  t.codes i have eentred in the prerequisite.
    but system asking for business place other than those t.codes.
    it's not taken in to consideration what are the t.codes i have entered in the prereqiuiste.
    In  Prerequisite
    ( SYST-TCODE = 'FB01' OR SYST-TCODE = 'F-22' OR
    SYST-TCODE = 'F-27' ) AND
    BSEG-KOART = 'D' AND
    BSEG-QSSKZ <> ''
    in Check
    BSEG-BUPLA <> ''
    message
    Enter Business Place
    Now my requirement is that when i am proceesing any other transcation like f-02, f-21 and all BDC which are related to customer business place is mandatory.
    my requirement is business place is required only for TDS related documents.
    please advise how to write validation for non tds related documents.
    thanks in advance.
    mohan
    Edited by: bangaru mohan on May 7, 2008 6:44 AM
    Edited by: bangaru mohan on May 7, 2008 6:45 AM

    Earlier i have given replay for same query so many times
    Re: Business Place / Section Code Mandatory : How to?
    you can write the following validation for your requirement.
    Open GGB0, press financial accounting, press line item, press validation button, give your validation name, press step button give the step name then press to prerequisites. give the inputs in prerequisites as follows.
    PREREQUISITES:
    SYST-TCODE = 'FB60' AND BSEG-KOART = 'K' OR
    SYST-TCODE = 'F-43' AND BSEG-KOART = 'K' OR
    SYST-TCODE = 'F-48' AND BSEG-KOART = 'K' OR
    BSEG-BSCHL = '29' AND BSEG-UMSKZ = 'A' AND
    BSEG-KOART = 'K'
    CHECK:
    BSEG-BUPLA = 'YOUR BUSINESS PLACE'
    In message
    you can create the message class with the help of your ABAPer and assign the message or you can use the available message and put it as Warning or Error message.
    after complete the above go to OB28 and put the active.
    If want to feel dificulty take the aboper help.
    don't forgat to assign the points.
    If u find solution from our answer, please close the issue and assign points, otherwise ask your futher problem.
    sai krishna

  • Validation not working during Mass Change of Vendor Line Items

    Hi All,
    I created validation for Reference Key 1 field of Vendor line items, in this validation i used customized user exit.
    Whenever i select multiple line items in FBL1N for mass change & try to put a unauthenticated value system gives error as per Validation only for 1 st item but it not work for subsequent items & put the unauthenticated value in subsequent line items.
    I am not able to understand why Validation is working only for 1st line item during mass change & not for subsequent line items.
    Please provide your suggestions in resolving this issue.
    Thanks
    sandeep

    Hello Sandeep,
    I understand your issue. First check if the changes as per the SAP Note 640908 (https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=640908) is available in your system.
    Actually, Mass changes call FB02 in background and at this stage Validation gets activated and hence, the control doesn't go back for the next item changes. You can test this by deactivating the Validation and then the mass changes will me fine.
    I hope this explains the behaviour.
    Thanks and regards,
    Suresh Jayanthi.

  • MIGO-sales order number and line item not validated for 501E mvt in MIGO.

    Hi All,
    In MIGO i am trying to post for 501E(specisl stock=order on hand) movement type, here i am entering the material and in the where TAb even if I enter wrong sales order number or wrong sales order line item number. the system allows to post .
    its not validating the material against the sales order number and line item number that is entered to check whether that material really exists in that particular sales order or not.
    is there a way to fix this?
    Thanks
    Mahendra

    hi
    i dont think vvalidation is possibel
    as the system dont know whaich material is assigned to which SO
    as we r takeing the stock without PO
    if u want to validate then system can validate the quantity that is also with use of some user exit
    correct me if i am wrong

  • Validation for first line item ( table )

    Dear Friends,
    i have table with multiple line items, i want to validate first line item only, if first line item is initial, it should throw an error message, could any one pls help me with an example
    Thanks
    Vijaya
    Col1
    Col2
    Col3

    Hi Vijaya,
    Method get_static_attributes_table of interface if_wd_context_node will return a table of context elements. You can then either read the first row of that table or loop through it to validate the table's data and issue messages as needed. For example...
    data lo_nd_ctx_node type ref to if_wd_context_node.
    data lt_attributes_table type wd_this->elements_ctx_node.
    lo_nd_ctx_node = wd_context->get_child_node( name = wd_this->wdctx_ctx_node ).
    lo_nd_ctx_node->get_static_attributes_table( importing table = lt_attributes_table ).
    If the row to be validated happens to be the table's lead selection, you can fetch attributes of the lead selection row directly, and again validate and issue messages as needed...
    data lo_nd_ctx_node type ref to if_wd_context_node.
    data lo_el_ctx_element type ref to if_wd_context_element.
    data ls_attributes type wd_this->element_ctx_node.
    lo_nd_ctx_node = wd_context->get_child_node( name = wd_this->wdctx_ctx_node ).
    lo_el_ctx_element = lo_nd_ctx_node->get_element( ).
    lo_el_ctx_element->get_static_attributes( importing static_attributes = ls_attributes ).
    Both of these code patterns to read context data are available through the Web Dynpro Code Wizard.
    Cheers,
    Amy

  • KR doc type posted without vendor line item a mandatory item category

    Hello Gurus,
    We have SPL document splitter activated in our ECC system. We have the business transaction variant 0300 / Z001 assigned to doc type KR. The vendor line is obligatory in the above business transaction variant (BTV). THe splitting rule is also assigned for this BTV.
    THe problem is that despite having the vendor as obligatory for this BTV, we are able to post the doc type KR (vendor invoice) without the vendor line item e.g.. doc with doc type KR and debit and credit to expense a/c.
    Please share your experience if anyone has come across this issue,
    Prakash

    Hi,
    To make the vendor line mandatory for KR document type, you can write the validation as below:-
    Step 1:-
    Create a message ID via transaction code SE91 for message class /EACC/MSG/ACC_COMP as you want to display to user.
    Step 2:-
    Go to transaction GGB0 and create the validation step at complete document level in Financial Accounting as below:-
    Pre Requisits:-
    BKPF-BLART = 'KR'.
    Check:-
    Create a exit code using user exit and check that line items have at least one vendor line item.
    For this take the help of ABAPer and create a copy of the program RGGBR000 and code your check here and assign to the application area GBLR in view V_T80D via transaction code SM30.
    Message:-
    Message created in step 1 as error message.
    Step 3:-
    Please also check that this validation has active status (Status=1) at line complete document level (level 3) for your company code in transaction OB28.
    Regards,
    Gaurav

  • Unable to block line item in a schedule agreemnet using ME32L

    Hi Experts,
    When I am trying to block/delete one of the line items in a schedule agreement I am not able to do so. I am getting the error message "Document lines of document item (16) are in different fiscal years".
    Further the diagnosis message given is "If you are using Funds Management and want to set a carryforward level for the commitments documents, then all line items which belong to a document item (e.g. different schedule lines or account assignments of a purchase requisition belonging to the same purchase requistion item) must be created in the same fiscal year.
    Otherwise the criteria for setting this carryforward level are not clear"
    The procedure is given as "Check the respective date on which the different line items were updated and adjust it appropriately and instead generate a new document item (e.g. purchase item)"
    Can any of you throw some light on this.
    Regards
    ACR.Ruben

    Thanks for the input.
    The validity of the Schedule agreement is till 31.03.2010.
    Regards
    ACR.Ruben

  • Proft center field pick up in recon a/c but not in cust/vendor line item

    Dear All
    My client want in fbl5n & fbl1n line item should display profit center, How can it be shown&
    and how recon a/c automatically pick profit center?
    Thanks in advance
    vishvas bhavsar
    Edited by: vishvas bhavsar on Apr 2, 2008 11:44 AM

    Please note it is a myth that in standard SAP you can add a Profit Center to a recon account.
    The only way you can do this is now via document splitting in the new GL.
    All the talk of changing field status, validations, posting key status is rubbish.
    The reason being is that you could have many profit centers in your AR document, and there is only one field.
    Document splitting splits the AR line to allow many lines so you can have a single value per PC.

Maybe you are looking for

  • Report for inbound delivery

    Dear all I want report for PO which inbound delivery is done but GR is not done? is there is any std .report? pls help

  • Tab order moving to second page of form

    I have a two page form. I can set up the tab order perfectly on the first page, but when I try to set up the first object on the second page as the next tab after the last first page tab, it starts back at the first object on page one. Does anyone kn

  • Please Read This Before Wasting Your Life With BT

    Hi, I eagerly awaited my 17Mb promised Internet access from BT.  On February 7th 2012 it was active, set up and was delighted, close to 17Mb access.  Unfortunately over a period of 5 days it went down in steps to just 2Mb speed. Called the people in

  • Pricing Procedure for US

    Dear Experts, We are in the process of preparing procedure for US Pharma templet, we wuold like to know standard tax structure used in SD pricing procedure. we would like to know std conditions to be used with jurisdiction in SD pricing procedure.and

  • Data Type  Binary Missing on ODI  for 101.3.4 for SYBASE IQ 12.5

    Hi All. Under Topology - Physical Architecture - Sybase IQ - there isn't datatype "binary". Any workaround ? I have to use this datatype because it is in many tables and it used for important data... Marco