Cancel Sales order Contract

Iam using bapi_busprocessnd_changemulti followed by bapi_busprocessnd_save for cancellation of contract.
But, my contract is not cancelled as I was passing cancproc, canc_reason, cancparty, cancrequst and cancrequst_tz to the bapi. And iam appending the input fields as well.
Pls. help me regd this.
Thanks,
Vinod

Hi,
Iam not passing the status.
My code is like this.
Declared w_cancel and w_cancel_ir.
*contract cancellation
w_cancel-ref_guid = header_guid.
*w_cancel-guid     = zguid_32.
w_cancel-cancproc = 'Zxxx'.
w_cancel-canc_reason = 'Zxxx'.
w_cancel-cancparty   = 'Zxxx'.
w_cancel-CANCREQUEST = '20060606114300'.
w_cancel-CANCREQUEST_TZ = 'GMTUK'.
append w_cancel to it_cancel.
w_cancel_ir-ref_guid = header_guid.
w_cancel_ir-canc_guid = zguid_32. "->created using guid_create FM.
append w_cancel_ir to it_cancel_ir.
And Iam passing to input fields as below:
*input fields for cancellation of contract
w_inpfields-ref_guid = header_guid.
w_inpfields-ref_kind = 'A'."for header
w_inpfields-objectname = 'CANCEL'.
w_inpfields-fieldname = 'REF_GUID'.
append w_inpfields to it_inpfields.
*w_inpfields-ref_guid = header_guid.
*w_inpfields-ref_kind = 'A'."for header
*w_inpfields-objectname = 'CANCEL'.
*w_inpfields-fieldname = 'GUID'.
*append w_inpfields to it_inpfields.
w_inpfields-ref_guid = header_guid.
w_inpfields-ref_kind = 'A'."for header
w_inpfields-objectname = 'CANCEL'.
w_inpfields-fieldname = 'CANCPROC'.
append w_inpfields to it_inpfields.
w_inpfields-ref_guid = header_guid.
w_inpfields-ref_kind = 'A'."for header
w_inpfields-objectname = 'CANCEL'.
w_inpfields-fieldname = 'CANC_REASON'.
append w_inpfields to it_inpfields.
w_inpfields-ref_guid = header_guid.
w_inpfields-ref_kind = 'A'."for header
w_inpfields-objectname = 'CANCEL'.
w_inpfields-fieldname = 'CANC_PARTY'.
append w_inpfields to it_inpfields.
w_inpfields-ref_guid = header_guid.
w_inpfields-ref_kind = 'A'."for header
w_inpfields-objectname = 'CANCEL'.
w_inpfields-fieldname = 'CANCREQUEST'.
append w_inpfields to it_inpfields.
w_inpfields-ref_guid = header_guid.
w_inpfields-ref_kind = 'A'."for header
w_inpfields-objectname = 'CANCEL'.
w_inpfields-fieldname = 'CANCREQUEST_TZ'.
append w_inpfields to it_inpfields.
*input fields for cancel_ir
w_inpfields-ref_guid = header_guid.
w_inpfields-ref_kind = 'A'."for header
w_inpfields-objectname = 'CANCEL'.
w_inpfields-fieldname = 'CANC_GUID'.
append w_inpfields to it_inpfields.
Please check this asap.

