Production order corresponding to sales document and sales item

hi experts
how to get the production order no corresponding to sales document(vbeln) and sales item(posnr)?

Hi
In the table AUFK in the field KDAUF - enter the sales order number and execute you will get the AUFNR.
AUFK-KDAUF (Sales order Number)
regards
Prashanth

Similar Messages

  • Sales order stock on delivery document and transfer order

    Hi all,
    At my current client I have a requirement where we need to put stock against sales order (sales order stock E). So, being a MTO process we create production order and perform goods reciept to unrestricted stock. To avoid getting picked up by a different sales order, we move the stock to sales order stock using 412 E (tcode: MB1B). Here are the issues I am facing currently:
    1. Is there a direct way of receiving production order directly to sales order stock?
    2. I couldn't find a way to do the first, so I am currently receiving production order against unrestricted inventory and then move it using MB1B. So, the stock can be seen to assigned to sales order.
       2a. When I create delivery it is not consuming same stock, it is consuming inventory out of unrestricted stock (if any, in case no inventory is available it throws error of 0 available quantity). Once I have assigned sales order stock why is it still looking into unrestricted? Is it due to the requirement type which is assigned. Do I need to change the item category so availability will check sales order stock (similar to item category TAB)?
      2b. This probably will be resolved if I get the delivery fixed but we have SAP WM and during TO creation I don't see the special stock reference filled in? I tested this process with item category ZTAB (copy of TAB) which creates purchase requisition and it seems to be working but I don't need the purchase req for my case.
    3. This is more of an accounting issue: when I attempt to move stock from unrestricted to sales order stock using 412 E, I was getting "Account XXXXX is not assigned to cost center". So, I went in an assigned a cost center to this cost element. IS THIS REQUIRED & WHAT IS THE RELEVANCE as it takes stock out of inventory.
    I understand it crosses other functional areas but even if you can clarify 1 part of it, will be very helpful.
    Thanks.
    Naren

    Dear Friend
    You are telling that it is MTO scenario and you are posting stocks into unrestricted stocks
    This is entirely wrong
    This is happening because of a simple thing missing in your sales order item category configuration in VOV7 that is special stock indicator E is missing which should be there
    This is the cause of whole problem
    MTO item categories will have special stock indicator E in standards
    In MTO based on the sales order production order is triggered and stocks are receipted against sales order and not into unrestricted use by defaut in standard
    You will receive MTO stocks as sales order stocks in your plant  only in standard
    But it is not happening for you because of  stock indicator E in VOV7 of your sales order item category is missing
    Posting MTO stock in to unrestricted use is meaningless  and the same is happening because of a slight miss out in setting in VOV7
    This is the solution for issue no 1
    For issue no 2
    You have created the sales order( MTO order) without special stock indicator E and now you are doing a transfer posting in MB1B with 412 E  referencing the order no sales order stocks  that is Fine
    You are getting an error that only zero qty is available either at delivery or at pgi eventhough in MMBE you will find sales order stocks in your order name
    This is happening because
    Reservation in MB1B is done with special stock indicator E for sales order
    But the  same sales order is not created with special stock indicator E in VA01 during creation
    There is a mismatch
    Hence the system is not able to sense while the order comes for delivery there are already stocks are reserved
    By inputting  special stock indicator E for sales order item category the whole issues will get solved
    By doing that there is no need to do MB1B itself
    The first step itself will get corrected  as the stocks will be posted to sales order stocks no need for MB1B
    No need to touch TAB make it ZTAB as it is meant for a different purpose it is for individual purchase order not to be used for MTO
    *By marking the special stock indicator as E in your sales order item category your entire issue will be resolved*
    Issue no 3
    MTO is based on costing for which you have take the help of FI person
    Note Very important
    If U make the settings now in item category it will not work for the existing or already created order
    With existing orders it will have the same error as the order is created without special stock indicator E
    Only for new orders it will work and from Now on it will work
    Test it with new order cycle starting from VA01
    Please let me know this issue has got solved or not?
    I am 200 % sure it will get solved
    Regards
    Raja

  • MRP Generated production orders greys out Sales Order and Customer fields

    Hi there,
    The MRP generated production orders greys out the Sales Order and Customer fields for some reasons. These fields are really important as they link the production order to the sales order and the customer's purchase order. Could the SAP team please fix this or advise alternative way of getting the sales order and customer info on production order? Thanks.

    Hello
    MRP only poulated this fields in case the material master has been set up with a strategy group hich is make to order (normally 20). Otherwise MRP summarizes all the requirements from different Customer orders and creates a production order
    Stephan

  • Issues to Production Orders created from Sales Order

    We have multiline Sales Orders that create a Production order for each sales order line (can be up to 70 or 80 per SO). We normally backflush these via multiple MB1A transactions after the SO has been completed. It is a lot of work doing the required issues to reduce stock levels and consequently they are always "late" being done and the stock is always out of date until the movements (type 261) are processed - generally monthly!!
    As a result, an Access Database has been created that reduces stock in that by entering the SO number and this is used for Stock enquiries. I would like to get rid of this Access database so as I'm sure other people have hit this same problem, is there a way of doing the same in SAP i.e. enter SO number and then relevant stocks are reduced accordingly.
    Any help would be appreciated.
    Thanks in advance
    Jim

    Hi,
    I am not clear why you are manually doing the process? When the production order is confirmed for each operation (CO11) the goods movement should be posted then, backflush selected in work centre or in the production order.
    Any failures can be processed via COGI rather than a database.
    Thanks.

  • Allocating a production order to a sales order

    Hi all,
    we have a requirement to allocate a production order to a sales order WAY before the production order has been received.
    Can someone please tell me if this is possible - and if so, how it can be done?
    We are on 4.6C and AFS 3.0B
    Thanks is Advance

    Girish,
    I seem to have never replied to you - sorry.
    My email is rjoubert @ warnaco . com
    (plesae note that the spaces in the address need to be removed if you do a copy and paste)

  • Every time system create new production order after releasing sales order c

    Hi Guru,
    FG material strategy: 82 (sales order creates production order).
    After creating the sales order it goes in to credit block. Whenever we release sales order from credit block through VKM1, system has created production order. We confirmed this production order and delivered.
    But after this sales person change the sales order value, because of which again sales order goes into the credit block and after releasing sales order from credit block system create new production order even if one production order already confirmed and delivered against the same sales order.
    *Every time system create new production order after releasing sales order credit block.
    Thanx & regards
    pnu

    PNU,
    So, to restate:
    In MD04, you have Unrestricted Sales order Stock ('E' Stock) on hand.
    In the same MRP segment, and against the same Storage Location as the stock, you have a Sales Order requirement that was recently blocked and unblocked.
    During the unblocking event, the system produced a new production order.
    This is not normal.  If the above accurately depicts your situation, I would look for an altered Strategy 82, or a userexit.  SAP ATP (the beginning event of the Strat 82 process) will normally first check for the availability of stock.  Only if the stock is not available, then it will create the new production order.
    Best Regards,
    DB49

  • Direct production order when saving sales order.

    Hi,
    How to create a production order from sales order.ie. When a sales order is saved production order automatically created.
    Thaks and regards
    Harish

    Hi
    For the product that you need to have the production order once the sales order is saved
    Maintain the planning strategy     82     Assembly processing w. production orders  in material master / mrp 3 view
    So once the sales order is created, system automatically do the bom explotion and availability check, routing in background and create the Prodcution order.
    so in Md04, you can see the production order for you sales order qty.

  • Production order creation from sales order

    Hi PP Gurus,
    I am creating a production order automatically from sales order by using strategy group exactly similar to 82. Once i create the sales order , its showing missing parts error in prouction order and if i check missing parts overview,it says over all confirmation date is not determine.We have stock in MMBE for that material and storage location combination.
    I have also chekced the requierement class and type and found ok.
    Please help me resolving this issue.
    Thanks in advance.!
    Regards,
    Sudheer

    Hi Mario,
    Yes, the availability check will check other stock types also. My concern is why the availability check is  failing and giving missing parts even if the components are there in stock after considering the reservations.
    I checked OPJJ setting, availability check is active and we did that.
    Can you please help me in this as we are stuck up at this point.
    Regards,
    sudheer

  • How to find out the list of Production orders created for sales orders

    Dear All,
    Our company wants to generate a report for a List of Materials sold out in a particular Product Hierarchy. Along with that we want to know the list of Production orders created for the sales orders.
    How to identify the production orders which are created based on Sales orders.
    Kindly suggest.
    Regards,
    Mullairaja

    Check these threads
    [Sale Order & Production Order|Sale Order & Production Order;
    [Re: Linking Production Order against a Sale Order MRP run|Linking Production Order against a Sale Order MRP run;
    thanks
    G. Lakshmipathi

  • Can not delete a Production Order is the Sales order item is rejected?

    Hello everyone,
    I can not delete the production order as the Sales order line item is rejected.
    Does anybody know if any configuration change is required or any work around?
    Thank you,
    BG

    Hi,
    Could you pl. explain how the production order is created?
    Also did you try by choosing Function in the menu (CO02 transaction) & try to set deletion flag or Technically complete?
    If so did you get any error message ?
    Regards,
    Senthilkumar

  • GR for production order post to cost center and not to the production order

    Hi all,
    when we post the goods receipt for the finished product against the production order (mov. type 101), the order is not credited with the corresponding stock value. Instead of this, the value accounts to a cost center.
    We specified this cost center in OKB9 (Default account assignment), because if not, we get an error when posting the goods receipt cause of lacking accounting object.
    I can't see why the system does not credit the production order?
    Any ideas?
    Thanks for your time
    Daniel

    Hi Daniel,
    This is the first time i am coming across an issue like this.
    neverthless from a logical front,
    1. Remove Cost center as a valid receiver in Settlement Profile.
    2. Your OKB9 setting are pretty much good. No need to worry about it.  Becasue, OKB9 only will work if the system doesn't identify any other cost object. In this case Production Order is an automatic cost object which system should have taken.
    3. Check the Settlement rule when you have created Production Order. It should have been MAT.
    4. I hope you are creating Production Order with Material (using CO01 and not CO07)
    5. Make sure in OPL8, the default rule in controlling tab is PP1.
    Once all these are fine, i do not see any reason why you will get your probelm.
    Please check and revert back to me if the problem still persists.
    Best Regards
    Surya

  • Production order no. against sales order no.

    hi
      i want production order no.(AFUNR) against sales order no.(VBELN) .
        i searched in TABLES : AFKO, AFPO, VBAK, VBAP.
         BUT problem is that in all 4 tables field is common but in (AFKO, AFPO ) there is no value for SALES ORDER (VBELN) , and vice-versa.
        plz guide me.

    AUFNR (Internal Order) is an account assignment element used mainly in FI/CO.
    In SD, accounting detail is often generated at the billing stage.
    Check the billing documents associated with the sales order and see if they provide the link (VBRP, VBRK).
    Andrew

  • Search Production Orders based on Sales Order

    HI,
    Ours is MTO scenario.
    How to find Production Order number(s) based on Sales Order.
    We are getting in AFPO, but if the process starts from Enquiry or Quotation then there is difficulty.
    Because there can be multiple documents of enquiry or quotation.
    Kindly suggest.
    Thanks
    Ramakanth

    Ramakanth
    Did you try T code  COOIS - Order Information System?
    Here you can enter the sales order # ( Single values, range etc.) and get a list pf Production Orders?

  • Duplicate production order due to sales order on credit block

    Dear Experts !
    Need feedback on the following scenario:
    - Sales order is entered for material which is produced in-house specific to the sales order (ie customer's logo is on product).
    - Schedule line in sales order creates a production order specific to the sales order.
    - Customer runs into credit check a few days later and consequently the schedule line in the sales order is removed due to credit block, however the linked production order still remains and is produced by factory.
    - Sales order is released from credit check and a new schedule line is created resulting in another production order being released.
    Any ideas on how to prevent duplication of production order?
    Thanks in advance!
       -Alvin

    Hello,
    Apologies for the confusion, let me explain it a bit more.
    - Sales order is entered for material with planning strategy group of make-to-order, the schedule line initiates new production order for make-to-order material.
    - A few days later - the customer goes over credit limit or has overdue invoices, etc..
    - During background rescheduling (or any sales order change) the sales order gets a credit block due to static check.
    - Sales order block deleted schedule line in sales order, however the production order remains active.
    - Once the sales order is released from credit block, a new schedule line is created which initiates a new production order.
    - Duplicate production order is now being made in shop floor.
    I hope the above explains my scnario a little clearer.
    Thanks and regards,
    Alvin

  • Error while creating a production order from a sales order

    Hi
       Even though the product has BOM when i try to create order with a sales order reference it is showing a warning message " NO BOM FOUND" . How to correct this error .
    regards,
    PradeepM.

    Dear ,
    Goto -CS02-Enter FG -Goto Header -Staus Long Text -Check wether BOM status is set to 1 -Active .
    Check the usage of the BOM -Should  be 1-Production .
    Check wether BOM is locked and Deltion Flag set -Header Status Long txt tab
    Check the valididty of the BOM and Sales Order Schedule delivery date
    Try and come back
    Regards
    JH
    Edited by: Jiaul Haque on Jul 6, 2010 9:03 AM
    Edited by: Jiaul Haque on Jul 6, 2010 9:04 AM
    Edited by: Jiaul Haque on Jul 6, 2010 9:04 AM

Maybe you are looking for

  • Is there any negative in changing an external hard drive from FAT32 to NFTS?

    I have a 500 GB external hard drive, Western Digital, that is formatted as FAT32.  I have tried to save some movie files in Moviemak er  from the External file to a file in a second internal hard drive so I can then edit in Premier but it says there

  • CS5 only defining a strip of an image as a pattern

    When I define a pattern from an ordinary colour image there is no problem - the full image is available as a pattern.  But when I try to define an image which is black and white only a strip of the BW image is available as a pattern.  When I add a st

  • Migrating emails from mac book to macbook air

    I have just bought a new macbook air. All my old emails and contacts are on an old macbook. I have set up the new macbook air send and receive emails but when the old mac book is switched on it still recives emails and clears them off the new mac boo

  • Internal computer noise with firewire audio devices

    Hello I have a Power Mac G5 PPC 2.3 and Mac Os X 10.5.6, with tiger I have the same problem too, I bougnt my Mac for audio work, and from the purchase day, I have the same problem, I bought my first audio sound card, M-Audio Firewire 1814, and I inst

  • Displaying more than one JTable

    Hello people. I tried creating a JScrollPane with a JTable passed to its constructor. This worked fine but i cant add any more tables to the JScrollPane. I could use a new window for each table but I would preffer to keep all tables on one component.