How to avoide entry of same material in  line item in same sales order?

Dear SD Experts,
  In my project client has requirement related to Material in sales order. Client wants " while creating sales order (VA01) that time particular Material  should use one time in the sales order". If  same material used more than one time in item line in the existing sales order  that time system must  give the Error  Massage.
Kindly suggest me how can I fulfill above requirement. 
Regards,
Manzoor Ahmad

Hi Manzoor Ahmad,
This is an interesting requirement  and this cannot be achieved through Standard SAP functionality. We can achive this through custom development in Userexit MV45AFZZ with the help of Developer . The logic has to be while creating sales order , you have created line no 10 with "matl no 1234 " and again trying to use the same material  in line no 30 , then the system has to check all the line items that are created before the line no 30 . This same logic need to be applied for Tcode VA02  also.
Please post the  the solution once implemented.
Thanks and regards
Veera

Similar Messages

  • Sample Material in the 3rd Line item of the Sales Order

    Hi,
    We have configured the system in the sales order as follows.
    1. Commercial Material
    2. Bonus Material.(ie Free Material)
    Now, i want to add the 3rd line item in the sales order as Sample with different Material number. How go about this. kindly let me.
    Regards
    Ravi

    Hi there,
    Enter the material in the sales order & change the item catg manually in VA02.
    But free goods & sample materials are dealt differently..
    Freegoods is entered as TANN item catg along with nornam TAN item in standard order OR.
    But sample materials or free of charge items are processed through different order type FD for eg.
    Even thought the item catg proposed in FD is TANN,, the whole process will not have pricing as TANN items arenot relevant for pricing.
    Regards,
    Sivanand

  • How to combine the line items of 2 Sales orders into 1 delivry

    how to combine the line items of 2 Sales orders into 1 delivry
    and their process, pre-requisites and tcode

    The prerequisites are:
    1) In the customer master sales area data, shipping tab, there is a field called Order combination. u must tick that.
    2) for the two orders, the sold to party & ship to party must be same
    3) both orders must have created from same plant & shipping points
    4) the line items must have same loading grp.
    5) the both orders sheduline line date must be same.
    transaction code for the same is VL04.
    enter the required data and select the order nos to be processed.
    Do reward points if it is useful

  • I want a push button for line items in my sales order entry screen.

    Hi,
    I want a push button for line items in my sales order entry screen.
    How can I do so?
    Thanks.

    Hi Kumar ,
    To have a push buttons you need to first assign a pf-status .
    here a sample code for a push button and its handling :
      set pf-status 'SELECT' .
    at user-command .
      describe table t_lpr lines w_lines .
      case sy-ucomm .
        when 'SELECTALL' .
          set pf-status 'SELECT' excluding 'SELECTALL' immediately.
          do w_lines times .
            read line w_line field value w_check . " INTO W_CHECK .
            if w_check = space .
              w_check = 'X' .
              modify line w_line field value w_check.    "INTO W_CHECK .
              add 1 to w_line .
            endif .                        " IF W_CHECK = ' '
          enddo .
    Thus when you say pf-status say 'select' , Double click on that and you find a screen eher you can select icons and assign a function code to it!
    Hope it helps!
    Much Regards,
    Amuktha .

  • How to create an inspection lot for each line item of the Purchase order?

    Hi,
    How to create an inspection lot for each line item of the Purchase order ?
    In detail if possible.

    Hi
       please check this
    [thread|Create Inspection Lot;

  • How to delete a line item from the sales order

    Hi all,
    how to delete a line item from the sales order for which the production is already happened and it has been delivered. the production order status is DLV.
    Regards
    Kumar

    Hi
    U can do this in two ways one u can short close the order by entering Reason for rejection in VA02 at header level and if yr order is multiple line item order u can enter the reason for rejection in any of the line item which u don't want to deliver.
    This is called short close ( as the qty is not delivered fully).
    Thx.

  • How to delete the line item from a sales order

    Hi all,
    how to delete a line item from the sales order for which the production is already happened and it has been delivered. the production order status is DLV.
    Regards
    Kumar

    Hi Kumar,
    I think you can just delete it in the sales order directly, if you are using make-to-order scenario, then there will be special stock left for the sales order as the production has been goods receipt, you need to use MM transaction move the stock to unrestricted use stock. If you are using make-to-stock scenario, there should be no further problem. If you are using assembly order, please try to reject the sales order item to see if it could fullfill your requirement.
    Regards,
    Rachel

  • How 2 Copy Header & Line Item Text from Purchase Order 2 Out Bound Delivery

    Hi SD Gurus,
    I want to copy header and line item text from Purchase Order to Out Bound Delivery (This is required in Stock Transfer Process).
    I have been able to do successful config. for copying header and line item text from Sales Order to Outbound Delivery but config. doesn't seems to be same for copying text from PO to OBD.
    Is there any way to achieve the same? Can some expert show the way to achieve this.
    Thanks in advance.
    Warm regards,
    Rahul Mishra

    Hi Ravikumar thanks for u quick reply.
    This is wht is currently coded.
    concatenate values to get item text for read text function
       invar3+0(10) = invar1. "PO number
       invar3+10(5) = invar2. "PO line number
       SELECT SINGLE * FROM stxh WHERE tdobject = 'EKPO'
                                   AND tdname   = invar3
                                   AND tdid     = 'F01'
                                   AND tdspras  = sy-langu.
       IF sy-subrc = 0.
         invar4 = invar3.
    reading the text for the document items.
         CALL FUNCTION 'READ_TEXT'
           EXPORTING
             id       = 'F01'
             language = sy-langu
             name     = invar4
             object   = 'EKPO'
           TABLES
             lines    = it_itab.
    I have seen some PO's which have info rec texts in that, which gets pulled by the above code...first thing is its id is F02 which exist in STXH table also there is other text with F01 id, and hence the table it_itab gets both these text hence no pbm.
    but i came across a PO which has only one text which is info rec text with id F05 and is not store in stxh and hence doesnot get pulled by read_text fm. How do i change my cod to get this text which should not hamper other PO's as well.
    As mentioned in above msgs, this F05 could be retrieved by providing object name as EINE.
    anyhelp will be appreciated and rewarded.
    thanks

  • How to Change Item catgegory in sales Order

    Hi all,
    I am creating sales order with reference to sales contract but at the time of sales order we don't have en off stock to deliver to customer , so we have deiced to go for Third party sales process
    But the problem is while creating a sales order with reference to Sales contract the line item of the sales order line item in grad Mode ( Not changeable mode )
    Finally i find out why sales order line item in gray mode Due to Structure Scope Using in item category TAS as D to Explore the BOM In Contract and Sales order  that a reason system gray out sales order line item
    Can any one guide me how sales order line item should be in active mode so i can change the Item category as a TAS third party item category
    Help me regards this
    Thanks
    Rajesh

    Hi all,
    Thanks for replay
    all ready i maintain manual item category in VOV4 the movement i am creating sales order with reference to contract the sales order line item showing in GRAY  mode i cant choose manual item category while i choosing F4 its showing TAS but i cant select that item category because sales order line in gray mode
    and Find out the reason why sales order line item coming in Gray Mode because i am Using Structure Scope D  In Item Category
    to Explore Variant config 
    can any one suggest me how to change the item category
    Thanks
    Ram

  • How to place a delivery block at line item level from Inbound ORDERS IDoc?

    Hi EDI/ABAP Experts,
    Can anyone please tell me how to place a delivery block at line item level from Inbound ORDERS IDoc?
    I tried using exit "EXIT_SAPLVEDA_001'. But there is no LIFSP field in either of XVBEP and YVBEP structures.
    Can you guys throw some light. How to place a delivery block @ line item level on sales order from Inbound ORDERS IDoc.
    Thanks,
    Matt .

    Look into the Include: LVEDAF5A that is the only place where this exit is hit... double click on the Structures and look which structure has billling block field.. and use that..
    FORM CUSTOMER_FUNCTION_IDOC USING IDOC_DATA.
      CALL CUSTOMER-FUNCTION '001'
        EXPORTING SEGMENT = IDOC_DATA
                  DVTCOMAG = VTCOMAG
                  DXMESCOD = IDOC_CONTRL-MESCOD
                  CONTRL   = IDOC_CONTRL
        TABLES    DXBDCDATA = BDCDATA
                  DXVBAP    = XVBAP
                  DXVBEP    = XVBEP
                  DYVBEP    = YVBEP
                  DXVBADR   = XVBADR
                  DYVBADR   = YVBADR
                  DXVBPA    = XVBPA
                  DXVBUV    = XVBUV
                  DD_FLAG_P = D_FLAG_P
                  DXKOMV    = XKOMV
                  DXVEKP    = XVEKP
                  DYVEKP    = YVEKP
        CHANGING  DXVBAK   = XVBAK
                  DD_FLAG_K = D_FLAG_K
        EXCEPTIONS
                  USER_ERROR = 01.
    If you are in ECC6.0  you can also use Enhancement point : INTERPRET_IDOC_ORDERS_01 SPOTS ES_SAPLVEDA. in include: LVEDAF2U

  • How To avoid column heading for only total line in ALV list Display

    Hi,
    How To avoid column heading for only total line in ALV list Display.

    Hi,
    to change colunm header field catlog is built
    look at the example below
    Changing column text headers
    use this to change, hide, or alter the ALV columns
    CLEAR: gt_fcat.
    READ TABLE gt_fcat WITH KEY fieldname = 'TEXT1' " ***
    *TEXT1 is your field name
       ASSIGNING <gtfcat>.
    IF sy-subrc = 0.
       <gtfcat>-coltext   = 'Date Type'.
       <gtfcat>-no_out    = ' '.
       <gtfcat>-tooltip   = 'Date Type Text from IT0019'.
       <gtfcat>-seltext   = 'IT0019'.
    keep seltext to '' if u want to hide
    ENDIF.
    regards
    austin

  • Want to procure material  with reference to WBS and sales order

    Dear all
    If i have assigned account assignment in PO means then while GR my material value is going to consumption. I dont want to book consumption at GR level i want to do consumption at delivery level. Also i want to procure material for particular WBS and Sales order.
    How to process the same. Kindly give some idea.

    Hi
    If you wanna toprocure the material wrt to WBS element or sales order the you have to make use of the Account assignment category P- projects ( That can be WBS elements /network ) And sales order C or any specific account assignment category created by you.
    Example :
    Sceneraio- When you are creating a slea order in SAP by T.code VA01 then at time of saving the SO the system is creation the WBS automatically ( that has to be mapped in SAP) .The Sales order number and the WBS element are  same .When you are cretating PO for  the Material wrt to  this WBS element then the system at time of the GR will be posting the consumption account which is booked to WBS element that in turn against the particular sales order.
    In SPRO - customizing i for the account assingment category P  in the Consumption Value is V
    Which is posted to consumption at time GR. Please  try create new account assignment category
    Consumption Value is E i.e accounting by sales order .
    Regards

  • How could i enter 100 materials in the single line item in the repair order

    Hello SD Guru's
    The below requirement is related repair process.Can you please suggest how i can go head.
    I have a one requirement related to repair process in SAP SD. As of now the the repair order creating for only one material in the single line item. But the requirment is if they returned morethan 100 material from same customer, how to process that in systme prospective and standard SAP.
    The standard SAP working based on single material  for each line item so that the repair indicatior is triggered for that single material only. So how cound i enter multiple materials in the single line item and how could i create 100 materilals in the sigle line item and how could the repair indicatior triggered for that line item which is having 100 materials
    Thanks in advnce
    Thanks
    KV

    Hello Chakrapani,
    Thankyou for your quick responce.
    How it could be possible if it is possible in SAP.
    Can you please suggest how can we achive in this scenario.
    Thanks & Regards,
    KV

  • Material Assessable value in Purchase and Sales order.

    Dear Experts ,
    Case A : How Can we pass on material assessable value from PO to Sales order when Assessable value varies dynamically from one vendor to another vendor for same material.
    For Example :
    Let say we are procuring material X , Quantity 1 from Vendor A at the cost of Rs.1000 and the excise duty on the same will be 10% i.e 100 Rs.
    Same material X procured , quantity 1 from Vendor B at the cost of Rs.2000 and the excise duty on the same will be 10% i.e 200 Rs.
    Now when I create a sales order for two quantity for material X and SP is 5000 Rs. So which value I have to base on for calculating excise Duty and how can we justify for two quantities.
    Case B : I have been to J1id screen and there we can maintain one assessable value but in actual Assessable value is getting varied and using this technique how can we make sure that , Particular vendor stock which is holding XXX and YYY assessable value stock to be picked in sales order.
    Request you all to advice me on the above mentioned requirement.
    Warm regards
    Vijay

    hi
    based on my knowledge ,  your process is job work process, in job work process maintain the this flow,
    first case : please check your sale order customer details , because on one vendor can assign to your customer ,
    goto xd02 , check general data- at control tab, here assign vendor, based on you requirement ,
    will take vendor A stock ,  you assign vendor for you sale customer,
    and you want vendor B STOCK , you can assign for vendor to your sale order customer,
    and also check you vendor details(XK03)  , their is any customer,
    CASE2: TAKE yyy stock  it means ( the second vendor it can assign  you customer), in j1id you maintain the material assemble value , based on date please check, and also check , in j1id at material and  chapter id based , based on you material and chapter id combination , it activate subcontr's  icon check ,
    so please check you xd02 for vendor, xk03 for customer , j1id  assemble value material chapter id subcontr's icon ,
    please try

  • He material is not displayed as valuated Sale Order Stock

    Sale Order has been created and MRP execution is done at MD04.
    The Sale Order is released as Production Order.
    But when I am executing T Code  MBBS I am getting error message syaing
    The material is not displayed as valuated Sale Order Stock.
    Diagnosis
    The system has not found any stock that satisfies the selection criteria entered.
    Possible reasons for this are:
    The material does not exist. Have you entered the right material number?
    Your selection is too restrictive. The system was not able to find any stock that satisfies all selection criteria.
    The stock balance is zero.
    Procedure
    Check all the selection criteria you entered.
    Stock overview has displayed enough stock for material.
    Please adivse me how Material  can be displayed as valuated Sale Order Stock at MBBS.
    Regards

    Hi,
    Check whether the Production order execution is done and any GR has been done against the Order.
    Once the above is done, check in MBBS, the stock will sit in the Valuated SO stock.
    Even wait for any other replies.
    Thanks & Regards,
    Ravi Kumar

Maybe you are looking for

  • RFC lookup in pi7.o by Michael

    Hi all , I followed Michaels Blog for RFC look up. In test tab it shows sucess.The issue is in I get output as <?xml version="1.0" encoding="UTF-8"?><rfc:ZSD_RFC_READ_TABLE.Response xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><IT_ZSCLOC></IT_Z

  • What does "remove target" do in Grid Control?

    I have some targets that got created during agent installation that aren't real databases. I was wondering what removing the target does. Does it just remove the meta data about the target or if the target is a database will it try to delete the data

  • ITunes not syncing meeting requests on Windows

    i just noticed that itunes seems to be selectively syncing what it wants. meeting requests sent by others are not being synced and causing me some pain. i've gone through the troubleshooting steps, removed other add-ins, re-installed software, restor

  • Since upgrade to PHP5, No Table Found when defining Recordset

    I am a high school teacher, and have been using Dreamweaver MX 2004 to maintain our site since 2004 (our budget won't buy me a new version anytime soon). I have taught my students how to do basic queries using Dreamweaver by going to the Application

  • I can't hear sounds from my ipad speaker

    I just bought Ipad mini last 2 weeks....since I have bought ...I can not hear sounds from speaker. It always shows "headphone" mode....Why? Technician tried to restore but not work....What is your suggestion? Thank you.