Similar Messages

  • Cancelled sales order

    Hi,
    Through which table and field , we can know that a sales order is cancelled?
    I need to give this information to technical consultant for making the report.So that cancelled sales order wont be displayed in the report.
    regards,
    sathya

    Hi,
    We are creating a sales report. I dont want to show the cancelled or deleted sales order in that report.
    If thats the case which table and field to be given to technical consultant......
    regards,
    sathya

  • Data Extraction - Cancelled Sales Order

    Dear BW Experts,
    In the business scenario, we are extracting 2LIS_11_VASCL (Scheduling line)  and 2LIS_12_VCSCL(Shipping Scheduling line delivery). I found that canceled sales order in the BW system but those sales order are not exist in R/3. We extracted data from R/3 to BW. Can u pl. suggest a why canceled sales order exist in BW ? What are the remedies to resolve this issue ?
    Thks for support.

    Hi,
    As it is a standard data source,so whatever be the canceled
    order these are handled by data source itself.Please see
    the mapping between 0RECORDMODE to ROCANCEL If it
    is properly done also as mentioned in the above thread do
    the required mapping.
    But in case of generic extractor we need to do some thing
    ie we need to take the deletion flag to Bw and at the
    reporting level we need to use filter to avoid this situation.
    Hope this is helpful.
    Thanks,
    Saveen Kumar

  • How to prevent Copy from Cancelled Sales Orders.

    Hi,
    I have a requirement as below.
    I want to stop users from Copying a Cancelled Sales Order Lines.
    Can anybody please let me know how I can achieve this.
    I tried using the processing constraints but couldn't succeed.
    Thanks in advance.
    Thanks
    Shekhar

    Hi,
    Also you can refer the following security rule feature which oracle provides to set your rule from users performing actions like copying, deleting and cancelling.
    http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/oe/esecruls.htm#r_secrul
    Thanks
    Nancy

  • Cancel Sales Order lines that are picked

    Hi
    1. I'm trying to cancel sales order lines through process order api that are picked and delivery status is Staged/Pick Confirmed. The error is
    You are not allowed to cancel Order Line because:
    Line has been pick confirmed/staged.
    I'm unable to perform by below means
    1.There is a processing constraint on the field SCHEDULE_ARRIVAL_DATE.
    Delete the processing constraint and retry the cancel line process - Processing constraint form the fields are protected against update
    2.Navigate to the shipping transaction form and query the order. Select the line and enter 0 at shipped quantity.Save the record.Ship confirm the line, this will cause the line to be backordered.Query the order line in the order entry form and cancel this. - Shipping transactions form the fields are protected against update
    2. Is there a way to cancel Internal Sales Order(ISO) lines of one OU and the corresponding internal requisition is another OU
    Thanks
    kumar

    If you are in R12, there are some enhancements from Oracle that allows updating/cancelling certain Internal requistion fields and Internal orders automatically. You may need to disable few processing constraints too.
    As of Now Oracle support change to following attribute at OM side
    1 Order Quantity
    2 Request Date
    3 Schedule date
    4 Arrival date
    Similarly if we make changes in following fields in Approved IR
    1 Quantity
    2 Need by Date
    These changes will got reflected in ISO
    Plus cancel the IR line or ISO line, the other one gets cancelled automaically.
    To cancel the picked line, first undo the pick confirmation process by back ordering. or unassign the delivery details from the delivery (if created already) and cancel the delivery.In either case, you need to manually trasnfer the qty from staging area to original locations. Oracle doesn't automatically move the qty back, (undo move order transaction).
    Ganesan.

  • How to cancel sales order which I placed?

    How to cancel sales order which I placed? And this order had not been delivered.

    Rejection SO & Cancellation SO both are same. So please follow the below steps-
    1. Use Tcode VA02
    2. Enter Sales order number which you want to cancel.
    3. Click "enter"
    4. Click the icon "Reject Document"
    5. Select suitable u2018Reason for rejectionu2019.
    6. Save
    Many Thanks & Regards,
    Susanta K Senapati

  • How to use of API for Cancel Sales Orders

    Hi....
    I want to use API for Cancel Sales Orders. Plz give me advice how we can cancel orders. I know that there is procedure provide in ORACLE APPs (i.e. OE_ORDER_PUB.process_order). But in this procedure i know the how to create and update sales order, but how to Cancel order with the use of this API.
    Plz send me soultion as soon as possible. ITS VERY VERY URGENT BASE.
    Thanks in Advance.

    Hi all,
    We are importing Sales Orders on 11.5.9 using OE_Order_PUB.Process_Order API .We have supplied most of the mandatory fields and the same data works from the front end. When we use the API it throws a Ora 20001.
    A snapshot of the error message.
    SQL> exec pk_process_object.process_order('1o');
    Message Count is :2
    Message is RA-20001: User in Package OE_Header_Util Procedure Get_Order_Number
    Message is :User-Defined Exception in Package OE_Header_Util Procedure
    Pre_Write_Process
    Return Status is ErrorU
    PL/SQL procedure successfully completed.
    --------------------------------------------------------------------------------------------

  • Change Sales Order Contract Data FM

    Hi Friends
    Kindly let me know if there is any function module or BAPI to change Sales order Contract Data of each line item. 'BAPI_SALESORDER_CHANGE' dosent have that.
    Thanks

    Hi Ram,
    Check will this helps you ...
    call function 'BAPI_CUSTOMERCONTRACT_CHANGE'
    exporting
    SALESDOCUMENT = vbeln
    CONTRACT_HEADER_IN = w_header
    CONTRACT_HEADER_INX = w_headerin
    INT_NUMBER_ASSIGNMENT = 'X'
    ORDER_HEADER_INX
    BEHAVE_WHEN_ERROR = 'P'
    LOGIC_SWITCH
    TESTRUN = 'X'
    convert = 'X'
    importing
    salesdocument = v_order
    salesdocument = vbeln
    tables
    return = t_return
    CONTRACT_items_in = t_items
    CONTRACT_ITEMS_INX = r_items
    CONTRACT_partners = t_partners
    CONTRACT_schedules_in = t_sched
    CONTRACT_conditions_in = t_conds
    CONTRACT_text = t_texts .
    Regards,
    Poornima

  • Bill plan of a Sales Order/Contract

    Hi,
    Where do we create/update the bill plan for a sales order/contract.
    I tried VA41 where a bill plan button is provided. But need to understand the bill plan from a functional perspective.
    Any short summary on the same will be helpful.
    Also please provide Transaction/steps to update a bill plan.
    Thanks.
    Shreyas

    Hi
    A billing plan is a schedule of individual billing dates
    for a single item in a sales document.
    You can define a billing plan at header level, which is
    then valid for all items assigned to it.
    During sales order processing, the system determines from
    the item category whether a billing plan is required and,
    if so, which type of plan: The type of billing plan that
    is determined at this point is set up in Customizing and
    cannot be changed in the sales document.
    For each billing plan you create, you can enter a freely-
    definable search term in the details screen of the billing plan in the sales document.
    When you save the document, the system automatically
    assigns a number that later uniquely identifies the
    individual plan.
    You can use the search term later to locate specific billing plans.
    Transaction code for Sales order - VA01, VA02 & VA03
    Kindly check the following link for more information on Billing plan:
    http://help.sap.com/saphelp_47x200/helpdata/en/dd/560674545a11d1a7020000e829fd11/frameset.htm
    kindly reward points for useful answers!
    best regards,
    Thangesh

  • How to Cancell Sales Order Items......

    Hi Experts,
    How to Cancell Sales Order Items ?
    Presently I am deleteing Indidually Items in Sales Order but I am getting records through Report.
    Is there any proper way to Cancel Sales Order Items / Full Sales Order and also I can get report of which items has been cancelled and so on.
    Pl. reply.
    Yusuf

    you can not cancel sales order.. SAP has not given that option.. only opition you have is delete the line items by going to VA02, if its open sales order or blocking the sale order..
    reward if it helps..
    ramki

  • Prevent User close or Cancel Sales Order manualy

    Hi all!
    I am using SP Notification  to prevent user close or cancel Sales Order manually from pop up Menu.
    Here is my SP>
    If @object_type = '17' and (@transaction_type ='U')
    BEGIN
    if exists
      (SELECT T0.[DocNum] FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    WHERE T0.[CANCELED] ='Y' or  T0.[DocStatus] ='C' and T1.[TargetType] ='-1')
    begin
    set @error =100
    set @error_message = N' Cannot Close directly !!! !'
    end
    End
    But i not success because i think "U" and "A" event is not effect for this case.

    Dear Tien,
    Same thing you can do by user authorization.
    Path:
    Admin > system initialization >authorization >general authorization >cleck on Select user > General > Drag and Relate >Set flag for the cancel document and close document.
    May this help you.
    Regards
    MANGESH PAGDAHRE.

  • Which field stores the Cancelled Sales Order Status

    Hi,
          I am checking for duplicate PO No in sales Order header VBAK. The criteria is Slaes Order must not be a cancelled one. I am searching VBAK to find the status field to determine the whether its cancelled or not.
    Thank U for Ur time.
    Cheers,
    Sam

    Hello Sam,
    to find out whether a sales order item is cancelled - better rejected - (if it is cancelled there is no VBAK or document any more) you could use the field reason for rejection on item level which is the field VBAP-ABGRU.
    Best regards, Baerbel

  • Removal of Cancelled Sales Order

    Hi,
    Is it possible to clear all Sales Order whose status is Cancelled from the System.
    Ronald

    Hi Ronald,
    unfortunately no. They must stay there in the database (I suppose for statistical purposes only). DI doesn't allow document deletion.
    It seems that B1 lack some form of simple data cleanup. For example in some cases we needed to switch the customer from demo to production mode, cleaning all test documents he/she has issued. In my opinion this would be a great improvement.
    Regards

  • Cancel Sales order return

    Dear SAPfriend,
    A return has been done 2 times for the same order and that 2 already completed (Trasnfer posting Done)
    i have reverse the one of sales return using :-
    1) VF01 - to cancel the return invoice.
    2) VL09 - to cancel PGI.
    3) VL02N - to change picking.
    4) VA02 - to put rejection reason.
    when i go to FBL5N, that one of sales order return that i reverse still in the customer line item, how should i remove it from customer open line item ????

    Hi Nizam,
                  even after return the cycle , the customer line items not reflecting means, check whether the accounting doc. generated for cancelled invoice or not. if u reverse the accounting document.u can see the reflections in the line items,
                   so, go to vf02 enter cancelled invoice and cllick on flag, release to accounting.
       hope u will get the solution.
    regards,
    ram

  • How to cancel sales order

    There is a need to cancel the whole sales order due to error in entering wrong sold-to party.
    I can resolve this by two way
    1) change sold to party  -- no subsequent document created
    2) cancel the sales order
    how to do the following things.

    Hi,
    Go to VA02 and give your sales order number and press execute.
    If you have not created any reference document with sales order.
    Then to go sales document u2013 delete.
    By this way you can delete your sales order.
    Go to VA02 and give your sales order number and press execute.
    Over there give delivery block and billing block to the sales order in the overview screen.
    If you put this then your order will be active and is some remove the blocks then delivery and billing can be possible for this.
    So delete the sales order if you donu2019t have any problem and create the new one.
    Regards
    Raj.

