Delivery quantity need not be exceed, After creating STO-PO in TCODE  VL02N

Hello Gurus,,
Greetings!!!!
Tcode- VL02N...
While we do PGI / SAVE after the changing the delivery quantity in Tab "Picking", it need to be checked that delivery quantity not be exceed then quantity entered while STO PO has been created for that particular PO.
Means, in transaction VL02n  when we changes the Delivery quantity of tab "Picking" it should be equal or less then PO quantity,...
When user put more picking quantity then it shows error that "it has been exceed" and it is working properly as well......
But Problem I do have that user increase the Delivery quantity and put the picking quantity in terms of it so system is accepting this things..... but the Stock transport Order (STO) of that particular Purchase Order quantity is same as when created....
And the requirement is that it is not increased then STO PO quantity.....
So please please help to find out this solution whether this is solved using  BAdI or USER_EXIT....or any other solution please gurus ....I am facing this problem since long but can not find the solution ....I dont have that much experince in SAP-ABAP

Hi,
See Note 415716 - User exits in delivery processing. I think that USEREXIT_READ_DOCUMENT can work for your requirement. The question is fix a good filter to avoid problems in performance. For instance:
CHECK ylikp-lfart = 'NL'.
CHECK  t180-trtyp = 'V' .   "ONLY CHANGE
and so on.
Set the check:
IF xlips-lfimg > ylips-lfimg.
  MESSAGE e(xxx)yy with....
ENDIF.
Remember check the UoM. If you don't have experience with ABAP, look for an ABAPer.
If you don't have experience with userexits, please read carefully notes 381348 Using user exit, customer exit, VOFM in SD and 178328 Problems due to incorrect user exits in SD.
I hope this helps you
Regards
Eduardo

