Total Computing not happening on Sub line, line and header level

Hi All,
Iam using below code to compute the contract total, but below api is not populating any values at sub line, line as well on header level.
Can someone please suggest me whether I am using the correct API or not and also if this is correct one why it is not populating total in service contracts form.
{DECLARE
l_input_details OKS_QP_PKG.INPUT_DETAILS;
l_output_details OKS_QP_PKG.PRICE_DETAILS;
l_modif_details QP_PREQ_GRP.LINE_DETAIL_TBL_TYPE;
l_pb_details OKS_QP_PKG.G_PRICE_BREAK_TBL_TYPE;
l_return_status VARCHAR2(20);
l_msg_count NUMBER;
l_msg_data VARCHAR2(2000);
l_status_tbl oks_qp_int_pvt.Pricing_Status_tbl;
l_final_status_tbl oks_qp_int_pvt.Pricing_Status_tbl;
l_count NUMBER;
BEGIN
l_input_details.intent := 'LP';
-- l_input_details.lse_id := 1;
l_input_details.chr_id :='245003';
l_input_details.line_id := '301498277568510712147018743801056692954';
l_input_details.subline_id := '301498277568522801405214890092803754714';
oks_qp_int_pvt.compute_price
p_api_version => 1.0,
p_init_msg_list => 'T',
p_detail_rec => l_input_details,
x_price_details => l_output_details,
x_modifier_details => l_modif_details,
x_price_break_details => l_pb_details,
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data
dbms_output.put_line(l_return_status);
END;
Best Regards
Ragni Gupta

I've never used this API, but you could use the following code to display any error message. (add declaration for l_msg_index_out NUMBER)
IF l_return_status != 'S'
THEN
FOR i IN 1..l_msg_count
        LOOP
          fnd_msg_pub.get (p_msg_index     => -1,
          p_encoded     => 'F' ,
          p_data          => l_msg_data,
          p_msg_index_out=> l_msg_index_out);
          dbms_output.put_line(i||'.'||SUBSTR(l_msg_data,1,255));
END LOOP;
END IF;HTH
Alka

Similar Messages

  • Whenever I run Firfox 4.0, my computer fan runs continuously. I have disabled all plug-ins, and I get the same result. This did not happen with Firefox 3.x, and it doesn't happen with IE 8.0. Any ideas?

    Whenever I run Firfox 4.0, my computer fan runs continuously. I have disabled all Firefox plug-ins, but I get the same result. This did not happen with Firefox 3.x, and it doesn't happen with IE 8.0. Any ideas?

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • Overhead calculation not happening after using Overhead key and orgin group

    overhead calculation not happening after using Overhead key and orgin group.
    There was a runtime error earlier related to u201Cdefine credit u201C IMG node under costing sheet component and we have applied SAP note 769946 and that error was gone out of the way
    We want to apply/add Overhead to SFG/FG materials.
    We are using PP order with PCC(product cost collector) as the cost object , i.e costing by period.(system ECC 6)
    But our problem is with material standard cost estimate process.
    We have assigned overhead keys to the percentage rates in costing sheet for material standard costing and assigned the origin groups to the credits of costing sheet. But after running the cost estimate overhead is not taking into account for standard cost calculation.
    In the define credit entry table key field is valid to date strangly and actually system should allow one than one entry with same valid to date and same sec.Cost element(type-41) for different cost centers.
    But if we without using overhead key and origin group, the entire cost in that supporting cost center will come to all materials (SFG/FG) and we can not distinguish between different product materials(SFG /FG).
    We have checked all things as mentined below.
    Firstly that the correct costing sheet is assigned to the valuation
    variant.
    That the costing sheet is entered for the appropriate material type:
    Finished and semi finished or material components.
    All of the above can be checked and verified via transaction OKKN.
    In addition make sure that the base value maintained is present in the
    costing, for example the base may include an Origin group, is that
    origin group part of the materials being costed?
    Similarly if the base is found and values exist how is the overhead
    rate of the costing sheet set up, is it valid etc.
    And finally do a similar check for the credit.
    we doubt this as a programm error...
    So, request all experts to have ur feedback..

    Dear,
    Check your origin group & material unit of mesaurement is same.
    some time in costing sheet origin group is maintain in different unit & for materail it's maitain in other unit of mesaurement.
    You can see unit of measure for material in Additional data - unit of measure.
    Check BOM component material unit also.
    Check same  unit of measure is maintain in KZS2
    I hope above will useful.
    GOPAN

  • Trying to publish an event to fb from iPhoto '09, 8.1.2. Getting error message: "Line 22: Opening and ending tag mismatch: meta line 0 and head".

    Trying to publish an event to fb from iPhoto '09, 8.1.2. Getting error message: "Line 22: Opening and ending tag mismatch: meta line 0 and head". Never had any trouble before. What in the world?

    See if you can export those same photos to a folder on your Desktop.
    OT

  • Line item and header records in the same infopackage

    Gurus,
    I wanted to check how can I make sure that I get all the line item documents in the same package with the header document record in the same infopackage? Is there some setting for that? If I am writing a custom extractore how can I make sure of this in ABAP?
    Thanks
    AK

    Dear AKBW,
    This is not very clear why you want to use same infopackage for line-item as well as header data. Normally there are 2 different datasources for line item and for header data.
    Say you are woking with Sales Order Data in ECC.
    So Line-item datasource for sales order data - 2LIS_11_VAITM
    and Header datasource for sales order data - 2LIS_11_VAHDR.
    Now as they are 2 different datasource, so you must need 2 different infopackages.
    Now if you have created one custom datasource in ECC, then just check if its extracting line-item level or header level data. Normally when we create any custom datasource, we try to make it line-item level, to have all the itemwise detail. Though its not mandatory.
    So if you have 2 different datasources (SAP or Custom), you definitely need 2 different infopackages.
    Please let me know, if you still have any more doubt. You can also give me the other detail of the custom datsource you are creating.( type, fields, what it is supposed to extract etc)..

  • BeX Analyzer Aggregation - display line item and header amounts in same row

    Hi Experts,
    I've a requirement in which I'm looking for help.
    Consider that I've one DSO with line item detail and I wish to display on a report for each line item (in the same row) the value of the header which has to be the sum of all line items for each header.
    Here's an output of what should be displayed:
    PO || Hdr  || PO item Item Amount || PO Amount (Sum All Items/Header)
    1    ||  1    ||  10 u20AC                          || 15 u20AC
    1    ||  2    ||  5 u20AC                            ||15 u20AC
    I've already tried to create a formula/calc key figure, using the KF "Item Amount" aggregated with exception of the "PO Hdr" Char, but it doesn't work.
    I know that i can built this on the data model but I just want to be sure before that there's no way to achieve this requirement through query designer.
    All help will be welcomed!
    Thank you.
    Nuno

    Hi Lakshmipathi Sir,
    Thanks for your reply. Could you please let me know how exactly i need to mention the logic to ABAPer.
    I can see two fields are giving from VBKD table with line item wise it is displaying.
    1. BSTKD
    2. BSTKD_M
    thanks,

  • PR release refused for 7 lines out of 8 line item for header level released

    Hi Gurus,
    please help me how to resolve this issue.
    i have purchase requestion with 8 line items,out of 8 line items line 5 gets relesed and other lines relese refuded mode.
    i have checked the complete procedure,authorisations and tried through ME54N and ME55 also.
    please help me , thanks in advavnce.
    Regards,
    Babu

    hi
    please check the line items whether its blocked or deleted or value and quantity fields are updated.

  • Not happened before help after three hours head thumping

    Help please
    After uplaoding tiff files as normal and editing them then using save to web.
    I look at the picture I have ajusted once saved as a JPG it comes out looking totaly a darker picture,
    Also if I use the preview in browser button it comes out looking differant to what I have ajusted
    Any ideas please as I cant seem to sort this one out.
    Thank you for any help  

    Hello again thank you for taking the time to reply.
    I dont normaly have any problems with the program.
    I did do that at first what you said to do but that was not the problem in the end
    I had thought to myself lets see if there are any updates and bobs your uncle
    it fixed it so why it happened in the first place I will never know.
    But thank you again for lending a hand.
    Kind regards Dean

  • I am unable to stream Netflix to my Iphone or Apple TV, from my wireless router . . . even though I am able to watch Netflix on my WII (also wireless) and desktop computer (not wireless).

    I am unable to stream Netflix to my Iphone or Apple TV, from my wireless router . . . even though I am able to watch Netflix on my WII (also wireless) and desktop computer (not wireless).
    On the Iphone and Apple TV I can connect to Netflix . . . it recognizes me and my account settings . . . and I can veiw all my recent programs and show titles, descriptions, etc..  But when I select one to watch I get a message saying:
    "ERROR A PROBLEM OCCURED WHILE PLAYING THIS ITEM. TRY AGAIN LATER, OR SELECT A DIFFERENT ITEM. GO TO WWW.NETFLIX.COM/SUPPORT FOR MORE INFORMATION. (139)
    Netflix support say there is nothing wrong on their end . . . that it is an Apple issue.  They see the request for the show, the devices are registered . . . but it shows 0 bandwidth to the device.
    My Apple TV did this when I first hooked it up a couple of weeks ago.  Then after a few days started working with Netflix, for no apparent change . . . now doesn't again for the past couple of days (I think that it auto restarted the other night after a virus scan).
    Very frustrating, and driving me nuts!  Has anyone else had and been able to resolve this problem?

    Troubleshooting
    Apple TV2 update one day and netflix is browsing but not launching the actual content (error 139)
    Ipad2 (another ios device) forces me to update netflix if I want to use it and I get the same error 139 on it.
    **** now I have two not ways not working where prior to some update it was fine.
    Nintendo Wii is still working ( mind you running an ancient version of netflix )  Dusted the Wii off and gave it to the kids use.  Now they are happy again...
    PC is also still working ( using some other flash client ) but that's just of interest, we're not going to be watching tv with that.
    My wife's iphone 4s is still working.  Odd.. still ios but for somereason I am not forced to update the version. So basically she could mirror stream up to the apple tv with it.  Nice feature of Ios5.  Later found out it is using 1.4 version of netflix.  The most useful thing out of that is that all 3 of the devices are Ios and it was actually the iphone with the 1.4 version of netflix that still worked!
    I heard from a friend who was on a different ISP he was still working so I took my appletv2 and ipad2 over to my brothers house who is on that same ISP as my friend and both started working.  So the ISP is involved too!
    Brought the appletv2 and ipad2 back to my house hoping it would maybe still work.  No dice   Broken again.
    Searched the appstore for a decent packet analyzer and there isn't really anything.  I was able to sniff the traffic with my PC and also on my juniper ssg5 confirmed that.  Turns out port 80 traffic is actually failing and authorization is not happening.  The other clients do not do this...
    Asked a buddy from work who used to work at the ISP if he could make a call to some one who might actually know what is going on.  He came back pretty quick and said yea they are trying really hard to get the beta patch in from Bluecoat asap. 
    So knowing that it was actually Netflix that changed when it hit 2.0 and in my case the ISP made the adjustment it's pretty safe to say this issue is going to be ongoing unless netflix changes again the way they authorize for licenses.
    So that's the summary of what went right down the troubleshooting path but I'll tell what what didn't
    2 calls to Netflix (useless... waste of time... they are too quick to blame anyone but themselves)
    1 call to apple support (support call was going to cost more than it cost for me to change ISPs)
    2 calls to ISP (through the normal means - regular support number)
    So why is this intermittantly working sometimes?  If you are lucky enough to authorize to an IP address that is not cached they voila you are going to get an authorization / a license to watch the show.  Some people report after defribulating their appletv (reseting, rebooting, dns changes, you name it) they get it working.  Over the past month we all seem to have got it working for some period of time only to lose it a day to two later.
    It's now been several days since the beta patch to the bluecoat and 4 of us who have been communicating on the issue appear to be online all at the same time for those several days and that is a good sign that we might be out of the woods on the issue.
    Hope this turns into something helpful for someone else out there.

  • OBIEE 11g Report-When drilling down to lower level, totals are not matching

    Hi All,
    I am creating a report in Analytics 7.9.6.3 , OBIEE 11g - Let’s say Budget Cost/Actual Cost based on the Date Dimension
    Have selected the Fiscal Year Dim, Fact Budget Cost, Fact Actual Cost
    FY BCost ACost
    2011 100 120
    2012 150 140
    Total 250 260
    But here when I am drilling down from Year to Quarter and Period - The values are not matching with the totals....
    FY FY Qrt BCost ACost
    2011 2011 Q1 80 100
    2011 Q2 100 90
    2011 Q3 110 120
    2011 Q4 90 130
    Total 380 440
    Fiscal Year, Fiscal Quarter Budget Cost and Actual Cost are not returning correct results – When selecting cost's by fiscal year, or filtering on a specific fiscal year, the amount returned does not equal the fiscal year total;
    when I am drilling down to Quarter and Period Level the BCost & ACosts are bumping the Numbers as above and not matching with totals
    Any suggestions?

    Check out the query in both the times.Execute against database and try to sum the data for quarter/period and compare it with Year data.
    Just try to differentiate is it a report total that is getting wrong or the data in the database table itself is getting wrong stored.
    Mark as helpful if it helps.
    Regards,
    Veeresh Rayan

  • When drilling to lower level - Totals are not matching in BI Analytics OOB

    Hi All,
    I am creating a report in Analytics 7.9.6.3 , OBIEE 11g - Let’s say Budget Cost/Actual Cost based on the Date Dimension
    Have selected the Fiscal Year Dim, Fact Budget Cost, Fact Actual Cost
    FY BCost ACost
    2011 100 120
    2012 150 140
    Total 250 260
    But here when I am drilling down from Year to Quarter and Period - The values are not matching with the totals....
    FY FY Qrt BCost ACost
    2011 2011 Q1 80 100
    2011 Q2 100 90
    2011 Q3 110 120
    2011 Q4 90 130
    Total 380 440
    Fiscal Year, Fiscal Quarter Budget Cost and Actual Cost are not returning correct results – When selecting cost's by fiscal year, or filtering on a specific fiscal year, the amount returned does not equal the fiscal year total;
    when I am drilling down to Quarter and Period Level the BCost & ACosts are bumping the Numbers as above and not matching with totals
    Any suggestions?

    Check out the query in both the times.Execute against database and try to sum the data for quarter/period and compare it with Year data.
    Just try to differentiate is it a report total that is getting wrong or the data in the database table itself is getting wrong stored.
    Mark as helpful if it helps.
    Regards,
    Veeresh Rayan

  • Invisible lines showing and Disappearing in InDesign when Printed

    This problem does not happen in Adobe CS4 products and I recently switched to Adobe CS6 indesign and photoshop. I keep running to many problems (well its more than when I worked with CS4 products).
    I'm asking this because clients keep sending me horrible 72 dpi rasterized files. How do I deal with it if the program deals with this differently?
    I know this has been asked before I think but what if the files are coming from the client's side?
    The left circle is the original pdf file the client has sent me. The right circle is when I placed the file in Indesign CS6.
    Except that the logo is rasterized. The rest is vector.
    The left is rasterized, exported from indesign using 100 dpi. Usually my customers send in files that are 72 dpi. And then I have to manually create bleeds on them. The right is an exported pdf.

    What are you expecting? The original files you're getting are not suitable for print.
    that said, how are you outputting these files?

  • To display line item data at header level

    Dear Techis ,
    The requirment is that i am havin three line items for a particular document.
    I need to shw amount of all dese line item at Header level , it means of thr line item i will jus pick Amount and will shw it in one single row with in three differen colums .
    is it possible ?
    Thanks&Regards
    Santo

    Hi Santosh,
    So you must be having items in a internal table, loop at that internal table and sum the amount field using a variable inside the loop and print the value.
    If you are dealing with Purchase Order or Sales Order , you can get the value directly from the header tables(EKKO or VBAK).
    Revert back if u have any doubts.
    Regards
    Karthik D

  • PO HEADER LEVEL의 TOTAL AMOUNT 계산 LOGIC

    제품 : MFG_PO
    작성날짜 : 2004-10-13
    PO HEADER LEVEL의 TOTAL AMOUNT 계산 LOGIC
    ==========================================
    PURPOSE
    Purchase Order 화면의 Header level에 보여주는 Total Amount 계산 logic을
    알아본다.
    Explanation
    Purchase Order 화면에서 PO를 입력하거나 조회해 본 사람은 PO Header level
    에 보이는 Total amount 값은 어느곳에도 저장되지 않는다는 것을 확인 할
    수 있을 것이다.
    이 header level total amount 계산 logic은 다음과 같다.
    1.Purchase Order 화면에서 price와 quantity가 입력될 때 POXPOPOL.pld에
    있는 maintain_po_total이 불려진다.
    이 maintain_po_total procedure는 line amount를 뿌려주기 위해 line에
    정의된 quantity와 price를 고려한다.
    이 line amount sum 되고, header total에 뿌려준다.
    sum(round((quantity*unit_price),precision))-> Header_total
    2.PO를 query 할 때 header amount를 조회하기 위해 POXCOCOB.pls의
    po_core_s.get_total procedure가 불려진다.
    아래의 query가 PO header level total amount 계산을 하게 된다.
    SELECT sum(round((pll.quantity - nvl(pll.quantity_cancelled,0))*
    nvl(pll.price_override,0),x_precision))
    FROM PO_LINE_LOCATIONS PLL
    WHERE PLL.po_header_id = <<po_header_id>>
    AND PLL.shipment_type in ('STANDARD','PLANNED','BLANKET')
    여기에서 precision은 PO.(PO Currency = Functional Currency)에서 사용
    되는 것으로 fnd_currencies에 정의된 currency이다.
    Example
    Reference Documents
    Note 226697.1

    Thought so.
    And therein lies your problem.
    You should avoid updating Oracle tables directly unless you are 100% sure that no relationships are getting violated.
    Updating po line price should be done via interface. I would suggest that you use the po documents interface to change the po line prices. Then you will see the header totals get updated automatically.
    Hope this answers your question
    Sandeep Gandhi
    Independent Consultant
    513-325-9026

  • Pricing is not changed when pricing date is changed at header level.

    Dear Gurus,
                           The query is about pricing. When I change the pricing date at header level it is supposed to chnage the pricing at item level also. But it is not happening. In our scenatio there is a ZPR0 price and there is a condition record for that.
    The order was created earlier and now when we change the pricing date price is not being changed. I checked the analysis button. There it shows the following messages for ZPR0(In this case condition already exists). ZPR0 has three condition tables
    1. Condition record exists, but has not been set (for the 1st table in acces sequence)
    2. Access has not been executed due to previous access(for the 2nd table in acces sequence)
    3. Access has not been executed due to previous access(for the 3rd table in acces sequence)
    As a result we are not able to change price in the header level by changing the pricing date.
    Please help
    Thanks in advance,
    Je

    Hi Felipe,
                    The pricing will change if we click on the update button and select 'C' or 'B' option in the item level. But when we try to chnage by clicking on the update button in the header level it is not getting changed.
    I would also like to add that customer wants the price to be changed without pressing the update button at tghe header level.
    Please clarify on the pricing validity configuration . What steps are required in the pricing validity configuration.?
    Thanking you,
    Je
    Edited by: jerryabap on Feb 4, 2011 12:17 PM

Maybe you are looking for