Maybe you are looking for

  • Hook up 2 external monitors with Lion OS

    How do you get 2 external monitors to work with Lion OS, now that I have installed Lion I can no longer boot my second monitor? I have downloaded DisplayLink's new software but still no luck.  Any ideas?  Thanks

  • Weblogic 6.1's 2-way SSL

    I'm using wsl proxy plug-in between iPlanet Webserver 4.1SP9 and wsl 6.1. The obj.conf of iPlanet web server was configured to use path proxy: -------- httpd.conf -------- Init fn="load-modules" funcs="wl_proxy,wl_init" shlib="/usr/netscape/web/plugi

  • Can't open all slides in project.

    I've created a long project with 400 slides in Captivate 4 running Windows XP (4 GB RAM). After reopening, there are only 145 slides visible. However, the tooltip visible on the list of the recent projects shows there are 400 slides. How to open all

  • CUMA 7.1 Integration problem

    Hi, I have Cisco Unified Mobility Advantage 7.1, CUCM 8 and Unity Connection 8. I have integrated CUCM and Unity Connection to CUMA 8. When i connect my UMC client to the server I can not see my voice mails and call history. In CUMA Enterprise Adapte

  • Do I need to unistall Version 3.6.23 before installing version 7.01

    I want to update to v7.0.1 but v3.6.23 would not make it available. Have now downloaded v7.01 but I want to know if I need to unistall v3.6 before installing v7