PO Line Close API

Hi,
We have a legacy system that maintains PO related information.. whenever they close the PO lines..we need to update it in Oracle..
Can i close the PO lines using APIs... will it be possible using PO_CHANGE_API.update_po ?
Regards
Ramanathan

No. It is not a public API, but you can use po_actions.close_po. I have not tested, but should work.
Thanks
Nagamohan

Similar Messages

  • Command line options / API Support to launch the sequence file

    does teststand support any command line options / API Support to launch the sequence file and also populate the test run status. I want to explore the option of integrating the teststand with QC where I can launch the sequence from QC and results are sent back to QC.
    Thanks in advance,
      -Dilip

    Hi Dilip,
    Here are the command line options for TestStand v4.2.1:
    Command Line Processing
    Command line usage:
       seqedit.exe [<sequence file>]
                   [/goto <location>]
                   [/run <sequence> <sequence file>]
                   [/runEntryPoint <entry point> <sequence file>]
                   [/quit]
                   [/setCurrentDir]
                   [/useExisting]              
                   [<workspace file>]
          <location>:  property object path to the item to display in the file
                   Location examples:
                         TestExec.exe c:\example.seq /goto "Seq[\"MainSequence\"].Main[\"Power On\"]"
                         TestExec.exe c:\example.seq /goto "Seq[\"MainSequence\"].Main[\"ID#:JifH4ODTf0y1z7bJ​ne0G7D\"]"
                         TestExec.exe c:\example.seq /goto "Seq[1].Main[4].TS.LoadOpt"
          <sequence file>:  sequence file to open
          <sequence>:       sequence to run
          <entry point>:    entry point, such as Single Pass or Test UUTs, to run
          <workspace file>: workspace file to open
       You may specify multiple sequence files, sequences, and entry points.
       Quotes are required for arguments that contain a space, such as
       "Test UUTs" and "C:\My Documents\Test Sequence.seq"
    I don't believe you'll get a return status of the executed sequence from the editor on close; but you could design your sequence to write the status to a file and then read that by your QC application.
    -Jack

  • How To Load a Project Budget Line Through API in R12 ?

    Hello
    Could you please let me know how to load the project budget lines through API in R12 system, I am trying with below script but it is not working.
    Could you please let me know if you have any solution.
    =========================================================================================================================================================================
    Script
    DECLARE
    --––variables needed for API standard parameters
       l_api_version_number     NUMBER                                 := 1.0;
       l_commit                 VARCHAR2 (1)                           := 'T';
       l_return_status          VARCHAR2 (1);
       l_init_msg_list          VARCHAR2 (1);
       l_msg_count              NUMBER;
       l_msg_data               VARCHAR2 (2000);
       l_data                   VARCHAR2 (2000);
       l_msg_entity             VARCHAR2 (100);
       l_msg_entity_index       NUMBER;
       l_msg_index              NUMBER;
       l_msg_index_out          NUMBER;
       l_encoded                VARCHAR2 (1);
       i                        NUMBER;
       a                        NUMBER;
    --––variables needed for Oracle Project specific parameters
       l_pm_product_code        VARCHAR2 (100);
       l_pa_project_id          NUMBER;
       l_pm_project_reference   VARCHAR2 (100);
       l_budget_type_code       VARCHAR2 (30);
       l_change_reason_code     VARCHAR2 (30);
       l_description            VARCHAR2 (255);
       l_entry_method_code      VARCHAR2 (30);
       l_resource_list_name     VARCHAR2 (60);
       l_resource_list_id       NUMBER;
       l_budget_lines_in        pa_budget_pub.budget_line_in_tbl_type;
       l_budget_lines_in_rec    pa_budget_pub.budget_line_in_rec_type;
       l_budget_lines_out       pa_budget_pub.budget_line_out_tbl_type;
       l_line_index             NUMBER;
       l_line_return_status     VARCHAR2 (1);
       l_user_id                NUMBER;
       l_responsibility_id      NUMBER;
       API_ERROR                EXCEPTION;
    BEGIN
       -- SET GLOBAL INFO
       SELECT user_id,
              responsibility_id
         INTO l_user_id,
              l_responsibility_id
         FROM pa_user_resp_v
        WHERE user_name = 'RAJU';
       PA_INTERFACE_UTILS_PUB.SET_GLOBAL_INFO (p_api_version_number      => 1.0,
    p_responsibility_id       => l_responsibility_id,
    p_user_id                 => l_user_id,
                                               p_msg_count               => l_msg_count,
    p_msg_data                => l_msg_data,
    p_return_status           => l_return_status
       IF l_return_status != 'S'
       THEN
          RAISE API_ERROR;
       END IF;
    --––PRODUCT RELATED DATA
       l_pm_product_code        := 'GMS';
    --––BUDGET DATA
       l_pa_project_id          := 6271;
       l_pm_project_reference   := NULL;--'ABC';
       l_budget_type_code       := 'FC';
       -- l_change_reason_code := 'INITIAL';
       l_description            := 'New description –> 2';
       l_entry_method_code      := 'PA_TASKLVL_BASELINE';
       l_resource_list_id       := 1001;
    --––BUDGET LINES DATA
       a                := 1;
       FOR i IN 1 .. a
       LOOP
          l_budget_lines_in_rec.pa_task_id := 405156;
          l_budget_lines_in_rec.pm_task_reference       := NULL;
          l_budget_lines_in_rec.resource_alias          := 'Labor';
          l_budget_lines_in_rec.resource_list_member_id := '1034';
          -- l_budget_lines_in_rec.budget_start_date        := '01-Jan-13';
          -- l_budget_lines_in_rec.budget_end_date          := '31-Dec-14';
          -- l_budget_lines_in_rec.period_name          := 'JUL-10FY2011';
          l_budget_lines_in_rec.description             := 'Some Text';
          l_budget_lines_in_rec.quantity := 100.00;
          l_budget_lines_in_rec.raw_cost := 300.00;
          l_budget_lines_in (i)                         := l_budget_lines_in_rec;
       END LOOP;
    --––INIT_BUDGET
       pa_budget_pub.init_budget;
    --––LOAD_BUDGET_LINE
       FOR i IN 1 .. a
       LOOP
          pa_budget_pub.load_budget_line
                            (p_api_version_number           => l_api_version_number,
    p_return_status                => l_return_status,
                             p_pa_task_id                   => l_budget_lines_in (i).pa_task_id,
    p_pm_task_reference            => l_budget_lines_in (i).pm_task_reference,
    p_resource_alias               => l_budget_lines_in (i).resource_alias,
    p_resource_list_member_id      => l_budget_lines_in (i).resource_list_member_id,
    p_budget_start_date            => l_budget_lines_in (i).budget_start_date,
                             p_budget_end_date              => l_budget_lines_in (i).budget_end_date,
    p_period_name                  => l_budget_lines_in (i).period_name,
    p_description                  => l_budget_lines_in (i).description,
                             p_raw_cost                     => l_budget_lines_in (i).raw_cost,
    p_burdened_cost                => l_budget_lines_in (i).burdened_cost,
    p_revenue                      => l_budget_lines_in (i).revenue,
    p_quantity                     => l_budget_lines_in (i).quantity
       END LOOP;
       IF l_return_status != 'S'
       THEN
          RAISE api_error;
       END IF;
    --––EXECUTE_CREATE_DRAFT_BUDGET
        pa_budget_pub.execute_create_draft_budget (p_api_version_number        => l_api_version_number,
    p_msg_count                 => l_msg_count,
    p_msg_data                  => l_msg_data,
    p_return_status             => l_return_status,
    p_pm_product_code           => l_pm_product_code,
                                                  p_pa_project_id             => l_pa_project_id,
    p_pm_project_reference      => l_pm_project_reference,
    p_budget_type_code          => l_budget_type_code,
    p_change_reason_code        => l_change_reason_code,
    p_description               => l_description,
                                                  p_entry_method_code         => l_entry_method_code,
    p_resource_list_name        => l_resource_list_name,
    p_resource_list_id          => l_resource_list_id
       IF l_return_status != 'S'
       THEN
          NULL; --––RAISE API_ERROR;
       END IF;
    --––FETCH_LINE
       FOR l_line_index IN 1 .. pa_budget_pub.g_budget_lines_tbl_count
       LOOP
          pa_budget_pub.fetch_budget_line (p_api_version_number      => l_api_version_number,
    p_return_status           => l_return_status,
    p_line_index              => l_line_index,
    p_line_return_status      => l_line_return_status
          IF l_return_status != 'S' OR l_line_return_status != 'S'
          THEN
             RAISE api_error;
          END IF;
       END LOOP;
    --––CLEAR_BUDGET
       pa_budget_pub.clear_budget;
       IF l_return_status != 'S'
       THEN
          RAISE api_error;
       END IF;
    --––HANDLE EXCEPTIONS
    EXCEPTION
       WHEN api_error
       THEN
          FOR i IN 1 .. l_msg_count
          LOOP
             pa_interface_utils_pub.get_messages (p_msg_data           => l_msg_data,
    p_data               => l_data,
    p_msg_count          => l_msg_count,
    p_msg_index_out      => l_msg_index_out
             DBMS_OUTPUT.put_line ('Error Mesg ' || l_data);
             DBMS_OUTPUT.put_line ('Error Mesg ' || l_msg_data);
          END LOOP;
       WHEN OTHERS
       THEN
          FOR i IN 1 .. l_msg_count
          LOOP
             pa_interface_utils_pub.get_messages (p_msg_data           => l_msg_data,
    p_data               => l_data,
                                                  p_msg_count          => l_msg_count,
    p_msg_index_out      => l_msg_index_out
             DBMS_OUTPUT.put_line ('error mesg ' || l_data);
          END LOOP;
    END;
    =========================================================================================================================================================================

    Not knowing how its embedded...  you will need to get the report instance from the dll and cast it as a ReportDocument object.
    Given the info so far, that is all we can say.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Have a problem where I'll occasionally shift my computer (i.e. physically move it, say from the coffee table to my lap on the couch) and it will freeze and the screen will turn into a bunch of horizontal multicolored lines (closer to 100 lines than 5). Us

    Have a problem where I'll occasionally shift my computer (i.e. physically move it, say from the coffee table to my lap on the couch) and it will freeze and the screen will turn into a bunch of horizontal multicolored lines (closer to 100 lines than 5). Usually restarting (by holding the power button to turn it off) works. A few times that has resulted in the three beeps (RAM issue? -- I've since replaced my RAM [it *seemed* to stop it for a while, but maybe not]), but the second time it always works. Attempting to SSH into the computer during this state does not work. Please advise as to what to do/what reports I can run and post. I will take a pic next time it happens.
    Here's this info:
      Model Name:          MacBook Pro
      Model Identifier:          MacBookPro7,1
      Processor Name:          Intel Core 2 Duo
      Processor Speed:          2.4 GHz
      Number Of Processors:          1
      Total Number Of Cores:          2
      L2 Cache:          3 MB
      Memory:          8 GB
      Bus Speed:          1.07 GHz
      Boot ROM Version:          MBP71.0039.B0B
      OS 10.6.8

    Sounds like a problem with your GPU. Do you have an external display you could connect your machine to in order to test this? If the external display renders the same way, then your GPU is damaged. If the external renders fine, then the CPU display is damaged.

  • Suggest to have more information about ducument line close status

    Version: (Please provide the current version)
    2005B Patch 35
    Description of requirements: (Please provide a detailed description)
         We cant tell line status as close but which type in default report or query report
         Mainly there are 3 type :
         1-1 close by hand because typing mistake
         1-2 close by hand because customer modification
         1-3 close by target document normally
         1-4 close by target document normally but return
    Business needs: (Please describe the impact on your business, if the functionality is not realized)
         For this reason, when boss ask for sales report from sales order, we can't tell the number
         and have some fake number and when the line is closed, we can't ask customer put more reason.
    Valid as of: (Date that this legal requirement is applicable)
         Not a legal issue.
    Examples: (Please describe a typical example, how the functionality should work.)
         For Exemple - Sales Order Report or Query Report for Sales Order
         When the line status is close in Sales Order, there are a few situation.
         (1) Maybe after partial delivery, the customer cancle left quantity.
         (2) Maybe after partial delivery, the sales find out there is typing wrong so that close the line
             for a new line to modify.
         (3) Maybe after partial delivery, the price getting lower for left quantity or ship date modified for left quantity.
         (4) More there maybe some data wrong after partial delivery and need to return to redo again.
    Current Workaround: (Please describe the workarounds you are using at the moment)
         Close whole document and put status reason with user define field on header.
         Rewrite sales report by query and use the user define as flag.
    Proposed solution: (Please suggest how the new functionality should work)
         More line close status information support and sales/purchase report support.

    Version: (Please provide the current version)
    2005B Patch 35
    Description of requirements: (Please provide a detailed description)
         We cant tell line status as close but which type in default report or query report
         Mainly there are 3 type :
         1-1 close by hand because typing mistake
         1-2 close by hand because customer modification
         1-3 close by target document normally
         1-4 close by target document normally but return
    Business needs: (Please describe the impact on your business, if the functionality is not realized)
         For this reason, when boss ask for sales report from sales order, we can't tell the number
         and have some fake number and when the line is closed, we can't ask customer put more reason.
    Valid as of: (Date that this legal requirement is applicable)
         Not a legal issue.
    Examples: (Please describe a typical example, how the functionality should work.)
         For Exemple - Sales Order Report or Query Report for Sales Order
         When the line status is close in Sales Order, there are a few situation.
         (1) Maybe after partial delivery, the customer cancle left quantity.
         (2) Maybe after partial delivery, the sales find out there is typing wrong so that close the line
             for a new line to modify.
         (3) Maybe after partial delivery, the price getting lower for left quantity or ship date modified for left quantity.
         (4) More there maybe some data wrong after partial delivery and need to return to redo again.
    Current Workaround: (Please describe the workarounds you are using at the moment)
         Close whole document and put status reason with user define field on header.
         Rewrite sales report by query and use the user define as flag.
    Proposed solution: (Please suggest how the new functionality should work)
         More line close status information support and sales/purchase report support.

  • Inactive Trade Lines - Close or let it ride til the Creditor closes it?

    Hello all: Thanks to the advice of the forum I have had great advances in my credit worthiness. At this juncture there are several trade lines that I am not using and expect to go inactive. I know that the creditors decide when they stop reporting and at some point may even close the inactive accounts. The accounts not being used are:Chase Freedom $2k CL @ 21.24% (paid off in Apr 2015, not using because of interest rate and never have been offered a CLI, oldest card opened in 2009)Citi Double Cash $2k CL @ 19.99% (paid off in Apr 2015, not using because all CLI requests denied, opened in 2012)Apple Barclaycard $3k CL @ 21.99% (paid off in Apr 2015, not using because of interest rate, opened in Nov 2013)JC Penney Credit Card $2.3k CL @ 26.99% (paid off in September 2014, not used since, spouse uses their JCP account to earn rewards and PIF each month, opened in Jan 2014) The accounts being used are:Venture $15k CL @ 17.9% (opened June 2015) - PIFQuicksilver $5k @ 17.9% (opened May 2015, 0% til Feb 2016) - Carrying $3k balance til 0% endsDiscover It $4.5k CL @ 18.9% (opened June 2016, 0% til May 2016) - Carrying $4k balance til 0% endsAmerican Airlines Store Card $750 @ 25.99% (use this for travel as airfare charged is 6 months no interest, always PIF by month 6, opened Nov 2013)My Best Buy Store Card $1.5k @ 25.24% (use this for bonus Best Buy points, always PIF each month, opened Dec 2012) I do not like having the accounts sitting around for fear I might miss a fee, change in terms, or something else that would give me a baddie because I did not pay attention. I am not a fan of pulling cards out of the sock drawer every so often to charge something. I am working to keep things as simple as possible.  Obviously the big accounts are all newer but the CLs more than exceed my needs and the 0% balances will be PIF by the promo expiration. With the trade lines as they are now would it be worth the risk to the score to close the accounts I am not using (and don't intend to use)? Or should I just keep them around until the creditor gives up on me using them? Thanks for reading,TBG

    Be aware that if you close cards your overall utilization will go up.  Just something to consider.   I would probably escalate your CLI requests to the EO/facebook/twitter before giving up on them.  If that is the only reason you're getting rid of them.  "I do not like having the accounts sitting around for fear I might miss a fee, change in terms, or something else that would give me a baddie because I did not pay attention."As for that, there are apps online and on your phone that will keep track of all cards/payments due.  I use prism on my iphone.  Some use mint.

  • Unable to insert the new sales order line using API.

    Hi,
    when i am tring to insert the deleted line with ENTERED Status, i am getting the follwing error msg.
    Yesterday morning i insert the lines, but from yesterday evening onwords i am unable to insert line and i am getting below error msg.
    Item with inventory_item_id=394131 is not defined in Item validation Org
    i written the code like this
    l_step                     varchar2(250);
    l_err_msg               varchar2(1000);
    l_line_tbl                oe_order_pub.Line_Tbl_Type;
    lx_return_status           VARCHAR2(2000);
    lx_msg_count                NUMBER;
    lx_msg_data                VARCHAR2(2000);
    lx_header_rec                oe_order_pub.Header_Rec_Type;
    lx_header_val_rec           oe_order_pub.Header_Val_Rec_Type;
    lx_header_adj_tbl           oe_order_pub.Header_Adj_Tbl_Type;
    lx_header_adj_val_tbl           oe_order_pub.Header_Adj_Val_Tbl_Type;
    lx_header_price_att_tbl      oe_order_pub.Header_Price_Att_Tbl_Type;
    lx_header_adj_att_tbl           oe_order_pub.Header_Adj_Att_Tbl_Type;
    lx_header_adj_assoc_tbl      oe_order_pub.Header_Adj_Assoc_Tbl_Type;
    lx_header_scredit_tbl           oe_order_pub.Header_Scredit_Tbl_Type;
    lx_header_scredit_val_tbl      oe_order_pub.Header_Scredit_Val_Tbl_Type;
    lx_Header_Payment_tbl           oe_order_pub.Header_Payment_Tbl_Type;
    lx_Header_Payment_val_tbl      oe_order_pub.Header_Payment_Val_Tbl_Type;
    lx_line_tbl                oe_order_pub.Line_Tbl_Type;
    lx_line_val_tbl           oe_order_pub.Line_Val_Tbl_Type;
    lx_Line_Adj_tbl           oe_order_pub.Line_Adj_Tbl_Type;
    lx_Line_Adj_val_tbl           oe_order_pub.Line_Adj_Val_Tbl_Type;
    lx_Line_price_Att_tbl           oe_order_pub.Line_Price_Att_Tbl_Type;
    lx_Line_Adj_Att_tbl           oe_order_pub.Line_Adj_Att_Tbl_Type;
    lx_Line_Adj_Assoc_tbl           oe_order_pub.Line_Adj_Assoc_Tbl_Type;
    lx_Line_Scredit_tbl           oe_order_pub.Line_Scredit_Tbl_Type;
    lx_Line_Scredit_val_tbl      oe_order_pub.Line_Scredit_Val_Tbl_Type;
    lx_Line_Payment_tbl           oe_order_pub.Line_Payment_Tbl_Type;
    lx_Line_Payment_val_tbl      oe_order_pub.Line_Payment_Val_Tbl_Type;
    lx_Lot_Serial_tbl           oe_order_pub.Lot_Serial_Tbl_Type;
    lx_Lot_Serial_val_tbl           oe_order_pub.Lot_Serial_Val_Tbl_Type;
    lx_action_request_tbl           oe_order_pub.Request_Tbl_Type;
    v_hold_release_rec OE_HOLDS_PVT.order_tbl_type;
    v_hold_source_rec OE_HOLDS_PVT.Hold_Source_Rec_Type;
    v_err_msg               VARCHAR2(2000);
    v_return_flag VARCHAR2(1);
    v_err_flag               VARCHAR2(1);
    BEGIN     
    FOR c_ins_rec in (SELECT *          
              FROM terom_sales_order_lines_stg          
    LOOP
         IF c_ins_rec.flow_status_code = 'ENTERED' THEN
         -- ASSIGNMENT OF LINE RECORD FOR ENTERED STATUS
         l_line_tbl(1)           := OE_ORDER_PUB.G_MISS_LINE_REC;
         l_line_tbl(1).header_id      := c_ins_rec.header_id;
         l_line_tbl(1).inventory_item_id := c_ins_rec.inventory_item_id;     
         l_line_tbl(1).ordered_quantity := c_ins_rec.ordered_quantity;
         l_line_tbl(1).operation      := OE_GLOBALS.G_OPR_CREATE;      
    ELSE
         -- ASSIGNMENT OF LINE RECORD
         l_line_tbl(1)           := OE_ORDER_PUB.G_MISS_LINE_REC;
         l_line_tbl(1).header_id      := c_ins_rec.header_id;
         l_line_tbl(1).inventory_item_id := c_ins_rec.inventory_item_id;
         l_line_tbl(1).ordered_quantity := c_ins_rec.cancelled_quantity;     
         l_line_tbl(1).operation      := OE_GLOBALS.G_OPR_CREATE;
         END IF;
         -- API CALL
         APPS.OE_ORDER_PUB.PROCESS_ORDER(
                             p_api_version_number      => 1.0,
                             p_init_msg_list           => apps.fnd_api.g_true,
                             p_return_values           => apps.fnd_api.g_false,
                             x_return_status           => lx_return_status,
                             x_msg_count                => lx_msg_count,
                             x_msg_data                => lx_msg_data,
                             p_line_tbl                => l_line_tbl,
                             x_header_rec           => lx_header_rec,
                             x_header_val_rec           => lx_header_val_rec,
                             x_header_adj_tbl           => lx_header_adj_tbl,
                             x_header_adj_val_tbl      => lx_header_adj_val_tbl,
                             x_header_price_att_tbl      => lx_header_price_att_tbl,
                             x_header_adj_att_tbl      => lx_header_adj_att_tbl,
                             x_header_adj_assoc_tbl      => lx_header_adj_assoc_tbl,
                             x_header_scredit_tbl      => lx_header_scredit_tbl,
                             x_header_scredit_val_tbl     => lx_header_scredit_val_tbl,
                             x_line_tbl                => lx_line_tbl,
                             x_line_val_tbl           => lx_line_val_tbl,
                             x_line_adj_tbl           => lx_line_adj_tbl,
                             x_line_adj_val_tbl           => lx_line_adj_val_tbl,
                             x_line_price_att_tbl      => lx_line_price_att_tbl,
                             x_line_adj_att_tbl           => lx_line_adj_att_tbl,
                             x_line_adj_assoc_tbl      => lx_line_adj_assoc_tbl,
                             x_line_scredit_tbl           => lx_line_scredit_tbl,
                             x_line_scredit_val_tbl      => lx_line_scredit_val_tbl,
                             x_lot_serial_tbl           => lx_lot_serial_tbl,
                             x_lot_serial_val_tbl      => lx_lot_serial_val_tbl,
                             x_action_request_tbl      => lx_action_request_tbl
    COMMIT;
    can any one help me why this error mesg is coming, it's very URGENT.
    Thank,
    Shravan Kumar Kota.

    Hi,
    Have you checked this link?
    http://download-west.oracle.com/docs/cd/B25516_08/current/acrobat/115omapi.zip
    it has extensive information on OM APIs
    Regards
    Prashant Pathak

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

  • Cancel PO Line using API, Dont want reapproval to be initiated

    All,
    We have the following requirement:
    Based on certain conditions, I want to cancel few PO Lines. While doing it using "PO_Document_Control_PUB.control_document" API(This is the one being used by summary form(am I correct)), it is internally initiating reapproval process. I do not want that to happen because of the performace reasons.
    I found a workflow level setup "BYPASS_APPROVAL_HIERARCHY_FLAG" parameter which can be used for this, but I am afraid that it is going to screw some other things.
    So can anyone of you please help me in cancelling a po wihtout internally calling reapproval API ?
    Thanks,
    Saritha

    Hi sarita,
    Is this below issue got resolved? I have also same requirement. can you please pass on the solution which you have used.
    Thanks,
    Vijay

  • PO requisition line update API

    Hi guys
    I need API or Interface to update requisition line quantity, Please help me.
    Regards
    Mazhar

    I did not understand you requirements. Are you having problems in using PO Update?
    If so kindly refer to
    How to use PO_CHANGE_API1_S.update_po to Change Three Lines (Doc ID 1077455.1)
    PO_CHANGE_API1_S.UPDATE_PO Does Not Trigger Change Request Flow and Supplier Notification (Doc ID 1946341.1)
    Using the PDOI API-PO_CHANGE_API1_S.UPDATE_PO-Which fields in the PO Line can we update? Can we use the Standard PDOI interface to insert line updates to a Standard PO? (Doc ID 1930759.1)
    Troubleshooting Assistant: Oracle Purchasing Purchase Document Open Interface and API (Doc ID 1369663.2)

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

  • Sales Order line Reservation API

    Hi All,
    how to do reserve the sales order line by using plsql program. Can you provide the API name which i can use for sales order line reservation.
    thanks
    reddy

    Hi,
    Please mention the application release and the OS. Also, post the code of the API you are using.
    Please See if these documents are applicable.
    Note: 887776.1 - NO LOT VALIDATION AFTER PATCH 4649626
    Note: 396645.1 - "APP-GMI-83119 Invalid lot no" While Transferring from Newly Created Lot with Null Inventory
    Note: 428393.1 - Cannot Move Lot with No Onhand Inventory
    Regards,
    Hussein

  • Can anyone tell me how to insert the new sales order lines using API.

    Hi,
    I am trying to Insert new sales order lines using oe_order_pub.Process_Order API, but i am unable to insert.
    Help me on this.
    Thanks in Adavance
    Shravan Kumar.

    Hi,
    Have you checked this link?
    http://download-west.oracle.com/docs/cd/B25516_08/current/acrobat/115omapi.zip
    it has extensive information on OM APIs
    Regards
    Prashant Pathak

  • How to cancel a Move Order line using API

    Hi
    I have a requirement, where I have to cancel Move order lines.
    At times, multiple Move order lines are getting created for the same Sales order line.
    Even after the Sales Order line is shipped and closed, the move order line is still open and it also has a corresponding pending transaction in mtl_material_transactions_temp table.
    I came across INV_MOVE_ORDER_PUB.process move order line API.
    how do I use it to cancel the move order line. Any sample codes would be highly welcome.
    Thanks

    Finally, found an alternate solution.
    used the following code.
    ===================================
    SET serveroutput on size 1000000
    DECLARE
    l_return_status VARCHAR2(100);
    l_msg_count NUMBER;
    l_msg_data VARCHAR2(2000);
    l_msg_index NUMBER;
    l_user_id NUMBER;
    l_resp_id NUMBER;
    l_appl_id NUMBER;
    l_org_id NUMBER := &org_id;
    l_move_order_line_id NUMBER := &mo_line_id ;
    BEGIN
    SELECT user_id
    INTO l_user_id
    FROM fnd_user
    WHERE user_name = 'PRAWILNSON';
    SELECT responsibility_id
    ,application_id
    INTO l_resp_id
    ,l_appl_id
    FROM fnd_responsibility_vl
    WHERE responsibility_name = 'Order Management Super User';
    FND_GLOBAL.apps_initialize (l_user_id, l_resp_id, l_appl_id);
    MO_GLOBAL.set_policy_context ('S', l_org_id);
    MO_GLOBAL.init;
    DBMS_OUTPUT.put_line ('Calling INV_MO_BACKORDER_PVT to Backorder MO');
    DBMS_OUTPUT.put_line ('===============================');
    inv_mo_backorder_pvt.backorder (p_line_id => l_move_order_line_id
    ,x_return_status => l_return_status
    ,x_msg_count => l_msg_count
    ,x_msg_data => l_msg_data);
    DBMS_OUTPUT.put_line ('Return Status is : '|| l_return_status);
    -- Check Return Status
    IF l_return_status = fnd_api.g_ret_sts_success THEN
    DBMS_OUTPUT.put_line ('Successfully BackOrdered the Move Order Line');
    COMMIT;
    ELSE
    DBMS_OUTPUT.put_line ('Could not able to Back Order Line Due to Following Reasons' );
    ROLLBACK;
    FOR j IN 1 .. l_msg_count LOOP
    FND_MSG_PUB.get(p_msg_index => j
    ,p_encoded => fnd_api.g_false
    ,p_data => l_msg_data
    ,p_msg_index_out => l_msg_index);
    DBMS_OUTPUT.put_line ('Error Message is : '|| l_msg_data);
    END LOOP;
    END IF;
    END;
    /

  • Public API's to create delivery for each delivery line

    I've requirement to create unique delivery for each delivery line using API. Can any body use public API to meet this requirement. Please ! any idea and thought !
    R12.
    Thanks in Advance,
    Ramana

    Try the WSH_DELIVERIES_PUB.Create_Update_Delivery API. The API creates a new delivery record or updates an existing delivery record in WSH_NEW_DELIVERIES table. The DELIVERY_ID, NAME and return status of a new delivery are passed as OUT parameters, while the DELIVERY_ID or NAME of an existing delivery for update is passed as an IN parameter.
    Pass IN parameter p_action_code value UPDATE ---> incase you want to update existing delivery.
    Pass IN parameter p_action_code value CREATE --> incase you want to create a new dleivery.
    Parameter Usage Type Required
    p_api_version_number IN Number x
    p_init_msg_list IN Varchar2 -
    x_return_status OUT Varchar2 -
    x_msg_count OUT Number -
    x_msg_data OUT Varchar2 -
    p_action_code IN Varchar2 x
    p_delivery_info IN OUT Record x
    p_delivery_name IN Varchar2 -
    x_delivery_id OUT Number -
    x_name OUT Varchar2 -
    I hope all this infor. comes handy.
    -Dhawang

Maybe you are looking for

  • Display issues in Menu

    Hi, I have one iview, In the ivew, we have some options like "Menu". If you click on Menu, it will give dropdown of 5 options. But the problem is, the last options in the dropdowns is not visible. Pls suggest. Jay.

  • Smart form printing issue with LOCL printer and SAP printer

    Hi, The issues are as follows: 1. the top portion of the Invoice and PO does not print when using the SAP printer (works when using LOCL) 2. the shaded areas of the Order Confirmation and Invoice are black when printing to a SAP printer (works when u

  • Data Class - Upgrade

    Hello Experts, I'm working for an Upgrade Project!. Some how by other Developers data class has been changed for SAP standard Data Classes DDIM and DFACT to ZDIM and ZFACT as a part of the upgrade.  I can see few tables are with the standard ones and

  • Newbie with software problem

    hi guys im new to this site and b/berry phones. after finally getting all my settings set up, i have a problem with desktop software...my phone backed up ok, but i cant use any media services...i keep getting this message: "media services are not ava

  • How To Create A Mountain Lion NetRestore Image

    In previous versions of OS X this was not an issue. In Apple's atempt to "simplify" things it has become more difficult. I have a NetBoot server set up with OS X 10.8.2. I created a custom image on a MacBook Air. I booted to the recovery partition an