Out of stock Sales Order Item to trigger a BDC to create a PO

Dear ABAPers,
I have a couple of questions:
1. In the sales order program code, how do you find out if an item being ordered is out of stock? Which tables and fields do you check?
2. when an item is determined to be out of stock,  we want to trigger a BDC to create a PO. How do you do that?
I know these are big questions. You can give me either an overview or detail solution, it's up to you.
Thanks!

Hi,
Assuming all the basic settings are configured
Step1: Run T Code VA01 and input the u201Cdocument typeu201D as OR along with your sales area. Then enter your business partner number along with the material number and quantity. Save the order.
Step2: T Code VA03 input the order number which you have created. Select the line item and (menu bar) Goto u2013 Items u2013 Schedule lines. You will find the u201Cpurchase requisitionu201D for that item just copy the number.
Note: If you unable to see the u201Cpurchase requ201D in the sales order then make sure you need to change the Item category group of a material in MM02 as BANC in Sales: sales org 2 tab.
Step3: Run T Code ME21N under the item paste the u201Cpurchase requisitionu201D number generated at sales order level and hit enter that will automatically give all the details, save. You can save the Purchase order.
This scenario will only help to create purchase order until I know why you want to create a purchase order I canu2019t proceed further.

Similar Messages

  • Unable to update Sales order item level prices after invoice is created

    Dear All ,
    I have the following issue .
    When the sales order was created Z001 price was populated based on the condition record and  the order was in complete status  Then we created delivery and  invoice , the invoice had the same price as that of sales orders.
    Due to some code change related to pricing condition type - Z001 the prices in the sales order is changed to "ZERO" , when the sales order is opened in VA02 .
    We now corrected the code related to condition type - Z001  and now need to get back the on the line items . I wanted to Update prices by clicking on icon " Update" in the line item condition tab . I am not able to do it as the update icon is grayed out.
    Can any one help me with ideas for  fixing this issue  or any SAP utility  program .
    Looking forward to your help .
    Thanks and regards
    Veera

    Hi
    Without reversing invoice we can't update price and this is standard bevaior which is logical too. For your scenario I am wondering why would you want to change price for a line item or order which is alrady invoiced and posted to FI. What difference would it make to change price in sale order when this has already been posted in FI?
    Thank$

  • Sales Order Item configuration

    Hi,
    In my scenario, if there is any change in Sales Order Item configuration (characteristics), i have to create an entry in custom table.
    TCode - VA02
    How do i check if it is changed or not and in which exit?
    Thanks,
    Vetri

    Hi Vetri,
    The tables I told you about are only relevant for old values. For the new values after changing the document and before saving the document will be available in some internal tables and only the technical team will be a competent team to find out how the new values can be found out during run time.
    The checks you want to enable can be enabled in the user exit USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE based on the scenario.
    You can reward if this helps you.
    Message was edited by:
            Navaneetha Krishnan

  • Reagrding :  block stock sales order wise

    Hi,
    I am working on report in which i have to display the block stock sales order wise ,i had used to tcode MB52 and MMBE and i was first using table MCHB and MARD ,it displays only the bocked stock ,but when i click on  special stocks icon in tcode MB52 n execute it the qty displayed in that is not being able to be displayed in the tables MARD n MCHB.
    right now i am using table MSKA and varifying it with tcode mb52.
    PLZZ HELP ME OUT BY telling me which table to be used for displaying the block sales order wise.
    Edited by: ric .s on Mar 6, 2008 11:18 AM

    Blocks can be of different types and at different levels..
    All header level sales order blocks can be seen in VBUK and item level at VBUP.
    For eg : VBUP-FSSTA - Billing block status for items and
                VBUP-LSSTA - Delivery block
    Also look at the following fields of VBUK :
    FSSTK     -Overall billing block status
    LSSTK_-Overall delivery block status
    SPSTG     -Overall blocked status

  • CIF: how to "push" a Sales Order item from ERP to SCM via FunctionModule ?

    Hello experts,
    we are implementing a process in ERP (ECC6.0) where we change a sales order item (VBAP- VPZUO) in order to stop SNP (LiveCache) performing the "fcst consumption" for this specific sales order since it is a spezial promotion / trade fair order which does not justify to change the fcst consumption for the entire product.
    We are searching for a function module or any ABAP "handle" of telling the CIF in ERP to "push" a specific sales order item thru to SCM again. We started with an artificial batch input in VA02 / VA32 and changed a non-used text field field in the sales order position and the document save was doing it. I wonder if someone run over same topic and found a better way to get this done with a specific function module or setting a specific trigger in some other ways.
    I was not sure if this is the correct forum - in case someone knows a better match on SDN I'm happy to move it over to the right place.
    Regards
    Thomas

    Hello Thomas,
    You can't really push a Sales Order seperately, and not advisable also as you should not tamper with CIF interface. I can give you another approach.
    You have to identify during CIF that the Sales Order is a special Sales Order. Better have a separate Sales order type for such special Sales Orders. That being the case, I think you can handle your issue by changing the ATP category of the Sales Order during CIF. The standard Order category is BM. You could create a custom category in APO, and during the transfer, you could change the Sales order category to this custom category. APOCF010  EXIT_/SAPAPO/SAPLCIF_SLS_001 exit (Inbound Sales Order in APO) should be helpful for this. You would need to change the ATP category field in IT_SL_REQ table.
    You could then display this "additional" Sales Order in a separate KF in SNP (if you need it) by assigning it a custom category group in SNP planning area which would have only this custom category. For normal SNP planning, normal SNP sales order of category BM would be relevant.
    Please be aware that when you try out things like this, you might need to tweak a lot of SAP standard behaviour at many other places. Things like CCR also need to be tweaked, and also whatever further planning you have to do for this particular Sales Order might also need to be tweaked.
    Thanks - Pawan

  • Sale Order Item Level Text Field which table and field

    Hi,
    Thanks for your prompt reply and best solution.
    Can you please tell me one more thing, in sale order at item level the TEXT Field maintaining by user at transaction level now they want that field in one of the report, so can you please tell what is the table and field where i will get this sale order item level text details.

    Hello,
    is this going to work for item level text as well.
    can you tell how to proceed with this functional module
    or is there any other thing required.Please elaborate to
    understand better way.
    You can check out two table in respect to Sales TEXT i.e. STXH (STXD SAPscript text file header) and STXL(SAPscript text file lines).
    The best approach of tracing out the Text in respect to Sales Order would be to use the Function module READ_TEXT and put this FM in SE37 and execute with the following parameter.
    Client
    Text ID of text to be read
    Language of text to be read
    Name of text to be read
    Object of text to be read
    Archive handle
    Text catalog local
    When you are essentially looking to read item level Text with respect to Sales Order then your Text OBject would be VBBP.
    Regards,
    Sarthak

  • Cancel Confirmed Quantity in Sales Order Item (VA02)

    Dear All,
    I am having the following scenario :
    Customer have created a Sales Order, item 10, schedule line 1 with quantity 120.  The delivery date is 2011.12.22. 
    They have confirmed the quantity using the "Check Item Availability" function. 
    They have then changed the delivery date from 2011.12.22 to 2011.12.23.  The problem arises that in the "Availability Overview", the system still show the confirmed quantity is on 2011.12.22.  It doesn't release the confirmed quantity after we have changed the delivery date.  And what is worst is the system is prompting me that no stock is available on 2011.12.23.
    Does anybody knows how to release the confirmed quantity in the schedule line.  I have tried in VA02 by modifying the schedule line details.....  but does not work..
    Thanks.

    Hello,
    One easiest way is to reject the line item and add a new line, make the delivery date as 23rd. Once you reject the line item the confirmed schedule line get reversed.
    You can try with CO09 also.
    Regards,
    SAM

  • Sales order costing - tracking of actual costs at sales order item level

    Hi
    We are going with sales order costing for services
    Service material is non-valuated hence the scenario is non-valuated sales order stock
    PP module is not implemented.
    I am having following questions
    1. How to track the actual costs at sales order item level? Is Internal order/CO production order is required to be created for the same?
    2. Can I do activity confirmations directly from cost center to sales order item.
    3. Can Raw material is issued directly against sales order item.
    4. Is Sales order is a real or statistical account assignment object?

    dear friend,
    please look here:
    http://help.sap.com/saphelp_47x200/helpdata/EN/42/d7248ab27111d19e9a080009b0db33/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/EN/90/ba6cfb446711d189420000e829fbbd/frameset.htm
    reagrds,

  • 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

  • Stock sales order wise

    hi
       all 
      i m using make to order scenario i want the stock of the finished goods n there dependent requirements stock sales order wise as i have defined the startegy make to order for the finished goods n there dependent requirements n i have also used the special indicator in the BOM  but i have not used individual requirement in the material master of the dependent requirement 
      thanks and regards
      surendra

    Hi suredar
    If you use Strategy MTO 20 and run MRP in MD 50 for sales order with line items. Then automatically the stocks will be mainted as per the sales order. You cannot change the issue of dependent requirements.
    Thanks and Regards
    J . Saravan

  • Settings in sales order item -Profit center

    HI,
      When i create a credit note price with reference to billing docment.At the item level the profit center field is unchangable or grayed out ONLY for the first item and its open for other items.
    Can you please explain me the behaviour of the system why its grayed out for the first and open for the rest?
    where can i see the configuration for sales order item?
    Thanks in advance

    Hi ,
    Please se below docuemnt on thos
    http://help.sap.com/erp2005_ehp_05/helpdata/en/39/afe8e13f1d42c8a34d625f677bee66/frameset.htm
    Many Thanks

  • Sales order item quantity update based on goods issue quantity

    Could any one explain me how to achieve the below functionality in SAP.
    Sales order item quantity needs to be updated based on the goods issue quantity when goods issue happens. 
    Tried to achieve the above functionality thru user exit.  But I could not found any user exit.  Could any one help me in finding out the user exit for a delivery which gets triggered when goods issue happens? 
    Or is there any other way thru which we can achieve the above functionality?  For example by using copy control, or requirement stuff. 
    Your inputs are highly appreciated.
    Thanks in advance.

    I dont y u got such type 0f requirement.Do one thing find out BADI it should be activated only when we are going PGI , in that badi try to chage Sales order <b>BAPI_SALESORDER_CHANGE</b>.
    for BADI search in SPRO / Se80.
    Regards
    Prabhu

  • Tax code entry in sales order item conditions  from excel template

    Hi experts ,
    I have a requirement , in which  tax code in sales order item conditions should be determined from an excel template.
    A Z transaction will fetch values from the template & create sales order in which tax code will be detrmined from the template only, irrespective of the value maintained in condition records.
    Kindly suggest the way, how this can be implemented. Currently tax code field in item conditions of sales order is greyed out and hence cann't be maintained directly in sales order.
    Is there any user exit which can take values from excel template & populate tax code in sales order, bypassing condition records?
    Thanks in advance,
    Vimal

    Hi Vimal,
        I don't understand why you want to read tax code from excel, bcoz what ever criteria you are trying to determine the tax code from excel sheet you can build a condition table and arrive at the appropriate tax code with condition technique.
    Just think, if you some how achieve to get the tax code to pick up from the excel sheet, what will happen if you want to change the order after few days or create a subsequent document? the system will try to read the record from the condition records and may go for a toss.
    My opinion is, suggest the user/business to use the condition technique and build your condition tables with all possible options and arrive at the tax rate and tax code.
    If you still want to go ahead with bespoke develpoment, request you to further specify your requirment so that someone can help you.
    I don't think it is the right idea to reinvent the wheel again.
    Regards
    Raj

  • Sales order item Qty check with sale plan qty

    Dear all
    How its poosible  - While creating sales orer system should  check sales order item qty, delivery date    with sales plan qty  for that period. If total sales order requirement qty greater than sales plan qty then system should give error msg.  System not consider stock & inward / outward mvt . only check plan qty.
    in details
    1>  Create Weekly sales plan   -  w.r.t  Material & Plant   -  ( T code u2013 MC87 )
      Eg .   Material  - FG001   , Plant 1001  ,   Week 11.2011  -  2000 Kg 
    2>  Now creating sales order . system check  sales order item qty  & plan qty as per delivery date or week
    Eg .  i> Sales order  no. 1 -  delivery week  u2013 W 11.2011   , item u2013 FG001 ; Plant u2013 1001 ; Qty u2013 1500 kg 
    Requirement :  System check u2013 delivery week u2013 11  according to that  sales plan qty for that material & plant is  2000 kg ;
    total actual  Sales order qty =  1500 kg . so condition is fulfill  system allow to create sales order.
    Eg. ii> Sales order no. 2 u2013 Delivery week u2013 11.2001 ,  item u2013 FG001 ; Plant u2013 1001 ; Qty u2013 1000 kg 
    Requirement :  System check u2013 delivery week u2013 11  according to that  sales plan qty for that material & plant is  2000 kg ; total actual  Sales order qty =  1500 + 1000kg =2500 kg .  so condition is failed  , ( sales requirement qty > sales plan qty ) system should not allow to create sales order, gives error msg.
    Thanks & Regards
    Pramod

    Hello,
    I have made something like that, to replace the defaut Check by one that check purchase order shipping date.. Here is a exemple code for trapping :
    You must place it in SBO_Application_ItemEvent
    if ((pVal.FormTypeEx == "139") & (pVal.EventType == SAPbouiCOM.BoEventTypes.et_VALIDATE) & (pVal.ItemUID == "38") & (pVal.ColUID == "11") & (pVal.Before_Action == true) & (pVal.InnerEvent == false))
                    CheckAvailability();
    Don't forget to disable the SBO Check Availability in the document's config form.
    Sorry for my poor english and good luck
    Chris.
    Message was edited by:
            Christophe Vuignier

  • CRM Sales Order Item Status Does Not match R/3 Item Status

    The status of the CRM sales order item is being set to 'In Process' when the related R/3 sales order line item status is set to 'Complete' - when, the delivery quantity is zero for the sales order item.  This happens when the warehouse can't find the stock to pick - the delivery quantity is set to zero.  Thus, the CRM order item status does not agree with the R/3 order item status.  We need for the line item status to be set to 'Complete' in CRM.  Anyone have an idea as to how to make this happen?
    Thanks you.

    Hi Peter and Suresh,
      From the information provided I understand that the sales order created in CRM after replication to R/3 has some status change.
    1.  What are the fields which are updated in R/3 for the sales order created in CRM ?
    2. If sales order fields are updated in R/3 are these updates reflected back to CRM?
    3. If they are reflected back in CRM? Is there still flexibility for sales order to be changed in CRM and replicated back to R/3?
    Can you please share you experiences.. Any help is highly appreciated.
    Thanks
    Jothi

Maybe you are looking for

  • ITunes error 9006

    I'm using iTunes 10.5.3.3 (the latest) and am trying to download a movie I purchased, but it's stuck at 2.1MB of 1.65GB with error 9006.  I download podcasts every day with no problems, so I'm at a loss to figure out why this one movie will not downl

  • Mac Developers - IDE question

    A question for Mac developers - which ActionScript IDE do you prefer? I've loved FlashDevelop on the PC, but can't find the equivalent on the Mac which: is free has code completion The options I know about: TextMate - isn't free. People seem to love

  • Infotype log audit S_AHR_61016380

    Hi Experts, I am using S_AHR_61016380 report to trcak infotype changes. But on execution no data is displayed. Do I have to mke some specific selections? Thankls Aryan

  • Lightroom 5 Upgrade Issue

    Hello, This is very strange and I want to correctly describe my problem. I want to Upgrade from LR 4 to LR 5. I want to download the LR 5 upgrade NOT use the Cloud Service. I have two computers, an XP and Windows 7. Here is the strange part. On my XP

  • Scrollbar for textitem

    Hi, I'm using forms6i. Is it possible to add a scrollbar for a multiline text item?? Thanks