Similar Messages

  • Delivery quantity should not exceed order or confirm quantity

    Dear Friends,
    How to handle a below scenario,
    Sales order is for 100 Tons.Partial delivery is allowed.
    Now delivery quantity should be equal to 100 Tons.Delivery quantity should not exceed order quantity.
    I mean delivery quantity must be equal to order quantity.
    Thanks in advance.
    Regards,
    Shrikant

    Dear Ram/Ramnath,
    I have maintained the B for Check Overdelivery.Transaction code used is 0vlp.Item catg is TAN
    Check Quantity 0 is A
    Check Minimum Quantity is A
    Now I ahve created a Sales Order for 10 Tons.
    Created two delivery notes of 4 tons and 8 tons respectively.
    While creating second delivery for 8 tons I do not get any error message.
    Transaction code VOV7.Here completion rule is blank as it is relevant for Quotation and contracts.
    Is there anything need to do?
    Thanks in advance.
    Regards,
    Shrikant

  • Delivery quantity should not exceed order quantity

    Hi,
    in delivery delivery quantity should not exceed order quantity what should i do
    please let me now what should i do it is urgent
    Thanks in advance
    Srinivas

    Hi,
    You may consider an enhancement with a user exit:FORM USEREXIT_SAVE_DOCUMENT_PREPARE in include MV50AFZ1.
    Here you can put additional conditions to check the delivery qty and also can put a message for the user to correct the delivery qty in case he has manully increased it.
    Please reward points if this helps.
    Hemant

  • HT204053 why do i need to register providing after creating my apple ID if not i cant have any download on my ipad

    why do i need to register providing after creating my apple ID if not i cant have any download on my ipad

    Hey exlondoner,
    If you are going to sell or give away an Apple product such as your MacBook Pro, you may want to follow the steps in this article -
    What to do before selling or giving away your Mac - Apple Support
    Thanks for using Apple Support Communities.
    Be well,
    Brett L 

  • Error:An item with no delivery quantity is not permitted.

    Hello,
    We are receiving an error:
    Only 0.00 UNT of material XXXX available.
    An item with no delivery quantity is not permitted. Item will be deleyed.
    This material has the following details:
    Material Group: Asset
    Material Type: VKHM
    Ref. Mat Type: HAWA
    Item Cat Grp: NORM
    Industry Sector: A - Plant engin./ construction
    I believe asset is not quantity based. My questions are:
    1. Why is it when creating delivery, quantityis necessary. However,this was configured as asset?
    2. How can i put/add stock in asset?
    - In Define Attributes for material types, i searched for VKHM, and it was already maintained.
    - Area for quantity/ value updating: both were ticked: By Valuation Area for Quantity and Value Updating.
    - When i go to the folder on the left: Quantity/Value updating; Quantity Updating ang Value Updating were both ticked for Valuation area: 0001, material type: vkhm.
    - i also tried to tick Quantity Updating and Value Updating for valuation area (plant name). Butnothing happens.
    Thanks in advance for all of the help.

    In this case, the reason why the delivery can not be created due to the first error:
    Only 0.00 UNT of material XXXX available.
    This error has number VL150, which means there is no avaiable stock when you create the delivery. To check how many
    avaiblable stock you have, you need to check it in transaction CO09. usually for delivery, you should use check rule B.
    In co09, if the ***. ATP qty is 0 or negative, you will get above error and the delivery can not be created. For more information regarding this error VL150, check note 153355 and 1481133.

  • Billing document should not be cancelled after creating return sales order

    Hi All,
    Billing document should not be cancelled after creating return sales order with reference to billing document. Please suggest configuration settings on the same.
    Sudheer.

    Hi,
    In SAP, when the sub-sequent document is existing , we can not cancel the preceeding document. Therefore if you want to cancel the billing document you need to calcel the documents which are created with reference to that.
    Check and confirm.
    Regards,
    Ravi Duggirala

  • An item with no delivery quantity is not permitted. Item will be deleted.

    Sales order created, the schedule lines are confirmed for the delivery date and qty
    order is not blocked for delivery
    order is complete
    still while creating delivery get a error message
    An item with no delivery quantity is not permitted. Item will be deleted.
    Message no. VL367
    stock checked through MMBE that is also available in unrestricted use
    kindly guide

    Check this thread
    [Re: Mesaage : while creation of delivery : An item with no delivery quantity|Mesaage : while creation of delivery : An item with no delivery quantity .);
    In MMBE though the stock shows under Unrestricted column, it also includes delivery created and saved without doing PGI.  So check in MD04 any delivery reference is flowing.
    thanks
    G. Lakshmipathi

  • Error as An item with no Delivery quantity is not permitted. Item will be d

    Hi,
    When i process VL01N transaction i got below metioned error,
    Error as An item with no Delivery quantity is not permitted. Item will be deleted for SD doc
    Note:
    I have checked in MMBE and observed Sufficient stock is there.
    I have checked in MD04 and observed that for partcular S/O stock has been updated correctly.
    I have checked the PO and observed GR has been made sucsefully for the required qty.
    Apart from these if i execute VL01N still i got above highlighted error.
    can anyone please guide me to resolve this issue.
    Cheers,
    Kumar.S

    Hello Dear,
    Could you please let us know what solution have you done to fix the Error as An item with no Delivery quantity is not permitted error. We are facing the same issue.
    It would be great if you please write back to me ..
    Regards
    Rahul Chitte

  • Delivery Quantity is not equal to picked quantity.

    Hi all,
    I am having a issue related to VL02N VL01N.The issue is when we save the delivery which has materials with batch. and the batch quantity is less then the delivery quantity the system allows you to save the delivery with wrong delivery quantity that is the header quantity . and invoice is generated for the entire delivery quantity, Which is wrong.
    The delivery should be saved with sum of all the batch quantity of the materials.
    Could any one tell me how to save the delivery with the correct quantity.

    Hi ,
    Try adding the quantities of a item of the delivery and move this final quantity to the item quantity field  . Perfrom this in save_document_prepare form exit of include MV50AZ1....
    Hope this will solve your query... Award points if found useful...

  • Need FM or BAPI to create Notification Order (Like TCode IW34)

    Hi PLM Expert,
    Can you give hints to create Notification Order (Like TCode IW34) from FM or BAPI?
    Thanks in advance,
    Gilang

    Hello Raj and other experts, I need help creating a a maint order referencing notification. I am using method CREATETONOTIF to create Order refer notification. I am successful in creating order however bapi is creating two orders. One without reference to notification and second one with reference to notification. Please note i have to use create header object type and method 'Create' as well.
    If i get rid of first method below it_methods - Object id header & Method create so i only execute method called CREATETONOTIF , i get a error on "Enter another operation number" from bapi . Your help would be greatly appreciated. I am stuck on this error now.

  • Template reference not getting reflected after Creating WSP file of SubSite in SharePoint Online ( Office 365)

    Hi all,
    I am following below Steps:
    Going to Library Setting.
    After Click on Some Custom Content Types in content Type section.
    Click on
    Document
    Set settings in Settings.
    Brows and Upload Document Template in “Default Content” Section.
    Click OK.
    After Uploading Default Template I want these uploade template in my newly created Sub site  (After saving Site as Template) which is created with wsp.
    When i  create new subsite i am not getting Default Content which have brwsed and Uploaded in Contenten Types.
    Please Give some idea regarding below Screen Shot.
    Thanks In Advance. Your help will be heighly appreciable.
    For example i have given Document Link from any Library/List but not getting that link in new subsite which was created  with wsp.
    Thanks In Advance. Your help will be heighly appreciable.
    Thanks,
    Vivek Pandey

    Hi Christoph,
    From the article you mentioned, it needs add JPG file type to Search Service Application, which was not supported for SharePoint online.
    I tried to add Picture content type to normal document library and tested the issue, it still displayed as item in Search results.
    However, if I created a Picture Library and add Document content type to it, both image and document can be previewed in search result.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Payer need to be change after created billing document

    Hi all,
    They created some orders..... orders-delivery-billing documents created. now we came to know the payer is wrong but the documents are not relased to accounting..... how can i do if issue like this....if i change  the payer in customer master?
    Pls advise on this....thanks in advance.
    Thanks,
    Kumar

    Hi,
    Changing the payer in the customer master will not be of any use if the documents are already created. It will be helpful for only the documents that are created after change is made in the customer master.
    For the documents already created you can do one of the below.
    a. Cancel the existing billing documents using VF11. Reverse the delivery using VL09. Then delete the delivery. In the customer master add the new payer. Go back to the sales order and change the payer. Now, again you follow the regular sales process of delivery and billing and then release the doc to accounting. It should work.
    b. Release the existing document to accounting with the wrong payer. Now, create a credit memo request and credit memo for the wrong payer. This will nullify the accounting. Now, go to the customer master, put in the new payer. Now create a new sales order matching the old sales order. (Please note that you may have to use the same PO number in this case). This will take a longer time and customer should accept the new SO number, delivery number and the invoice.
    c. Changing the table entry using the ABAP program in the tables (VBPA) . I would not recommend this as this will have a lot of effects and system may start performing inconsistently.
    Hope this helps...
    Thanks
    Mukund S

  • Need help for getBindingContext() after Creating Entry.

    Hi Developers,
    I am Creating a entry using Model.create() method in my 1st View.
    oModel.create('/ProspectSet', oEntry, null, function(oData,oResponse){
       oEvent.getSource().getParent().close();
       sap.m.MessageBox.alert("Prospect No " + oData.Partner + " created successfully");
        },function(oError){
        oEvent.getSource().getParent().close();
        sap.m.MessageBox.alert("Failed to create Prospect");});
    Now after successfully creating the entry here I need to navigate to my 2nd view and display the Entity which was just created. I don't know how to get the binding context of the newly created Entry.
    I am using this.nav.to("Detail", context); for Navigation.

    Hi Amit,
    You can use the function drill down ,if you want to drilldown based on product then based on location ,then the logic should be like this
    Drill Down on Product
    DRILL_DOWN( '9AMATNR' )
    Drill Down on Location
    DRILL_DOWN( '9ALOCNO' )
    Scheduling the job in background
    1)Create activity using the transaction /n/sapapo/mc8t,there you define the macro which you going to execute in background and planning book and dataview which having the macro.
    2)Create background job using /n/sapapo/mc8d,there you can define the activity which you created recently and select the aggregation on which you are going to execute the job.
    3) Go to SM36 ,there you the program as /SAPAPO/TS_BATCH_RUN then give the background job name as variant.
    Execute the job,it can be immidiate or periodic.
    Please let me know if you need more information.
    Regards,
    Prabhu

  • Delivery completion indicator not getting checked after GR against STO

    Hi All,
    I am facing the following issues while posting GR against the Stock Transport Order -
    Issue No. 1 - While posting GR against Outbound Delivery, I am receiving Error M7865
    Issue No. 2 - While posting GR against Stock Transport Order, the deliver completion indicator is not getting checked in PO even if the GR qty. is same as OBD qty.
    Can someone help me to come across these issues.
    Thanks,
    Pankaj

    Hi,
    Generally, in  case of Stock Transport Order, Goods Receipt is to be done w.r.t. Outbound Delivery only. Otherwise, it will not update Delivery Completion and also will not update the Sales Document Flow as well as Po History properly. So, better try to resolve Error M7 865 and do GR w.r.t. OBD only.
    To rectify error M7 865, check following;
    Diagnosis: -
        The goods receipt for the delivery cannot be posted.
        The error according to the error code:
        1.  The delivery does not exist.
        2.  The delivery type is unknown.
        3.  The delivery is not goods issue posted.
        4.  There are no delivery items.
        5.  The receiving plant could not be determined.
        6.  The delivery items have already been goods receipt posted or contain zero quantities.
        7.  Goods receipt(effect)movement type to goods issue movement type could not be determined.
        8.  It is not currently possible to block the delivery.
    Procedure: -
        Error code 1      : Check your entry.
        Error code 2,3,4,6: Check the delivery and its document flow.
        Error code 5      : The delivery must be related to a purchase order or the customer must be a retail business.
        Error code 7      : Check the settings for your movement types.

  • OC4j10.1.2CMP bean not updating field after creating a record in the table.

    I have a simple table in Oracle 9i database:
    SQL> desc temp_tbl
    Name Null? Type
    OPER_ID NOT NULL NUMBER(5)
    OPER_STS_TM_DT NOT NULL DATE
    OPER_STS_CD NUMBER(2)
    First 2 fields are the Primary Key. last field is standalone. No FK references.
    I generate a CMP bean using Jdeveloper 10.1.2 for this table.
    Then I try to insert a record into this table and update the oper_sts_cd field.
    Problem: CMP inserts the record correctly, but does not update the field: oper_sts_cd, even though trace indicates that the field has been updated.
    ( shown in pgm below).
    THE SAME CODE WORKED in OC4J9.0.4 Container.
    Since we upgraded to 10g Rel2 ( OC4J10.1.2) , it does not.
    Code:
    Session Bean:
    package model;
    import java.rmi.RemoteException;
    import java.sql.Timestamp;
    import java.util.Calendar;
    import javax.ejb.CreateException;
    import javax.ejb.FinderException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    public class SessionEJBBean implements SessionBean
    public void ejbCreate()
    public void ejbActivate()
    public void ejbPassivate()
    public void ejbRemove()
    public void setSessionContext(SessionContext ctx)
    private TempTblLocalHome getTempTblLocalHome() throws NamingException
    final InitialContext context = new InitialContext();
    return (TempTblLocalHome)context.lookup("java:comp/env/ejb/local/TempTbl");
    public void createOperation() throws RemoteException
    try
    TempTblLocalHome tempHome = (TempTblLocalHome) this.getTempTblLocalHome();
    System.out.println("Succcess loading Temp Entity EJB");
    Timestamp currDate = new Timestamp(Calendar.getInstance()
    .getTimeInMillis());
    TempTblLocal tempLocal = tempHome.create(new Long("1294"),currDate,new Long("1") );
    System.out.println("created Temp Op=" + tempLocal.getOperId() + " date=" + tempLocal.getOperStsTmDt() );
    //tempLocal.setOperStsCd(new Long("" + 1) );
    Long stsTypeCd = new Long("1");
    System.out.println("Putting long value in db=" + stsTypeCd + "-");
    tempLocal.setOperStsCd(stsTypeCd);
    System.out.println("Stored value in db=" + tempLocal.getOperStsCd() );
    catch( NamingException ne)
    throw new RemoteException(ne.getMessage());
    catch(CreateException ce)
    throw new RemoteException(ce.getMessage());
    ejb-jar (generated)
    <entity>
    <description>Entity Bean ( CMP )</description>
    <display-name>TempTbl</display-name>
    <ejb-name>TempTbl</ejb-name>
    <local-home>model.TempTblLocalHome</local-home>
    <local>model.TempTblLocal</local>
    <ejb-class>model.TempTblBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>model.TempTblPK</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>TempTbl</abstract-schema-name>
    <cmp-field>
    <field-name>operId</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>operStsTmDt</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>operStsCd</field-name>
    </cmp-field>
    <query>
    <query-method>
    <method-name>findAll</method-name>
    <method-params/>
    </query-method>
    <ejb-ql>select object(o) from TempTbl o</ejb-ql>
    </query>
    </entity>
    <container-transaction>
    <method>
    <ejb-name>TempTbl</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Supports</trans-attribute>
    </container-transaction>
    orion-ejb-jar.xml (generated):
    <entity-deployment name="TempTbl" data-source="jdbc/Marcs_DS" table="MARCS.TEMP_TBL">
    <primkey-mapping>
    <cmp-field-mapping>
    <fields>
    <cmp-field-mapping name="operId" persistence-name="OPER_ID" persistence-type="NUMBER(5)"/>
    <cmp-field-mapping name="operStsTmDt" persistence-name="OPER_STS_TM_DT" persistence-type="DATE"/>
    </fields>
    </cmp-field-mapping>
    </primkey-mapping>
    <cmp-field-mapping name="operId" persistence-name="OPER_ID" persistence-type="NUMBER(5)"/>
    <cmp-field-mapping name="operStsTmDt" persistence-name="OPER_STS_TM_DT" persistence-type="DATE"/>
    <cmp-field-mapping name="operStsCd" persistence-name="OPER_STS_CD" persistence-type="NUMBER(2)"/>
    </entity-deployment>

    >
    Srini.r wrote:
    > I have added a new field in IT0006
    > Srini R
    Have you done this through PM01?
    ~Suresh

Maybe you are looking for