Item should not duplicate in sales order form in line tab ..

Hi All,
Not very sure this is the right forum for this if not please tell me the correct forum to post this.
We have a requirement(11.5.9) which we have to achieve it using custom.pll, as I am very much new to use it need help on this.
In Sales Order form once we enter in Lines Information TAB,
For example we will enter Item 'ABCD' at Line 1.1 then again at Line 2.1 if I try to enter the same item 'ABCD' it should pop up a message saying "Item Already Entered" once we press Tab on Ordered Item Field.
If we enter a different Item it should take as usual.
I will appreciate if some body posts the code for the same which we can do it using CUSTOM.pll
Thanks in Advance
Devender

If you are in the WHEN-VALIDATE-ITEM trigger, you cannot navigate back through the list of already entered records (especially if record you are in is not complete). It does delay the validation, but duplicate checks are typically done by querying the database on both WHEN-VALIDATE-ITEM and PRE-INSERT/PRE-UPDATE triggers. This means when entering a new Sales Order, you won't be warned that Line 2 has the same item as Line 1 until you save, but there are no navigation required to avoid issues such as trying to leave the current record before it is valid.

Similar Messages

  • Tax classification screen for item level not appearing in sale order under Billing Doc tab

    Hi Expert
    while creating sale order Tax classification screen is not appearing for item level under Billing document tab.
    Tax classification for customer and Material has already maintained. Tax classification screen is not appearing for USER but same time from our USER ID we can able to see that screen.
    please help in above issue. is this related to Authorization issue or other thing need to check.
    Regards
    Pash@SD

    Hi,
    As per standard in Sales Order Document you will be able to see the Tax Classification fields in Billing Tab at Header level (for Customer Tax Classification) and at Item level for (Material tax Classification). The values from Customer M<aster is not populated at Header level as per standard but you can populate the value by using the Exit. Material tax classification populated from material master as you can see that at item level.
    If for one User you are able to see and for other you are not able to see, kindly check first whether both are using same customer and material, and if yes, then check the User Exit.
    Thanks and regards,
    Amitesh Anand

  • Item category not changeable in sales order

    Hi
    I have a material where the item category is not changeable in the sales order after you have pressed 'enter' after the material number. It is a bundle material number, with a BOM (structure scope 'A') - does this mean that the item category is greyed out for change?
    It is causing a problem because to select the manual item category in item category assignment, you have to change it before you press enter (and when you do that it only gives you a full list of item categories rather than the ones you can select for the assignment table).
    Jon

    this is standard sap !
    the reason is that if you change something that has relations with other object then problems can raise.
    You cannot do anything for this but you can make a user exit at your own risk that 'opens' up the field:
    the exit looks like this:
    MV45AFZZ
    FORM userexit_field_modification.
      CASE screen-group2.
        WHEN 'LOO'.
          IF screen-name = YourItemCategory AND xvbup-gbsta = ' '.
            screen-input = 1.
            MODIFY SCREEN.
          ENDIF.
      ENDCASE.
    ENDFORM.                    "USEREXIT_FIELD_MODIFICATION
    ROberto

  • Free goods should not determine in sales order

    Hi,
    I have maintained the free goods determination in SAP CRM with validity period in T Code: /sapcnd/gcm  and have created a quotation for the material which has a free goods validity.The free goods are determined at quotation level, when i was converting the quotation to the sales order the free goods validity period got expaired.In this case the free goods are should not get determined in the sales order.But when i test it in IDES system the free goods are getting determined in the sales order eventhough free goods validity period expaired.
    Can any one tell me how to restict the free goods in the sales order level when the validity period expaired at the time of sales order create.
    Regards
    Nagaraju

    Hi ,
    You can use the BADI CRM_COPY_BADI. Here you can implement the check for products which are free and have expired to be excluded from copying from quotation to sales order.
    Regards
    Kavindra

  • Condion Type "VPRS" should not appear in Sales Order, Inquiry, Contract

    Hi Gurus,
    Normally when you create Sales Order/Inquiry/Contract,  in the Condition Tab VPRS Condition Type will appear and show the cost price of Materail from the Material Master.
    My Client requirement is, VPRS Condition type has to be calculated as "Statistical" Contion but IT SHOULD NOT APPEAR IN THE CONDITIONS TAB IN THE SALES ORDER/INQUIRY/CONTRACT.
    Thanks,
    Bala

    hello, friend.
    try sapnote 105621.  this is about restricting view of condition types (i.e. vprs) in sales orders by creating anauthorization object for cond types..
    i wish to discuss our experience with this, as we had the same business requirement.
    first, we simply deleted vprs from the PP.  this did not affect financial accounting, until the client decided to implement std cost estimates.  we had to bring back vprs.
    now, we did the sapnote, which required joint efforts among SD, ABAP and BASIS.  although we were able to restrict view of vprs in the cond tabs at itm level, this was still visible at header level.  also, a resourceful data encoder can always find ways to view the same in, for example, the document flow or materials movement data.
    however, try this and maybe you will get it right.
    regards.

  • Item text not populating in sales order

    Hi All,
                 I have a scenario where in we get the sales order created through a inbound 850 idoc .
    The trading partner sends the sales order information which gets through GENTRAN and gets posted as inbound idoc in SAP .
    The problem here is that ,there are segments with values for item text in the idoc ,but  the item text is not getting carried over to  the sales order which is getting created because of this idoc.
    There is no problem with the header text and it is present both at the idoc as well as the sales order level.
    I have checked  the configuration for text determination and everything looks fine .
    Please let me know has anyone come across a scenario like this .This is important as our EDI is getting failed when an outbound 810 is sent from SAP for the simple reason that there is no item text .
    Thanks
    Sridhar

    Hi,
    You can try the following;
    1) Try to run the program RVTEXTE in SE38 or SA38. Enter text object as VBBP, and X* as text name.
    Then in the function enter the value A and test run.
    If you find any values only with X values like XXXXXXXX, then go back and re-execute the program to delete the entry with the  selection criteria X in the function. This program is used to delete any unwanted text that is sticking in the text tables. If this does not solve, then
    2) You can post this in the ABAP forum to get some fast response from the people who can come across the situation. If found no response,
    3) Check the OSS notes, if no information available, then
    4) Put a service note to SAP.
    Regards
    Edited by: Shiva Ram on Sep 11, 2008 10:38 AM

  • Item configuration not possible in Sales Order

    Dear friends,
    Our requirement is as follows:
    I have created a configuration material and assigned MTS strategy (10) in MRP3 view.
    As I am carrying out cost estimate run and SAP does not allow to calculate std cost for config material, I assigned same material in MRP3 view as variant. This allows std cost estimate run.
    Now while creating sales order, system is showing configuration screen in display mode.I am not able to input characteristics in Sales order.
    Is there a way out??
    I have changed the requirement class relevant to strategy 10 and put configuration allowed tick.
    Additional Information:
    1. If I don't assign the material in MRP3 view, sals order config is allowed. But then I could not run the cost estimate.
    2. If I assign account assignment category M or E in requirement class, sales order configuration is possible. But then sales order becomes MTO, which is not accepted.
    Thanks in Advance,
    Avinash

    usuaully, config material, business follows MTO strategy,
    Good Question. Let me explain why MTS with configuration.
    We always try to produce high quality product - Char Fe content should be 90%. Because this product will always have higher demand and higher price.
    But as ours is a process industry we end up producing FE content 80 to 90 % (about 40 % of our material is between 80 to 85 %Fe content). FG is stored in batches according to Fe content.
    Now I take orders from customers for the low Fe content produced with reduced rate. The negotiated Fe content I want sales team to put in Sales order configuration. That is the only reason I want the chars editable in SO.
    Even customer asked for low Fe content, I can supply high Fe content and take additional amount according to contract. This is how the industry works. Basically customers are putting orders for low FE, as high Fe material is not available in the market.
    As I will always try to produce high quality product, the scenario can not be MTO. But I want to mention customer demanded Fe content in Sales order so that I can supply him right batch from yard.
    Regards,
    Avinash

  • Item should not invoiced more then order value

    Hi my all friend and Laxmi
    I have one requirement where i want a item can not invoiced more then there order item value
    Please suggest me with your valueable suggestion

    Hi,
    T. Code: VTFA (Order-Bill Copy-Control Settings)
    Select Target Bill Doc and Source Sales Doc.
    Click: Item (Left Hand tree)
    Select Item category and Double Click.
    There is one Field: Billing quantity
    Please maintain appropriate selection (My suggestion "A" - Order to Bill ; else "B", if Delivery to Bill)
    Best Regards,
    Amit

  • Which LOV is attached to ordered item on sales order form

    Hello,
    I want to change the query of ordered item field on sales order form in Line items tab.
    I found that this field is using KFF as its LOV. KFF is "System Items" in Inventory application.
    But when I see the value set attached to the segment it is NONE type.
    My question is how can a NONE type of value set contain values

    Hi Joel,
    The problem may be with this line of code:
    int row = lineItemMatrix.GetNextSelectedRow(0, BoOrderType.ot_RowOrder)
    because this will get the row that is currently selected, however the menu will delete the row that currently has focus. You need to declare a row variable outside the scope of the events and set it on the got focus event.
    Sorry this example is in VB but you should get the idea:
    Dim Row As Integer = -1
    Private Sub Application_ItemEvent(ByVal FormUID As String, ByRef pVal As _
    SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles _
    Application_ItemEvent
        Dim Form As SAPbouiCOM.Form = Application.Forms.Item(FormUID)
        If Form.TypeEx = "139" And pVal.ActionSuccess = True And pVal.EventType = _
        SAPbouiCOM.BoEventTypes.et_GOT_FOCUS Then
            If pVal.ItemUID = "38" Then
                Row = pVal.Row
            Else
                Row = -1
            End If
        End If
    End Sub
    Private Sub Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef _
    BubbleEvent As Boolean) Handles Application_MenuEvent
        Dim Form As SAPbouiCOM.Form = Application.Forms.ActiveForm
        If Form.TypeEx = "139" And pVal.BeforeAction = True And pVal.MenuUID = "1293" _
        Then
            If Row > -1 Then
                If ItemIslocked(Form, Row) = True Then
                BubbleEvent = False
                Application.StatusBar.SetText("You cannot delete a locked row.", _
                SAPbouiCOM.BoMessageTime.bmt_Short, _
                SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                End If
            End If
        End If
    End Sub

  • Stock Should not block in sasles Order,Sales Order stock should not Reserve

    Stock should not reserve againest sales order, system should show the status confirm quantity or not,
    How to Configure this for this scenario?

    HI,
    To map this scenario u hav to maintain the config settings for TOR and avaliability check for that document type and material and if u want to see the status confirm quantity or not use tcode MD04 or table VBBE is useful for u.
    Regards,
    kishore.
    Edited by: kishore gopala on Feb 26, 2008 6:16 AM

  • Internal Item Number " Items not appearing in Sales order Line form

    Hi,
    We are in 11.5.7 vis. While choosing an item in the Sales order form, only the line items with type 'chargemaster' and 'vendor' appear. The items with type 'Internal item number' doesn't appear anymore. The item validation organization is set to the Master Inventory organization.(V1).
    When i checked the pricelist creation screen, with product attribute - item number, the product value field is empty and greyed out for all the items.
    I compiled the system Items flexfield. I tried adding a new product to the pricelist with product attribute-item number,product value - A000 .All the items (with their internal item numbers) appear while choosing the product, but the product description doesn't default and the field remains empty and greyed out.
    After saving the item in the price list and if i query for this particular item, the product description appears but the product value now becomes empty and greyed out.
    Any explanation as to to why this is behaving so and to rectify the same?
    Regards,
    Nithya

    Hi,
    Check item category determination (VOV4) whether the item category is determine with the combination of  material item
    category group,untill the material being read by the system it will not give the line item no,and also check at VOV8 for your doc
    type Item no.increment Ex: 10, is maintained or not ,if not maintain and try.
    Regards
    Ram

  • Change in an LOV query of Sales Order Form not working

    Hi,
    I wish to change the the Order Type (in the Sales Header) displayed in the Sales Order Form when viewed from a particular Responsibility.(11i Instance)
    To be specific only certain order types should be displayed in the LOV when the User tries to create Order from that Responsibility.
    In that process I created an FP with Action --> Builtin -->Create Record Group From Query
    Then in Property-->Object Type-->LOV and Target Object -->ORDER_TYPE Value-->Name of my Query Group
    I downloaded the Sales Order Form and modified the Query of the Group keeping the columns selected and the view used same and added in the Group I created.
    But it didn't work out.
    I tried out by changing my Target Object to SRV_ORDER_TYPE and its corresponding query from the Oracle Form.
    But still it didn't work.
    Please tell me where I'm going wrong.
    Am I not choosing the correct target record group LOV?

    Hi Robert,
    I have successfully accessed a matrix using Visual Basic .Net. It has been quite a challenge while I was at it.
    One important thing to understand is that (unless you access the datasource) in order to access a particular control in a matrix object, this control needs to be visible and enabled. It is like simulating a user accessing the matrix via GUI... if a control is not enabled, you cannot access it (as said via control). That might explain question 1.
    Short sample on matrix handling is here:
    http://www.itwiki.net/ow.asp?SboHowToReadFromAndWriteIntoMatrix
    <b>Q2 - Cell count:</b>
    I have personally never used the Cells count method. It should always return the number of rows. My only guess here is that you are using an old reference on the matrix object in which the rows are not there yet.
    Dim oMatrix As SAPbouiCOM.Matrix
    Dim oColumn As SAPbouiCOM.Column
    Dim oEditText as SAPbouiCOM.EditText
      oMatrix=YourSboForm.Items.Item(38).Specific
      oColumn=oMatrix.columns.item(strColumnname).specific
      oEditText=oColumn.items.Item(1).specific
      Msgbox(oEditText.String)
    The above code should get you the first cell of the first row of the given matrix.
    HTH Lutz Morrien
    P.S.: If you need any more sample code, check with the SAP matrix sample or send me a mail (adress see Http://www.itwiki.net)

  • Sales order has 52 line items but in vbep some are not available

    Hi,
    what could be the reason for the problem;
    Sales order has 52 line items but in vbep some are not available...
    and some has 2 etenr as '0001' and '0002', why 2 lines in vbep for 1 posnr of order.
    Thanks.
    deniz.

    Hi,
    It is possible when some of them dont have valid Schedule lines.
    If they have valid schedule lines some confirmed qty should be available.otherwise we cant find them in VBEP table.
    Pls check by going to sales order  whether Sch.lines are valid or not.
    This you can check Thru
    VA03-->provide Sales Order number -->Select any line Item-->Menu item Goto-->Item-->Schedule Lines
    Thanks
    Parvathi

  • Production Order quantity should be same as Sale order line item qnty

    Dear experts
    we have one user requirement as such
    Production Order  line item quantity should be same as Sale order line item qnty.
    suppose for SO Line item he is ordered 100mts,Production of this paricular Line item should also be 100mts it should not be more than this,How to satisfy his requirement.
    Regards
    Sandeep patil

    Hi,
    If the Manual intervention is eliminated for processing of the data then the SO Line Item Qty will be equal to Production order Qty.
    Background Jobs for MRP Run, Planned Order to production order cretaion will help you to manage this, along with effective Authorization Management.
    Regards,
    Siva

  • Price is not changing in sales order in line item

    dear all.,
    price is not changing in sales order on line item,error comes "CHECK ORDER STRUCTURE.
    Regards,
    Praveen

    Dear
    You can go into VA03 --> Menu --> Environment --> Partner --> display credit account (if the data is maintained, than the system springs into FD33). Another way is to check if the sales order type is assigned to credit management in the transaction OVAK (should be D for aut. credit management).
    Did you enter the pricing date , prcing condition and press enter , so  that it should pick the correct price?
    Check this and come back
    Regards
    JH

Maybe you are looking for