How to cancel "Order Line Fulfilled"?

Dears,
When I want cancel order ,it display :
"You are not allowed to cancel Order Line because:
Line Fulfilled"
Is there any method to cancel the order line? Which column decide order line Fulfilled??

Hi Sandeep Gandhi ,
Thank you for your response.
1.I wonder why the creditonly line created manually can be cancelled from screen?Also after lines be booked .
But the retrobill line cannot cancel although the line status ='Entered'.
2.I don't wnat canceling from sql but try to make the line not become "Fulfilled" before line created.

Similar Messages

  • Need to pass in line charges when cancel order line using API?

    Hi,
    Do we need to pass in line charges (charges, freight cost) when cancel order line using Oe_Order_Pub.Process_Order API?

    I found the answer to my own question:
    Yes it is a supported feature. It is documented on the following page:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeApp lication.html#event:invoke
    When you subscribe to the invoke event of the NativeApplication it will subsequently dispatch the event and you read the e.arguments Array object to get the startup arguments passed into the native application.

  • Problem with purchase orders and cancelling order lines

    Hi,
    We have a problem with purchase orders and cancelling order lines. For example we have created PO no. 4300291277:
    We have made a GR 5000186897 on 03.09.2010 amount 1.920 and tried to cancel it with GR 5000208866, but it takes the invoice amount 1.724 instead of 1.920. What is the correct way to undo this orders, so we cancel the 1.920 and not the 1.724?
    Please help me, your help will be highly appreciated.
    Regards,
    Najma.

    hi,
    You have to cancel the IR first...and then do cancel the GR...
    yes, there will be diff. in the price(if the price changes in bwtn)..if no changes in the price , the price will taken as old one..
    Process:
    1. Cancel IR
    2. Then cancel GR..
    3. then go the PO and try to delete the line item..
    Regards
    Priyanka.P

  • How to cancel multiple lines for an Purchase Order

    Hello everyone,
    Does anyone know a way to cancel multiple purchase order lines, without having to do it manually?
    Is there a way to do it automatically?
    Thanks and regards,
    Ankit

    Hi,
    Not sure if it's possible through PO screen. You may cancel PO lines programatically using po_document_control_pub.control_document with p_action = 'CANCEL'. You could use it inside a loop to cancel multiple lines.
    Hope it helps.

  • How to Import Order Line Items

    Hello,
    My job requires me to key over 50 order line items (per order) and I receive around 400 orders per week. It's pretty tiresome and its not ergonomical.
    I was wondering if there's any way I can "Import" order line items from an Excel sheet, instead. For each line item, there are only 3 columns I key in:
    - Part #
    - Order Qty #
    - Inv. Loc #
    Other required fields (Order UOM, Handling Type, Lead Time Cat., (Publish) List Price, etc.) will then populate automattically.
    My question is whether this is possible?
    Any help will me appreciated. I will then ask the IT department to help implement. Thank you.

    Importing can be done through EIM, but involves some work by Administrators.
    You can also try to do it with an Import Object, but this is not fully supported by Siebel.
    Another option would be through Script.
    More info on Supportweb: How to Create Import Object for Quote Item [ID 863848.1]
    How Can Scripting Be Used to Extract Information From an Excel File and Save the Information in Siebel Objects When Using Thin Client? [ID 798144.1]
    As a last resort you can also add some Visual Basic for Applications (VBA) to the Excel sheet.
    http://it.toolbox.com/blogs/siebel-answers/example-siebel-scripting-through-ms-excel-siebel-data-server-26861

  • How to Trap Order Line cancle event?

    Hello,
    I need to design a interface which will send the sales order line information whenever a order line get cancelled.
    Now question is where should I add this interface program to achive real time processing.
    Thank You.

    Vipin,
    The Oracle White Paper 'Business Events in Oracle Order Management' (May 2009, Srecko Bartl, Sarath Nimmagada, Vaibhav Kapoor - see MySupport Note 113492.1) will give you chapter and verse on this.
    Regards,
    Jon

  • How to cancel a line

    hello. i am trying to downsize my phone lines and will not need one of them anymore. how do i do that? online or in store? I want to make sure my other lines arent closed.

    Go into a Verizon wireless corporate store. Not a Verizon wireless authorized reseller.
    You can also call *611 or 1-800-922-0204 and select the line you want to cancel. However Verizon is trained to try and talk you out of it. So be firm. Also get a transaction number for the line cancel.
    Good Luck

  • No longer needing extra 20GB of space (iCloud). How to cancel order and payments?

    I ordered and paid for an additional 20GB of space (iCloud) per month.
    How do I cancel the order now that I no longer need?

    See the "Downgrade your iCloud storage plan" section of iCloud storage upgrades and downgrades - Apple Support

  • How to cancel order made today?

    Could I ask for help wit canceling my order made today for moving phone line from Sky and for broadband. Apparently my partner sorted Sky issues when I was ordering BT.
    What should I do?

    Hi Rainmakerjg,
    Thanks for the post and welcome to the forum.  I can cancel this order for you.
    Please drop me an email via the 'Contact Us' link in my profile. (click on my name and you will find the link under the "about me" section). Include your BT order number if you have received one, your full address details and the link to this thread.
    Cheers
    Sean
    BTCare Community Manager
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Urgent: how to cancel orders in OM using API.oe_order_pub

    Hi All,
    I have written API - oe_order_pub, its compiling successfully but the orders are not getting cancelled. Do I need to add few more things for the following code...
    Please help
    create or replace package body apcx_test_cancel_order is
    PROCEDURE process_order_api (
    p_header_rec IN OUT oe_order_pub.header_rec_type,
    p_line_tbl IN OUT oe_order_pub.line_tbl_type,
    p_action_request_tbl IN OUT oe_order_pub.request_tbl_type,
    x_return_status OUT VARCHAR2,
    x_msg_count OUT NUMBER,
    x_msg_data OUT VARCHAR2) IS
    l_header_val_rec oe_order_pub.header_val_rec_type;
    l_header_adj_tbl oe_order_pub.header_adj_tbl_type;
    l_header_adj_val_tbl oe_order_pub.header_adj_val_tbl_type;
    l_header_price_att_tbl oe_order_pub.header_price_att_tbl_type;
    l_header_adj_att_tbl oe_order_pub.header_adj_att_tbl_type;
    l_header_adj_assoc_tbl oe_order_pub.header_adj_assoc_tbl_type;
    l_header_scredit_tbl oe_order_pub.header_scredit_tbl_type;
    l_header_scredit_val_tbl
    oe_order_pub.header_scredit_val_tbl_type;
    l_line_val_tbl oe_order_pub.line_val_tbl_type;
    l_line_adj_tbl oe_order_pub.line_adj_tbl_type;
    l_line_adj_val_tbl oe_order_pub.line_adj_val_tbl_type;
    l_line_price_att_tbl oe_order_pub.line_price_att_tbl_type;
    l_line_adj_att_tbl oe_order_pub.line_adj_att_tbl_type;
    l_line_adj_assoc_tbl oe_order_pub.line_adj_assoc_tbl_type;
    l_line_scredit_tbl oe_order_pub.line_scredit_tbl_type;
    l_line_scredit_val_tbl oe_order_pub.line_scredit_val_tbl_type;
    l_lot_serial_tbl oe_order_pub.lot_serial_tbl_type;
    l_lot_serial_val_tbl oe_order_pub.lot_serial_val_tbl_type;
    BEGIN
    oe_order_pub.process_order (p_api_version_number => 1.0,
    p_init_msg_list => fnd_api.g_true,
    p_return_values => fnd_api.g_false,
    p_action_commit => fnd_api.g_false,
    x_return_status => x_return_status,
    x_msg_count => x_msg_count,
    x_msg_data => x_msg_data,
    p_header_rec => p_header_rec,
    p_line_tbl => p_line_tbl,
    p_action_request_tbl => p_action_request_tbl,
    x_header_rec => p_header_rec,
    x_header_val_rec => l_header_val_rec,
    x_header_adj_tbl => l_header_adj_tbl,
    x_header_adj_val_tbl => l_header_adj_val_tbl,
    x_header_price_att_tbl => l_header_price_att_tbl,
    x_header_adj_att_tbl => l_header_adj_att_tbl,
    x_header_adj_assoc_tbl => l_header_adj_assoc_tbl,
    x_header_scredit_tbl => l_header_scredit_tbl,
    x_header_scredit_val_tbl => l_header_scredit_val_tbl,
    x_line_tbl => p_line_tbl,
    x_line_val_tbl => l_line_val_tbl,
    x_line_adj_tbl => l_line_adj_tbl,
    x_line_adj_val_tbl => l_line_adj_val_tbl,
    x_line_price_att_tbl => l_line_price_att_tbl,
    x_line_adj_att_tbl => l_line_adj_att_tbl,
    x_line_adj_assoc_tbl => l_line_adj_assoc_tbl,
    x_line_scredit_tbl => l_line_scredit_tbl,
    x_line_scredit_val_tbl => l_line_scredit_val_tbl,
    x_lot_serial_tbl => l_lot_serial_tbl,
    x_lot_serial_val_tbl => l_lot_serial_val_tbl,
    x_action_request_tbl => p_action_request_tbl);
    END process_order_api;
    PROCEDURE cancel_order (
    p_order_header_id oe_order_headers.header_id%TYPE,
    p_change_reason_code VARCHAR2,
    p_change_comments VARCHAR2,
    x_return_status OUT VARCHAR2,
    x_msg_count OUT NUMBER,
    x_msg_data OUT VARCHAR2) IS
    l_header_rec oe_order_pub.header_rec_type := oe_order_pub.g_miss_header_rec;
    l_stmt NUMBER;
    BEGIN
    l_stmt := 10;
    l_header_rec := OE_ORDER_PUB.G_MISS_HEADER_REC;
    l_header_rec.operation := oe_globals.g_opr_update;
    l_header_rec.header_id := p_order_header_id;
    l_header_rec.cancelled_flag := 'Y';
    l_header_rec.change_reason := p_change_reason_code;
    l_header_rec.change_comments := p_change_comments;
    -- Call process order api
    l_stmt := 20;
    process_order_api (p_header_rec => l_header_rec,
    p_line_tbl => oe_order_pub.g_miss_line_tbl,
    p_action_request_tbl => oe_order_pub.g_miss_request_tbl,
    x_return_status => x_return_status,
    x_msg_count => x_msg_count,
    x_msg_data => x_msg_data);
    l_stmt := 30;
    EXCEPTION
    WHEN OTHERS THEN
    oe_msg_pub.add_text ('Unexpected error in apcx_test_order_api.cancel_order, stmt ' || l_stmt || ': ' ||SQLERRM);
    x_msg_count := NVL (x_msg_count, 0) + 1;
    x_return_status := fnd_api.g_ret_sts_unexp_error;
    if x_return_status = FND_API.G_RET_STS_SUCCESS then
    dbms_output.put_line('success');
    commit;
    else
    dbms_output.put_line('failure');
    rollback;
    end if;
    end;
    END apcx_test_cancel_order;
    Thanks in advance.
    Raj
    Message was edited by:
    user613675

    Hi,
    Can you pls try by passing this parameter value too.
    l_header_adj.adjusted_amount := 5;
    Thanks,
    Praveen

  • How to stop order lines from getting scheduled

    Details of the issue:
    OM: Auto Schedule profile option is set to No and Auto schdule check box at order type is not checked, still orders are getting scheduled upon booking. We are on R12
    Please provide any inputs you may have
    Thanks

    Check if the profile options have a different value at the user / responsibility level.
    Also check if you have any defaulting rules that populate the scheduled ship date.
    Check if the order workflow has a step that does scheduling.
    Check if the "Schedule Orders" program is scheduled to run every x minutes.
    Sandeep Gandhi

  • 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.

  • Unable to cancel sales order line using API

    Hi,
    After running the below API script I am getting the error message as
    Error Message: FND FND_AS_UNEXPECTED_ERROR N PKG_NAME OE_Order_PVT N
    PROCEDURE_NAME Process_Order N ERROR_TEXT ORA-01403: no data found
    Help me out to fix the issue.
    Please find the code below :
    create or replace procedure xxso_line_cancel
    is
    l_user_id NUMBER;
    l_resp_id NUMBER;
    l_appl_id NUMBER;
    l_header_rec_in oe_order_pub.header_rec_type;
    l_line_tbl_in oe_order_pub.line_tbl_type;
    l_action_request_tbl_in oe_order_pub.request_tbl_type;
    l_header_rec_out oe_order_pub.header_rec_type;
    l_line_tbl_out oe_order_pub.line_tbl_type;
    l_header_val_rec_out oe_order_pub.header_val_rec_type;
    l_header_adj_tbl_out oe_order_pub.header_adj_tbl_type;
    l_header_adj_val_tbl_out oe_order_pub.header_adj_val_tbl_type;
    l_header_price_att_tbl_out oe_order_pub.header_price_att_tbl_type;
    l_header_adj_att_tbl_out oe_order_pub.header_adj_att_tbl_type;
    l_header_adj_assoc_tbl_out oe_order_pub.header_adj_assoc_tbl_type;
    l_header_scredit_tbl_out oe_order_pub.header_scredit_tbl_type;
    l_header_scredit_val_tbl_out oe_order_pub.header_scredit_val_tbl_type;
    l_line_val_tbl_out oe_order_pub.line_val_tbl_type;
    l_line_adj_tbl_out oe_order_pub.line_adj_tbl_type;
    l_line_adj_val_tbl_out oe_order_pub.line_adj_val_tbl_type;
    l_line_price_att_tbl_out oe_order_pub.line_price_att_tbl_type;
    l_line_adj_att_tbl_out oe_order_pub.line_adj_att_tbl_type;
    l_line_adj_assoc_tbl_out oe_order_pub.line_adj_assoc_tbl_type;
    l_line_scredit_tbl_out oe_order_pub.line_scredit_tbl_type;
    l_line_scredit_val_tbl_out oe_order_pub.line_scredit_val_tbl_type;
    l_lot_serial_tbl_out oe_order_pub.lot_serial_tbl_type;
    l_lot_serial_val_tbl_out oe_order_pub.lot_serial_val_tbl_type;
    l_action_request_tbl_out oe_order_pub.request_tbl_type;
    l_chr_program_unit_name VARCHAR2 (100);
    l_ret_status VARCHAR2 (1000) := NULL;
    l_msg_count NUMBER := 0;
    l_msg_data VARCHAR2 (2000);
    l_api_version NUMBER := 1.0;
    CURSOR c_so_details
    IS
    SELECT ol.line_number, ol.shipment_number, ol.header_id, ol.line_id, ol.flow_status_code
    FROM
    oe_order_headers_all oh,
    oe_order_lines_all ol
    WHERE
    ol.header_id = oh.header_id
    AND ol.flow_status_code IN ('AWAITING_SHIPPING','ENTERED')
    AND oh.flow_status_code IN ('BOOKED', 'ENTERED')
    and oh.header_id = 34756
    and line_number=1;
    begin
    fnd_global.apps_initialize ( user_id => 1257 ,resp_id => 21623 , resp_appl_id => 660);
    mo_global.set_policy_context('S',122);
    mo_global.init('ONT');
    FOR i IN c_so_details
    LOOP
    l_line_tbl_in (1) := oe_order_pub.g_miss_line_rec;
    l_line_tbl_in (1).line_id := i.line_id;
    l_line_tbl_in (1).ordered_quantity := 0;
    l_line_tbl_in (1).cancelled_quantity := 4;
    l_line_tbl_in (1).cancelled_flag := 'Y';
    l_line_tbl_in (1).change_reason := '1'; --Administrative Reason
    l_line_tbl_in (1).change_comments := 'Cancel Order Line with reference to ticket#000000';
    l_line_tbl_in (1).operation := oe_globals.g_opr_update;
    oe_msg_pub.delete_msg;
    oe_order_pub.process_order
    (p_api_version_number => l_api_version,
    p_init_msg_list => fnd_api.g_true,
    p_return_values => fnd_api.g_true,
    p_action_commit => fnd_api.g_true,
    p_line_tbl => l_line_tbl_in,
    x_header_rec => l_header_rec_out,
    x_header_val_rec => l_header_val_rec_out,
    x_header_adj_tbl => l_header_adj_tbl_out,
    x_header_adj_val_tbl => l_header_adj_val_tbl_out,
    x_header_price_att_tbl => l_header_price_att_tbl_out,
    x_header_adj_att_tbl => l_header_adj_att_tbl_out,
    x_header_adj_assoc_tbl => l_header_adj_assoc_tbl_out,
    x_header_scredit_tbl => l_header_scredit_tbl_out,
    x_header_scredit_val_tbl => l_header_scredit_val_tbl_out,
    x_line_tbl => l_line_tbl_out,
    x_line_val_tbl => l_line_val_tbl_out,
    x_line_adj_tbl => l_line_adj_tbl_out,
    x_line_adj_val_tbl => l_line_adj_val_tbl_out,
    x_line_price_att_tbl => l_line_price_att_tbl_out,
    x_line_adj_att_tbl => l_line_adj_att_tbl_out,
    x_line_adj_assoc_tbl => l_line_adj_assoc_tbl_out,
    x_line_scredit_tbl => l_line_scredit_tbl_out,
    x_line_scredit_val_tbl => l_line_scredit_val_tbl_out,
    x_lot_serial_tbl => l_lot_serial_tbl_out,
    x_lot_serial_val_tbl => l_lot_serial_val_tbl_out,
    x_action_request_tbl => l_action_request_tbl_out,
    x_return_status => l_ret_status,
    x_msg_count => l_msg_count,
    x_msg_data => l_msg_data
    commit;
    l_msg_data := NULL;
    IF l_ret_status <> 'S'
    THEN
    FOR iindx IN 1 .. l_msg_count
    LOOP
    l_msg_data := l_msg_data || ' ' || oe_msg_pub.get (iindx);
    END LOOP;
    DBMS_OUTPUT.put_line ('Return Status: ' || l_ret_status);
    DBMS_OUTPUT.put_line ('Error Message: ' || l_msg_data);
    ELSE
    DBMS_OUTPUT.put_line ('Return Status: ' || l_ret_status);
    DBMS_OUTPUT.put_line ('Error Message: ' || l_msg_data);
    END IF;
    END LOOP;
    END;

    Hi,
    After running the below API script I am getting the error message as
    Error Message: FND FND_AS_UNEXPECTED_ERROR N PKG_NAME OE_Order_PVT N
    PROCEDURE_NAME Process_Order N ERROR_TEXT ORA-01403: no data found
    Help me out to fix the issue.
    Please find the code below :
    create or replace procedure xxso_line_cancel
    is
    l_user_id NUMBER;
    l_resp_id NUMBER;
    l_appl_id NUMBER;
    l_header_rec_in oe_order_pub.header_rec_type;
    l_line_tbl_in oe_order_pub.line_tbl_type;
    l_action_request_tbl_in oe_order_pub.request_tbl_type;
    l_header_rec_out oe_order_pub.header_rec_type;
    l_line_tbl_out oe_order_pub.line_tbl_type;
    l_header_val_rec_out oe_order_pub.header_val_rec_type;
    l_header_adj_tbl_out oe_order_pub.header_adj_tbl_type;
    l_header_adj_val_tbl_out oe_order_pub.header_adj_val_tbl_type;
    l_header_price_att_tbl_out oe_order_pub.header_price_att_tbl_type;
    l_header_adj_att_tbl_out oe_order_pub.header_adj_att_tbl_type;
    l_header_adj_assoc_tbl_out oe_order_pub.header_adj_assoc_tbl_type;
    l_header_scredit_tbl_out oe_order_pub.header_scredit_tbl_type;
    l_header_scredit_val_tbl_out oe_order_pub.header_scredit_val_tbl_type;
    l_line_val_tbl_out oe_order_pub.line_val_tbl_type;
    l_line_adj_tbl_out oe_order_pub.line_adj_tbl_type;
    l_line_adj_val_tbl_out oe_order_pub.line_adj_val_tbl_type;
    l_line_price_att_tbl_out oe_order_pub.line_price_att_tbl_type;
    l_line_adj_att_tbl_out oe_order_pub.line_adj_att_tbl_type;
    l_line_adj_assoc_tbl_out oe_order_pub.line_adj_assoc_tbl_type;
    l_line_scredit_tbl_out oe_order_pub.line_scredit_tbl_type;
    l_line_scredit_val_tbl_out oe_order_pub.line_scredit_val_tbl_type;
    l_lot_serial_tbl_out oe_order_pub.lot_serial_tbl_type;
    l_lot_serial_val_tbl_out oe_order_pub.lot_serial_val_tbl_type;
    l_action_request_tbl_out oe_order_pub.request_tbl_type;
    l_chr_program_unit_name VARCHAR2 (100);
    l_ret_status VARCHAR2 (1000) := NULL;
    l_msg_count NUMBER := 0;
    l_msg_data VARCHAR2 (2000);
    l_api_version NUMBER := 1.0;
    CURSOR c_so_details
    IS
    SELECT ol.line_number, ol.shipment_number, ol.header_id, ol.line_id, ol.flow_status_code
    FROM
    oe_order_headers_all oh,
    oe_order_lines_all ol
    WHERE
    ol.header_id = oh.header_id
    AND ol.flow_status_code IN ('AWAITING_SHIPPING','ENTERED')
    AND oh.flow_status_code IN ('BOOKED', 'ENTERED')
    and oh.header_id = 34756
    and line_number=1;
    begin
    fnd_global.apps_initialize ( user_id => 1257 ,resp_id => 21623 , resp_appl_id => 660);
    mo_global.set_policy_context('S',122);
    mo_global.init('ONT');
    FOR i IN c_so_details
    LOOP
    l_line_tbl_in (1) := oe_order_pub.g_miss_line_rec;
    l_line_tbl_in (1).line_id := i.line_id;
    l_line_tbl_in (1).ordered_quantity := 0;
    l_line_tbl_in (1).cancelled_quantity := 4;
    l_line_tbl_in (1).cancelled_flag := 'Y';
    l_line_tbl_in (1).change_reason := '1'; --Administrative Reason
    l_line_tbl_in (1).change_comments := 'Cancel Order Line with reference to ticket#000000';
    l_line_tbl_in (1).operation := oe_globals.g_opr_update;
    oe_msg_pub.delete_msg;
    oe_order_pub.process_order
    (p_api_version_number => l_api_version,
    p_init_msg_list => fnd_api.g_true,
    p_return_values => fnd_api.g_true,
    p_action_commit => fnd_api.g_true,
    p_line_tbl => l_line_tbl_in,
    x_header_rec => l_header_rec_out,
    x_header_val_rec => l_header_val_rec_out,
    x_header_adj_tbl => l_header_adj_tbl_out,
    x_header_adj_val_tbl => l_header_adj_val_tbl_out,
    x_header_price_att_tbl => l_header_price_att_tbl_out,
    x_header_adj_att_tbl => l_header_adj_att_tbl_out,
    x_header_adj_assoc_tbl => l_header_adj_assoc_tbl_out,
    x_header_scredit_tbl => l_header_scredit_tbl_out,
    x_header_scredit_val_tbl => l_header_scredit_val_tbl_out,
    x_line_tbl => l_line_tbl_out,
    x_line_val_tbl => l_line_val_tbl_out,
    x_line_adj_tbl => l_line_adj_tbl_out,
    x_line_adj_val_tbl => l_line_adj_val_tbl_out,
    x_line_price_att_tbl => l_line_price_att_tbl_out,
    x_line_adj_att_tbl => l_line_adj_att_tbl_out,
    x_line_adj_assoc_tbl => l_line_adj_assoc_tbl_out,
    x_line_scredit_tbl => l_line_scredit_tbl_out,
    x_line_scredit_val_tbl => l_line_scredit_val_tbl_out,
    x_lot_serial_tbl => l_lot_serial_tbl_out,
    x_lot_serial_val_tbl => l_lot_serial_val_tbl_out,
    x_action_request_tbl => l_action_request_tbl_out,
    x_return_status => l_ret_status,
    x_msg_count => l_msg_count,
    x_msg_data => l_msg_data
    commit;
    l_msg_data := NULL;
    IF l_ret_status <> 'S'
    THEN
    FOR iindx IN 1 .. l_msg_count
    LOOP
    l_msg_data := l_msg_data || ' ' || oe_msg_pub.get (iindx);
    END LOOP;
    DBMS_OUTPUT.put_line ('Return Status: ' || l_ret_status);
    DBMS_OUTPUT.put_line ('Error Message: ' || l_msg_data);
    ELSE
    DBMS_OUTPUT.put_line ('Return Status: ' || l_ret_status);
    DBMS_OUTPUT.put_line ('Error Message: ' || l_msg_data);
    END IF;
    END LOOP;
    END;

  • Remaining Order Line Calcellation

    Hi,.
    I have to cancel Order lines which r still open , For this am looking for
    OE_SALES_CAN_UTIL.cancel_remaining_order API , But in this api, there r two Parameters (p_header_Rec , P_header_id ) , header_id is ok , I can pass it, But p_header_rec is a Record type parameter , and i do not know which which value will pass in it..
    Can anybody tell me ?
    If there is any other api for Remaining Order Line Cancellation then plz tell me ASAP..
    This is on Urgent Basis ...?
    Regards
    Lalit

    Use the Process Order Api.cancellation to cancel the lines.
    Srini C

  • How to show logic of picking multiple stores to fulfill an order line item

    I'm still learning some basics with OPA.
    How do I represent the logic of picking multiple stores to fulfill an order line item when no one store has the requested quantity? A concrete example would be greatly appreciated as I'm still thinking procedurally for solutions.

    Hi!
    I believe this is following on from the thread:
    Calculating least cost of a product across stores using OPA
    So I'm assuming we're using a similar data model.
    If we want to involve quantity as well as cheapest price, then I'm assuming the requirement is:
    Find the cheapest price for the product from all the stores which still have quantity left of that product.
    This is where inferred relationships come in handy.
    Here is an example of what you can do with them to help solve this requirement.
    the store is a member of the product's stores if
    .ExistsScope(the store's prices)
    ..the price's product name = the product name
    the store is a member of the product's stores with remaining stock if
    .the store is a member of the product's stores and
    ..ExistsScope(the store's quantities)
    ...the quantity's product name = the product name and
    ...the quantity's amount > 0
    Then we basically want to pick the cheapest price for the product from the members of the relationship "the product's stores with remaining stock"
    Note that "the product's stores with remaining stock" could obviously be many instances, all with different prices. But for an order, a product needs to come from only one place! The deciding factor to "pinpoint" one place from this potential list of many could be based on anything, such as location, sales ranking, etc. But in this case Im going to assume lowest price is the decider.
    In the previous post we created a simple relationship between "the product" and "the prices" (which are contained by the store).
    We can make a more powerful relationship now:
    the price is a member of the product's available prices if
    ForScope(the price's store, the main store)
    .the main store is a member of the product's stores with remaining stock
    (I'm using an alias here to be 100% sure of which store is in scope)
    Now we can use the rules in the previous post, but change the relationship to the more advanced one we just created:
    the product's cheapest available price = InstanceMin(the product's available prices, the price's amount)
    Then
    the product's cheapest available store name = InstanceValueIf(the product's available prices, the price's store name, the price's amount = the product's cheapest available price)
    This is all psuedo code so many need some slight tweaks when you put it into OPM. Make sure you set up the relationships in a property file and declare all the attributes etc.
    Inferred relationships are really useful as "filters" sometimes. Here we first filtered all the stores which have prices for the product (i.e. have it in their catalogue). Then we filtered to get a list of all the stores which have stock remaining for the product. From that, we could find the cheapest available price.
    This is by no means the only way to do it! It's also by no means a simple problem but the great thing about OPA is that you can put all of the relationship config rules in the system rule folder / word doc, meaning that the source / business rules can still look relatively simple (in the end, it only took 2 lines of source rules to find the cheapest available price!). Once you've got the right set up and invested time in designing your data model, you will find it much easier to solve seemingly complex problems across entities.
    One word of warning though: if you have thousands of instances of prices, stores, products etc. then there is a performance impact of using many inferred relationships and alternatives should also be considered.
    Hope this helps!
    Feel free to contact me for more help on this. If you are relatively new to OPA and trying to tackle this you should consider investing in some training.
    Cheers,
    Ben

Maybe you are looking for

  • Help with page (no frames allowed)

    Hello all, I am a fairly new user to dreamweaver, and i am trying to figure out something . I need to create a webpage with navgation on the left, that when clicked, displays information on the right. I want to have three sets of text appear in the s

  • The headphone jack isn't working

    the headphone jack isn't working...it's will work out of one side...lots of static

  • HT201263 Recovery mode isn't working

    My iPod touch 3gen is disabled for 23,151,670 minutes and I tried to restore it, but it won't connect to iTunes unless I unlock it(which I obviously can't do). I tried recovery mode, but it says that iTunes should tell me that it detects a device in

  • Opening a new window via Flash

    HI everyone To reuse some code, I have made an application using HTML that incorporates a flash. The flash, however, contains a link that does not open a new window when it's suppose to in adobe air. The link opens in a new window when running it in

  • Stuck on recovery screen

    Hi. Last week I turned my Ipod off, and when I tried to turn it on I had this recovery screen (USB cable pointing an ITunes logo). I tried everything the net had to offer - from cold resets, and connecting the Ipod while pressing the Home button, to