Cancel a Sales order with a PP order

Hi
I want to cancel a sales order that has a production order assoiced with it . the production order has status REL  Released
MSPT Material shortage
PRT  Printed
PRC  Pre-costed
GMPS Goods movement posted
RESA Results analysis carried
SETC Settlement rule created
The order dose not have any varent dollars assocated with it and the conformation has been removed 
I can not cancel the sales order

Hello,
As the production order is associated with the sales order, it may not allow you to cancel/delete the sales order.
TECO the production order, set deletion flag, if the production order is not to be used. After this reject the sales order with a Reason for Rejection or delete the sales order.
Prase

Similar Messages

  • Creating sales order with reference to order

    Hi SD gurus.
    I try creating a sales order with reference to order, but I get this error message: "Flow control: Entry SAPMV45B, UER1, E0, *   , AU  , * is missing in T185". I don't know what is missing. Please, could you help me?
    Thanks a lot.
    Marta.

    hi,
    this is to inform you that,
    i went to SE16N given there T185 and checked with UER1 which is an FCODE FOR OVER VIEW SCREEN in VOV8.
    this entry is missing for the combination.
    please check in your sales order in VOV8 whether you have maintained UER1 in the above field.
    if not :
    please maintain the entries missed in T185 in SM30.
    because i have checked teh same in SM30 it is having opportunity to maintain.
    hope this will solve your issue.
    regards,
    balajia
    Edited by: balaji timmampalli achari on Nov 23, 2010 12:00 PM

  • BAPI For CREATE SALES ORDER WITH REFERENCE TO ORDER

    Hi ,
    I want to develop a new RFC for 'Creating Sales Order' with reference to another sales order -
    Is there any BAPI available for the same ? (Version 4.7) - I know its available for new create and change
    but couldn't find for create with reference to Order ...
    Thanks in advance ...
    Regards
    Rajesh.

    Hi,
    You can use this FM "/SAPNEA/SMAPI_ORDER_CREATE". I haven;t tried this but you can still give it a try. Mention the Reference Order Type and other data in the header work area and pass it to the FM.
    Reward if it's useful.
    Thanks,
    Anil

  • VA01: Sales order with reference to order

    Hello,
    I'm trying to create sales order with reference to other sales order with tcode VA01.
    Original sales order has 2 items with same MATNR and MATKL
    Example:
    000001 MAT1 LLL
    000002 MAT1 LLL
    When we create a sales order with reference the system throw the following message:
    Item 000001 exists already; the entry will be ignored (V1338).
    Why dont the system copy the exact number of items although they are iqual?
    Is there any option in configuration to control this behavior?
    I thank you in advance.
    Mario.

    Hello Jignesh,
    I've tried to perform the changes as you said, but the system trows a short dump.
    PERFORM_PARAMETER_MISSING, excepction: CX_SY_DYN_CALL_PARAM_MISSING
    A PERFORM was used to call the routine "BEDINGUNG_PRUEFEN_303" of the program
    "SAPLV45C".                                                                
    The current call contains 0 actual parameter(s),                            
    but the routine "BEDINGUNG_PRUEFEN_303" expects 1 parameters.               
    I image that's because we are giving a position routine at header level.
    Do you have aby other sugestion: I tried to use the same routine that i had (001) and Mark Complete Reference but i didnt worked.
    I thank you in advance.
    Mário.

  • Pricing procedure for order with reference from order

    Dear Friends,
    If I create a sales order with reference to another sales order of different type, the pricing procedure is copied too.
    But I would to use another pricing procedure for second document
    I found the oss note 14136 but this is for reference from invoce
    I tried to create new data transfer routine for orders in copy from 51, but does not work
    Can you help me??
    thanks
    best regards
    GdA

    > If I create a sales order with reference to another sales order of different type, the pricing procedure is copied too. But I would to use another pricing procedure for second document,
    Based on my understanding of query.
    You are looking for a different pricing procedure in second doc.
    For instance, the PricProc for SalesDoc1 is ZPR001 and  the PricProc for SalesDoc2 is ZPR002, in addition to that, you want SalesDoc1 to become reference doc for SalesDoc2.
    For this, ZPR002 & ZPR001 should have common base price condition type and rest pricing can change.
    And for maintaining different Pricing Procedure with similar combination of sales area for SalesDoc1 & SalesDoc2, maintain different document pricing procedure for both docs and maintain Pricing procedure accordingly..
    Thanks & Regards
    J Prakash

  • Purchase Order with Sub-Purchase Order?

    Hello,
    We are trying to purchase a box from vendor 1, have vendor 1 ship the box to vendor 2, and then have vendor 2 add some additional components and then ship the finished material to us.
    Can anyone help me with this scenario from a Purchasing point of view?  I only have a purchase requisition for the finished box.
    Thanks very much,
    Timothy

    Hello Timothy
    This process is called Subcontracting with Third-Party Order Processing and you can map it using MRP areas.
    Take a look on the following link from the on-line help, where this process is described in detail:
    Subcontracting/Third-Party Order Processing - Special Planning Processes - SAP Library
    BR
    Caetano

  • LINK PRODUCTION ORDER WITH CROSS_COMPANY PURCHASE ORDER

    Hello,
    we have 2 plants (differents conpanies). Plant A do purchase orders to plant B. So, plant B have to produce this material to delivery plant A.
    We need to link this purchase order (intercompany, NB purchase order, two cmpanies) to the produce order of plant B.
    Thank you very much

    yes, i use that.
    The purchase order is a stock transport order with delivery and invoice (two plants).
    If I do the STO in plant A, i can see this STO in plant B. And this STO create (by MRP) planned orders in plant B to produce. But the problem is that i can't link the planned order with the STO.
    For example, if there are two STO with the same delivery date(100 units and 200 units), it create one planned order with 300 units. And i need two planned orders (100 and 200) linked with each STO.
    Thank you very much

  • Linkage of service order with stock transfer order

    We are creating a service order for freight rate against a vendor xxx. While creating STO we assign vendor as CR (role) forwarding agent. Can we link that pricing condition of freight should pick rate directly from the ervice

    Hi,
    In service order components tab....make the item category as N-Non-stock item...
    once u save the order ,system will generate the PR ,w.r.to that create STO.
    maintain PIR ...so that system will pick value.
    Regards
    raj

  • Rearding internal order  with the purchase order.

    Hi Guys,
    This is  my below scenario.
    Kindly let me know how we can attach the internal oder in the purchase order. And what needs to be done in the internal order configuration side as well as the purchase order. Finally how to make billing through t that purchases order.
    Regards
    Aravind

    To assign a internal Order to a PO, use the Account Assisgnment Category as Internal Order.
    thanks

  • Link sales order with the PO

    A s per my business requirement, we create a sales order and according to this sales order if the material is not available in stock we want to create purchase order to the vendor for the materials which not available, How I link the sales order with the purchase order?
    Can you please any one help and advise me how this scenario can be handled in SAP

    Hello,
    Are you looking to map cross docking or third party sales in your system. In both of these cases, purchase order is created which is link to sales order via purchase requistion. The only difference, here in these scenario's is that goods movement doesn't take place within the plant.
    If this is so, then, you have customize, item categories and schedule lines used for them accordingly.
    Ideally , in the aabove mentioned scenario (cross docking, third party sales) material are not kept in stock.
    Br,
    Tushar

  • Not using substitute material while creating sales order with function?

    hi experts.
    I use SD_SALESDOCUMENT_CREATE function to create a sales order.
    Material A has a substitute material B with substitute reason 0005.
    So if I use material A when creating sales order with SD_SALESDOCUMENT_CREATE, the order is created with material B.
    I don't want to substitute the material automatically. I want to create the sales order with material A.
    What should I do? Help me please.
    Edited by: Ji Yeob Kim on Nov 19, 2009 11:34 AM

    Hi Kim,
    I also have same requirement. Please suggest how you resolved this?
    Thanks
    bvrnreddy

  • Creation of saleorder with reference to order using BAPI_SALESORDER_CREATE

    hello
    iam trying to create a sale order with respect to order BAPI_SALESORDER_CREATEFROMDAT2.
    the parameters i am passing is
    *Fill the header information for the order.
    wa_order_header_in-doc_type = Sales Doc type of order to be created.
    wa_order_header_in-sales_org = sales org.
    wa_order_header_in-distr_chan = distribution channel.
    wa_order_header_in-division = division.
    wa_order_header_in-ref_doc = order  number(This is the order i  refer to).
    wa_order_header_in-refdoc_cat = 'C' (c stands for order).
    *Fill the item level information for the order.
    wa_order_items_in-itm_number = item number.
    wa_order_items_in-material = material number.
    wa_order_items_in-ref_doc = order number(This is the order i refer to).
    wa_order_items_in-ref_doc_it = Item number of order i create.
    wa_order_items_in-ref_doc_ca = 'C'.
    APPEND wa_order_items_in TO i_order_items_in.
    *Fill the partner information for the order.
    wa_order_partners-partn_role = partner function.
    wa_order_partners-partn_numb = partner number.
    APPEND wa_order_partners TO i_order_partners.
    & likewise conditions structure
    i have done bapi_transaction_commit after bapi call.
    probelm which i am facing is , BAPI is creating a new sale order.. but it is not creating a order with reference order.
    thanks

    see this example as how to add text and multiple lines...
      loop at it_tab into wa_tab.
            record_no = sy-tabix.
            serial_no = wa_tab-ser_no.
    *       ORDER_TYPE =  WA_TAB-ORD_TYP.
            sales_office = wa_tab-sal_off.
            sales_group =  wa_tab-sal_grp.
            old_ref_no  = wa_tab-ref_shp_to_par.
            shipping_condition = wa_tab-ship_cond.
            perform sales_info using sales_office sales_group
    shipping_condition.
            condense shipping_condition.
            ship_cond = shipping_condition.
            on change of old_ref_no.
              refresh it_bapisdhead.
              refresh it_bapisdhead1x.
              refresh it_bapiparnr.
                 wa_bapisdhead-doc_type     = wa_tab-ord_typ.
                 wa_bapisdhead1x-doc_type   = 'X'.
                 wa_bapisdhead-sales_org    = '5088'.
                 wa_bapisdhead1x-sales_org  = 'X'.
                 wa_bapisdhead-distr_chan   = '01'.
                 wa_bapisdhead1x-distr_chan = 'X'.
                 wa_bapisdhead-division     = '00'.
                 wa_bapisdhead1x-division   = 'X'.
                 wa_bapisdhead-sales_grp    = sales_group.
                 wa_bapisdhead1x-sales_grp  = 'X'.
                 wa_bapisdhead-sales_off    = sales_office.
                 wa_bapisdhead1x-sales_off  = 'X'.
                 wa_bapisdhead-purch_no_c   = wa_tab-po_no.
                 wa_bapisdhead1x-purch_no_c = 'X'.
                 wa_bapisdhead-purch_date   = wa_tab-po_date.
                 wa_bapisdhead1x-purch_date = 'X'.
                 wa_bapisdhead-req_date_h   = wa_tab-req_del_date.
                 wa_bapisdhead1x-req_date_h = 'X'.
                 wa_bapisdhead-incoterms1   = 'EXW'.
                 wa_bapisdhead1x-incoterms1 = 'X'.
                 wa_bapisdhead-incoterms2   = wa_tab-inco_terms2.
                 wa_bapisdhead1x-incoterms2 = 'X'.
                 wa_bapisdhead-ship_cond    = ship_cond.
                 wa_bapisdhead1x-ship_cond  = 'X'.
                 wa_bapisdhead-ref_1        = wa_tab-ref_sld_to_par.
                 wa_bapisdhead1x-ref_1      = 'X'.
                 wa_bapisdhead-ref_1_s      = wa_tab-ref_shp_to_par.
                 wa_bapisdhead1x-ref_1_s    = 'X'.
                 append wa_bapisdhead to it_bapisdhead.
                 append wa_bapisdhead1x to it_bapisdhead1x.
                 wa_bapiparnr-unload_pt    = wa_tab-unload_pt.
                 wa_bapiparnr-partn_role   = 'AG'.
                 wa_bapiparnr-partn_numb   = wa_tab-sld_to_par.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
                 wa_bapiparnr-partn_role   = 'VE'.
                 wa_bapiparnr-partn_numb   = '777'.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
                 wa_bapiparnr-partn_role   = 'ZM'.
                 wa_bapiparnr-partn_numb   = '999'.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
               if wa_tab-bill_to_par <> ' '.
                 wa_bapiparnr-partn_role   = 'RE'.
                 wa_bapiparnr-partn_numb   = wa_tab-bill_to_par.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
               endif.
               if wa_tab-payer <> ''.
                 wa_bapiparnr-partn_role   = 'RG'.
                 wa_bapiparnr-partn_numb   = wa_tab-payer.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
               endif.
               if wa_tab-ship_to_par <> ''.
                 wa_bapiparnr-partn_role   = 'WE'.
                 wa_bapiparnr-partn_numb   = wa_tab-ship_to_par.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
               endif.
               wa_bapisdtext-text_id   = 'Z113'.
               wa_bapisdtext-langu     = 'EN'.
               wa_bapisdtext-text_line = wa_tab-add_txt.
               append wa_bapisdtext to it_bapisdtext.
               clear wa_bapisdtext.
               if wa_tab-banker <> ''.
                 wa_bapisdtext-text_id   = 'ZKT1'.
                 wa_bapisdtext-langu     = 'EN'.
                 wa_bapisdtext-text_line = wa_tab-banker.
                 append wa_bapisdtext to it_bapisdtext.
                 clear wa_bapisdtext.
               endif.
               if wa_tab-fwd_age <> ''.
                 wa_bapisdtext-text_id   = 'ZKT1'.
                 wa_bapisdtext-langu     = 'EN'.
                 wa_bapisdtext-text_line = wa_tab-fwd_age.
                 append wa_bapisdtext to it_bapisdtext.
                 clear wa_bapisdtext.
               endif.
            endon.
    *                  ***** ITEM LEVEL DATA *****
                 wa_bapiitemin-material     = wa_tab-matno.
                 wa_bapiiteminx-material    = 'X'.
                 wa_bapiitemin-target_qty   = wa_tab-qty.
                 wa_bapiiteminx-target_qty  = 'X'.
                 wa_bapiitemin-plant        = wa_tab-plant.
                 wa_bapiiteminx-plant       = 'X'.
                 wa_bapiitemin-item_categ   = 'YAPS'.
                 wa_bapiiteminx-item_categ  = 'X'.
                 append wa_bapiitemin to it_bapiitemin.
                 append wa_bapiiteminx to it_bapiiteminx.
                 clear wa_bapiitemin.
                 clear wa_bapiiteminx.
    *             WA_BAPICOND-COND_TYPE      = 'PR00'.
    *             WA_BAPICONDX-COND_TYPE     = 'X'.
                 wa_bapicond-cond_value     = wa_tab-amt * wa_tab-qty.
                 wa_bapicondx-cond_value    = 'X'.
                 append wa_bapicond to it_bapicond.
                 append wa_bapicondx to it_bapicondx.
                 clear wa_bapicond.
                 clear wa_bapicondx.
            at end of ref_shp_to_par.
              call function 'BAPI_SALESORDER_CREATEFROMDAT2'
                exporting
    *             SALESDOCUMENTIN               =
                  order_header_in               = wa_bapisdhead
                  order_header_inx              = wa_bapisdhead1x
    *             SENDER                        =
    *             BINARY_RELATIONSHIPTYPE       =
    *             INT_NUMBER_ASSIGNMENT         =
    *             BEHAVE_WHEN_ERROR             =
    *             LOGIC_SWITCH                  =
    *             TESTRUN                       =
    *             CONVERT                       = ' '
    *           IMPORTING
    *             SALESDOCUMENT                 =
                tables
                  return                        = it_errmsg
                  order_items_in                = it_bapiitemin
                  order_items_inx               = it_bapiiteminx
                  order_partners                = it_bapiparnr
    *             ORDER_SCHEDULES_IN            =
    *             ORDER_SCHEDULES_INX           =
                  order_conditions_in           = it_bapicond
                  order_conditions_inx          = it_bapicondx
    *             ORDER_CFGS_REF                =
    *             ORDER_CFGS_INST               =
    *             ORDER_CFGS_PART_OF            =
    *             ORDER_CFGS_VALUE              =
    *             ORDER_CFGS_BLOB               =
    *             ORDER_CFGS_VK                 =
    *             ORDER_CFGS_REFINST            =
    *             ORDER_CCARD                   =
                  order_text                    = it_bapisdtext
    *             ORDER_KEYS                    =
    *             EXTENSIONIN                   =
    *             PARTNERADDRESSES              =
        read table it_errmsg into wa_errmsg with key type = 'E'
        binary search.
        if sy-subrc ne 0.
                 call function 'BAPI_TRANSACTION_COMMIT'
        endif.
    endloop.

  • Billing block on order with proforma invoice

    Hi,
    In our process, we take on new customers who need a pro forma invoice to pay us but often the final amount varies from what was initially expected. There is no delivery and the Proforma will create from the order. However, we will correct the order with the final quantity (service time) once the customer visit ends. e.g. an order was $100 and the pro forma invoice was sent for $100. it turns out the final service was for 150 - the customer at the moment pays only 100 but will pay the rest when we send the bill. Once the service is complete the order is corrected to 150. The volume is high so we have billing jobs running to create the invoices from the orders.
    Exploring 2 options:
    1. To make the correction, we want an automatic billing block put on the order once a proforma is generated. When the order is corrected subsequently, we will remove the block too. If it can't be done automatically, then 2 below:
    2. One can't generate the pro-forma if there is no billing block on the order. This is to prevent the person responsible to print it if he/she forgets to put the block
    Either of the 2 scenarios will work for us. Is there any user exit which can do this?
    Thanks a lot.

    If you are handling these orders with a different order type, then just default the order with a billing block"Review pending" using OVV3, don't assign this block for the Proforma invoice, but assign it to the regular invoice using OVV4 .
             Then you can always make sure that a billing block exists on the order before the proforma invoice gets printed.
    Option 2.  If you are not using specific order type for the process.
      In this case think about assigning the billing block for the orders that are being placed by the new customers, try to figure out a logic to identify the new customers..
    On the whole, <b> If possible</b> I feel its better to assign the default order block rather than creating a new program to assign the BILLING BLOCKS for all the orders that have Proforma Invoices printed and run this program in Background every day or twice a day  when ever required..
    Let me know if you need any more help
    Regards,
    Ajai.
    Don't forget to reward points if helpful.

  • Main Order TECO when Sub-Order is open

    Dear All,
    I just wanted to clarify if we can do TECO of Main Order when Sub-Order is open? If we can control this using any settings.
    Presently it is not allowing to do TECO of Main Order as long as Sub-Orders are open.
    Regards,
    MLN Prasad

    The Main Order Cannot be set to TECO If any sub order exists for the Main Order and have not been completed. When Teco-ing the main order without having completed the sub order the system would show you the following message: Open Sub Orders Exist for the Order (IW 189). To avoid this for example if you want to allow the Technical Completion of the Main Order with its sub orders as open, then
    Go To SPRO-->Plant Maintenance -> Maintenance and Service Processing-> Maintenance and Service Orders-->Message Control
    Here look for the message IW 189 and change its category from E (Error) to W (Warning) or No Message. This would solve your problem.

  • Chaning Order type for Internal order

    Hi ,
    We have created a wrong order type for IO and we wants it to get changed.
    I understand that Order type is something that cannot be changed.
    Let me know whether the below steps are correct -
    1.  Close the existing wrong order by setting the deletion indicator
    2.  Create a new order with the correct order type
    IF there are any others ways that could be followed, it will be great if you could provide such info.
    Also, let me know if any thing else to be taken care in this situation.
    Regards,
    Sridevi

    Hi,
    The steps you have told are correct. Go ahead and do it, if case of any issue, come back. Just ensure that you have no actuals bookes, if they are you need to reverse them.
    Regards

Maybe you are looking for