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

Similar Messages

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

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

  • 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

  • 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

  • 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

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

  • Line Item Not dispaying in Payment Advice standard report

    Hi Experts,
    I have cleared line items of a vendor by making payment through F-53 and subsequently generated the Print Form spoon request through FBZ5. But in the print, line items (cleared Items) doesn't display in Payment advice report. But for the Fiscal Year 2009 line items (Cleared item) was displaying in the Payment Advice report which is now not displaying.Since it is a standard report no changes made. So please suggest how to achieve it.
    Thanks in Advance,
    Arabinda

    Hello,
    In tr. F-53 you post a payment document,
    but to print a check you need to use some check printing program.
    SAP-delivered program is RFFOUS_C and it processes only
    one bank line per payment document.
    Please check the following general information:
    The standard form (of the print program RFFOUS_C) prints the invoice
    items followed by the check.  If the item details overflow to the next
    page, then the first check (eg cheque no. 1) will be voided and you'll
    get the valid cheque on second page (eg cheque no. 2). This is standard
    functionality.
    Also I would request you to recheck your customising in FBZP i.e.
        -> Click on the 'Payment methods in company code' button
        -> Double click on the appropriate 'Pymt meth.'
           -> Click on the 'Pyt adv. ctrl' button
              ¦ Note to payee lines on the form  /               ¦
              ¦                                                  ¦
              ¦ O  restricted to                       98 Rows   ¦
              ¦ O  None                                          ¦
              ¦ O  as many as req                                ¦
              ¦__________________________________________________¦
    - The first option will restrict the number of lines on the form to a
    value from 1 to a maximum of 98.
    - The second option will restrict the number of lines on the form to
    zero.
    - The third option option will not restrict the number of lines on the
    form.
    You may test in the system which among the three options will suit your
    needs. There is a documentation available at the side of each button.
    Also please check whether the problem happens with the standard SAP
    program. You may wish to review the documentation for RFFOUS_C via
    transaction SE38 -> Enter program name -> Select 'Documentation' radio
    button -> Display -> scroll to 'Setting up and changing the SAPscript
    forms (layout sets)'.
    Also you can refer to the parameter `No form summary section' in the
    variant of RFFOUS_C. By setting this indicator, you can prevent the form
    summary section from being printed hence the overflow is avoided and
    thus eliminates the voided check issue. Please refer to F1 Help of this
    field for further information.
    Also please refer to the F1 help on the indicator "Indicator: Do not
    Void any Checks" in the selection screen of payment program RFFOUS_C.
    I hope this helps.
    BR,
    Raquel

Maybe you are looking for

  • HT201272 Can two synchronised ipads use the same purchased apps

    I have two i-pads with shared free apps, but when I purchased one from the i-tunes store recently it would not show up on both.  How do I share this language course with both i-pads?

  • All of the Users are missing in the File Sharing Prefs

    I was trying to straighten out an issue I was having with accessing my wife's iMac.  She has access to mine.  So then I gave up and was trying to save a Word doc to an external drive and it wouldn't work.  I checked Prefs and the Users are listed but

  • Any hope for a bad DVD

    i have a dvd w/photos that won't load in my intel iMac or on 2 other macs a mac book and a G5. what's weird is i test every dvd before i erase photos from my computer and store them carefully. any thoughts on how to get the media from this disk? than

  • Vendor Email Address to be populated in the Communication Method of the PO

    Hi, We have a requirement where the vendor email address needs to get populated in the Cover Text of the Communication Method. When the user changes the PO for eg  4500002984, the vendor mail address needs to get populated in the Cover Page Text of t

  • Amber update for lumia 820

    My 820 is showing as updated to the amber software but i am still not able to download certain apps. The appstore message says i need to update to amber????? Any ideas? I'm on an 820 on O2 in the uk.... thankyou