Urgent help needed - Process order api error

Hi All,
I am having a problem with implementing process order api. I have all the necessary details, but i couldn't get working. I think the problem might be with global initialization or with api parameter declaration. I am posting the code so any help might be helpful.
Any help is urgently required and greatly appreciated.
Thanks
srinivas
Edited by: user2138419 on Feb 6, 2010 4:21 PM

Hi,
I solved the above issue and I thought may be this would be helpful to others. I solved the process order issues through assisgming proper responsibility and proper org_id under which you are booking orders. If we have these tow correct, then most of the issues will be rectified..

Similar Messages

  • Process Order API errors - Urgent

    Hi All,
    I have a requirement that involves importing booked orders from CSV file to Oracle using process order API. I am using the API for the first time and I am getting the following errors:
    ERROR WHILE BOOKING ORDER 3. Validation failed for the field - Bill To3. Validation failed for the field - Order Type3. The flexfield on this field contains a flexfield bind variable with a :BLOCK.FIELD reference. This prohibits operation in the mode that optimizes performance over a wide-area network.
    To continue using this form, have the system administrator either rem
    I am not sure where to begin with. I am sure that I am passing the correct value of Bill To Address ID of the distributor since I am able to create the order from front end. I am not sure why the bill to address ID failed. I am clueless about the rest of the two errors.
    Any help is greatly appreciated.
    Thanks
    Sudheer

    Hi Sudheer,
    We believe the issue is with the Data which you want to load in APPS is not matching with the setup.. For example you are getting error for order type which is basically Sales order transaction type and its a mismatch between system defined value and conversion data file.
    You are having the issues b'coz mismatch between setup and data which you want to bring to Apps through API or different method of conversion.
    In your case you need to check custmer bill to site, SO trx type (Order type for both Header & Line) of your conversion file.
    When you create Order from front end, Order type basically pick values from trx type LOV defined for the site in setups. Simillarly when you mention a customer name sysem again check the customer details of that particular customer like bill to, Ship to sites etc...
    Hope above explanaion will help.
    Regards, :)
    S.P DASH

  • Urgent helps needed on REP-1222 error

    Hi all,
    I have encounter error REP-1222 when trying to decrease one field in the report. Look like a bug, but just not sure how to resolve it. Any one got experience on this ? Btw, I'm using report 6i version 6.0.8.19.0.
    Thanks.
    Rgds
    Lim

    Hi,
    I solved the above issue and I thought may be this would be helpful to others. I solved the process order issues through assisgming proper responsibility and proper org_id under which you are booking orders. If we have these tow correct, then most of the issues will be rectified..

  • Urgent Help - Server Process stop with Error Code -11113

    Hi All,
    I need help urgently,
    I have installed EP 7.0 on Win 2003, when i restarted the server,
    server process in MMC,  server0 stop with Exitcode -11113
    Anybody have any idea about this
    Thanks
    Sachin

    Sachin,
    Refer to the threads below.
    j2ee stopped exitcode -11113
    Server0 fails JLaunchIExitJava: exit hook is called (rc=-11113)
    Exitcode -11113
    Also,take a look at the SAP NOTE : 810434
    Hope it helps resolve your issue.
    Cheers,
    Sandeep
    p.s Consider rewarding for handy posts!

  • Urgent - help needed in order to complete brochure by end of today..

    Hello,
    I'm trying to finishing designing a brochure in Indesign. When I import a cut out image from photoshop into Indesign it always gives it a white background, how do I remove the white background? help desperately needed, deadline 4 this is the end of today..
    Thanks,
    mot4

    Use the Black arrow (Selection tool) to select the frame. The White arrow (Direct Select tool) selects the content. With the frame selected, set the fill color to [None].  I have to say, though, that it requires a LOT of work and planning ahead to get anything other than a fill of None in an image frame. You must either be placing into a pre-existing frame that has a fill applied, or you must use an undocumented feature to create a special object style to add a default fill to a new image frame created on the fly. Out of the box, image frames are ALWAYS no fil, no stroke when drawn, regardless of what might be set for default stroke and fill applied to shapes.Dragging from Bridge should be giving a default frame unless you drop inside something pre-drawn.
    You said you have a transparent Layer 0 in Photoshop. Do you have more than one layer? If so let's try turning off everythign except the piano. Right click the image in ID and choose "Object Layer Options" and you can turn inidvidual layers on or off in ID. Try turnning off visibility for everythign except the layer with the cutout piano.

  • Urgent help needed - advanced pricing apis - qp_preq_pub

    Hi,
    We are trying to derive prices for an item when we enter the item number and customer number and freight terms. We used the apis qp_preq_pub and oe_order_adj_pvt.price_action. , But we are not having much success of we do not pass the price list id.
    Any help is highly appreciated.
    Prasad

    What version of EBS are you on?  I know in 12.1.3, there was a price book feature that enabled you to output the pricing from a particular list/modifier.  I didn't find it particularly helpful for what I was trying to do (i.e. show all the prices a customer could use), but what I deemed a deficiency may work to your advantage.

  • Urgent help needed please, with parse error message

    Hi. I've got a page which comes at the end of a 3 page sequence - search, results, detail. The detail page had been working fine, but yesterday I added a second recordset to the page, to pull reviews from a separate table, and now I'm getting the following error:
    Parse error: syntax error, unexpected ')', expecting T_STRING or T_VARIABLE or '$' in /Applications/MAMP/htdocs/goodvetguide/practice_Detail.php on line 78
    (should point out that I'm using DMW8 on a Mac and testing locally using MAMP as my testing server).
    line 78 is:
    if (isset()) {
      $Parampractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    and the full code for the page is posted below. I've googled this error and found a variety of different reasons for why this might be happening but none of the examples I've seen appear to apply to my case, so I'd really appreciate any assistance anyone can offer with this. Thanks in advance.
    Page code:
    <?php require_once('Connections/connGVG.php'); ?>
    <?php require_once('Connections/connGVG.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?><?php
    if (!session_id()) session_start();
    ?>
    <?php
    $Parampractice_WADApracticelist = "-1";
    if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $ParamSessionpractice_WADApracticelist = "-1";
    if (isset($_SESSION['WADA_Insert_practicelist'])) {
      $ParamSessionpractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_SESSION['WADA_Insert_practicelist'] : addslashes($_SESSION['WADA_Insert_practicelist']);
    $Parampractice_WADApracticelist = "-1";
    if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $Parampractice_id_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $Parampractice_id2_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id2_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $ParamSessionpractice_id_WADApracticelist = "-1";
    if (isset()) {
      $ParamSessionpractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    mysql_select_db($database_connGVG, $connGVG);
    $query_WADApracticelist = sprintf("SELECT practice_id, practicename, address1, address2, address3, address4, postcode, location, practicewebsite, practicetype, starrating FROM practicelist WHERE practice_id = %s OR ( -1= %s AND practice_id= %s)", GetSQLValueString($Parampractice_id_WADApracticelist, ""),GetSQLValueString($Parampractice_id2_WADApracticelist, ""),GetSQLValueString($ParamSessionpractice_id_WADApracticelist, ""));
    $WADApracticelist = mysql_query($query_WADApracticelist, $connGVG) or die(mysql_error());
    $row_WADApracticelist = mysql_fetch_assoc($WADApracticelist);
    $totalRows_WADApracticelist = mysql_num_rows($WADApracticelist);
    $colname_rsReviews = "-1";
    if (isset($_GET['WADALocation'])) {
      $colname_rsReviews = (get_magic_quotes_gpc()) ? $_GET['WADALocation'] : addslashes($_GET['WADALocation']);
    mysql_select_db($database_connGVG, $connGVG);
    $query_rsReviews = sprintf("SELECT * FROM reviews WHERE practice_id = %s", GetSQLValueString($colname_rsReviews, "int"));
    $rsReviews = mysql_query($query_rsReviews, $connGVG) or die(mysql_error());
    $row_rsReviews = mysql_fetch_assoc($rsReviews);
    $totalRows_rsReviews = mysql_num_rows($rsReviews);
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Details practicelist</title>
    <style type="text/css">
    <!--
    -->
    </style>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <link href="WA_DataAssist/styles/Refined_Pacifica.css" rel="stylesheet" type="text/css" />
    <link href="WA_DataAssist/styles/Arial.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    /* Details page CSS */
    .WADADetailsContainer {
    font-size: 11px;
    #WADADetails {
    padding-top: 10px;
    </style>
    </head>
    <body>
    <div id="wrapper">
      <div id="header"></div>
      <div id="content">
        <div id="menu">
          <a href="addreview.html">Add review</a>  <a href="contact.html">Contact</a>  <a href="terms.html">Terms</a>  <a href="practice_Search.php">Search</a>  <a href="about.html">About </a><a href="index.html">Home </a></div>
        <div id="contentleft2">
          <div id="greenpiccont"></div>
          <div id="cright">
            <div class="boldwhite" id="rightblue">Review your vet<br />
              <br />
              <span class="smallbold">Tell us your experience</span><br />
              <br />
              <span class="smallwhite">Give people information<br />
              on your experiences so <br />
              that they can make an<br />
              informed decision.</span><br />
              <div id="startbutton"><a href="#">Start</a></div>
            </div>
          <div id="bluemap2"></div>
          <div id="searchbox">
            <table width="202" border="0" cellspacing="0">
              <tr>
                <th scope="row"><div align="left" class="smalltext">Search by postcode</div></th>
              </tr>
              <tr>
                <th height="31" scope="row"><input name="Name" class="Width250px" /></th>
              </tr>
              <tr>
                <th scope="row"><div align="left" class="smalltext">Miles</div></th>
              </tr>
              <tr>
                <th height="39" scope="row"><div align="left">
                  <input name="Name2" class="Width250px" />
                </div></th>
              </tr>
            </table>
          </div>
          </div>
          <div class="about10" id="contl">Practice details<br />
            <div class="WADADetailsContainer"> <a name="top"></a>
              <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
              <?php if ($totalRows_WADApracticelist > 0) { // Show if recordset not empty ?>
                <div id="WADADetails">
                  <table class="WADADataTable" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                      <th class="WADADataTableHeader">Practice name:</th>
                      <td class="WADADataTableCell"><strong><?php echo($row_WADApracticelist['practicename']); ?></strong></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Practice type:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['practicetype']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Address:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address1']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader"> </th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address2']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader"> </th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address3']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader"> </th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address4']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Postcode:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['postcode']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Location:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['location']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Website:</th>
                      <td class="WADADataTableCell"><a href="http://www.<?php echo $row_WADApracticelist['practicewebsite']; ?>" target="_blank"><?php echo($row_WADApracticelist['practicewebsite']); ?></a></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Star rating:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['starrating']); ?></td>
                    </tr>
                  </table>
                  <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
                  <div class="WADAButtonRow">
                    <table class="WADADataNavButtons" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td class="WADADataNavButtonCell" nowrap="nowrap"></td>
                        <td class="WADADataNavButtonCell" nowrap="nowrap"></td>
                        <td class="WADADataNavButtonCell" nowrap="nowrap"><a href="practice_Results.php" title="Results"><img border="0" name="Results" id="Results" alt="Results" src="WA_DataAssist/images/Pacifica/Refined_results.gif" /></a></td>
                      </tr>
                    </table>
                  </div>
                </div>
              <?php } // Show if recordset not empty ?>
              <?php if ($totalRows_WADApracticelist == 0) { // Show if recordset empty ?>
                <div class="WADANoResults">
                  <div class="WADANoResultsMessage">No record found.</div>
                </div>
                <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
                <div class="WADADetailsLinkArea">
                  <div class="WADADataNavButtonCell"><a href="practice_Results.php" title="Results"><img border="0" name="Results1" id="Results1" alt="Results" src="WA_DataAssist/images/Pacifica/Refined_results.gif" /></a></div>
                </div>
                <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div><p><strong>Reviews for this practice:</strong></p>
                <?php do { ?>
                  <table width="100%" border="0" cellspacing="5" cellpadding="2">
                    <tr>
                      <td width="23%"> </td>
                      <td width="77%"><?php echo $row_rsReviews['comments']; ?></td>
                    </tr>
                    <tr>
                      <td> </td>
                      <td> </td>
                    </tr>
                                  </table>
                  <?php } while ($row_WADApracticelist = mysql_fetch_assoc($WADApracticelist)); ?>
                <?php } // Show if recordset empty ?>
            </div>
          </div>
        </div>
        <div id="contentright">
          <p> </p>
        </div>
      </div>
      <div class="clr"></div>
      <div id="footer">hj</div>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($WADApracticelist);
    mysql_free_result($rsReviews);
    ?>

    I haven't studied your code in detail, but it looks very much as though you have been editing the page without properly removing server behaviors through the Server Behaviors panel. Look at the following section:
    <?php require_once('Connections/connGVG.php'); ?>
    <?php require_once('Connections/connGVG.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?>
    You have the connection file attached twice, and the GetSQLValueString() function is defined twice. However, the cause of all your problems lies here:
    $Parampractice_WADApracticelist = "-1";if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $ParamSessionpractice_WADApracticelist = "-1";
    if (isset($_SESSION['WADA_Insert_practicelist'])) {
      $ParamSessionpractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_SESSION['WADA_Insert_practicelist'] : addslashes($_SESSION['WADA_Insert_practicelist']);
    $Parampractice_WADApracticelist = "-1";
    if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $Parampractice_id_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $Parampractice_id2_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id2_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $ParamSessionpractice_id_WADApracticelist = "-1";
    if (isset()) {
      $ParamSessionpractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    mysql_select_db($database_connGVG, $connGVG);
    Look how many times the same code is repeated. What's causing the problem are the three final sections where there is no argument passed to isset().
    Delete the code highlighted in red.

  • Error while running Process Order API to import orders - URGENT HELP NEEDED

    Hi all,
    I'm stuck with order import using OE_ORDER_PUB.PROCESS_ORDER api. Wanted to import a simple order in Vision database using the process order api. Figured out the right data to use, inserted into Headers and Lines Iface All tables. When calling the OE_ORDER_PUB.PROCESS_ORDER api, it is throwing this error:
    "Header ID does not exist on this record or does not match ID specified on header record. You require a valid header ID if the operation is Create."
    But when I validate the same record using the CORRECTIONS form in Order Import GUI, the order is successfully validated. Also the order is imported when I click the IMPORT button.
    I understand that HEADER_ID column is not required for creating a new order, but not sure why it is erroring. Here is the data I'm using:
    Insert into oe_headers_iface_all
    (org_id, order_type_id, order_source_id, orig_sys_document_ref, ordered_date, request_date,
    sold_from_org_id, sold_to_org_id, ship_from_org_id, ship_to_org_id, invoice_to_org_id,
    CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN,OPERATION_CODE)
    values (204, 1430, 1046, '101040', sysdate, sysdate, 204, 1004, 606, 1018, 1017, 0, sysdate, 0, sysdate, 0, 'CREATE');
    Insert into oe_lines_iface_all
    ("ORDER_SOURCE_ID","ORIG_SYS_DOCUMENT_REF","ORIG_SYS_LINE_REF","ORIG_SYS_SHIPMENT_REF","ORG_ID","INVENTORY_ITEM","LINE_TYPE_ID",request_date,"SCHEDULE_DATE","DELIVERY_LEAD_TIME","ORDERED_QUANTITY","ORDER_QUANTITY_UOM",sold_from_org_id, sold_to_org_id, ship_from_org_id, ship_to_org_id, invoice_to_org_id,"UNIT_SELLING_PRICE","CREATED_BY","CREATION_DATE","LAST_UPDATED_BY","LAST_UPDATE_DATE","LAST_UPDATE_LOGIN","OPERATION_CODE")
    values
    (1046,'101040', '1', '1', 204, 'AS72111', 1427, sysdate, sysdate+1, 0, 10, 'Ea' ,204, 1004, 606, 1018, 1017,100,0,sysdate,0,sysdate,0,'CREATE');
    Any help is appreciated.
    FYI - this is a 11.5.10.2 version installed on Windows 2003 server.
    Thanks in advance.
    Jags

    I might be late in replying, but hope it might help.
    From your query it seems you are inserting records into interface tables and then calling process order API( probably from some PL/SQL block).
    This is where I am confused, because I hope you understand, that interface tables are for use with Order Import concurrent Program, and for Process ORder API, you need to provide the data as parameter. The api has, header record type and line table type as parameters. So you need to assign correct data to these variables and pass them as parameter when you are calling Process Order API.
    If you are doing the same thing, then post the exact pl/SQL code and error message from the API. That might help diagnose the issue.
    Regards,
    Nitin Darji

  • Error in week number while running a discoverer reports. URGENT HELP NEEDED

    Hi All,
    we had a requirement of getting the week number for the given date in one of the columns. Here the start date of the year was not always 1-jAN so we had to create a function which returns the week number as an output.
    The problem that we are facing is we are using the Discoverer 4.1.41.05 both at my end and user end. While i am trying to run the report i am getting the right output but while with the same login id when user is trying to get the output he is getting correct data till the data in year 2009 and from 2010 onwards the answer for the week number is coming in lacks. I had suggested the user to re-install the discoverer but still the issue is there.
    If someone know something about this than please reply to the thread and also mail me on [email protected]
    Thanks,
    Sarang.A.Mehta

    I might be late in replying, but hope it might help.
    From your query it seems you are inserting records into interface tables and then calling process order API( probably from some PL/SQL block).
    This is where I am confused, because I hope you understand, that interface tables are for use with Order Import concurrent Program, and for Process ORder API, you need to provide the data as parameter. The api has, header record type and line table type as parameters. So you need to assign correct data to these variables and pass them as parameter when you are calling Process Order API.
    If you are doing the same thing, then post the exact pl/SQL code and error message from the API. That might help diagnose the issue.
    Regards,
    Nitin Darji

  • Error while updating the sales order through Process Order API

    Hi,
    Please any one will help plz.
    I am updating the promise_date through oe_order_pub.process_order(Process Order API) i am getting the following error.
    FND_AS_UNEXPECTED_ERROR N PKG_NAME OE_Order_Cache N PROCEDURE_NAME get_tax_calculation_flag N ERROR_TEXT ORA-01403:no data found
    Please any one will help plz
    Below is my code.
    Declare      
    l_archive_file_name VARCHAR2(1000);
    l_shipment_exists NUMBER:=0;
    l_header_id NUMBER;
    l_line_id NUMBER;
    p_header_rec Oe_Order_Pub.Header_Rec_Type;
    l_line_tbl oe_order_pub.line_tbl_type := oe_order_pub.g_miss_line_tbl;
    l_header_rec OE_ORDER_PUB.Header_Rec_Type;
    l_header_val_out_rec OE_ORDER_PUB.Header_Val_Rec_Type;
    l_header_adj_out_tbl OE_Order_PUB.Header_Adj_Tbl_Type;
    l_header_adj_val_out_tbl OE_Order_PUB.Header_Adj_Val_Tbl_Type;
    l_header_price_att_out_tbl OE_ORDER_PUB.Header_Price_Att_Tbl_Type;
    l_header_adj_att_out_tbl OE_ORDER_PUB.Header_Adj_Att_Tbl_Type;
    l_header_adj_assoc_out_tbl OE_ORDER_PUB.Header_Adj_Assoc_Tbl_Type;
    l_header_scredit_out_tbl OE_Order_PUB.Header_Scredit_Tbl_Type;
    l_header_scredit_val_out_tbl OE_Order_PUB.Header_Scredit_Val_Tbl_Type;
    l_line_rec OE_ORDER_PUB.line_rec_type;
    l_line_out_tbl OE_ORDER_PUB.Line_Tbl_Type;
    l_line_val_out_tbl OE_ORDER_PUB.Line_Val_Tbl_Type;
    l_line_adj_out_tbl OE_ORDER_PUB.Line_Adj_Tbl_Type;
    l_line_adj_val_out_tbl OE_ORDER_PUB.Line_Adj_Val_Tbl_Type;
    l_line_price_att_out_tbl OE_ORDER_PUB.Line_Price_Att_Tbl_Type;
    l_line_adj_att_out_tbl OE_ORDER_PUB.Line_Adj_Att_Tbl_Type;
    l_line_adj_assoc_out_tbl OE_ORDER_PUB.Line_Adj_Assoc_Tbl_Type;
    l_line_scredit_out_tbl OE_Order_PUB.Line_Scredit_Tbl_Type;
    l_line_scredit_val_out_tbl OE_Order_PUB.Line_Scredit_Val_Tbl_Type;
    l_lot_serial_out_tbl OE_Order_PUB.Lot_Serial_Tbl_Type;
    l_lot_serial_val_out_tbl OE_Order_PUB.Lot_Serial_Val_Tbl_Type;
    l_action_request_out_tbl OE_Order_PUB.Request_Tbl_Type;
    l_msg_count NUMBER;
    l_msg_data VARCHAR2(2000);
    l_return_status VARCHAR2(1);
    l_index NUMBER;
    l_rows_processed NUMBER:=0;
    l_line_mawb VARCHAR2(240);
    l_line_hawb VARCHAR2(240);
    l_line_flight_num VARCHAR2(240);
    l_org_id NUMBER :=143;--FND_GLOBAL.ORG_ID;
    l_resp_id NUMBER:=FND_GLOBAL.RESP_ID;
    l_resp_appl_id NUMBER:=FND_GLOBAL.RESP_APPL_ID;
    l_user_id number := FND_GLOBAL.USER_ID;
    l_promise_date date;
    BEGIN
    SELECT ol.org_id, oh.header_id, ol.line_id,ol.promise_date
    INTO l_org_id, l_header_id, l_line_id,l_promise_date
    FROM apps.oe_order_headers_all oh, apps.oe_order_lines_all ol
    WHERE ol.header_id=oh.header_id
    AND ol.line_id =1319526; --&line_id
    -- apps.fnd_global.apps_initialize(&l_USER_ID,&l_resp_id,&l_resp_appl_id);
    apps.fnd_global.apps_initialize(67778,51017,660);
    p_header_rec := OE_ORDER_PUB.G_MISS_HEADER_REC;
    p_header_rec.header_id :=835035;-- l_header_id;
    p_header_rec.operation := OE_GLOBALS.G_OPR_UPDATE;
    l_line_tbl := oe_order_pub.g_miss_line_tbl;
    -------------------------Line Record -------------------------------
    l_line_tbl(1) := oe_order_pub.g_miss_line_rec;
    l_line_tbl(1).header_id := 835035;
    l_line_tbl(1).line_id := 1319526;
    l_line_tbl(1).promise_date := sysdate;
    l_line_tbl(1).operation := oe_globals.g_opr_update;
    BEGIN
    apps.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_true
    ,x_return_status => l_return_status
    ,x_msg_count => l_msg_count
    ,x_msg_data => l_msg_data
    ,p_header_rec => p_header_rec
    ,p_line_tbl => l_line_tbl
    -- out variables
    ,x_header_rec => l_header_rec
    ,x_header_val_rec => l_header_val_out_rec
    ,x_header_adj_tbl => l_header_adj_out_tbl
    ,x_header_adj_val_tbl => l_header_adj_val_out_tbl
    ,x_header_price_att_tbl => l_header_price_att_out_tbl
    ,x_header_adj_att_tbl => l_header_adj_att_out_tbl
    ,x_header_adj_assoc_tbl => l_header_adj_assoc_out_tbl
    ,x_header_scredit_tbl => l_header_scredit_out_tbl
    ,x_header_scredit_val_tbl => l_header_scredit_val_out_tbl
    ,x_line_tbl => l_line_out_tbl
    ,x_line_val_tbl => l_line_val_out_tbl
    ,x_line_adj_tbl => l_line_adj_out_tbl
    ,x_line_adj_val_tbl => l_line_adj_val_out_tbl
    ,x_line_price_att_tbl => l_line_price_att_out_tbl
    ,x_line_adj_att_tbl => l_line_adj_att_out_tbl
    ,x_line_adj_assoc_tbl => l_line_adj_assoc_out_tbl
    ,x_line_scredit_tbl => l_line_scredit_out_tbl
    ,x_line_scredit_val_tbl => l_line_scredit_val_out_tbl
    ,x_lot_serial_tbl => l_lot_serial_out_tbl
    ,x_lot_serial_val_tbl => l_lot_serial_val_out_tbl
    ,x_action_request_tbl => l_action_request_out_tbl
    --dbms_output.put_line('l_msg_data-->' ||l_msg_data ||' l_return_status --> ' ||l_return_status);  
    END;
    commit;
    END;
    Regards,
    Sangu

    Hi Sangu,
    See if the following notes help you:
    Error when calling API from SQL*Developer, eg. ORA-01403 in API OE_ORDER_PUB.PROCESS_ORDER (Doc ID 1054295.1)
    Cancellation Of Transfer Orders Is Not Possible - ORA-01403: no data found in Package OE_Order_PVT Procedure Process_Order (Doc ID 391307.1)
    Thanks &
    Best Regards,

  • Data uload to ODS ending up with an error. URGENT HELP NEEDED!!!!!!

    Hi
    My Sceniro is Full load from ODS1 to 5 other ODS. Iam uploading the data to other 5 ODS by selecting 1 ODS at a time.
    Problem i am facing is upload is ending up with error mesg. Error Mesg are
    <b>Error 8 when starting the extraction program - R3019
    Error in Source System - RSM340
    Req xxx in ODS2 must have QM ststus green before it is activated - RSM1110</b>
    I have seen the the OSS notes for given error no, but they are not applicable to me. what could be the other possible solution.
    In detail tab of the monitor i see red light at Extraction step and Subseq. processing.
    Its quite urgent bcoz this error is occuring in Production system.
    Plzzzz urgent help needed.
    Thanks
    Rohini
    Message was edited by: Rohini Garg

    rohini,
    go to RSA1->Modeling->Source Systems and right-click on your BW system, and click on 'Replicate Datasources'.
    also, go to the ODS that's causing the problem (via RSA1->InfoProvider and go to your ODS), right click and click on 'Generate Export Datasource'.
    one more thing, make sure that all your record/s in the source ODS is active. if you're not sure manage its contents and click on 'Activate'. if there are any entries in the the next screen that comes up, you need to activate it first, then try everything again.
    let me know what happens. also try to look for error messages in ST22 and SM21 that may be related to this and post whatever possible error you see there here.
    ryan.

  • Error in cancelling sales order line using process order API

    Hi,
    I have created a sales order which is in booked status. I want to cancel the order line . when I am running the concurrent request I am getting the following error message.I am using the process order API to perform this operation.
    API Error Message You are not allowed to update Inventory Item because:
    line has been booked
    API Error Message You are not allowed to update Line Type because:
    Line is Booked
    Can anyone help.
    thanks
    Ashwini

    Hi,
    What is the application release?
    What concurrent program you are running? Is it a custom or seeded one? And, what is the API name?
    Please see if these docs are applicable.
    Unable To Manual Mass Update Items For Multiple Booked Sales Order Lines [ID 887905.1]
    Cannot Update Ordered Item To Related Item On Booked Sales Order Line [ID 298796.1]
    Thanks,
    Hussein

  • Unreservation Issue while SO line split using Process Order API

    Hi,
    We are facing unreservation issue in the parent line after sales order line split for partially reserved line scenario usiing oe_order_pub.process_order API in 11.5.10 instance.
    Standard Proces:
    Orlder line - 10 quantities
    Partially Reserved with 5 Quantities
    Splitting the SO line using Process order API
    Parent line with 5 quantities - Reserved
    Child Line with 5 quantities - Unreserved
    Our Issue
    Orlder line - 10 quantities
    Partially Reserved with 5 Quantities
    Splitting the SO line using Process order API
    Parent line with 5 quantities - Unreserved
    We are not facing this issue when try to split the SO line from the Appllication.
    Please find the script below which we are using for this line split scenario. The same script was working fine in our instance and not working after applying patch for Minimum Baseline Patch Requirements for Extended Support on Oracle E-Business Suite 11.5.10 (Note 883202.1).
    I tried to find the differences between the APIs before and after patching and found these list of bug fixes in our API in the patched instances.
    1.7503298
    2.8339692
    3.8479339
    4.9347399
    Please help us in this issue.
    DECLARE
    p_header_id NUMBER :=836084;-- Sales order header id
    p_line_id NUMBER :=2560509;-- sales order line id
    p_item_id NUMBER :=405477;--item id in sales order line
    p_ord_qty NUMBER :=5;-- Total ordered quantity
    p_reserv_qty NUMBER :=2;--partially reserved quantity
    ln_counter NUMBER := 0;
    lv_return_status VARCHAR2 (1);
    lv_msg_data VARCHAR2 (2000);
    ln_msg_count NUMBER := 0;
    ln_increment NUMBER := 0;
    ln_inv_item_id NUMBER;
    ln_list_line_id NUMBER;
    ln_service_duration NUMBER := 0;
    lv_duration_uom VARCHAR2 (10);
    lv_duration_uom_desc VARCHAR2 (10);
    l_line_tbl oe_order_pub.line_tbl_type := oe_order_pub.g_miss_line_tbl;
    lr_header_rec oe_order_pub.header_rec_type;
    lr_header_val_rec oe_order_pub.header_val_rec_type;
    lt_header_adj_tbl oe_order_pub.header_adj_tbl_type;
    lt_header_adj_val_tbl oe_order_pub.header_adj_val_tbl_type;
    lt_header_price_att_tbl oe_order_pub.header_price_att_tbl_type;
    lt_header_adj_att_tbl oe_order_pub.header_adj_att_tbl_type;
    lt_header_adj_assoc_tbl oe_order_pub.header_adj_assoc_tbl_type;
    lt_header_scredit_tbl oe_order_pub.header_scredit_tbl_type;
    lt_header_scredit_val_tbl oe_order_pub.header_scredit_val_tbl_type;
    lt_line_tbl oe_order_pub.line_tbl_type;
    lt_line_val_tbl oe_order_pub.line_val_tbl_type;
    lt_line_adj_tbl oe_order_pub.line_adj_tbl_type;
    lt_line_adj_val_tbl oe_order_pub.line_adj_val_tbl_type;
    lt_line_price_att_tbl oe_order_pub.line_price_att_tbl_type;
    lt_line_adj_att_tbl oe_order_pub.line_adj_att_tbl_type;
    lt_line_adj_assoc_tbl oe_order_pub.line_adj_assoc_tbl_type;
    lt_line_scredit_tbl oe_order_pub.line_scredit_tbl_type;
    lt_line_scredit_val_tbl oe_order_pub.line_scredit_val_tbl_type;
    lt_lot_serial_tbl oe_order_pub.lot_serial_tbl_type;
    lt_lot_serial_val_tbl oe_order_pub.lot_serial_val_tbl_type;
    lt_action_request_tbl oe_order_pub.request_tbl_type;
    lv_errmsg VARCHAR2(4000);
    v_user_id NUMBER:=fnd_profile.value('USER_ID');
    v_resp_id NUMBER:=fnd_profile.value('RESP_ID');
    v_resp_appl_id NUMBER:=fnd_profile.value('RESP_APPL_ID');
    v_security_group_id NUMBER:=fnd_profile.value('SECURITY_GROUP_ID');
    v_server_id NUMBER:=fnd_profile.value('SERVER_ID');
    v_login_id NUMBER:=fnd_profile.value('LOGIN_ID');
    l_file_val Varchar2(200);
    BEGIN
    --- Apps Initialize
    fnd_global.apps_initialize(v_user_id,v_resp_id,v_resp_appl_id,v_security_group_id,v_server_id);
    l_line_tbl(1) := oe_order_pub.G_MISS_LINE_REC;
    l_line_tbl(1).operation := OE_GLOBALS.G_OPR_UPDATE;
    l_line_tbl(1).split_action_code := 'SPLIT';
    l_line_tbl(1).header_id := p_header_id;
    l_line_tbl(1).line_id := p_line_id;
    l_line_tbl(1).ordered_quantity := p_reserv_qty ;
    l_line_tbl(2) := oe_order_pub.G_MISS_LINE_REC;
    l_line_tbl(2).operation := OE_GLOBALS.G_OPR_CREATE;
    l_line_tbl(2).header_id := p_header_id;
    l_line_tbl(2).split_from_line_id := p_line_id;
    l_line_tbl(2).inventory_item_id := p_item_id ;
    l_line_tbl(2).ordered_quantity := (p_ord_qty-p_reserv_qty) ;
    --Debug File creation
    oe_debug_pub.debug_on;
    oe_debug_pub.initialize;
    l_file_val := OE_DEBUG_PUB.Set_Debug_Mode('FILE'); -- add l_file_val Varchar2(200); in declare section
    oe_Debug_pub.setdebuglevel(5);
    dbms_output.put_line(' Log File : '||l_file_val);
    dbms_output.put_line('Log File name '||OE_DEBUG_PUB.G_DIR||'/'||OE_DEBUG_PUB.G_FILE);
    -- Start Process Order API for Splitting the line
    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_true,
    x_return_status => lv_return_status,
    x_msg_count => ln_msg_count,
    x_msg_data => lv_msg_data,
    p_line_tbl => l_line_tbl,
    x_header_rec => lr_header_rec,
    x_header_val_rec => lr_header_val_rec,
    x_header_adj_tbl => lt_header_adj_tbl,
    x_header_adj_val_tbl => lt_header_adj_val_tbl,
    x_header_price_att_tbl => lt_header_price_att_tbl,
    x_header_adj_att_tbl => lt_header_adj_att_tbl,
    x_header_adj_assoc_tbl => lt_header_adj_assoc_tbl,
    x_header_scredit_tbl => lt_header_scredit_tbl,
    x_header_scredit_val_tbl => lt_header_scredit_val_tbl,
    x_line_tbl => lt_line_tbl,
    x_line_val_tbl => lt_line_val_tbl,
    x_line_adj_tbl => lt_line_adj_tbl,
    x_line_adj_val_tbl => lt_line_adj_val_tbl,
    x_line_price_att_tbl => lt_line_price_att_tbl,
    x_line_adj_att_tbl => lt_line_adj_att_tbl,
    x_line_adj_assoc_tbl => lt_line_adj_assoc_tbl,
    x_line_scredit_tbl => lt_line_scredit_tbl,
    x_line_scredit_val_tbl => lt_line_scredit_val_tbl,
    x_lot_serial_tbl => lt_lot_serial_tbl,
    x_lot_serial_val_tbl => lt_lot_serial_val_tbl,
    x_action_request_tbl => lt_action_request_tbl
    IF lv_return_status = fnd_api.g_ret_sts_success
    THEN
    COMMIT;
    DBMS_OUTPUT.put_line('SUCCESS');
    ELSE
    IF ln_msg_count > 0
    THEN
    FOR i IN 1 .. ln_msg_count
    LOOP
    --fnd_file.put_line (fnd_file.log,  fnd_msg_pub.get (i, 'F') );
    DBMS_OUTPUT.put_line('ERROR'||fnd_msg_pub.get (i, 'F'));
    END LOOP;
    END IF;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.put_line('EXCEPTION'||' '||SQLERRM);
    END;
    Thanks,
    Kavin
    Edited by: 897922 on Nov 17, 2011 11:51 PM

    Suggest that you first enter the transaction manually via the order entry form and adjustments. Then query the oe_price_adustments table and determine the values you need to send in to get the results you want.
    -Bob

  • Issue in invoking process order API from SOA

    Hi All,
    I am working on creating sales order in oracle Apps from Oracle SOA using Apps Adapter.
    I have used OE_ORDER_PUB.Process order API to create the sales order.I am also sending the org_id,reponsibility,username properties in Invoke activity.
    When I invoke the API ,I am getiing SQL Exception- invalid name pattern.
    The error payload is as follows.
    <fault>
    <bpelFault>
    <faultType>0</faultType>
    <bindingFault>
    <part name="summary">
    <summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'ESOA_SOprj' failed due to: Interaction processing error. Error while processing the execution of the APPS.XX_BPEL_ESOA_SOPRJ.OE_ORDER_PUB$PROCESS_ORDER API interaction. An error occurred while processing the interaction for invoking the APPS.XX_BPEL_ESOA_SOPRJ.OE_ORDER_PUB$PROCESS_ORDER API. *Cause: java.sql.SQLException: invalid name pattern: APPS.OE_ORDER_PUB_HEX54139X39X496 Check to ensure that the XML containing parameter data matches the parameter definitions in the XSD.* This exception is considered not retriable, likely due to a modelling mistake. To classify it as retriable instead add property nonRetriableErrorCodes with value "-17074" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary>
    </part>
    <part name="detail">
    <detail>invalid name pattern: APPS.OE_ORDER_PUB_HEX54139X39X496</detail>
    </part>
    <part name="code">
    <code>17074</code>
    </part>
    </bindingFault>
    </bpelFault>
    </fault>
    I also checked the oracle Apps database where there is no error in APPS.OE_ORDER_PUB_HEX54139X39X496 object.
    Kindly give your suggestions.
    regards,
    Goutam

    Did you get this to work?
    I checked the
    $INST_TOP/logs/ora/10.1.3/opmn/oafm_default_group_1/oafmstd.err file.
    Found the oracle.tip.adapter.db.sp.AbstractStoredProcedure execute was
    the next line was the
    <::Outbound><oracle.tip.adapter.db.sp.AbstractStoredProcedure execute> Bindings [P_ORG_ID=>NUMBER(null), P_OPERATING_UNIT=>VARCHAR2(null), P_API_VERSION_NUMBER=>NUMBER(1.0), ... long log details of the bind parameters....
    I search through to find the bindings which were P_HEADER_CUSTOMER_INFO_TBL=>APPS.OE_ORDER_PUB_CX54139X39X5692*(null)* but not allowable as null,
    then check the original SOAP request and added the blank parameter:
          <proc:P_HEADER_CUSTOMER_INFO_TBL></proc:P_HEADER_CUSTOMER_INFO_TBL>
    So then it didn't come through "NULL" and the procedure got properly called.
    Causing an error:
    <::Outbound><oracle.tip.adapter.db.exceptions.DBExceptionHandler isRetriable> SQLState is 65000 (unknown) for java.sql.SQLException: ORA-06531: Reference to uninitialized collection
    ORA-06512: at "APPS.ISG_OE_ORDER_PUB_PROCESS_ORDER", line 1
    ORA-06512: at "APPS.ISG_OE_ORDER_PUB_PROCESS_ORDER", line 1
    ORA-06512: at line 1
    That's a nasty call parameter list and very easy to miss a parameter when cleaning up the SOAP XML request.  That's how i did it.  Hope this helps the next guy.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Process Order API not initiating PO Acknowledgment Transaction.

    I have set up a Customer as trading partner in XML Gateway, taking care that the primary Sold To site is used for set up in XML Gateway. When i am creating orders using API, it is not triggering the Purchase Order Acknowledgment transaction.
    Does API support calling POA transaction ?

    All of order processing in order management is done using a private version of the process order API. (i.e the OE_PROCESS_ORDER_PVT package.) Hence, it will not matter to the PO acknowledgment transaction, how you create the order. The acknowledgment should get created. POAO is the transaction for the EDI acknowledgment (US: EDI 855 document)
    Do you see the "_ACK" tables getting populated with acknowledgment data? If yes, you will need to investigate the extraction program for POAO. If not, you will need to investigate in OM.
    Hope this helps.
    Thanks.
    Kannan

Maybe you are looking for