BC Next API call not working on webapp detail page

Hi all
I'm trying to get the CRM data for a specific record using the front end API call...here's the code (fields minimal for posting here)
{module_data resource="customers" version="v3" fields="id,firstName,lastName,email1" skip="0" limit="10" where="\{'id':'10734478'\}" order="id" collection="myData"}
<pre>{{myData|json}}</pre>
This code works fine on a normal page, rendering the expected JSON output, but the exact same code does not work on a webapp detail page, instead I get this result rendered on the page, obviously failing on the where clause for some reason.
{'id':'10734478'\}" order="id" collection="myData"}
Anyone know how to make this work? or is it a BCNext bug?
Thanks
Dave

Hi Dave, if you make this as an Idea so BC can track - its a bug.
It has happened with other things as well where it is not render properly, I thought they had fixed it, but looks to be back
As a side note...
<script>console.log({{myData|json}});</script> Is a lot nicer to manage

Similar Messages

  • In Oats Drag and Drop Api is not working in Firefox Browser

    To Write OAts test for Drag and Drop functionality
    we are using "dragTo" API.
    Ex :
    web.image("/web:window[@index='0' or @title='Fusion Applications']/web:document[@index='0' or @name='aqizmnwha_1']/web:img[@absoluteLocator='" + sourceIndex + "']")
                     .dragTo("/web:window[@index='0' or @title='Fusion Applications']/web:document[@index='0' or @name='aqizmnwha_1']/web:img[@absoluteLocator='" + targetIndex + "']");
    This Api is not working in firfox.(works in IE browser).
    Is there any other way we can test DnD functionality in firefox and IE?
    Thanks in Advance!
    Thanks,
    Siddi

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Issue is TEXT_IO application API is not working in report builder 10g.

    Issue is TEXT_IO application API is not working in report builder 10g.
    TEXT_IO application api is working in report builder 6i. (Not working in upgrade from Oracle EBiz 11i to Oracle Ebiz R12)
    I saw that details in some forums, client_text_io is available for form builder 10g.
    Is any other api available for report builder 10g?
    If it is available what steps we need to do?

    All the CLIENT_% procedures are part of webutil in Forms. Forms uses the Java applet on the client PC to perform actions on the local PC via webutil. This is not possible for Reports.
    You can still use text_io on the server, but you need some other way to copy the files to/from the client PC.
    I wonder how you used the functionality in EBS R11. Even R11 uses web reports, so text_io already worked on the server, not the client PC.

  • Merge call not working in ios7 on Iphone5

    Merge call not working in ios7 on Iphone5 ?

    Same here. We have this call center in our company where after i have added a call to merge i have to push no. 4 and dial from the keypad. This has never been possible in ios but it have been possible to create a contact called "Merge" and add number 4 as it's phone number. Now by merging first my clients call to my collegegue and then to this "Merge" contact it has been dropping me out of line and my client and collegue are merged.
    Now ios 7 wont let me call to this "Merge" contact's number "4"

  • Outgoing calls not working on iphone 4S after upgrading to ios 6.0.1

    outgoing calls not working on iphone 4S after upgrading to ios 6.0.1.
    It always says call back ...
    incoming is working
    i tried number of sim cards from different networks but same issue
    tries resetting network settings but it also didnt worked

    Just counter-check the following settings.
    1. Settings>General>Set Side Swith To: Rotation Lock
    2. Make sure side switch is not in lock position
    3. If necessary do a reset a few more times

  • Calling not working

    I continuously try calling and getting called by my friends who live across the state, only to have the call not work for me. I don't get any ringing or the pop-up window, it just shows me that they are in a call. When I do try to join, it sits there for approximately 30 seconds trying to connect and then kicks me out of the call. I have reset Skype, I have checked for updates; I have the most recent one, I'm up to date. They all have no problem calling with each other but I cannot join or make calls. Oddly enough, there is only one person I can call or get calls from out of our group, but I don't receive a notification unless it's from her. I have tried calling echo and it works every time but not with my friends. Please send help or something to try to fix this problem, it is making Skype unuseable. 

    Glad we found a workaround. On which network and in which country are you roaming? And who is your home network operator?
    This would help Nokia to investigate. And it helps those to find the workaround who find this thread via an search on the Internet.

  • Click to call not working with Firefox 31 in Windo...

    Hello All,
    I have a problem with Click to Call in my new computer.
    Windows 8.1
    Skype 6.20.0.104
    Click to call 7.3.16540.9015
    Firefox 31
    Click to Call not working with Firefox.
    With IE11 it ok.
    When I directly copy the URL "skype:+48xxxxxxxxx?call"  into address field of my Firefox, then automatically opening Skype with only 1 window- contacts, but not opened window with call phone, and not started to call.
    When I do this same in IE11 , Skype opened 2 windows ( contacts and call phone) and start call to phone number.
    I don't know why. because in my second computer ( this same Firefox, Skype, click to call) but Windows 7, Click to Call working with Firefox.
    Please help me.
    Maybe someone have a solution ?
    Best Regards
    Jarek
    ps. Sorry for my english

    Sounds that you have installed a Firefox Beta release and thus are on the beta update channel, see Help > About.<br />
    The Beta update channel receives an update twice a week.
    You need to install the current release to switch the update channel to release.
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 27: http://www.mozilla.org/en-US/firefox/all.html
    If possible uninstall your current Firefox version to cleanup the Windows registry and settings in security software.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you lose personal data like bookmarks and passwords from profiles of other Firefox versions.
    Your bookmarks and other personal data are stored in the Firefox profile folder and won't be affected by an uninstall and (re)install, but make sure that "remove personal data" is NOT selected when you uninstall Firefox.

  • I upgraded to version 9 from version 8. The following items do not work properly - menu, home page, navigation bar, wheel click. I backed up to version 8, and none of this stuff works right. How do I fix this?

    When I open Firefox, the bookmark menu is a little tab in the upper left corner. If I go to view and un-click bookmark menu and then view, click it, the standard menu bar shows up. The Back and Forward buttons don't work. The navigation window does not show the URL of the current page. When opening, the home page does not come up. The wheel click works on the bookmark bar, but not within a page. The menu (file, edit, etc) does not work after the first page. Version 8 worked well. When I upgraded to version 9, all this trouble started. I backed up to version 8, but the problem persists.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox

  • My Safari browser is not working well. Junk pages keep poping in and key pages for me appear intoxicated by alien pop ups preventing me navigate that page. Updated last Safari version and problem prevailed. Tried downloading Safari for Mac OS X Mavericks.

    My Safari browser is not working well. Junk pages keep popping up and key pages, for me, appear intoxicated by alien pop ups preventing me navigate that page.
    I updated to latest Safari version (7.0.4) but the problem persists.
    I tried downloading a new version of Safari for Mac OS X Mavericks but couldn't find it available.
    Thanks for your help.

    The pop ups are malware. It's not necessary to reinstall Safari.
    Help here ..
    The Safe Mac » Adware Removal Guide
    The Safe Mac » Genieo
    The Safe Mac » Mac Malware Guide
    Just so you are aware, on a Mac running Mavericks, the only way to reinstal Safari to to restore OS X using OS X Recovery

  • Front page opens works shortly freezes. only yellow green buttons work. I click yellow to minimize normal top bar menu appears I choose new page, opens works normally. The restart saved tabs does not work on that first page.

    front page opens works shortly freezes.
    only yellow green buttons work. I click yellow to minimize normal top bar menu appears I choose new page, opens works normally.
    The restart saved tabs does not work on that first page.

    Hi @prdstudio3 ,
    Thank you for visiting the HP Support Forums. The Serial Number needed to be removed from your Post. This is From our Rules of Participation:
    Protect privacy - yours and others'. Don't share anything about yourself that you would not want to see on a road-side billboard. Don't post contact or other personal information-your own or anyone else's-or any content that you receive in one-to-one communications without the author's consent. For example, don’t post your computer’s serial # or contact information publicly, and do not allow someone you don’t know to remotely take control of your computer.
    If you need people to contact you directly, either ask them to send you a private message or subscribe to the thread so you will be notified when there are replies. You may also click on your name anywhere in the forum and you will be taken to your profile page, where you can find a list of threads you have participated in.
    Sharing personal email addresses, telephone numbers, and last names is not allowed for your safety. If you have any questions feel free to send me a private message in reply.
    Thank you
    George
    I work for HP

  • I have a printer xerox 3220 on networking ,have pc´s and a mac ,problem:it´s already install but does not work ,only print many page with code program,i will appreciate the solution

    i have a printer xerox 3220 on networking ,have pc´s and a mac ,problem:it´s already install but does not work ,only print many page with code program,i will appreciate the solution

    Hi guillermospain,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    Click on the link to see more details and screenshots. 
    OS X: Connecting a Wi-Fi printer to your Wi-Fi network
    http://support.apple.com/kb/ht3500
    OS X Mountain Lion: Set up a printer
    http://support.apple.com/kb/PH11145
    OS X Mountain Lion: Reset the printing system
    http://support.apple.com/kb/PH11143
    Cheers,
    - Judy

  • I purchased premiere elements 13. I followed the instructions. Loged into my account. Located my order number, but can not find the order detail page to download my product

    I purchased premiere elements 13. I followed the instructions. Logged in to my account. Located mu order number but could not find the order detail page to click the download your product button. I was also asked to download the Akamai download manager which i don't understand why. Also It said that once the manager was installed the download would appear in the browser which it never did. So, I have no idea if it did download or not. Not sure what else I can try. Would love some help.

    The Akamai download manager is used to download the software you purchased.  Try the download resources below.  The second one does not use the download manager.
    PE 10, 11, 12,13 - http://helpx.adobe.com/premiere-elements/kb/premiere-elements-10-11-downloads.html
    You can also download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    Photoshop/Premiere Elements 13: http://prodesigntools.com/photoshop-elements-13-direct-download-links-premiere.html

  • Process_Order API is not working in OM - r12.1.3

    Hello,
    I am writing a process_order API to create sales orders in Oracle from  Blanket Sales Agreements.  But below mentioned API is neither throwing any errors nor it is importing. Not sure what am I missing.   Complete code is mentioned below.
    Hope to get lucky in getting advise from gurus on this forum.
    code
    /* Formatted on 8/15/2013 2:54:52 PM (QP5 v5.252.13127.32867) */
    CREATE OR REPLACE PACKAGE BODY XXCH_BSA_ORDER
    IS
       PROCEDURE BSA_PROCESS_ORDER (errbuf             OUT VARCHAR2,
                                    retcode            OUT VARCHAR2,
                                    p_blanket_number       NUMBER,
                                    p_blanket_line         NUMBER,
                                    p_select               VARCHAR2,
                                    p_order_type           NUMBER,
                                    p_copies               NUMBER)
       AS
          v_error   VARCHAR2 (2000);
       BEGIN
          INSERT INTO LOGFILE (STEPID, MODULE)
               VALUES (1, 'VERIZON');
          COMMIT;
          FOR i IN 1 .. p_copies
          LOOP
             INSERT INTO LOGFILE (STEPID, MODULE)
                  VALUES (2, 'VERIZON');
             BSA_API (p_blanket_number   => p_blanket_number,
                      p_blanket_line     => p_blanket_line,
                      p_select           => p_select,
                      p_order_type       => p_order_type);
          END LOOP;
       EXCEPTION
          WHEN OTHERS
          THEN
             v_error := SQLERRM;
             RAISE_APPLICATION_ERROR (-20001, v_error);
       END;
       PROCEDURE BSA_API (p_blanket_number    NUMBER,
                          p_blanket_line      NUMBER,
                          p_select            VARCHAR2,
                          p_order_type        NUMBER)
       AS
          l_header_rec                   oe_order_pub.header_rec_type;
          l_line_tbl                     oe_order_pub.line_tbl_type;
          l_action_request_tbl           oe_order_pub.request_tbl_type;
          l_header_adj_tbl               oe_order_pub.header_adj_tbl_type;
          l_line_adj_tbl                 oe_order_pub.line_adj_tbl_type;
          l_header_scr_tbl               oe_order_pub.header_scredit_tbl_type;
          l_line_scredit_tbl             oe_order_pub.line_scredit_tbl_type;
          l_request_rec                  oe_order_pub.request_rec_type;
          l_return_status                VARCHAR2 (3000);
          l_msg_count                    NUMBER;
          l_msg_data                     VARCHAR2 (3000);
          p_api_version_number           NUMBER := 1.0;
          p_init_msg_list                VARCHAR2 (1000) := fnd_api.g_true;
          p_return_values                VARCHAR2 (1000) := fnd_api.g_true;
          p_action_commit                VARCHAR2 (1000) := fnd_api.g_true;
          x_return_status                VARCHAR2 (10);
          x_msg_count                    NUMBER;
          x_msg_data                     VARCHAR2 (3000);
          p_header_rec                   oe_order_pub.header_rec_type
                                            := oe_order_pub.g_miss_header_rec;
          p_old_header_rec               oe_order_pub.header_rec_type
                                            := oe_order_pub.g_miss_header_rec;
          p_header_val_rec               oe_order_pub.header_val_rec_type
                                            := oe_order_pub.g_miss_header_val_rec;
          p_old_header_val_rec           oe_order_pub.header_val_rec_type
                                            := oe_order_pub.g_miss_header_val_rec;
          p_header_adj_tbl               oe_order_pub.header_adj_tbl_type
                                            := oe_order_pub.g_miss_header_adj_tbl;
          p_old_header_adj_tbl           oe_order_pub.header_adj_tbl_type
                                            := oe_order_pub.g_miss_header_adj_tbl;
          p_header_adj_val_tbl           oe_order_pub.header_adj_val_tbl_type
                                            := oe_order_pub.g_miss_header_adj_val_tbl;
          p_old_header_adj_val_tbl       oe_order_pub.header_adj_val_tbl_type
                                            := oe_order_pub.g_miss_header_adj_val_tbl;
          p_header_price_att_tbl         oe_order_pub.header_price_att_tbl_type
             := oe_order_pub.g_miss_header_price_att_tbl;
          p_old_header_price_att_tbl     oe_order_pub.header_price_att_tbl_type
             := oe_order_pub.g_miss_header_price_att_tbl;
          p_header_adj_att_tbl           oe_order_pub.header_adj_att_tbl_type
             := oe_order_pub.g_miss_header_adj_att_tbl;
          p_old_header_adj_att_tbl       oe_order_pub.header_adj_att_tbl_type
             := oe_order_pub.g_miss_header_adj_att_tbl;
          p_header_adj_assoc_tbl         oe_order_pub.header_adj_assoc_tbl_type
             := oe_order_pub.g_miss_header_adj_assoc_tbl;
          p_old_header_adj_assoc_tbl     oe_order_pub.header_adj_assoc_tbl_type
             := oe_order_pub.g_miss_header_adj_assoc_tbl;
          p_header_scredit_tbl           oe_order_pub.header_scredit_tbl_type
             := oe_order_pub.g_miss_header_scredit_tbl;
          p_old_header_scredit_tbl       oe_order_pub.header_scredit_tbl_type
             := oe_order_pub.g_miss_header_scredit_tbl;
          p_header_scredit_val_tbl       oe_order_pub.header_scredit_val_tbl_type
             := oe_order_pub.g_miss_header_scredit_val_tbl;
          p_old_header_scredit_val_tbl   oe_order_pub.header_scredit_val_tbl_type
             := oe_order_pub.g_miss_header_scredit_val_tbl;
          p_line_tbl                     oe_order_pub.line_tbl_type
                                            := oe_order_pub.g_miss_line_tbl;
          p_old_line_tbl                 oe_order_pub.line_tbl_type
                                            := oe_order_pub.g_miss_line_tbl;
          p_line_val_tbl                 oe_order_pub.line_val_tbl_type
                                            := oe_order_pub.g_miss_line_val_tbl;
          p_old_line_val_tbl             oe_order_pub.line_val_tbl_type
                                            := oe_order_pub.g_miss_line_val_tbl;
          p_line_adj_tbl                 oe_order_pub.line_adj_tbl_type
                                            := oe_order_pub.g_miss_line_adj_tbl;
          p_old_line_adj_tbl             oe_order_pub.line_adj_tbl_type
                                            := oe_order_pub.g_miss_line_adj_tbl;
          p_line_adj_val_tbl             oe_order_pub.line_adj_val_tbl_type
             := oe_order_pub.g_miss_line_adj_val_tbl;
          p_old_line_adj_val_tbl         oe_order_pub.line_adj_val_tbl_type
             := oe_order_pub.g_miss_line_adj_val_tbl;
          p_line_price_att_tbl           oe_order_pub.line_price_att_tbl_type
             := oe_order_pub.g_miss_line_price_att_tbl;
          p_old_line_price_att_tbl       oe_order_pub.line_price_att_tbl_type
             := oe_order_pub.g_miss_line_price_att_tbl;
          p_line_adj_att_tbl             oe_order_pub.line_adj_att_tbl_type
             := oe_order_pub.g_miss_line_adj_att_tbl;
          p_old_line_adj_att_tbl         oe_order_pub.line_adj_att_tbl_type
             := oe_order_pub.g_miss_line_adj_att_tbl;
          p_line_adj_assoc_tbl           oe_order_pub.line_adj_assoc_tbl_type
             := oe_order_pub.g_miss_line_adj_assoc_tbl;
          p_old_line_adj_assoc_tbl       oe_order_pub.line_adj_assoc_tbl_type
             := oe_order_pub.g_miss_line_adj_assoc_tbl;
          p_line_scredit_tbl             oe_order_pub.line_scredit_tbl_type
             := oe_order_pub.g_miss_line_scredit_tbl;
          p_old_line_scredit_tbl         oe_order_pub.line_scredit_tbl_type
             := oe_order_pub.g_miss_line_scredit_tbl;
          p_line_scredit_val_tbl         oe_order_pub.line_scredit_val_tbl_type
             := oe_order_pub.g_miss_line_scredit_val_tbl;
          p_old_line_scredit_val_tbl     oe_order_pub.line_scredit_val_tbl_type
             := oe_order_pub.g_miss_line_scredit_val_tbl;
          p_lot_serial_tbl               oe_order_pub.lot_serial_tbl_type
                                            := oe_order_pub.g_miss_lot_serial_tbl;
          p_old_lot_serial_tbl           oe_order_pub.lot_serial_tbl_type
                                            := oe_order_pub.g_miss_lot_serial_tbl;
          p_lot_serial_val_tbl           oe_order_pub.lot_serial_val_tbl_type
             := oe_order_pub.g_miss_lot_serial_val_tbl;
          p_old_lot_serial_val_tbl       oe_order_pub.lot_serial_val_tbl_type
             := oe_order_pub.g_miss_lot_serial_val_tbl;
          p_action_request_tbl           oe_order_pub.request_tbl_type
                                            := oe_order_pub.g_miss_request_tbl;
          x_header_val_rec               oe_order_pub.header_val_rec_type;
          x_header_adj_tbl               oe_order_pub.header_adj_tbl_type;
          x_header_adj_val_tbl           oe_order_pub.header_adj_val_tbl_type;
          x_header_price_att_tbl         oe_order_pub.header_price_att_tbl_type;
          x_header_adj_att_tbl           oe_order_pub.header_adj_att_tbl_type;
          x_header_adj_assoc_tbl         oe_order_pub.header_adj_assoc_tbl_type;
          x_header_scredit_tbl           oe_order_pub.header_scredit_tbl_type;
          x_header_scredit_val_tbl       oe_order_pub.header_scredit_val_tbl_type;
          x_line_val_tbl                 oe_order_pub.line_val_tbl_type;
          x_line_adj_tbl                 oe_order_pub.line_adj_tbl_type;
          x_line_adj_val_tbl             oe_order_pub.line_adj_val_tbl_type;
          x_line_price_att_tbl           oe_order_pub.line_price_att_tbl_type;
          x_line_adj_att_tbl             oe_order_pub.line_adj_att_tbl_type;
          x_line_adj_assoc_tbl           oe_order_pub.line_adj_assoc_tbl_type;
          x_line_scredit_tbl             oe_order_pub.line_scredit_tbl_type;
          x_line_scredit_val_tbl         oe_order_pub.line_scredit_val_tbl_type;
          x_lot_serial_tbl               oe_order_pub.lot_serial_tbl_type;
          x_lot_serial_val_tbl           oe_order_pub.lot_serial_val_tbl_type;
          x_action_request_tbl           oe_order_pub.request_tbl_type;
          x_debug_file                   VARCHAR2 (100);
          l_line_tbl_index               NUMBER;
          l_msg_index_out                NUMBER;
          l_user_id                      fnd_user.user_id%TYPE;
          l_appl_id                      fnd_application.application_id%TYPE;
          l_resp_id                      fnd_responsibility.responsibility_id%TYPE;
          l_org_id                       hr_operating_units.organization_id%TYPE;
          l_sold_to_org_id               hz_cust_accounts.cust_account_id%TYPE;
          l_ship_to_org_id               hz_cust_site_uses_all.site_use_id%TYPE;
          l_cust_acct_site_id            hz_cust_acct_sites_all.cust_acct_site_id%TYPE;
          l_party_id                     hz_parties.party_id%TYPE;
          l_price_list_id                qp_list_headers_b.list_header_id%TYPE;
          l_primary_salesrep_id          ra_salesreps.salesrep_id%TYPE;
          l_order_type_id                oe_transaction_types_all.transaction_type_id%TYPE;
          l_order_line_type_id           oe_transaction_types_all.transaction_type_id%TYPE;
          l_order_category_code          oe_transaction_types_all.order_category_code%TYPE;
          l_inventory_item_id            mtl_system_items_b.inventory_item_id%TYPE;
          l_currency_code                qp_list_headers.currency_code%TYPE;
          l_party_site_id                hz_party_sites.party_site_id%TYPE;
          xbreak                         VARCHAR2 (33);
          errorx                         VARCHAR2 (3000);
          k                              INTEGER := 0;
          CURSOR BlanketHeader
          IS
             SELECT *
               FROM oe_blanket_headers_all
              WHERE header_id = p_blanket_number;
          CURSOR BlanketLines (
             v_agreement_id    NUMBER)
          IS
             SELECT *
               FROM oe_blanket_lines_all
              WHERE     header_id = v_agreement_id
                    AND line_number = NVL (p_blanket_line, line_number);
       BEGIN
          -- Create Header
          xbreak := '100';
          fnd_global.apps_initialize (12647, 51839, 660);
          --       pass in user_id, responsibility_id, and application_id
          oe_msg_pub.initialize;
          oe_debug_pub.initialize;
          l_org_id := fnd_profile.VALUE ('ORG_ID');
          xbreak := '101';
          fnd_file.Put_line (
             fnd_file.LOG,
             '*********************************************** BOOK ORDER **************************');
          fnd_file.put_line (fnd_file.LOG,
                             'Begining of the procedure Book Order');
          --    Initialize header record
          xbreak := '102';
          FOR i IN BlanketHeader
          LOOP
          insert into logfile(stepid,module) values (23,'BPO:'||to_char(i.header_id));
           l_header_rec := oe_order_pub.g_miss_header_rec;
             xbreak := '103';
             l_header_rec.cust_po_number := i.cust_po_number;
             l_header_rec.ordered_date := SYSDATE;
             l_header_rec.salesrep_id := i.salesrep_id;
             l_header_rec.order_type_id := p_order_type;
             l_header_rec.operation := oe_globals.g_opr_create; --Specifies that Order is getting created
             --xbreak := '104';
             l_header_rec.order_category_code := 'ORDER';
             --         l_num_tbl_index := 1;
             l_header_rec.booked_flag := 'Y';
             xbreak := '105';
             l_header_rec.sold_to_org_id := i.sold_to_org_id;
             l_header_rec.invoice_to_org_id := i.invoice_to_org_id;
             l_header_rec.ship_to_org_id := i.ship_to_org_id;
             l_header_rec.price_list_id := i.price_list_id;
             --Create Line record
             FOR j IN BlanketLines(i.header_id)
             LOOP
                l_line_tbl_index := 1;
                -- FIRST LINE RECORD
                -- Initialize record to missing
                l_line_tbl (l_line_tbl_index) := oe_order_pub.g_miss_line_rec;
                -- Line attributes
                l_line_tbl (l_line_tbl_index).inventory_item_id :=
                   j.inventory_item_id;
                l_line_tbl (l_line_tbl_index).ordered_quantity := 1;
                -- Set to 'N' when you need to pass unit_selling_price
                l_line_tbl (l_line_tbl_index).calculate_price_flag := 'N';
                l_line_tbl (l_line_tbl_index).unit_selling_price := NULL;
                l_line_tbl (l_line_tbl_index).ship_from_org_id := j.org_id;
                l_line_tbl (l_line_tbl_index).operation := oe_globals.g_opr_create;
             END LOOP;
    x_debug_file := oe_debug_pub.set_debug_mode ('FILE');
    oe_debug_pub.setdebuglevel (5);
             oe_order_pub.process_order (
                p_org_id  => l_org_id,
                p_operating_unit => l_org_id,
                p_api_version_number       => 1.0,
                p_init_msg_list            => fnd_api.g_true,
                p_return_values            => fnd_api.g_true,
                p_action_commit            => 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               => l_header_rec,
                p_line_tbl                 => l_line_tbl,
                p_action_request_tbl       => l_action_request_tbl -- OUT PARAMETERS
                x_header_rec               => l_header_rec,
                x_header_val_rec           => x_header_val_rec,
                x_header_adj_tbl           => x_header_adj_tbl,
                x_header_adj_val_tbl       => x_header_adj_val_tbl,
                x_header_price_att_tbl     => x_header_price_att_tbl,
                x_header_adj_att_tbl       => x_header_adj_att_tbl,
                x_header_adj_assoc_tbl     => x_header_adj_assoc_tbl,
                x_header_scredit_tbl       => x_header_scredit_tbl,
                x_header_scredit_val_tbl   => x_header_scredit_val_tbl,
                x_line_tbl                 => l_line_tbl,
                x_line_val_tbl             => x_line_val_tbl,
                x_line_adj_tbl             => x_line_adj_tbl,
                x_line_adj_val_tbl         => x_line_adj_val_tbl,
                x_line_price_att_tbl       => x_line_price_att_tbl,
                x_line_adj_att_tbl         => x_line_adj_att_tbl,
                x_line_adj_assoc_tbl       => x_line_adj_assoc_tbl,
                x_line_scredit_tbl         => x_line_scredit_tbl,
                x_line_scredit_val_tbl     => x_line_scredit_val_tbl,
                x_lot_serial_tbl           => x_lot_serial_tbl,
                x_lot_serial_val_tbl       => x_lot_serial_val_tbl,
                x_action_request_tbl       => l_action_request_tbl);
             COMMIT;
             INSERT INTO LOGFILE (STEPID, MODULE)
                     VALUES (
                               22,
                                  TO_CHAR (l_header_rec.header_id)
                               || '-'
                               || l_msg_data);
             COMMIT;
             xbreak := '106';
          END LOOP;
          FOR i IN 1 .. l_msg_count
          LOOP
             k := k + 1;
             xbreak := '108';
             Oe_Msg_Pub.get (p_msg_index       => k,
                             p_encoded         => Fnd_Api.G_FALSE,
                             p_data            => l_msg_data,
                             p_msg_index_out   => l_msg_index_out);
                               INSERT INTO LOGFILE (STEPID, MODULE)
                     VALUES (
                               24,l_msg_data);
          END LOOP;
          /* Check if the process order goes through then it prints the success message, otherwise it prints failed message.*/
          IF l_return_status = FND_API.G_RET_STS_SUCCESS
          THEN
             xbreak := '109';
             fnd_file.put_line (
                fnd_file.LOG,
                   'Return from the API:-'
                || 'return status'
                || l_return_status
                || '-'
                || l_header_rec.header_id);
          ELSE
             xbreak := '110';
             fnd_file.put_line (
                fnd_file.LOG,
                   'Return from the API'
                || 'return status'
                || l_return_status
                || '-'
                || TO_CHAR (l_header_rec.header_id));
          END IF;
       EXCEPTION
          WHEN OTHERS
          THEN
             errorx := xbreak || '-' || SQLERRM;
             raise_application_error (-20002, errorx);
       END;
    END;
    Thanks
    Darsh

    Hussein,
    As always - Thank you.   I have passed the above issue but now in the same API, it is not importing lines.  I need to enter multiple lines for a given sales order through this API. As per the note from you on this thread, I am now maintaining separate set of input and output variables.
    When I searched metalink and google, there are countless examples of process_order APIs  giving example of importing one sales order line along with header at the time of creation.  Then, they ask to add subsequent lines through an UPDATE operations for existing order that was just created. Thus, forcing me to write process_order api call two times.
    Can't I just create a loop and add multiple lines right at the time of order creation? Please see the revised code as shown below.  This code is not working - it throws "no data found" for a weird reason.  I know for a fact that data is fetched properly by blanketLines cursor.
    /* Formatted on 8/16/2013 4:23:09 PM (QP5 v5.252.13127.32867) */
    CREATE OR REPLACE PACKAGE BODY XXCH_BSA_ORDER
    IS
       PROCEDURE BSA_PROCESS_ORDER (errbuf             OUT VARCHAR2,
                                    retcode            OUT VARCHAR2,
                                    p_blanket_number       NUMBER,
                                    p_select               VARCHAR2,
                                    p_blanket_line         NUMBER,
                                    p_order_type           NUMBER,
                                    p_copies               NUMBER)
       AS
          v_error          VARCHAR2 (2000);
          o_order_number   NUMBER;
       BEGIN
          INSERT INTO LOGFILE (STEPID, MODULE)
               VALUES (1, 'VERIZON');
          COMMIT;
          FOR i IN 1 .. p_copies
          LOOP
             INSERT INTO LOGFILE (STEPID, MODULE)
                  VALUES (2, 'VERIZON');
             BSA_API (p_blanket_number   => p_blanket_number,
                      p_blanket_line     => p_blanket_line,
                      p_select           => p_select,
                      p_order_type       => p_order_type,
                      p_order_number     => o_order_number);
             fnd_file.put_line (fnd_file.OUTPUT,
                                'Order Number Created:-' || o_order_number);
          END LOOP;
       EXCEPTION
          WHEN OTHERS
          THEN
             v_error := SQLERRM;
             RAISE_APPLICATION_ERROR (-20001, v_error);
       END;
       PROCEDURE BSA_API (p_blanket_number       NUMBER,
                          p_blanket_line         NUMBER,
                          p_select               VARCHAR2,
                          p_order_type           NUMBER,
                          p_order_number     OUT NUMBER)
       AS
          l_header_rec                   oe_order_pub.header_rec_type;
          l_header_rec_out               oe_order_pub.header_rec_type;
          l_line_tbl                     oe_order_pub.line_tbl_type;
          l_line_tbl_out                 oe_order_pub.line_tbl_type;
          l_action_request_tbl           oe_order_pub.request_tbl_type;
          l_header_adj_tbl               oe_order_pub.header_adj_tbl_type;
          l_line_adj_tbl                 oe_order_pub.line_adj_tbl_type;
          l_header_scr_tbl               oe_order_pub.header_scredit_tbl_type;
          l_line_scredit_tbl             oe_order_pub.line_scredit_tbl_type;
          l_request_rec                  oe_order_pub.request_rec_type;
          l_return_status                VARCHAR2 (3000);
          l_msg_count                    NUMBER;
          l_msg_data                     VARCHAR2 (3000);
          p_api_version_number           NUMBER := 1.0;
          p_init_msg_list                VARCHAR2 (1000) := fnd_api.g_true;
          p_return_values                VARCHAR2 (1000) := fnd_api.g_true;
          p_action_commit                VARCHAR2 (1000) := fnd_api.g_true;
          x_return_status                VARCHAR2 (10);
          x_msg_count                    NUMBER;
          x_msg_data                     VARCHAR2 (3000);
          p_header_rec                   oe_order_pub.header_rec_type
                                            := oe_order_pub.g_miss_header_rec;
          p_old_header_rec               oe_order_pub.header_rec_type
                                            := oe_order_pub.g_miss_header_rec;
          p_header_val_rec               oe_order_pub.header_val_rec_type
                                            := oe_order_pub.g_miss_header_val_rec;
          p_old_header_val_rec           oe_order_pub.header_val_rec_type
                                            := oe_order_pub.g_miss_header_val_rec;
          p_header_adj_tbl               oe_order_pub.header_adj_tbl_type
                                            := oe_order_pub.g_miss_header_adj_tbl;
          p_old_header_adj_tbl           oe_order_pub.header_adj_tbl_type
                                            := oe_order_pub.g_miss_header_adj_tbl;
          p_header_adj_val_tbl           oe_order_pub.header_adj_val_tbl_type
                                            := oe_order_pub.g_miss_header_adj_val_tbl;
          p_old_header_adj_val_tbl       oe_order_pub.header_adj_val_tbl_type
                                            := oe_order_pub.g_miss_header_adj_val_tbl;
          p_header_price_att_tbl         oe_order_pub.header_price_att_tbl_type
             := oe_order_pub.g_miss_header_price_att_tbl;
          p_old_header_price_att_tbl     oe_order_pub.header_price_att_tbl_type
             := oe_order_pub.g_miss_header_price_att_tbl;
          p_header_adj_att_tbl           oe_order_pub.header_adj_att_tbl_type
             := oe_order_pub.g_miss_header_adj_att_tbl;
          p_old_header_adj_att_tbl       oe_order_pub.header_adj_att_tbl_type
             := oe_order_pub.g_miss_header_adj_att_tbl;
          p_header_adj_assoc_tbl         oe_order_pub.header_adj_assoc_tbl_type
             := oe_order_pub.g_miss_header_adj_assoc_tbl;
          p_old_header_adj_assoc_tbl     oe_order_pub.header_adj_assoc_tbl_type
             := oe_order_pub.g_miss_header_adj_assoc_tbl;
          p_header_scredit_tbl           oe_order_pub.header_scredit_tbl_type
             := oe_order_pub.g_miss_header_scredit_tbl;
          p_old_header_scredit_tbl       oe_order_pub.header_scredit_tbl_type
             := oe_order_pub.g_miss_header_scredit_tbl;
          p_header_scredit_val_tbl       oe_order_pub.header_scredit_val_tbl_type
             := oe_order_pub.g_miss_header_scredit_val_tbl;
          p_old_header_scredit_val_tbl   oe_order_pub.header_scredit_val_tbl_type
             := oe_order_pub.g_miss_header_scredit_val_tbl;
          p_line_tbl                     oe_order_pub.line_tbl_type
                                            := oe_order_pub.g_miss_line_tbl;
          p_old_line_tbl                 oe_order_pub.line_tbl_type
                                            := oe_order_pub.g_miss_line_tbl;
          p_line_val_tbl                 oe_order_pub.line_val_tbl_type
                                            := oe_order_pub.g_miss_line_val_tbl;
          p_old_line_val_tbl             oe_order_pub.line_val_tbl_type
                                            := oe_order_pub.g_miss_line_val_tbl;
          p_line_adj_tbl                 oe_order_pub.line_adj_tbl_type
                                            := oe_order_pub.g_miss_line_adj_tbl;
          p_old_line_adj_tbl             oe_order_pub.line_adj_tbl_type
                                            := oe_order_pub.g_miss_line_adj_tbl;
          p_line_adj_val_tbl             oe_order_pub.line_adj_val_tbl_type
             := oe_order_pub.g_miss_line_adj_val_tbl;
          p_old_line_adj_val_tbl         oe_order_pub.line_adj_val_tbl_type
             := oe_order_pub.g_miss_line_adj_val_tbl;
          p_line_price_att_tbl           oe_order_pub.line_price_att_tbl_type
             := oe_order_pub.g_miss_line_price_att_tbl;
          p_old_line_price_att_tbl       oe_order_pub.line_price_att_tbl_type
             := oe_order_pub.g_miss_line_price_att_tbl;
          p_line_adj_att_tbl             oe_order_pub.line_adj_att_tbl_type
             := oe_order_pub.g_miss_line_adj_att_tbl;
          p_old_line_adj_att_tbl         oe_order_pub.line_adj_att_tbl_type
             := oe_order_pub.g_miss_line_adj_att_tbl;
          p_line_adj_assoc_tbl           oe_order_pub.line_adj_assoc_tbl_type
             := oe_order_pub.g_miss_line_adj_assoc_tbl;
          p_old_line_adj_assoc_tbl       oe_order_pub.line_adj_assoc_tbl_type
             := oe_order_pub.g_miss_line_adj_assoc_tbl;
          p_line_scredit_tbl             oe_order_pub.line_scredit_tbl_type
             := oe_order_pub.g_miss_line_scredit_tbl;
          p_old_line_scredit_tbl         oe_order_pub.line_scredit_tbl_type
             := oe_order_pub.g_miss_line_scredit_tbl;
          p_line_scredit_val_tbl         oe_order_pub.line_scredit_val_tbl_type
             := oe_order_pub.g_miss_line_scredit_val_tbl;
          p_old_line_scredit_val_tbl     oe_order_pub.line_scredit_val_tbl_type
             := oe_order_pub.g_miss_line_scredit_val_tbl;
          p_lot_serial_tbl               oe_order_pub.lot_serial_tbl_type
                                            := oe_order_pub.g_miss_lot_serial_tbl;
          p_old_lot_serial_tbl           oe_order_pub.lot_serial_tbl_type
                                            := oe_order_pub.g_miss_lot_serial_tbl;
          p_lot_serial_val_tbl           oe_order_pub.lot_serial_val_tbl_type
             := oe_order_pub.g_miss_lot_serial_val_tbl;
          p_old_lot_serial_val_tbl       oe_order_pub.lot_serial_val_tbl_type
             := oe_order_pub.g_miss_lot_serial_val_tbl;
          p_action_request_tbl           oe_order_pub.request_tbl_type
                                            := oe_order_pub.g_miss_request_tbl;
          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;
          x_debug_file                   VARCHAR2 (100);
          l_line_tbl_index               INTEGER := 0;
          l_msg_index_out                NUMBER;
          l_user_id                      fnd_user.user_id%TYPE;
          l_appl_id                      fnd_application.application_id%TYPE;
          l_resp_id                      fnd_responsibility.responsibility_id%TYPE;
          l_org_id                       hr_operating_units.organization_id%TYPE;
          l_sold_to_org_id               hz_cust_accounts.cust_account_id%TYPE;
          l_ship_to_org_id               hz_cust_site_uses_all.site_use_id%TYPE;
          l_cust_acct_site_id            hz_cust_acct_sites_all.cust_acct_site_id%TYPE;
          l_party_id                     hz_parties.party_id%TYPE;
          l_price_list_id                qp_list_headers_b.list_header_id%TYPE;
          l_primary_salesrep_id          ra_salesreps.salesrep_id%TYPE;
          l_order_type_id                oe_transaction_types_all.transaction_type_id%TYPE;
          l_order_line_type_id           oe_transaction_types_all.transaction_type_id%TYPE;
          l_order_category_code          oe_transaction_types_all.order_category_code%TYPE;
          l_inventory_item_id            mtl_system_items_b.inventory_item_id%TYPE;
          l_currency_code                qp_list_headers.currency_code%TYPE;
          l_party_site_id                hz_party_sites.party_site_id%TYPE;
          xbreak                         VARCHAR2 (33);
          errorx                         VARCHAR2 (3000);
          k                              INTEGER := 0;
          ln_kount                       INTEGER := 0;
          v_order                        NUMBER;
          CURSOR BlanketHeader
          IS
             SELECT *
               FROM oe_blanket_headers_all
              WHERE header_id = p_blanket_number;
          CURSOR BlanketLines (
             v_agreement_id    NUMBER)
          IS
             SELECT *
               FROM oe_blanket_lines_all
              WHERE     header_id = v_agreement_id
                    AND line_number = NVL (p_blanket_line, line_number);
       BEGIN
          -- Create Header
          xbreak := '100';
          l_org_id := fnd_profile.VALUE ('ORG_ID');
          INSERT INTO logfile (stepid, module)
               VALUES (1, 'orgid:' || TO_CHAR (l_org_id));
          oe_msg_pub.initialize;
          oe_debug_pub.initialize;
          mo_global.set_policy_context ('S', l_org_ID);
          mo_global.init ('ONT');
          fnd_global.apps_initialize (12647, 51839, 660);
          --       pass in user_id, responsibility_id, and application_id
          oe_debug_pub.setdebuglevel (5);
          x_debug_file := oe_debug_pub.set_debug_mode ('FILE');
          INSERT INTO logfile (stepid, module)
               VALUES (25, 'debug:' || x_debug_File);
          COMMIT;
          l_org_id := fnd_profile.VALUE ('ORG_ID');
          xbreak := '101';
          fnd_file.Put_line (
             fnd_file.LOG,
             '*********************************************** BOOK ORDER **************************');
          fnd_file.put_line (fnd_file.LOG,
                             'Begining of the procedure Book Order');
          --    Initialize header record
          xbreak := '102';
          FOR i IN BlanketHeader
          LOOP
             INSERT INTO logfile (stepid, module)
                  VALUES (23, 'BPO:' || TO_CHAR (i.header_id));
             l_header_rec := oe_order_pub.g_miss_header_rec;
             xbreak := '103';
             l_header_rec.cust_po_number := i.cust_po_number;
             l_header_rec.ordered_date := SYSDATE;
             l_header_rec.salesrep_id := i.salesrep_id;
             l_header_rec.order_type_id := p_order_type;
             l_header_rec.operation := oe_globals.g_opr_create; --Specifies that Order is getting created
             --xbreak := '104';
             l_header_rec.order_category_code := 'ORDER';
             --         l_num_tbl_index := 1;
             l_header_rec.booked_flag := 'N';
             l_header_rec.flow_status_code := 'ENTERED';
             xbreak := '105';
             l_header_rec.sold_to_org_id := i.sold_to_org_id;
             l_header_rec.invoice_to_org_id := i.invoice_to_org_id;
             l_header_rec.ship_to_org_id := i.ship_to_org_id;
             l_header_rec.price_list_id := i.price_list_id;
             l_header_rec.shipping_instructions := i.shipping_instructions;
             l_header_rec.freight_terms_code := i.freight_terms_code;
             l_header_rec.attribute10 := i.attribute1;
             l_header_rec.salesrep_id := i.salesrep_id;
             l_action_request_tbl (1) := OE_ORDER_PUB.G_MISS_REQUEST_REC;
             INSERT INTO logfile (stepid, module)
                  VALUES (53, 'BPO:' || TO_CHAR (i.header_id));  -- Create Lines .
             xbreak := '206';
             FOR j IN BlanketLines (i.header_id)
             LOOP
                xbreak := '205';
                ln_kount := ln_kount + 1;
                l_line_tbl_index := 1;
                l_line_tbl (l_line_tbl_index) := oe_order_pub.g_miss_line_rec;
                l_line_tbl (l_line_tbl_index).operation := oe_globals.g_opr_create;
                l_line_tbl (l_line_tbl_index).inventory_item_id :=
                   j.inventory_item_id;
                INSERT INTO logfile (stepid, module)
                     VALUES (57, 'BPO:' || TO_CHAR (j.inventory_item_id));
                l_line_tbl (l_line_tbl_index).order_quantity_uom := 'EA';
                l_line_tbl (l_line_tbl_index).payment_term_id := 1000;
                l_line_tbl (l_line_tbl_index).schedule_arrival_date := SYSDATE + 1;
                l_line_tbl (l_line_tbl_index).schedule_ship_date := SYSDATE + 1;
                l_line_tbl (l_line_tbl_index).request_date := SYSDATE;
                l_line_tbl (l_line_tbl_index).promise_date := SYSDATE;
                l_line_tbl (l_line_tbl_index).shipping_method_code := NULL;
                l_line_tbl (l_line_tbl_index).freight_terms_code := NULL;
                l_line_tbl (l_line_tbl_index).line_number := 1;
                l_line_tbl (l_line_tbl_index).ordered_quantity := 1;
                l_line_tbl (l_line_tbl_index).calculate_price_flag := 'N';
                l_line_tbl (l_line_tbl_index).unit_selling_price := NULL;
                l_line_tbl (l_line_tbl_index).ship_from_org_id := j.org_id;
                l_line_tbl (l_line_tbl_index).ship_to_org_id := j.ship_to_org_id;
             END LOOP;
             oe_order_pub.process_order (
                p_org_id                   => l_org_id,
                p_operating_unit           => NULL,
                p_api_version_number       => 1.0,
                --            p_init_msg_list => fnd_api.g_true,
                --                                p_return_values => fnd_api.g_true,
                --                                p_action_commit => fnd_api.g_true,
                p_header_rec               => l_header_rec,
                p_line_tbl                 => l_line_tbl,
                p_action_request_tbl       => l_action_request_tbl -- OUT PARAMETERS
                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_return_status,
                x_msg_count                => l_msg_count,
                x_msg_data                 => l_msg_data);
             COMMIT;
             FND_FILE.PUT_LINE (
                FND_FILE.LOG,
                   'OM Debug file: '
                || oe_debug_pub.g_dir
                || '/'
                || oe_debug_pub.g_file);
             INSERT INTO LOGFILE (STEPID, MODULE)
                     VALUES (
                               22,
                                  TO_CHAR (l_header_rec_out.header_id)
                               || '-'
                               || l_msg_data);
             COMMIT;
             xbreak := '106';
             SELECT order_number
               INTO v_order
               FROM oe_order_headerS_all
              WHERE header_id = l_header_rec_out.header_id;
             p_order_number := v_order;
          END LOOP;
          FOR i IN 1 .. l_msg_count
          LOOP
             k := k + 1;
             xbreak := '108';
             Oe_Msg_Pub.get (p_msg_index       => k,
                             p_encoded         => Fnd_Api.G_FALSE,
                             p_data            => l_msg_data,
                             p_msg_index_out   => l_msg_index_out);
             INSERT INTO LOGFILE (STEPID, MODULE)
                  VALUES (24, l_msg_data);
             fnd_file.put_line (
                fnd_file.LOG,
                   'Return from the API:-'
                || 'return status:-'
                || l_return_status
                || '-'
                || l_msg_data);
          END LOOP;
          /* Check if the process order goes through then it prints the success message, otherwise it prints failed message.*/
          IF l_return_status = FND_API.G_RET_STS_SUCCESS
          THEN
             xbreak := '109';
             fnd_file.put_line (
                fnd_file.LOG,
                   'Return from the API:-'
                || 'return status:-'
                || l_return_status
                || '-'
                || l_header_rec_out.header_id);
          ELSE
             xbreak := '110';
             fnd_file.put_line (
                fnd_file.LOG,
                   'Return from the API:-'
                || 'return status:-'
                || l_return_status
                || '-'
                || TO_CHAR (l_header_rec_out.header_id));
          END IF;
       EXCEPTION
          WHEN OTHERS
          THEN
             errorx := xbreak || '-' || SQLERRM;
             raise_application_error (-20002, errorx);
       END;
    END;

  • Sale Order Api Is not working

    Hi experts ,
    I am trying to load the data via api , Its not getting load , can u help me pls ,
    DECLARE
    l_line_id NUMBER;
    l_item_id NUMBER;
    l_order_qty NUMBER;
    l_msg_index number;
    L_data VARCHAR2 (2000);
    l_debug_file VARCHAR2 (200);
    resultout VARCHAR2 (100);
    l_order_uom VARCHAR2 (10);
    l_reship_order NUMBER;
    itemkey number := 215600;
    l_negative_prorate NUMBER;
    l_prorate_qty NUMBER;
    l_sch_ship_date DATE;
    l_debug_level NUMBER := 3;
    l_ship_to_org_id NUMBER;
    l_attribute1 VARCHAR2 (150);
    l_attribute2 VARCHAR2 (150);
    l_line_num NUMBER;
    l_agreement_id NUMBER;
    l_organization_id NUMBER;
    l_segment VARCHAR2 (120);
    l_child_onhand NUMBER := 0;
    l_qty_temp NUMBER := 0;
    l_excl_temp NUMBER := 0;
    l_prorate_percent NUMBER;
    l_onhand NUMBER;
    l_error VARCHAR2 (240);
    l_error_message VARCHAR2 (240);
    l_line_tbl oe_order_pub.line_tbl_type;
    l_line_tbl_count NUMBER := 0;
    l_temp_count NUMBER := 0;
    p_line_tbl_rec oe_order_pub.line_tbl_type;
    p_line_id NUMBER;
    p_error_flag VARCHAR2 (1000);
    p_error_message VARCHAR2 (1000);
    l_api_version_number NUMBER := 1;
    l_return_status VARCHAR2 (2000);
    l_return_status1 VARCHAR2 (2000);
    l_msg_count NUMBER;
    l_msg_data VARCHAR2 (2000);
    -- l_msg_index VARCHAR2 (1000);
    l_line_out_tbl oe_order_pub.line_tbl_type;
    p_parent_item VARCHAR2 (100) := 'PROPANE';
    p_organization_id NUMBER := 321;
    l_header_id NUMBER := 152066;
    --- Child Cursor Without Exclusion of Soldado
    CURSOR c_child_items (
    p_parent_item VARCHAR2,
    p_organization_id NUMBER
    IS
    CURSOR c_positive_items (
    p_parent_item VARCHAR2,
    p_organization_id NUMBER
    IS
    SELECT inventory_item_id,
    segment1,
    organization_id,
    SUM (onhand - order_qty) onhand,
    COUNT ( * ) OVER () total_rows
    FROM ( SELECT msi.inventory_item_id,
    msi.segment1,
    msi.organization_id,
    NVL (
    SUM(inv_convert.inv_um_convert_new (
    moq.inventory_item_id,
    5,
    moq.transaction_quantity,
    moq.transaction_uom_code,
    l_order_uom,
    NULL,
    NULL,
    'U'
    0
    onhand,
    (SELECT NVL (SUM (ordered_quantity), 0)
    FROM oe_order_lines_all
    WHERE header_id = l_header_id
    AND flow_status_code NOT IN
    ('CLOSED', 'SHIPPED')
    AND inventory_item_id =
    msi.inventory_item_id)
    order_qty
    FROM mtl_system_items_b msi,
    oe_lookups ol,
    mtl_onhand_quantities_detail moq
    WHERE msi.segment1 = ol.meaning
    AND TRIM (SYSDATE) BETWEEN ol.start_date_active
    AND NVL (ol.end_date_active,
    TRIM (SYSDATE))
    AND ol.enabled_flag = 'Y'
    AND ol.lookup_type = p_parent_item
    AND msi.organization_id = p_organization_id
    AND msi.inventory_item_id = moq.inventory_item_id(+)
    AND msi.organization_id = moq.organization_id(+)
    AND (msi.segment1 LIKE '%SOLDADO%'
    OR msi.segment1 LIKE '%T4%')
    GROUP BY msi.inventory_item_id,
    msi.segment1,
    msi.organization_id)
    GROUP BY inventory_item_id, segment1, organization_id
    HAVING SUM (onhand - order_qty) > 0
    ORDER BY segment1;
    --- Child Cursor With only Positive Buckets
    CURSOR c_positive_onhand (
    p_parent_item IN VARCHAR2,
    p_organization_id IN NUMBER
    IS
    BEGIN
    IF (l_debug_level > 0)
    THEN
    l_debug_file := oe_debug_pub.set_debug_mode ('FILE');
    oe_debug_pub.initialize;
    oe_debug_pub.setdebuglevel (l_debug_level);
    oe_msg_pub.initialize;
    END IF;
    --- Initialization Block
    DBMS_OUTPUT.put_line ('Initialization Block');
    fnd_global.apps_initialize (fnd_global.user_id,
    fnd_global.resp_id,
    fnd_global.resp_appl_id);
    -- BEGIN
    -- MO_GLOBAL.SET_POLICY_CONTEXT ('S', 321);
    -- END;
    -- fnd_global.apps_initialize (-1, 21623, 660);
    --- Get Line ID from workflow
    l_line_id := TO_NUMBER (itemkey);
    --- To get the line details
    BEGIN
    SELECT header_id,
    ordered_item,
    inventory_item_id,
    line_number,
    order_quantity_uom,
    ordered_quantity,
    ship_from_org_id,
    ship_to_org_id,
    schedule_ship_date,
    attribute1,
    attribute2,
    agreement_id
    INTO l_header_id,
    l_segment,
    l_item_id,
    l_line_num,
    l_order_uom,
    l_order_qty,
    l_organization_id,
    l_ship_to_org_id,
    l_sch_ship_date,
    l_attribute1,
    l_attribute2,
    l_agreement_id
    FROM oe_order_lines_all
    WHERE line_id = l_line_id;
    DBMS_OUTPUT.put_line ('To get the line details');
    EXCEPTION
    WHEN OTHERS
    THEN
    l_header_id := NULL;
    l_segment := NULL;
    l_item_id := NULL;
    l_order_qty := NULL;
    l_organization_id := NULL;
    DBMS_OUTPUT.put_line ('Not Avilable for To get the line details');
    END;
    -- To get the Original sales order Number
    BEGIN
    SELECT attribute10
    INTO l_reship_order
    FROM oe_order_headers_all
    WHERE header_id = l_header_id;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_reship_order := NULL;
    END;
    --- Check for the Top Level Item Name
    IF l_segment IN ('PROPANE', 'BUTANE', 'ISO BUTANE', 'GASOLINE')
    THEN
    --- To get the total positive onhand quantity for all the child items
    BEGIN
    SELECT NVL (SUM (trx_qty), 0)
    INTO l_onhand
    FROM ( SELECT moq.inventory_item_id,
    NVL (
    SUM(NVL (
    inv_convert.inv_um_convert_new (
    msi.inventory_item_id,
    5,
    moq.transaction_quantity,
    moq.transaction_uom_code,
    l_order_uom,
    NULL,
    NULL,
    'U'
    0
    - (SELECT NVL (SUM (ordered_quantity), 0)
    FROM oe_order_lines_all
    WHERE header_id = l_header_id
    AND flow_status_code NOT IN
    ('CLOSED', 'SHIPPED')
    AND inventory_item_id =
    msi.inventory_item_id),
    0
    trx_qty
    FROM mtl_onhand_quantities_detail moq,
    mtl_system_items msi,
    oe_lookups ol
    WHERE msi.segment1 = ol.meaning
    AND TRIM (SYSDATE) BETWEEN ol.start_date_active
    AND NVL (
    ol.end_date_active,
    TRIM (SYSDATE)
    AND ol.enabled_flag = 'Y'
    AND ol.lookup_type = l_segment
    AND msi.organization_id = l_organization_id
    AND moq.inventory_item_id = msi.inventory_item_id
    AND moq.organization_id = msi.organization_id
    AND (msi.segment1 NOT LIKE '%SOLDADO%'
    AND msi.segment1 NOT LIKE '%T4%')
    GROUP BY msi.inventory_item_id, moq.inventory_item_id)
    WHERE trx_qty > 0;
    DBMS_OUTPUT.put_line ('l_onhand' || l_onhand);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_onhand := 0;
    DBMS_OUTPUT.put_line ('Not Avilable for on hand');
    END;
    -- To check whether this order is a reshipment order
    DBMS_OUTPUT.put_line (
    'To check whether this order is a reshipment order'
    IF l_reship_order IS NOT NULL
    THEN
    DBMS_OUTPUT.put_line ('1st Else Case reship');
    ELSE
    DBMS_OUTPUT.put_line ('1st Else Case no reship');
    FOR l_positive_items
    IN c_positive_items (l_segment, l_organization_id)
    LOOP
    DBMS_OUTPUT.put_line( 'l_positive_items.onhand'
    || l_positive_items.onhand
    || 'l_excl_temp'
    || l_excl_temp
    || ' l_order_qty'
    || l_order_qty);
    IF l_positive_items.onhand > 0 AND l_excl_temp < l_order_qty
    THEN
    l_line_tbl_count := l_line_tbl_count + 1;
    IF (l_order_qty - l_excl_temp) < l_positive_items.onhand
    THEN
    l_prorate_qty := l_order_qty - l_excl_temp;
    ELSE
    l_prorate_qty := l_positive_items.onhand;
    END IF;
    -- Initializing the Sales order Lines Record type
    DBMS_OUTPUT.put_line (
    'Initializing the Sales order Lines Record type'
    l_line_tbl (l_line_tbl_count) := oe_order_pub.g_miss_line_rec;
    l_line_tbl (l_line_tbl_count).operation :=
    oe_globals.g_opr_create;
    l_line_tbl (l_line_tbl_count).header_id := l_header_id;
    l_line_tbl (l_line_tbl_count).inventory_item_id :=
    l_positive_items.inventory_item_id;
    l_line_tbl (l_line_tbl_count).ship_to_org_id :=
    l_ship_to_org_id;
    l_line_tbl (l_line_tbl_count).ordered_quantity := l_prorate_qty;
    l_line_tbl (l_line_tbl_count).schedule_ship_date :=
    l_sch_ship_date;
    l_line_tbl (l_line_tbl_count).attribute1 := l_attribute1;
    l_line_tbl (l_line_tbl_count).attribute2 := l_attribute2;
    l_line_tbl (l_line_tbl_count).attribute9 := l_line_id;
    l_line_tbl (l_line_tbl_count).attribute10 :=
    ROUND (l_prorate_qty / l_order_qty * 100, 5);
    l_line_tbl (l_line_tbl_count).agreement_id := l_agreement_id;
    l_line_tbl (l_line_tbl_count).calculate_price_flag := 'Y';
    l_excl_temp := l_excl_temp + l_prorate_qty;
    END IF;
    END LOOP;
    -- To check if the total onhand is greater than zero
    DBMS_OUTPUT.put_line (
    'To check if the total onhand is greater than zero'
    IF l_onhand > 0
    THEN
    IF l_order_qty > l_excl_temp
    THEN
    -- To check whether the onhand is lesser than order qty
    DBMS_OUTPUT.put_line (
    'To check whether the onhand is lesser than order qty'
    IF (l_onhand < (l_order_qty - l_excl_temp))
    THEN
    -- Loop the cursor with exclusion of soldado logic
    DBMS_OUTPUT.put_line (
    'Loop the cursor with exclusion of soldado logic'
    FOR l_child_item
    IN c_child_items (l_segment, l_organization_id)
    LOOP
    l_prorate_percent := NULL;
    l_negative_prorate := 0;
    l_temp_count := 0;
    l_prorate_qty := 0;
    -- Initializing the Sales order Lines Record type
    DBMS_OUTPUT.put_line (
    'Initializing the Sales order Lines Record type2'
    l_line_tbl (l_line_tbl_count) :=
    oe_order_pub.g_miss_line_rec;
    l_line_tbl (l_line_tbl_count).operation :=
    oe_globals.g_opr_create;
    l_line_tbl (l_line_tbl_count).header_id := l_header_id;
    l_line_tbl (l_line_tbl_count).inventory_item_id :=
    l_child_item.inventory_item_id;
    l_line_tbl (l_line_tbl_count).ship_to_org_id :=
    l_ship_to_org_id;
    l_line_tbl (l_line_tbl_count).ordered_quantity :=
    l_prorate_qty;
    l_line_tbl (l_line_tbl_count).schedule_ship_date :=
    l_sch_ship_date;
    l_line_tbl (l_line_tbl_count).attribute1 := l_attribute1;
    l_line_tbl (l_line_tbl_count).attribute2 := l_attribute2;
    l_line_tbl (l_line_tbl_count).attribute9 := l_line_id;
    l_line_tbl (l_line_tbl_count).attribute10 :=
    ROUND (l_prorate_qty / l_order_qty * 100, 5);
    l_line_tbl (l_line_tbl_count).agreement_id :=
    l_agreement_id;
    l_line_tbl (l_line_tbl_count).calculate_price_flag := 'Y';
    END LOOP;
    ELSE
    -- Loop the cursor of all the positive buckets
    FOR l_child_items
    IN c_positive_onhand (l_segment, l_organization_id)
    LOOP
    l_prorate_percent := NULL;
    l_child_onhand := 0;
    l_prorate_qty := 0;
    -- To get the split percentage of the child items
    l_prorate_percent :=
    ROUND ( (l_child_items.trx_qty / l_onhand) * 100, 5);
    -- To check whether the prorate percentage exits
    IF l_prorate_percent IS NOT NULL
    AND l_prorate_percent > 0
    THEN
    -- To calculate the prorate quantity
    l_line_tbl_count := l_line_tbl_count + 1;
    l_prorate_qty :=
    ROUND (
    (l_order_qty - l_excl_temp)
    * (l_prorate_percent / 100),
    5
    l_qty_temp := l_qty_temp + l_prorate_qty;
    -- To calculate the prorate quantity for the last line
    IF c_positive_onhand%ROWCOUNT =
    l_child_items.total_rows
    THEN
    l_prorate_qty :=
    l_prorate_qty
    + (l_order_qty - (l_qty_temp + l_excl_temp));
    END IF;
    -- Initializing the line record type to process
    DBMS_OUTPUT.put_line (
    'Initializing the Sales order Lines Record type3'
    l_line_tbl (l_line_tbl_count) :=
    oe_order_pub.g_miss_line_rec;
    l_line_tbl (l_line_tbl_count).operation :=
    oe_globals.g_opr_create;
    l_line_tbl (l_line_tbl_count).header_id := l_header_id;
    l_line_tbl (l_line_tbl_count).inventory_item_id :=
    l_child_items.inventory_item_id;
    l_line_tbl (l_line_tbl_count).ship_to_org_id :=
    l_ship_to_org_id;
    l_line_tbl (l_line_tbl_count).ordered_quantity :=
    l_prorate_qty;
    l_line_tbl (l_line_tbl_count).schedule_ship_date :=
    l_sch_ship_date;
    l_line_tbl (l_line_tbl_count).attribute1 :=
    l_attribute1;
    l_line_tbl (l_line_tbl_count).attribute2 :=
    l_attribute2;
    l_line_tbl (l_line_tbl_count).attribute9 := l_line_id;
    l_line_tbl (l_line_tbl_count).attribute10 :=
    ROUND (l_prorate_qty / l_order_qty * 100, 5);
    l_line_tbl (l_line_tbl_count).agreement_id :=
    l_agreement_id;
    l_line_tbl (l_line_tbl_count).calculate_price_flag :=
    'Y';
    DBMS_OUTPUT.put_line( '3rd insert'
    || 'l_prorate_qty'
    || l_prorate_qty
    || 'l_ship_to_org_id'
    || l_ship_to_org_id
    || 'l_sch_ship_date'
    || l_sch_ship_date
    || 'l_child_items.inventory_item_id'
    || l_child_items.inventory_item_id
    || 'l_agreement_id'
    || l_agreement_id);
    END IF;
    COMMIT;
    END LOOP;
    END IF;
    END IF;
    ELSIF l_order_qty > l_excl_temp
    THEN
    -- Loop the cursor with exclusion of soldado logic
    FOR l_child_item IN c_child_items (l_segment, l_organization_id)
    LOOP
    l_prorate_percent := 0;
    l_prorate_qty := 0;
    l_prorate_percent := ROUND (100 / l_child_item.total_rows, 5);
    l_prorate_qty :=
    ROUND (
    ( (l_order_qty - l_excl_temp) / l_child_item.total_rows),
    5
    l_line_tbl_count := l_line_tbl_count + 1;
    l_qty_temp := l_qty_temp + l_prorate_qty;
    -- To calculate the prorate quantity for the last line
    IF c_child_items%ROWCOUNT = l_child_item.total_rows
    THEN
    l_prorate_qty :=
    l_prorate_qty
    + (l_order_qty - (l_qty_temp + l_excl_temp));
    END IF;
    -- Initializing the line record type to process
    DBMS_OUTPUT.put_line (
    'Initializing the Sales order Lines Record type4'
    l_line_tbl (l_line_tbl_count) := oe_order_pub.g_miss_line_rec;
    l_line_tbl (l_line_tbl_count).operation :=
    oe_globals.g_opr_create;
    l_line_tbl (l_line_tbl_count).header_id := l_header_id;
    l_line_tbl (l_line_tbl_count).inventory_item_id :=
    l_child_item.inventory_item_id;
    l_line_tbl (l_line_tbl_count).ship_to_org_id :=
    l_ship_to_org_id;
    l_line_tbl (l_line_tbl_count).ordered_quantity := l_prorate_qty;
    l_line_tbl (l_line_tbl_count).schedule_ship_date :=
    l_sch_ship_date;
    l_line_tbl (l_line_tbl_count).attribute1 := l_attribute1;
    l_line_tbl (l_line_tbl_count).attribute2 := l_attribute2;
    l_line_tbl (l_line_tbl_count).attribute9 := l_line_id;
    l_line_tbl (l_line_tbl_count).attribute10 :=
    ROUND (l_prorate_qty / l_order_qty * 100, 5);
    l_line_tbl (l_line_tbl_count).agreement_id := l_agreement_id;
    l_line_tbl (l_line_tbl_count).calculate_price_flag := 'Y';
    END LOOP;
    END IF;
    END IF; -- to check whether any records are initialized
    IF l_line_tbl_count > 0
    THEN
    -- Cancel the Parent Item
    DBMS_OUTPUT.put_line ('Cancel the Parent Item');
    l_line_tbl (l_line_tbl_count + 1) := oe_order_pub.g_miss_line_rec;
    l_line_tbl (l_line_tbl_count + 1).operation :=
    oe_globals.g_opr_update;
    l_line_tbl (l_line_tbl_count + 1).header_id := l_header_id;
    l_line_tbl (l_line_tbl_count + 1).line_id := l_line_id;
    l_line_tbl (l_line_tbl_count + 1).ordered_quantity := 0;
    l_line_tbl (l_line_tbl_count + 1).attribute10 := l_order_qty;
    l_line_tbl (l_line_tbl_count + 1).cancelled_flag := 'Y';
    l_line_tbl (l_line_tbl_count + 1).change_reason := 'Not Provided';
    DBMS_OUTPUT.put_line( 'Cancellation Process fileds'
    || 'HDR_ID'
    || l_header_id
    || 'LINE'
    || l_line_id
    || 'l_order_qty'
    || l_order_qty);
    -- Call the procedure to process the sales order lines
    -- process_order_line_api (p_line_tbl_rec => l_line_tbl,
    -- p_line_id => l_line_id,
    -- p_error_flag => l_error,
    -- p_error_message => l_error_message);
    IF l_error = 'Y'
    THEN
    resultout := 'COMPLETE:Y';
    ELSE
    resultout := 'COMPLETE:N';
    END IF;
    ELSE
    resultout := 'COMPLETE:N';
    END IF;
    END IF;
    BEGIN
    fnd_global.apps_initialize (fnd_global.user_id,
    fnd_global.resp_id,
    fnd_global.resp_appl_id);
    -- BEGIN
    -- MO_GLOBAL.SET_POLICY_CONTEXT ('S', 321);
    -- END;
    -- fnd_global.apps_initialize (-1, 21623, 660);
    -- Call Process Line API to process sales order lines
    DBMS_OUTPUT.put_line ('fianl line to be processd');
    BEGIN
    oe_order_pub.process_line (p_line_tbl => p_line_tbl_rec,
    x_line_out_tbl => l_line_out_tbl,
    x_return_status => l_return_status,
    x_msg_count => l_msg_count,
    x_msg_data => l_msg_data);
    COMMIT;
    DBMS_OUTPUT.put_line ('API Processed' || l_msg_data);
    fnd_file.put_line (fnd_file.LOG, 'Processed - ' || l_msg_data);
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ('Failed With1' || SQLERRM);
    END;
    -- display error msgs
    IF (l_debug_level > 0)
    THEN
    FOR i IN 1 .. l_msg_count
    LOOP
    oe_msg_pub.get (p_msg_index => i,
    p_encoded => fnd_api.g_false,
    p_data => l_data,
    p_msg_index_out => l_msg_index);
    fnd_file.put_line (fnd_file.LOG, 'message is:' || l_data);
    fnd_file.put_line (fnd_file.LOG,
    'message index is:' || l_msg_index);
    DBMS_OUTPUT.put_line (
    'l_data' || l_data || 'l_debug_level' || l_debug_level
    END LOOP;
    END IF;
    IF p_error_flag = 'N'
    THEN
    FOR i IN 1 .. l_msg_count
    LOOP
    oe_msg_pub.get (p_msg_index => i,
    p_encoded => fnd_api.g_false,
    p_data => p_error_message,
    p_msg_index_out => l_msg_index);
    END LOOP;
    ELSE
    DBMS_OUTPUT.put_line ('Out Of loop Exit');
    END IF;
    fnd_file.put_line (fnd_file.LOG, 'p_error_message - ' || SQLERRM);
    DBMS_OUTPUT.put_line ('p_error_message' || p_error_message || SQLERRM);
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ('Failed With' || SQLERRM);
    fnd_file.put_line (fnd_file.LOG,
    'Unexpected Errors Found4 - ' || SQLERRM);
    END;
    END;
    Thanks
    Shagul

    Hi experts ,
    I am trying to load the data via api , Its not getting load , can u help me pls ,
    DECLARE
    l_line_id NUMBER;
    l_item_id NUMBER;
    l_order_qty NUMBER;
    l_msg_index number;
    L_data VARCHAR2 (2000);
    l_debug_file VARCHAR2 (200);
    resultout VARCHAR2 (100);
    l_order_uom VARCHAR2 (10);
    l_reship_order NUMBER;
    itemkey number := 215600;
    l_negative_prorate NUMBER;
    l_prorate_qty NUMBER;
    l_sch_ship_date DATE;
    l_debug_level NUMBER := 3;
    l_ship_to_org_id NUMBER;
    l_attribute1 VARCHAR2 (150);
    l_attribute2 VARCHAR2 (150);
    l_line_num NUMBER;
    l_agreement_id NUMBER;
    l_organization_id NUMBER;
    l_segment VARCHAR2 (120);
    l_child_onhand NUMBER := 0;
    l_qty_temp NUMBER := 0;
    l_excl_temp NUMBER := 0;
    l_prorate_percent NUMBER;
    l_onhand NUMBER;
    l_error VARCHAR2 (240);
    l_error_message VARCHAR2 (240);
    l_line_tbl oe_order_pub.line_tbl_type;
    l_line_tbl_count NUMBER := 0;
    l_temp_count NUMBER := 0;
    p_line_tbl_rec oe_order_pub.line_tbl_type;
    p_line_id NUMBER;
    p_error_flag VARCHAR2 (1000);
    p_error_message VARCHAR2 (1000);
    l_api_version_number NUMBER := 1;
    l_return_status VARCHAR2 (2000);
    l_return_status1 VARCHAR2 (2000);
    l_msg_count NUMBER;
    l_msg_data VARCHAR2 (2000);
    -- l_msg_index VARCHAR2 (1000);
    l_line_out_tbl oe_order_pub.line_tbl_type;
    p_parent_item VARCHAR2 (100) := 'PROPANE';
    p_organization_id NUMBER := 321;
    l_header_id NUMBER := 152066;
    --- Child Cursor Without Exclusion of Soldado
    CURSOR c_child_items (
    p_parent_item VARCHAR2,
    p_organization_id NUMBER
    IS
    CURSOR c_positive_items (
    p_parent_item VARCHAR2,
    p_organization_id NUMBER
    IS
    SELECT inventory_item_id,
    segment1,
    organization_id,
    SUM (onhand - order_qty) onhand,
    COUNT ( * ) OVER () total_rows
    FROM ( SELECT msi.inventory_item_id,
    msi.segment1,
    msi.organization_id,
    NVL (
    SUM(inv_convert.inv_um_convert_new (
    moq.inventory_item_id,
    5,
    moq.transaction_quantity,
    moq.transaction_uom_code,
    l_order_uom,
    NULL,
    NULL,
    'U'
    0
    onhand,
    (SELECT NVL (SUM (ordered_quantity), 0)
    FROM oe_order_lines_all
    WHERE header_id = l_header_id
    AND flow_status_code NOT IN
    ('CLOSED', 'SHIPPED')
    AND inventory_item_id =
    msi.inventory_item_id)
    order_qty
    FROM mtl_system_items_b msi,
    oe_lookups ol,
    mtl_onhand_quantities_detail moq
    WHERE msi.segment1 = ol.meaning
    AND TRIM (SYSDATE) BETWEEN ol.start_date_active
    AND NVL (ol.end_date_active,
    TRIM (SYSDATE))
    AND ol.enabled_flag = 'Y'
    AND ol.lookup_type = p_parent_item
    AND msi.organization_id = p_organization_id
    AND msi.inventory_item_id = moq.inventory_item_id(+)
    AND msi.organization_id = moq.organization_id(+)
    AND (msi.segment1 LIKE '%SOLDADO%'
    OR msi.segment1 LIKE '%T4%')
    GROUP BY msi.inventory_item_id,
    msi.segment1,
    msi.organization_id)
    GROUP BY inventory_item_id, segment1, organization_id
    HAVING SUM (onhand - order_qty) > 0
    ORDER BY segment1;
    --- Child Cursor With only Positive Buckets
    CURSOR c_positive_onhand (
    p_parent_item IN VARCHAR2,
    p_organization_id IN NUMBER
    IS
    BEGIN
    IF (l_debug_level > 0)
    THEN
    l_debug_file := oe_debug_pub.set_debug_mode ('FILE');
    oe_debug_pub.initialize;
    oe_debug_pub.setdebuglevel (l_debug_level);
    oe_msg_pub.initialize;
    END IF;
    --- Initialization Block
    DBMS_OUTPUT.put_line ('Initialization Block');
    fnd_global.apps_initialize (fnd_global.user_id,
    fnd_global.resp_id,
    fnd_global.resp_appl_id);
    -- BEGIN
    -- MO_GLOBAL.SET_POLICY_CONTEXT ('S', 321);
    -- END;
    -- fnd_global.apps_initialize (-1, 21623, 660);
    --- Get Line ID from workflow
    l_line_id := TO_NUMBER (itemkey);
    --- To get the line details
    BEGIN
    SELECT header_id,
    ordered_item,
    inventory_item_id,
    line_number,
    order_quantity_uom,
    ordered_quantity,
    ship_from_org_id,
    ship_to_org_id,
    schedule_ship_date,
    attribute1,
    attribute2,
    agreement_id
    INTO l_header_id,
    l_segment,
    l_item_id,
    l_line_num,
    l_order_uom,
    l_order_qty,
    l_organization_id,
    l_ship_to_org_id,
    l_sch_ship_date,
    l_attribute1,
    l_attribute2,
    l_agreement_id
    FROM oe_order_lines_all
    WHERE line_id = l_line_id;
    DBMS_OUTPUT.put_line ('To get the line details');
    EXCEPTION
    WHEN OTHERS
    THEN
    l_header_id := NULL;
    l_segment := NULL;
    l_item_id := NULL;
    l_order_qty := NULL;
    l_organization_id := NULL;
    DBMS_OUTPUT.put_line ('Not Avilable for To get the line details');
    END;
    -- To get the Original sales order Number
    BEGIN
    SELECT attribute10
    INTO l_reship_order
    FROM oe_order_headers_all
    WHERE header_id = l_header_id;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_reship_order := NULL;
    END;
    --- Check for the Top Level Item Name
    IF l_segment IN ('PROPANE', 'BUTANE', 'ISO BUTANE', 'GASOLINE')
    THEN
    --- To get the total positive onhand quantity for all the child items
    BEGIN
    SELECT NVL (SUM (trx_qty), 0)
    INTO l_onhand
    FROM ( SELECT moq.inventory_item_id,
    NVL (
    SUM(NVL (
    inv_convert.inv_um_convert_new (
    msi.inventory_item_id,
    5,
    moq.transaction_quantity,
    moq.transaction_uom_code,
    l_order_uom,
    NULL,
    NULL,
    'U'
    0
    - (SELECT NVL (SUM (ordered_quantity), 0)
    FROM oe_order_lines_all
    WHERE header_id = l_header_id
    AND flow_status_code NOT IN
    ('CLOSED', 'SHIPPED')
    AND inventory_item_id =
    msi.inventory_item_id),
    0
    trx_qty
    FROM mtl_onhand_quantities_detail moq,
    mtl_system_items msi,
    oe_lookups ol
    WHERE msi.segment1 = ol.meaning
    AND TRIM (SYSDATE) BETWEEN ol.start_date_active
    AND NVL (
    ol.end_date_active,
    TRIM (SYSDATE)
    AND ol.enabled_flag = 'Y'
    AND ol.lookup_type = l_segment
    AND msi.organization_id = l_organization_id
    AND moq.inventory_item_id = msi.inventory_item_id
    AND moq.organization_id = msi.organization_id
    AND (msi.segment1 NOT LIKE '%SOLDADO%'
    AND msi.segment1 NOT LIKE '%T4%')
    GROUP BY msi.inventory_item_id, moq.inventory_item_id)
    WHERE trx_qty > 0;
    DBMS_OUTPUT.put_line ('l_onhand' || l_onhand);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_onhand := 0;
    DBMS_OUTPUT.put_line ('Not Avilable for on hand');
    END;
    -- To check whether this order is a reshipment order
    DBMS_OUTPUT.put_line (
    'To check whether this order is a reshipment order'
    IF l_reship_order IS NOT NULL
    THEN
    DBMS_OUTPUT.put_line ('1st Else Case reship');
    ELSE
    DBMS_OUTPUT.put_line ('1st Else Case no reship');
    FOR l_positive_items
    IN c_positive_items (l_segment, l_organization_id)
    LOOP
    DBMS_OUTPUT.put_line( 'l_positive_items.onhand'
    || l_positive_items.onhand
    || 'l_excl_temp'
    || l_excl_temp
    || ' l_order_qty'
    || l_order_qty);
    IF l_positive_items.onhand > 0 AND l_excl_temp < l_order_qty
    THEN
    l_line_tbl_count := l_line_tbl_count + 1;
    IF (l_order_qty - l_excl_temp) < l_positive_items.onhand
    THEN
    l_prorate_qty := l_order_qty - l_excl_temp;
    ELSE
    l_prorate_qty := l_positive_items.onhand;
    END IF;
    -- Initializing the Sales order Lines Record type
    DBMS_OUTPUT.put_line (
    'Initializing the Sales order Lines Record type'
    l_line_tbl (l_line_tbl_count) := oe_order_pub.g_miss_line_rec;
    l_line_tbl (l_line_tbl_count).operation :=
    oe_globals.g_opr_create;
    l_line_tbl (l_line_tbl_count).header_id := l_header_id;
    l_line_tbl (l_line_tbl_count).inventory_item_id :=
    l_positive_items.inventory_item_id;
    l_line_tbl (l_line_tbl_count).ship_to_org_id :=
    l_ship_to_org_id;
    l_line_tbl (l_line_tbl_count).ordered_quantity := l_prorate_qty;
    l_line_tbl (l_line_tbl_count).schedule_ship_date :=
    l_sch_ship_date;
    l_line_tbl (l_line_tbl_count).attribute1 := l_attribute1;
    l_line_tbl (l_line_tbl_count).attribute2 := l_attribute2;
    l_line_tbl (l_line_tbl_count).attribute9 := l_line_id;
    l_line_tbl (l_line_tbl_count).attribute10 :=
    ROUND (l_prorate_qty / l_order_qty * 100, 5);
    l_line_tbl (l_line_tbl_count).agreement_id := l_agreement_id;
    l_line_tbl (l_line_tbl_count).calculate_price_flag := 'Y';
    l_excl_temp := l_excl_temp + l_prorate_qty;
    END IF;
    END LOOP;
    -- To check if the total onhand is greater than zero
    DBMS_OUTPUT.put_line (
    'To check if the total onhand is greater than zero'
    IF l_onhand > 0
    THEN
    IF l_order_qty > l_excl_temp
    THEN
    -- To check whether the onhand is lesser than order qty
    DBMS_OUTPUT.put_line (
    'To check whether the onhand is lesser than order qty'
    IF (l_onhand < (l_order_qty - l_excl_temp))
    THEN
    -- Loop the cursor with exclusion of soldado logic
    DBMS_OUTPUT.put_line (
    'Loop the cursor with exclusion of soldado logic'
    FOR l_child_item
    IN c_child_items (l_segment, l_organization_id)
    LOOP
    l_prorate_percent := NULL;
    l_negative_prorate := 0;
    l_temp_count := 0;
    l_prorate_qty := 0;
    -- Initializing the Sales order Lines Record type
    DBMS_OUTPUT.put_line (
    'Initializing the Sales order Lines Record type2'
    l_line_tbl (l_line_tbl_count) :=
    oe_order_pub.g_miss_line_rec;
    l_line_tbl (l_line_tbl_count).operation :=
    oe_globals.g_opr_create;
    l_line_tbl (l_line_tbl_count).header_id := l_header_id;
    l_line_tbl (l_line_tbl_count).inventory_item_id :=
    l_child_item.inventory_item_id;
    l_line_tbl (l_line_tbl_count).ship_to_org_id :=
    l_ship_to_org_id;
    l_line_tbl (l_line_tbl_count).ordered_quantity :=
    l_prorate_qty;
    l_line_tbl (l_line_tbl_count).schedule_ship_date :=
    l_sch_ship_date;
    l_line_tbl (l_line_tbl_count).attribute1 := l_attribute1;
    l_line_tbl (l_line_tbl_count).attribute2 := l_attribute2;
    l_line_tbl (l_line_tbl_count).attribute9 := l_line_id;
    l_line_tbl (l_line_tbl_count).attribute10 :=
    ROUND (l_prorate_qty / l_order_qty * 100, 5);
    l_line_tbl (l_line_tbl_count).agreement_id :=
    l_agreement_id;
    l_line_tbl (l_line_tbl_count).calculate_price_flag := 'Y';
    END LOOP;
    ELSE
    -- Loop the cursor of all the positive buckets
    FOR l_child_items
    IN c_positive_onhand (l_segment, l_organization_id)
    LOOP
    l_prorate_percent := NULL;
    l_child_onhand := 0;
    l_prorate_qty := 0;
    -- To get the split percentage of the child items
    l_prorate_percent :=
    ROUND ( (l_child_items.trx_qty / l_onhand) * 100, 5);
    -- To check whether the prorate percentage exits
    IF l_prorate_percent IS NOT NULL
    AND l_prorate_percent > 0
    THEN
    -- To calculate the prorate quantity
    l_line_tbl_count := l_line_tbl_count + 1;
    l_prorate_qty :=
    ROUND (
    (l_order_qty - l_excl_temp)
    * (l_prorate_percent / 100),
    5
    l_qty_temp := l_qty_temp + l_prorate_qty;
    -- To calculate the prorate quantity for the last line
    IF c_positive_onhand%ROWCOUNT =
    l_child_items.total_rows
    THEN
    l_prorate_qty :=
    l_prorate_qty
    + (l_order_qty - (l_qty_temp + l_excl_temp));
    END IF;
    -- Initializing the line record type to process
    DBMS_OUTPUT.put_line (
    'Initializing the Sales order Lines Record type3'
    l_line_tbl (l_line_tbl_count) :=
    oe_order_pub.g_miss_line_rec;
    l_line_tbl (l_line_tbl_count).operation :=
    oe_globals.g_opr_create;
    l_line_tbl (l_line_tbl_count).header_id := l_header_id;
    l_line_tbl (l_line_tbl_count).inventory_item_id :=
    l_child_items.inventory_item_id;
    l_line_tbl (l_line_tbl_count).ship_to_org_id :=
    l_ship_to_org_id;
    l_line_tbl (l_line_tbl_count).ordered_quantity :=
    l_prorate_qty;
    l_line_tbl (l_line_tbl_count).schedule_ship_date :=
    l_sch_ship_date;
    l_line_tbl (l_line_tbl_count).attribute1 :=
    l_attribute1;
    l_line_tbl (l_line_tbl_count).attribute2 :=
    l_attribute2;
    l_line_tbl (l_line_tbl_count).attribute9 := l_line_id;
    l_line_tbl (l_line_tbl_count).attribute10 :=
    ROUND (l_prorate_qty / l_order_qty * 100, 5);
    l_line_tbl (l_line_tbl_count).agreement_id :=
    l_agreement_id;
    l_line_tbl (l_line_tbl_count).calculate_price_flag :=
    'Y';
    DBMS_OUTPUT.put_line( '3rd insert'
    || 'l_prorate_qty'
    || l_prorate_qty
    || 'l_ship_to_org_id'
    || l_ship_to_org_id
    || 'l_sch_ship_date'
    || l_sch_ship_date
    || 'l_child_items.inventory_item_id'
    || l_child_items.inventory_item_id
    || 'l_agreement_id'
    || l_agreement_id);
    END IF;
    COMMIT;
    END LOOP;
    END IF;
    END IF;
    ELSIF l_order_qty > l_excl_temp
    THEN
    -- Loop the cursor with exclusion of soldado logic
    FOR l_child_item IN c_child_items (l_segment, l_organization_id)
    LOOP
    l_prorate_percent := 0;
    l_prorate_qty := 0;
    l_prorate_percent := ROUND (100 / l_child_item.total_rows, 5);
    l_prorate_qty :=
    ROUND (
    ( (l_order_qty - l_excl_temp) / l_child_item.total_rows),
    5
    l_line_tbl_count := l_line_tbl_count + 1;
    l_qty_temp := l_qty_temp + l_prorate_qty;
    -- To calculate the prorate quantity for the last line
    IF c_child_items%ROWCOUNT = l_child_item.total_rows
    THEN
    l_prorate_qty :=
    l_prorate_qty
    + (l_order_qty - (l_qty_temp + l_excl_temp));
    END IF;
    -- Initializing the line record type to process
    DBMS_OUTPUT.put_line (
    'Initializing the Sales order Lines Record type4'
    l_line_tbl (l_line_tbl_count) := oe_order_pub.g_miss_line_rec;
    l_line_tbl (l_line_tbl_count).operation :=
    oe_globals.g_opr_create;
    l_line_tbl (l_line_tbl_count).header_id := l_header_id;
    l_line_tbl (l_line_tbl_count).inventory_item_id :=
    l_child_item.inventory_item_id;
    l_line_tbl (l_line_tbl_count).ship_to_org_id :=
    l_ship_to_org_id;
    l_line_tbl (l_line_tbl_count).ordered_quantity := l_prorate_qty;
    l_line_tbl (l_line_tbl_count).schedule_ship_date :=
    l_sch_ship_date;
    l_line_tbl (l_line_tbl_count).attribute1 := l_attribute1;
    l_line_tbl (l_line_tbl_count).attribute2 := l_attribute2;
    l_line_tbl (l_line_tbl_count).attribute9 := l_line_id;
    l_line_tbl (l_line_tbl_count).attribute10 :=
    ROUND (l_prorate_qty / l_order_qty * 100, 5);
    l_line_tbl (l_line_tbl_count).agreement_id := l_agreement_id;
    l_line_tbl (l_line_tbl_count).calculate_price_flag := 'Y';
    END LOOP;
    END IF;
    END IF; -- to check whether any records are initialized
    IF l_line_tbl_count > 0
    THEN
    -- Cancel the Parent Item
    DBMS_OUTPUT.put_line ('Cancel the Parent Item');
    l_line_tbl (l_line_tbl_count + 1) := oe_order_pub.g_miss_line_rec;
    l_line_tbl (l_line_tbl_count + 1).operation :=
    oe_globals.g_opr_update;
    l_line_tbl (l_line_tbl_count + 1).header_id := l_header_id;
    l_line_tbl (l_line_tbl_count + 1).line_id := l_line_id;
    l_line_tbl (l_line_tbl_count + 1).ordered_quantity := 0;
    l_line_tbl (l_line_tbl_count + 1).attribute10 := l_order_qty;
    l_line_tbl (l_line_tbl_count + 1).cancelled_flag := 'Y';
    l_line_tbl (l_line_tbl_count + 1).change_reason := 'Not Provided';
    DBMS_OUTPUT.put_line( 'Cancellation Process fileds'
    || 'HDR_ID'
    || l_header_id
    || 'LINE'
    || l_line_id
    || 'l_order_qty'
    || l_order_qty);
    -- Call the procedure to process the sales order lines
    -- process_order_line_api (p_line_tbl_rec => l_line_tbl,
    -- p_line_id => l_line_id,
    -- p_error_flag => l_error,
    -- p_error_message => l_error_message);
    IF l_error = 'Y'
    THEN
    resultout := 'COMPLETE:Y';
    ELSE
    resultout := 'COMPLETE:N';
    END IF;
    ELSE
    resultout := 'COMPLETE:N';
    END IF;
    END IF;
    BEGIN
    fnd_global.apps_initialize (fnd_global.user_id,
    fnd_global.resp_id,
    fnd_global.resp_appl_id);
    -- BEGIN
    -- MO_GLOBAL.SET_POLICY_CONTEXT ('S', 321);
    -- END;
    -- fnd_global.apps_initialize (-1, 21623, 660);
    -- Call Process Line API to process sales order lines
    DBMS_OUTPUT.put_line ('fianl line to be processd');
    BEGIN
    oe_order_pub.process_line (p_line_tbl => p_line_tbl_rec,
    x_line_out_tbl => l_line_out_tbl,
    x_return_status => l_return_status,
    x_msg_count => l_msg_count,
    x_msg_data => l_msg_data);
    COMMIT;
    DBMS_OUTPUT.put_line ('API Processed' || l_msg_data);
    fnd_file.put_line (fnd_file.LOG, 'Processed - ' || l_msg_data);
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ('Failed With1' || SQLERRM);
    END;
    -- display error msgs
    IF (l_debug_level > 0)
    THEN
    FOR i IN 1 .. l_msg_count
    LOOP
    oe_msg_pub.get (p_msg_index => i,
    p_encoded => fnd_api.g_false,
    p_data => l_data,
    p_msg_index_out => l_msg_index);
    fnd_file.put_line (fnd_file.LOG, 'message is:' || l_data);
    fnd_file.put_line (fnd_file.LOG,
    'message index is:' || l_msg_index);
    DBMS_OUTPUT.put_line (
    'l_data' || l_data || 'l_debug_level' || l_debug_level
    END LOOP;
    END IF;
    IF p_error_flag = 'N'
    THEN
    FOR i IN 1 .. l_msg_count
    LOOP
    oe_msg_pub.get (p_msg_index => i,
    p_encoded => fnd_api.g_false,
    p_data => p_error_message,
    p_msg_index_out => l_msg_index);
    END LOOP;
    ELSE
    DBMS_OUTPUT.put_line ('Out Of loop Exit');
    END IF;
    fnd_file.put_line (fnd_file.LOG, 'p_error_message - ' || SQLERRM);
    DBMS_OUTPUT.put_line ('p_error_message' || p_error_message || SQLERRM);
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ('Failed With' || SQLERRM);
    fnd_file.put_line (fnd_file.LOG,
    'Unexpected Errors Found4 - ' || SQLERRM);
    END;
    END;
    Thanks
    Shagul

  • Mac 10.6.8's video calls not working! Please help!

    Reposting the text below because there was no reply to the last message. Ack! Please help. Skype, is there a solution yet? Or even just an explanation and a time frame so we know when we can expect video calls to work again? Thanks! ---------------I have a Mac laptop, version 10.6.8. I have the most updated version of Skype available for my computer, Skype version 6.15. For the past few months, I've been unable to use video chat or file sharing. I can receive some files, but cannot send files. Other people can video chat with me and I can see them, but they can't see me. My built-in camera works just fine for other purposes, so I know it's not an issue with my camera. I've also noticed that a lot of Mac users seem to be having trouble with Skype lately. I've checked my audio/video preferences for Skype and my computer's camera preferences, and everything is as it should be. Does anyone know how to fix this? 
    Thanks in advance for any help!

    See: How to perform a "clean install" of Flash Player in Mac OS X
    In addition to these steps, I recommend, BEFORE emptying the trash:
    Go to: [User]/Library/Preferences (hold the "Option" key when clicking "Go" from the Finder menu to reveal the hidden Library folder)
    Trash the ENTIRE Macromedia folder from there
    Aside from that additional step, follow the rest of the instructions to the letter and you should be back up and running.

Maybe you are looking for

  • Customer Service Outage on 4/16/2012

    On 4/16/2012 Adobe experienced a customer service outage in one of our data centers. This CSO occured at around 10:30 PM Pacific time and was the result of a hardware failure in a switch. This outage impacted many aspects of DPS from publishing, noti

  • Why am I getting  emails that I already received in my inbox?

    Today I got all my emails from the past month. I looked to see if something changed in settings but couldn't find anything. Why is the happening?

  • How to install a certificate on firefox for android?

    Hello, I have a few certificates that are required in my sign in from my bank. The only browsers supported are Firefox and IE. On android there is no option for installing or choosing a certificate during the sign in or before that. How can I fix tha

  • Uninstall Office 2010

    I have a windows virtual machine, I think Windows 7 (via vmware fusion 4.1.4) on my MBA that is running a Yosemite beta. Fusion 4.1.4 does not run on Yosemite, and probably never will. Fusion 7 is not worth it for me, but I thought I'd try to keep th

  • Images as hyperlinks problems in Yosemite Mail

    Images as hyperlinks in the body or signature of an email do not work for recipients using Apple Mail in Yosemite. They work fine in earlier versions of Mail. I have tested this on several computers running Mavericks and Yosemite. Has anyone else enc