Budget Exceeded Error when amending the PO

Dear Friends,
We are using SAP former budgeting system, we have an issue related to PO Budget.
PO created in the year 2009 and paid fully in 2010. no amount left to carryforward the PO to year 2011. As some additional amout need to pay against this PO value, user want to amend the PO.
To amend the PO, user has already created the PR in the year 2011 and when the user try to amend the PO using the newly created  PR, getting the eoror message that budget exceeeded in the year 2009.
We want to know why the PO is refereing the Budget of 2009 and giving error message, even though we have sufficient budget in the year 2011.
Your usual support is greatly appreciated.
Regards,
Venkat

Hi,
run the Budget carry forward for the Internal Orders in 2010 and 2011.
hope this will help
regards
sayeed baqresa

Similar Messages

  • Budget exceed error while unreleasing the service entry.

    Hi experts,
    My problem is the systm generating budget exceed error while unreleasing the entry sheet in current fiscal year.
    Entry sheet is released in privious fiscal year. User want to reverse this in current year. All budget(actual/commitment) are carryforwarded to current year. While unreleasing the entry sheet, system throwing the budget exceed error. There is suficent budget in current fiscal year.
    Request you to pl suggest what might be the cause of problem.
    Regards
    shrikant

    Hi
    Thanks for reply
    For WBS element A-101.01
    For year 2009
    current budget is  100000
    Distrubutable budget is 100000
    Assigned budget is  100000
    For year 2010
    current budget is  300000
    Distrubutable budget is 300000
    Assigned budget is  200000
    Service PO created in 2009 year for amount 20000/-. Service Entry sheet created  and released in 2009 .Vendor invoice has not be generated. Error budget exceed is raised for year 2009 while reversing the service entry sheet in current posting date.(privious posting period /year closed).

  • Budget exceeded error when reversing down payment request via FB08

    Hi Experts,
          I am trying to reverse a down payment request via FB08 but unfortunately its throwing a budget exceeded error, is this normal behaviour?
    Regards,
    Lewis

    Hi,
    Please find the below link it will help full for you,........
    Order Value will be exceeded Msg No. F5373
    Naresh

  • "Budget Exceeded" error not appearing at the time of changing PR but appearing at the time of PO change.

    Dear All,
    At the time of PR value change after creation of PO budget exceeded error is not appearing even though the PR value exceeds the budget. But at the time of changing the same value in PO, budget exceeded error is appearing.
    List of steps:
    PR created.
    PR released
    PO created with reference to PR and released.
    PR value changed to a value more than the available budget - No budget exceeded error.
    PO value changed in accordance with the PR - System throwing the budget exceeded error.
    Now the issue is why the system bypassed the budget exceeded error at the time of PR value change and only giving the error at the time of PO value change. Also, we observed that while changing the quantity in PR which results in exceeding budget, system is giving the error. But while changing the value system is not giving the budget exceeded error.
    Your inputs will be highly appreciated. Thanks in advance.

    Hello Saurabh,
    Thank you for your inputs. Below is the output of CJI5.
    Ref,Doc Category  Debit Date     Oty       Object    Cost Elem.   Val/CO Area Crcy   Total Qty.     UM
    PREQ                  28.05.2014    WBS     XXXXXX    XXXXXX           0.00                         0            EA
    POrd                    28.05.2014    WBS                                       14,000.00                1000          EA
    From the above output i think system is not capturing the PR commitment. I'm not sure as i'm basically into MM and  dont know much about PS.
    Why the system is stopping with budget exceeded error at the time of PR creation and not giving any error while changing the PR value after PO creation. System is giving budget exceeded error if quantity is changed in PR. Please explain the standard system behavior and suggest how to enable control at the time of PR value change.
    Thanks in advance.

  • KP06 Cost Center Budget Planning System error when locking the data records

    Hi,
    While updating Cost Center Planning system(KP06) its giving the below error:
    System error when locking the data records.
    Message no. KI502
    Diagnosis
    The lock to protect the data records being processed could not be set. The
    probable reason for this is that the SAP locking table is full and no more
    entries can be added.
    Procedure
    Inform your system administrator immediately
    No planning data has been changed
    Message no. K8038
    Diagnosis
    You used Post. While preparing the data for posting, the SAP System
    determined that no changes were made in the available databank values.
    System Response
    A posting activity price is not necessary
    Please help me how can we rectify the above error..
    Thanks
    VS Rao

    Hi,
    check the locking entries (t-code SM12).
    http://help.sap.com/saphelp_erp2004/helpdata/en/37/a2e3ae344411d3acb00000e83539c3/frameset.htm
    Best regards, Christian

  • Budget Exceed Error during creating of Purchase order in reference to PR

    Hi,
    I am getting the subject error (Budget Exceed Error) every time when I want to create a purchase order related to purchase requisition of my project.
    Issue is that after release the project when the purchase requisition has created for non stock item under activity I found in transaction CJ31 the assign value has already updated.
    Let say my budget is 400 US$, and the purchase requisition has created for 380 US$. Now when I check with CJ31I found the assigned value is 380. Now If I create a purchase order it throws an error that budget exceed.
    The tolerance limits are following:
    SA     ZSA01     Budget Profile Overall AVAC     ++     1     90,00
    SA     ZSA01     Budget Profile Overall AVAC     ++     3     100,00
    SA     ZSA01     Budget Profile Overall AVAC     01     1     90,00
    SA     ZSA01     Budget Profile Overall AVAC     01     3     100,00
    Please advice what will be the proposed solution for the above issue.
    Thanks in advance.
    With Regards,

    Your budget is 400$ and PR value is 380$ but you have not mentiond what is the tax value ?
    when u r creating PO at that time system will check the budget against PO value considering taxes also.
    eg. 380$+tax value.
    after considering taxes your total PO value imay be getting updated more that 400$.
    Explre you error by clicking on error information you get the exact diffrence in budget and PO value.
    Hope this will sove your problem, reply after doing this.

  • Budget exceeded BP604 (when create Invoice)

    Hi All,
    User got an error message budget exceeded BP604 when create invoice. How can i know what the configuration to check why system check budget( Investment management). I tried to check the configuration in SPRO (Define tolerance limit for availability control) shows that budget profile use ++ which are : (no invoice checking) but in actual it checks budget.
    ++     All activity groups           
    00     Purchase requisition          
    01     Purchase order                
    02     Orders for project            
    03     Goods issue                   
    04     Financial accounting document 
    05     CO document                   
    06     Budgeting                     
    07     Funds reservation             
    08     Fixed prices in project       
    09     Payroll                       
    Many thanks in advance.
    Nies

    Business transaction group 04 (Financial accounting document) contains below transactions:
    G/L account posting
    FI invoice parking
    Invoice verification
    Goods receipt for the order
    Cash budget management
    Payment transfer
    Down payment posting
    Inventory difference
    Regards
    Sreenivas

  • Budget Exceeded error with message No BP 602

    Hi Experts,
    I am facing a budget exceeding error: Ntwk actvty 6000001 0020 budget exceded year 2009.
    following is the settings
    Availability control against: Overall                        
    Availability control against: Budget                         
    Availability Control in the Controlling Area Currency:       
    Activation type: Automatic activation during budget allocation
    Usage level in %:  0,00
    The project is P.0001
    Top lvl P.0001
    WBS P.0001.1
    Network Activity (External services) 6000001 0010 PR-($40000) PO($20000) & Service entery done with same amount($20000).
    Network Activity (External services) 6000001 0020 PR-($1)
    Actual   $20000
    Commitment 20001
    Assigned 40001
    Available $49
    Now we updated the budget as below:
    The original budget was 40050 in IM then modified to 45050 and distributed in CJ30.
    When we try to update the Service PR with 49 or more dollars, gives error in commitments and when the log checked, the budget exceeding message is there, if the PR updated with 48 USD, it gives the budge is exhausted.
    40050(Old Budget)-40001 (assigned) = 49 USD. Which means, the supplement of the  5000USD is not considered.
    Run the CJEN and CJBN to reconstruct the project but no use.
    Please help me out where to check and what went wrong. its in client prd.
    Regards,
    Ganesh

    Hi,
    You said in reports and in CJ31 , it is showing 60049 as available. I am confused here......including additional budget , total budget you gave is 45000. Then how it can show 60049 which more than Original Budget ?
    Have you distributed additional budget to the WBSE for which Service P.R is being raised ?
    What is distributable budget at the level of the WBSE for which P.R is being created in CJ30 ?
    What Is available budget against the WBSE for which P.R is being created in S_ALR_87013558. ?
    May be it will be of saome help for you.
    Thanks
    Saikishore.Ganga

  • Budget Exceed error while settlement in PS T-Code CJ88

    Hi Guru's,
    I have created structure upto 6 level and i have done planning and budgeting at 6th level only, and actual cost is also posted at 6th level.
    When i am setteling that amount  at 5th level WBS using T-Code CJ88 then it is giving Budget exceed error of that particular amount as budget is also available at higher level WBS as accumalation of budget at 6th level is going to higher level WBS as i am following buttom-up approach.
    Please suggest.
    Regards,
    Ambuj

    Hi Rajesh,
    When you distribute budget to lower level WBS, the budget is only available at the lower level (availability is checked as: Budget - Distributed Budget - Assigned) regardless of whether it is shown at the superior level or not.
    AVAC status is activated automatically on WBS where budget is distirbuted and released (provide you have maintained Activation Type 1 in Budget Profile OPS9). Please check if AVAC status is active on your 5th level WBS. If it is active then the system will throw the error as SAP standard behavior. You can remove this status from 5th level WBS via CJBW.
    You may need to look at your budget configuration accordingly.
    Regards,
    Ammar

  • Budget exceeded error message

    Hi,
    We are in SRM 5.0 ECS, with support pack 11.
    When a PO is created with account assignment category project statistical (WBS element), with value exactly matching the budget availability, PO gets created, however if tried doing any changes to the PO, it gives an error message - WBS element budget exceeded.
    How it can be avoided.
    Rgds,
    Madhan

    Hi Madhan,
    Have a look at the following OSS Notes:
    Note 1068860 - Extended classic:Budget check errors on trying to change PO
    Note 1292419 - Budget exceeded error while changing a SRM purchase order
    Thanks,
    Pradeep

  • Error when updating the data from DSO to cube

    Hi,
    I am getting the error when uploading the data from the ods to cube.
    The following is the error message.
    Unable to determine period for date 20090101, fiscal year variant Z2: Error #
    How can i solve this issue.
    Regards
    Annie

    Hi ,
    fiscal year variant, go into Customizing for Financial Accounting (FI) under Financial Accounting Global Settings >>>Fiscal Year >>>Maintain Fiscal Year Variant.
    check this link ..
    http://help.sap.com/saphelp_scm41/helpdata/en/50/0d89f2ad919c40b95b9ae7583c8c96/frameset.htm
    http://help.sap.com/saphelp_scm41/helpdata/en/50/0d89f2ad919c40b95b9ae7583c8c96/content.htm
    Regards,
    shikha

  • Error message "Error when scheduling the query(JOB_CLOSE)".

    Hi all,
    While using query extractor (rscrm_bapi) I am getting error message "Error when scheduling the query(JOB_CLOSE)".
    Could you please find what this error is?
    Thanks,
    Uday.

    Hi Uday,
    This problem can occur if you changed the query definition.
    In this case the query definition would be inconsistent with the existing extract structure.
    Certain Meta information is maintained with each extract defined using the RSCRM_BAPI. If the definition of the query is changed and you need to use the same extract table then you need to delete the extract using the report RSCRMBW_DEL_ALL_EXTRACTS selecting the extract you want
    to delete.
    After this you could use the same table name for any further extract that you need to create.
    One caution is that the extract table should not be deleted through any other transaction before you run the report.
    Rgds,
    Colum

  • Error when installing the supporting objects of OLL Packaged Application

    Hello,
    I am trying to install OLL Packaged Application|http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r41/inst_pkgapp/inst_pkgapp.htm#top
    but when installing the supporting objects, I got error when executing the code of "create_package_body"
    Error at line 274: PLS-00201: identifier 'UTL_TCP' must be declared
    create or replace package body eba_oll_log
    as
    g_start_time    number;
    procedure log_init
    is
    begin
        g_start_time := dbms_utility.get_time;
    end log_init;
    procedure log_page_view
    is
    begin
       insert into eba_oll_page_views
          ( APEX_USER,
            PAGE_ID,
            PAGE_NAME,
            VIEW_DATE,
            TS,
            ELAPSED_TIME,
            IP_ADDRESS,
            AGENT,
            APEX_SESSION_ID,
            CONTENT_ID,
            CONTENT_TITLE )
       values
          ( v('APP_USER'),
            v('APP_PAGE_ID'),
            wwv_flow.g_step_title,
            trunc(sysdate,'DD'),
            systimestamp,
            (dbms_utility.get_time-g_start_time)*(.01),
            owa_util.get_cgi_env('REMOTE_ADDR'),
            owa_util.get_cgi_env('HTTP_USER_AGENT'),
            v('APP_SESSION'),
            case when v('APP_PAGE_ID') = 24
                 then v('P24_CONTENT_ID')
                 else null
                 end,
            case when v('APP_PAGE_ID') = 24
                 then v('P24_CONTENT_TITLE')
                 else null
                 end );
       if v('APP_PAGE_ID') = 24 then
          insert into eba_oll_content_views
             ( APEX_USER,
               VIEW_DATE,
               TS,
               IP_ADDRESS,
               AGENT,
               APEX_SESSION_ID,
               CONTENT_ID,
               CONTENT_TITLE,
               NOTE )
          values
             ( v('APP_USER'),
               trunc(sysdate,'DD'),
               systimestamp,
               owa_util.get_cgi_env('REMOTE_ADDR'),
               owa_util.get_cgi_env('HTTP_USER_AGENT'),
               v('APP_SESSION'),
               v('P24_CONTENT_ID'),
               v('P24_CONTENT_TITLE'),
               'Viewed' );
       end if;
       commit;
    end log_page_view;
    procedure log_content_click
    is
    begin
       insert into eba_oll_content_views
          ( APEX_USER,
            VIEW_DATE,
            TS,
            IP_ADDRESS,
            AGENT,
            APEX_SESSION_ID,
            CONTENT_ID,
            CONTENT_TITLE,
            NOTE )
       values
          ( v('APP_USER'),
            trunc(sysdate,'DD'),
            systimestamp,
            owa_util.get_cgi_env('REMOTE_ADDR'),
            owa_util.get_cgi_env('HTTP_USER_AGENT'),
            v('APP_SESSION'),
            v('P24_CONTENT_ID'),
            v('P24_CONTENT_TITLE'),
            'Launched' );
       commit;
    end log_content_click;
    end eba_oll_log;
    create or replace package body eba_oll_api
    as
    function gen_id
       return number
    is
       l_id  number;
    begin
       select to_number(sys_guid(), 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
         into l_id
         from dual;
       return l_id;
    end gen_id;
    function eba_oll_tags_cleaner (
        p_tags  in varchar2,
        p_case  in varchar2 default 'U' ) return varchar2
    is
        type tags is table of varchar2(255) index by varchar2(255);
        l_tags_a        tags;
        l_tag           varchar2(255);
        l_tags          apex_application_global.vc_arr2;
        l_tags_string   varchar2(32767);
        i               integer;
    begin
        l_tags := apex_util.string_to_table(p_tags,',');
        for i in 1..l_tags.count loop
            --remove all whitespace, including tabs, spaces, line feeds and carraige returns with a single space
            l_tag := substr(trim(regexp_replace(l_tags(i),'[[:space:]]{1,}',' ')),1,255);
            if l_tag is not null and l_tag != ' ' then
                if p_case = 'U' then
                    l_tag := upper(l_tag);
                elsif p_case = 'L' then
                    l_tag := lower(l_tag);
                end if;
                --add it to the associative array, if it is a duplicate, it will just be replaced
                l_tags_a(l_tag) := l_tag;
            end if;
        end loop;
        l_tag := null;
        l_tag := l_tags_a.first;
        while l_tag is not null loop
            l_tags_string := l_tags_string||l_tag;
            if l_tag != l_tags_a.last then
                l_tags_string := l_tags_string||', ';
            end if;
            l_tag := l_tags_a.next(l_tag);
        end loop;
        return substr(l_tags_string,1,4000);
    end eba_oll_tags_cleaner;
    procedure eba_oll_tag_sync (
        p_new_tags          in varchar2,
        p_old_tags          in varchar2,
        p_content_type      in varchar2,
        p_content_id        in number )
    as
        type tags is table of varchar2(255) index by varchar2(255);
        l_new_tags_a    tags;
        l_old_tags_a    tags;
        l_new_tags      apex_application_global.vc_arr2;
        l_old_tags      apex_application_global.vc_arr2;
        l_merge_tags    apex_application_global.vc_arr2;
        l_dummy_tag     varchar2(255);
        i               integer;
    begin
        l_old_tags := apex_util.string_to_table(p_old_tags,', ');
        l_new_tags := apex_util.string_to_table(p_new_tags,', ');
        if l_old_tags.count > 0 then --do inserts and deletes
            --build the associative arrays
            for i in 1..l_old_tags.count loop
                l_old_tags_a(l_old_tags(i)) := l_old_tags(i);
            end loop;
            for i in 1..l_new_tags.count loop
                l_new_tags_a(l_new_tags(i)) := l_new_tags(i);
            end loop;
            --do the inserts
            for i in 1..l_new_tags.count loop
                begin
                    l_dummy_tag := l_old_tags_a(l_new_tags(i));
                exception when no_data_found then
                    insert into eba_oll_tags (tag, content_id, content_type )
                        values (l_new_tags(i), p_content_id, p_content_type );
                    l_merge_tags(l_merge_tags.count + 1) := l_new_tags(i);
                end;
            end loop;
            --do the deletes
            for i in 1..l_old_tags.count loop
                begin
                    l_dummy_tag := l_new_tags_a(l_old_tags(i));
                exception when no_data_found then
                    delete from eba_oll_tags where content_id = p_content_id and tag = l_old_tags(i);
                    l_merge_tags(l_merge_tags.count + 1) := l_old_tags(i);
                end;
            end loop;
        else --just do inserts
            for i in 1..l_new_tags.count loop
                insert into eba_oll_tags (tag, content_id, content_type )
                    values (l_new_tags(i), p_content_id, p_content_type );
                l_merge_tags(l_merge_tags.count + 1) := l_new_tags(i);
            end loop;
        end if;
        for i in 1..l_merge_tags.count loop
            merge into eba_oll_tags_type_sum s
            using (select count(*) tag_count
                     from eba_oll_tags
                    where tag = l_merge_tags(i) and content_type = p_content_type ) t
               on (s.tag = l_merge_tags(i) and s.content_type = p_content_type )
             when not matched then insert (tag, content_type, tag_count)
                                   values (l_merge_tags(i), p_content_type, t.tag_count)
             when matched then update set s.tag_count = t.tag_count;
            merge into eba_oll_tags_sum s
            using (select sum(tag_count) tag_count
                     from eba_oll_tags_type_sum
                    where tag = l_merge_tags(i) ) t
               on (s.tag = l_merge_tags(i) )
             when not matched then insert (tag, tag_count)
                                   values (l_merge_tags(i), t.tag_count)
             when matched then update set s.tag_count = t.tag_count;
        end loop;
    end eba_oll_tag_sync;
    procedure render_tag_cloud (
       p_selection          in varchar2 default null,
       p_app_id             in number,
       p_session_id         in number,
       p_min_nbr_tags       in number default 1,
       p_max                in number default 100,
       p_limit              in number default 10000,
       p_link_to_page       in varchar2 default '2',
       p_tag_item_filter    in varchar2 default 'P2_TAGS',
       p_clear_cache        in varchar2 default '2,CIR,RIR',
       p_more_page          in varchar2 default '62' )
    as
       l_printed_records    number := 0;
       l_available_records  number := 20;
       l_max                number;
       l_min                number;
       l_class_size         number;
       l_class              varchar2(30);
       type l_tagtype is table of varchar2(2000);
       l_tags l_tagtype;
       type l_numtype is table of number;
       l_cnts l_numtype;
       l_size number;
       l_total number :=0;
       l_buffer varchar2(32676);  
       CURSOR c_all_tags
       IS
           select tag, c from (
           select t.tag, count(*) c
             from eba_oll_content c,
                  eba_oll_tags t
            where c.content_id = t.content_id
              and c.display_yn = 'Y'
              and (p_selection is null or
                   (p_selection is not null and
                   (   (substr(p_selection,1,1) = 'R' and
                        substr(p_selection,2) in (select release_id
                                                    from eba_oll_content_products cp
                                                   where cp.content_id = c.content_id))
                    or (substr(p_selection,1,1) = 'C' and
                        substr(p_selection,2) in (select product_id
                                                    from eba_oll_content_products cp
                                                   where cp.content_id = c.content_id))
                    or (substr(p_selection,1,1) = 'P' and
                        (substr(p_selection,2) in (select product_id
                                                     from eba_oll_content_products cp
                                                    where cp.content_id = c.content_id) or
                         substr(p_selection,2) in (select p.parent_product_id
                                                     from eba_oll_content_products cp,
                                                          eba_oll_products p
                                                    where cp.content_id = c.content_id
                                                      and cp.product_id = p.product_id)))
                    or (substr(p_selection,1,1) = 'G' and
                        (substr(p_selection,2) in (select pg.group_id
                                                     from eba_oll_product_groupings pg,
                                                          eba_oll_content_products cp
                                                    where pg.product_id = cp.product_id
                                                      and cp.content_id = c.content_id) or
                         substr(p_selection,2) in (select pg.group_id
                                                     from eba_oll_product_groupings pg,
                                                          eba_oll_products p,
                                                          eba_oll_content_products cp
                                                    where pg.product_id = p.parent_product_id
                                                      and p.product_id = cp.product_id
                                                      and cp.content_id = c.content_id)))
            group by tag
           ) x where rownum < p_limit
                 and c >= p_min_nbr_tags
            order by upper(tag) ;
    begin
       -- Fetch tags into arrays
       open c_all_tags;
          loop
              fetch c_all_tags bulk collect into l_tags,l_cnts limit p_limit;
              exit;
          end loop;
       close c_all_tags;
       l_available_records := l_tags.count;
       -- Determine total count and maximum tag counts
       l_max := 0;
       l_min := 1000;
       FOR i in l_cnts.first..l_cnts.last loop
          l_total := l_total + l_cnts(i);
          if l_cnts(i) > l_max then
             l_max := l_cnts(i);
          end if;
          if l_cnts(i) < l_min then
             l_min := l_cnts(i);
          end if;
       end loop;
       if l_max = 0 then l_max := 1; end if;
       l_class_size := round((l_max-l_min)/6);
       -- Generate tag cloud --
       sys.htp.prn('<div class="tagCloud"><ul>');
       for i in l_tags.first..l_tags.last loop
           l_printed_records := l_printed_records + 1;
           if l_cnts(i) < l_min + l_class_size then
              l_class := 'size1';
           elsif l_cnts(i) < l_min + (l_class_size*2) then
              l_class := 'size2';
           elsif l_cnts(i) < l_min + (l_class_size*3) then
              l_class := 'size3';
           elsif l_cnts(i) < l_min + (l_class_size*4) then
              l_class := 'size4';
           elsif l_cnts(i) < l_min + (l_class_size*5) then
              l_class := 'size5';
           else l_class := 'size6';
           end if;     
           l_buffer := '<li><a class="'||l_class||'" href="'||
                  'f?p='||p_app_id||':'||p_link_to_page||':'||p_session_id||':::'||p_clear_cache||':'||
                  p_tag_item_filter||':'||htf.escape_sc(l_tags(i))||'">'||
                  htf.escape_sc(l_tags(i)) || '<span>' || l_cnts(i) || '</span></a></li>';
           sys.htp.prn(l_buffer);
           l_buffer := '';
           if  l_printed_records > p_max then
               exit;
           end if;
       end loop;
       sys.htp.prn('</ul></div>');
       -- print if there's more
       if l_tags.count - l_printed_records != 0 then
               htp.prn('<p><a href="f?p='||p_app_id||':'||htf.escape_sc(p_more_page)||
                     ':'||p_session_id||':::'||htf.escape_sc(p_more_page)||'">View all tags</a></p>');
       end if;
       exception when others then
          sys.htp.prn('<p>No tags found.</p>');
    end render_tag_cloud;
    procedure email_when_feedback (
       p_feedback_id  in  number,
       p_host_url     in  varchar2,
       p_app_id       in  number )
    is
       l_body       clob;
       l_body_html  clob;
    begin
    for c1 in (
       select f.feedback_comment, f.feedback_by,
              c.title, nvl(ct.feedback_contacts,'[email protected]') email
         from eba_oll_content_feedback f,
              eba_oll_content c,
              eba_oll_team ct
        where f.id = p_feedback_id
          and f.content_id = c.content_id
          and c.team_id = ct.team_id (+) )
    loop
       l_body := 'You have received feedback for a piece of content you own in the Oracle Learning Library (OLL) Application.
    Content: '|| c1.title || utl_tcp.crlf || '
    Feedback: '|| c1.feedback_comment || utl_tcp.crlf || '
    Left by: '|| lower(c1.feedback_by) ||'
    You can respond via the OLL Application, '||p_host_url||'f?p='||p_app_id||':47:::NO::P47_ID:' || p_feedback_id || '.';
       l_body_html := '<div style="border: 1px solid #DDD; background-color: #F8F8F8; width: 460px; margin: 0 auto; -moz-border-radius: 10px; -webkit-border-radius: 10px; padding: 20px;">
    <p style="font: bold 12px/16px Arial, sans-serif; margin: 0 0 10px 0; padding: 0;">
    You have received feedback for a piece of content you own in the Oracle Learning Library (OLL) Application.
    </p>
    <table style="width: 100%;" cellspacing="0" cellpadding="0" border="0">
    <tr>' || utl_tcp.crlf || '
    <td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Content</td>
    <td style="font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;"><a href="#" style="color: #000">'||c1.title||'</a></td>
    </tr>
    <tr>' || utl_tcp.crlf || '
    <td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Feedback</td>
    <td style="font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">'||replace(c1.feedback_comment,CHR(10),'<br/>')||'</td>
    </tr>
    <tr>' || utl_tcp.crlf || '
    <td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Left by</td>
    <td style="font: bold 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">'||lower(c1.feedback_by)||'</td>
    </tr>
    <tr>' || utl_tcp.crlf || '
    <td colspan="2" style="text-align: center; font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">
    <a href="'||p_host_url||'f?p='||p_app_id||':47:::NO::P47_ID:' || p_feedback_id ||'" style="display: block; padding: 10px; background-color: #EEE; font: bold 16px/16px Arial, sans-serif; color: #444">Respond to this Feedback</a>
    </td>
    </tr>
    </table>
    </div>';
       apex_mail.send (
          p_to        => c1.email,
          p_from      => '[email protected]',
          p_subj      => 'OLL - New Feedback for your team',
          p_body      => l_body,
          p_body_html => l_body_html );
    end loop;
    end email_when_feedback;
    procedure email_when_response (
       p_feedback_id  in  number,
       p_host_url     in  varchar2,
       p_app_id       in  number )
    is
       l_body       clob;
       l_body_html  clob;
    begin
    for c1 in (
       select f.feedback_comment, f.feedback_by, f.response, c.title
         from eba_oll_content_feedback f,
              eba_oll_content c
        where f.id = p_feedback_id
          and f.content_id = c.content_id )
    loop
       l_body := 'You have received a response to your feedback left in the Oracle Learning Library (OLL) Application.
    Content: '|| c1.title || '
    Feedback: '|| c1.feedback_comment || '
    Response: '|| c1.response || '
    You can also view this response via the OLL Application, '||p_host_url||'f?p='||p_app_id||':60:::NO::IR_ID:' || p_feedback_id || '.';
          l_body_html := '<div style="border: 1px solid #DDD; background-color: #F8F8F8; width: 460px; margin: 0 auto; -moz-border-radius: 10px; -webkit-border-radius: 10px; padding: 20px;">
    <p style="font: bold 12px/16px Arial, sans-serif; margin: 0 0 10px 0; padding: 0;">
    You have received a response to your feedback left in the Oracle Learning Library (OLL) Application.
    </p>
    <table style="width: 100%;" cellspacing="0" cellpadding="0" border="0">
    <tr>' || utl_tcp.crlf || '
    <td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Content</td>
    <td style="font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;"><a href="#" style="color: #000">'||c1.title||'</a></td>
    </tr>
    <tr>' || utl_tcp.crlf || '
    <td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Feedback</td>
    <td style="font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">'||replace(c1.feedback_comment,CHR(10),'<br/>')||'</td>
    </tr>
    <tr>' || utl_tcp.crlf || '
    <td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Response</td>
    <td style="font: bold 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">'||replace(c1.response,CHR(10),'<br/>')||'</td>
    </tr>
    <tr>' || utl_tcp.crlf || '
    <td colspan="2" style="text-align: center; font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">
    <a href="'||p_host_url||'f?p='||p_app_id||':60:::NO::IR_ID:' || p_feedback_id ||'" style="display: block; padding: 10px; background-color: #EEE; font: bold 16px/16px Arial, sans-serif; color: #444">View Response in OLL Application</a>
    </td>
    </tr>
    </table>
    </div>';
       apex_mail.send (
          p_to        => c1.feedback_by,
          p_from      => '[email protected]',
          p_subj      => 'Oracle Learning Library - Response to your Feedback',
          p_body      => l_body,
          p_body_html => l_body_html );
    end loop;
    end email_when_response;
    end eba_oll_api;
    /Error at line 274: PLS-00201: identifier 'UTL_TCP' must be declared
    Edited by: Fateh on Jan 13, 2012 7:32 AM

    Thanks & Sorry for not mentioning the full information about my environment.
    it was:
    Oracle 11g xe R2 on Windows 7 machine
    Apex listener deployed on Glass Fish server 3.1 on Windows 7 machine
    Apex 4.1
    Google Chrome
    So, to have OLL application worked locally . we need the following:
    grant execute on utl_tcp to [your_schema_name]And to
    Configure an Application Express Application as a Partner Application in Oracle AS Single Sign-On http://www.oracle.com/technetwork/testcontent/sso-partner-app-100552.html.
    I think I am going to install on my work space on apex.oracle.com.
    Regards,
    Fateh
    Edited by: Fateh on Jan 15, 2012 9:38 AM

  • Error when generating the report in Production Server

    Hi,
    I have created one infoset query in Development server of my client. It is working fine there. I had transported the request containg this query to Production server. But whenever I am trying to generate report using this query in Production server it is giving an error message
    "Error when generating the report".
    I am not getting what 's problem.
    Samriddhi

    Samriddhi,
    Genarally its not suggested to transport Queries. Should be able to create Queries directly Production. There might be diferences between your Development and Production versions.
    Thanks.

  • Error when Activating the data store object

    Hi All,
    I have to get the following below errors when i was activating the ods.
    Transfer structure prefix for source systemt T90CLNT is not defined
    Error when creating the export datasource and dependent objects
    could anyone help me on this issue.
    Regards,
    Naveen.
    Edited by: naveen naveen on Feb 2, 2009 6:35 AM

    Hi Naveen,
    Check the Source System connection and Run program RS_TRANSTRU_ACTIAVATE_ALL in SE38 and give your Source system ID and Infosource. If you have infosource. or replicate your datasource.
    and also Check the BW self System whether it is active or not. then try activating DSO
    hope this helps
    Regards,
    Daya Sagar
    Edited by: Daya Sagar on Feb 2, 2009 11:13 AM

Maybe you are looking for

  • SQLLDR - Multibyte character error

    Hi, I am loading a file which have unusual characters e.g.KAROSSERIE-CENTER-OBERROá, My sqllder control file needs to be position based e.g as per below, but the character is at the end of the field. looks like the character is taking up two spaces a

  • Could not resolve...

    Hi everyone, I'm currently playing around with the examples in AFCS and noticed when running Flexternal.mxml that I get an error at line 27 <rtc:AdobeHSAuthenticator authenticationKey="{authToken}" id="auth"/> Severity and Description Path Resource L

  • How do I start the sap service connector

    Ive downloaded and installed sap service connector. But Ive been unable to get it to generate the stfk.oez file. Please help, thanks,

  • Server cannot connect to cluster

    Hi I have been scratching my head about this problem for a while. I have three servers all using the same coherence-cache-config file - one runs inside weblogic, one is the coherence.sh monitoring application and the third is an invocation of the Def

  • Script to Batch adding a layered template to multiple layered psds?

    I have several hundred numerically named layered psds that I need to add a layered psd template on top of.  Both are the same size and will line up if I could just somehow automate the process. This seems like something there should be an existing so