Auto fill the goods' storage location in sales order item

Hi,
I have a issue,When I use VA01 to create a sales order,I want to let the system auto fill the material storage location when I enter the material no. for the sales ITEM.
How to do?I want use the userexit to do,the program 'MV45ATZZ' but I couldn't find where I can add my  code,Whether have other better way to do?
Thanks

Sorry,I use this user exit program 'MV45AFZZ'.
source code like below,
FORM USEREXIT_MOVE_FIELD_TO_VBAP.
VBAP-zzfield = xxxx-zzfield2.
*{   INSERT         KHDK900234                                        1
      If SVBAP-TABIX = 0.
     SELECT SINGLE LGORT FROM MARD INTO VBAP-LGORT
                          WHERE MATNR = VBAP-MATNR .
      endif.
*}   INSERT
ENDFORM.

Similar Messages

  • Storage Location at Sales Order level

    Hi Experts,
    I have an issue here. In our system, the storage location is determined at sales order level and for that a code is written in the exit MV45AFZZ.
    In the normal sales order, the storage location is determined as expected but when the return sales order is created taking the reference from the original sales order, for one type of material the storage location in the return sales order is same as the reference sales order (as required) but for one other type of material the storage location in the sales order is not same as in the reference sales order but some other storage location.
    Could you pls help in finding the possible reasons for the same.
    Thanks,
    Harsh Gupta.

    so can that have some impact
    As you may be aware through standard settings, storage location in sale order will not be fetched automatically and as you said above, with an exit, it is fetched into sale order.  Hence, you need study that exit again as to why it is triggering a different plant when a return order is created.
    thanks
    G. Lakshmipathi

  • New Storage location - Old Sales orders

    Hi experts
    We have created 2 new storage locations and moved materials into them. This has given us a problem regarding our sales orders where the item lines point to the old storage locating and not the new. Is there a smart way to change open sales orders so they point to the new location or do we only have the hard way, and do this manually for each open item line ?
    Kind regaards
    Jens B Olsen
    SKOV A/S
    Denmark

    Try tcode MASS (object type: BUS2032) to update the Sloc in the sales orders.
    Thanks
    Swagat

  • MD04 - filter out storage location or sales order stock

    Hello,
    we are using sales order stock in a specific storage location. Is it possible to filter it out of the stock/requirements-list (MD04). I saw filters in customizing but don't know what to select.
    thanks

    Hi David,
    For the Transaction MD04 if SAP provides the Screen Exit this can be done.
    Please check with your ABAPER wheather for this Transaction any Screen Exit is Existed
    or not.If Existed we can do this if not cant do this.
    Please Reward If Really Helpful,
    Thanks and Regards,
    Sateesh.Kandula

  • Storage loc on sales order.

    Hello All,
    Can you all suggest me how to customize my standard sales order so that i can determine storage location on sales order level?
    Where exactly i need to put screen exit?
    Thanks
    Rahul

    Hi,
    Default storage location determination is not possible at order item level through configuration.
    Please use the following User Exit:
    MV45AFZB USEREXIT_SOURCE_DETERMIN.
    Hope it solve your problem.
    Regards,
    A.Govin

  • Sales order item quantity is not copied to delivery order quantity

    hi,
    i am trying to make a delivery order w.r.t. sales order which have 10 quantity for a certian material. when i create it, all the data on sales order is copied to the delivery order automatically EXCEPT the material quantity which was 10. it was working perfect and i dont know what mistake i made. is there any way out?
    thanks

    Hi,
    While creating delivery, r u getting the following error..
    An item with no delivery quantity is not permitted. Item will be deleted.
    If so, you are maintainig picking location determination for that particular plant and shipping point combination.
    i.e.,
    in OVL3 , for ur plant , Shipping point, Storage condition(Taken from Material master- Plant/Stor1 View)
    you will be maintaining some storage location.
    But for that storage location, you do not maintain a stock..
    If you specify the storage location in sale order, the error won't come..
    Otherwise add stock to the storage location assigned in OVL3..
    It'll work..
    I have also got the same error..
    Hope it may be useful to you..
    Thanks & Regards,
    Venkatesh.S.P

  • No Sales Order Item number in PCA document on Delivery

    Hi,
    We have an issue as below:
    Sales Order (Not a CO object)>Delivery is done> We cannot see Sales Order item number in the PCA document whereas it appears in Accounting Document.
    After Billing, a CO-PA document also generated.
    Thanks to provide any information on this.
    Umapathi G

    Hi,
      For billing documents, the information from the respective sales order and from the sales order item in the line item table GLPCA is only in the fields AUBEL and AUPOS.    
      You post a goods issue for delivery. If you post the goods issue for a sales order stock, the information of the sales order is updated in the profit center document (field GLPCA-KDAUF). If the goods issue is posted from the make-to-stock inventory, then the sales order information is not updated.
    regards
    Waman

  • BAPI_SALESORDER_CHANGE to update reason for rejection of sales order item

    Hi,
    The FM BAPI_SALESORDER_CHANGE is not working properly as I am getting below error when try to update the reason for rejection at sales order item level.
    The delivery is done for this salesorder. Is it because the reason for rejection field is not as an input field when delivery done?
    error in return table is " Field 'ABGRU' cannot be changed, VBAPKOM 000010  ready for input"
    Request your suggestions to avoid this error.
    Thanks

    >
    anikaushi wrote:
    > Hi,
    > The delivery is done for this salesorder. Is it because the reason for rejection field is not as an input field when delivery done?
    >
    >  error in return table is " Field 'ABGRU' cannot be changed, VBAPKOM 000010  ready for input"
    >
    >
    > Thanks
    Yes, Most likely.. You can confirm this by trying to change a order without delivery and see if it goes thru (to ensure that you have passed correct parameters)...
    you may have to delete the delivery (and if billing document exist, cancel it), before you can reject the line item... it would be safer to raise an error message and let the users manually delete delivery document as long as you don't have large volumes of this scenario..
    Please see the SDN thread for how you can avoid this error...
    Re: Cancel Sale Order after Issued Billing

  • Sales Order/Item as Account Assignment in Accounting Doc.

    I have a scenario where we are selling some services. Process is to create sales order --> Create billing document in reference to sales order & then release it to accounting. I am using materials of type DIEN( service) for the purpose and have customized the sales order / item category. Process is working fine till creation of accounting document but the accounting document is missing sales order/item in it [as account assignment]. I am not sure what config I am missing.
    Attached file shows where I am expecting the sales order / item to be seen.
    Please provide hints on this.
    Thanks in advance.
    Sonal

    Hi Sonal
    If you want the billing doc to post in the sales order as cost object, then your GL has to be cost element and the account assignment category in Sales order must be E
    Check the Requiremebt Type in the Procurement tab of sales order.
    This RT is assigned to a Requirement Class and the RC is mapped to Acct Assgn Catg.
    Spro - Cost object controlling - prod cost by sales order - control of sales order related.....
    In this node you can see which RC is assigned to RT
    Br. Ajay M

  • Link between Delivery Header & Sales Order Item for extraction to 2nd level

    Hi Guys ,
    I am having a requirement that need to pull the following data to 2nd level DSO
    1.  Delivery Header Data
    2. Sales Order Item data. ( Sales Document, Item, Item RDD, Material)
    So I am planning create a 2nd level DSO on top of Delivery header and need to pull the sales order ITEM level data ( Sales document , Order ITEM, ITEM RDD date , Material)  through start routine u2026
    How can I pull the Sales Order Item data through start routine?  i.e I need the link between Delivery Header & Sales Order Item Data .
    or I need the link between LIKP ( Delivery Header) Vs VBAP ( Sales Document Item).
    Thanks
    Edited by: krismady on Sep 22, 2010 2:26 AM
    or I need the link between LIKP ( Delivery Header) Vs VBAP ( Sales Document Item).

    Hi Krish,
    You can use VBLEN (Sales Document) to link Delivery header DS (2LIS_12_VCHDR) and Delivery item DS (2LIS_12_VCITM). Now In delivery item DS (2LIS_12_VCITM) you have VGBEL (Reference doc.) and VGPOS (Reference item) which is nothing but sales order document number and sales item in Order item DS (2LIS_11_VAITM) .
    So you need to link in above way to get other values in your DSO.
    It is proven method.
    Thanks,
    Uday Shankar.

  • Split at sales order item level

    Hi SD gurus...
    Iam trying batch determination at sales order item.
    I could get every thing except batch split/ Even though required split are maintained in batch search record, it is getting as 001 only at the time of determination during sales order.
    I think this is a standard phenomena. is there any work arround possible to get the required batch split at sales order item level.
    warm regards
    sairam akundi

    Hi Sairam,
    Contrary to deliveries, batch splits are not possible for sales orders (as opposed to delivery). Even if you have defined a certain number of batch splits in the batch search strategy, the system overrides this default setting.
    Maybe you can explore USEREXIT_MOVE_FIELD_TO_KOMPH

  • Sales order item data

    Hi Experts,
    Let me know the table in which the  APPR column data of sales order item is updating.
    Thanks in advance.
    Thanks,
    K.Rajesh.

    Hi,
    You can ask your SD consulants for help. They are much familar with the SD tables.
    Regards,
    Chris Gu

  • Sales Order Item Display issue

    Hi Friends !
    In a Sales Order 93891, there are few Sales Order Item 10, 20, 30, 40, 50 & 60. But in the query it displays only Sales Order Item 60. I have checked data in DSO1, DSO2 & Cube. It displays the data correctly in all the three level. Please advise.
    Note: I haven't used suppressed zero feature.
    With Regards
    Rekha
    Edited by: Rekha Yadav on Jul 6, 2010 4:53 AM

    Hi,
    In a Sales Order 93891, there are few Sales Order Item 10, 20, 30, 40, 50 & 60. But in the query it displays only Sales Order Item 60. I have checked data in DSO1, DSO2 & Cube. It displays the data correctly in all the three level. Please advise.
    Drag and drop Sales Order No and ITM in rows and then some keyfigures in Columns and see. CHeck the properties of the ITM is there any thing Maximum i.e. in Display tab in report. so in this way checek all the properties and if any conditions in report.
    See the Stucture of the DSO's' i.e. ITM and Saes Ord No must be in KeyFields.
    Thanks
    Reddy

  • FM/BAPI to update sales order item characteristic values

    Hi experts,
    I have an urgent requirement on changing the characteristic values of a sales order item (VA01/VA02). Is there any FM or BAPI to update the characteristc values?
    Points will be awarded.
    Regards,
    Leo

    Hi,
    I need an FM/BAPI that can be run inside user exit USEREXIT_SAVE_DOCUMENT_PREPARE to update the item configuration. I tried the FM you have given me but it didn't work. If you have sample codes that can update the configuration values of the sales order item, it will help me a lot. Thanks!
    Regards,
    Leo

  • How do i keep only the name of a month in a cell in Numbers and not have it auto fill the date and time?

    how do i keep only the name of a month in a cell in Numbers and not have it auto fill the date and time?

    Hi JN and Barry,
    Barry wrote:
    The second case may not be included in the available D&T formats in Numbers 3
    For my region, the Date & Time data formats include month.
    The Date Pop-Up
    This may not be the case for all regions.
    Remember that the month is only the display, and the Full Date & Time is still there. If I change the format to reveal what is behind the curtain:
    Regards,
    Ian.

Maybe you are looking for