Please suggest solution to this report printing problem

Hi,
I did a small project using forms and reports 6i. Now i prepared a repor that will calucalate the sum(expenditure)per report level. Now the problem is i want to print the sum which is in number form , in words. That is if the sum is 50000 then i want to print "fifty thousand". For this conversion from number to figure i wrote a small programme , which successfully compiled and created a function.
Now I want to create a field in the report and in which I want to call this plsql function and perform the number conversion of sum(expenditure)per report field. Please describe in detail how to make reference between these two fields i.e sum(expenditure)per report and field in which I want to run plsql code and thereby converting the sum into figures.
Thanks in advance
Prasanth a.s.

Create a formula column that calls your procedure to get the value in words. Create a field based on this formula column.

Similar Messages

  • Please suggest solution to this printing problem

    Hi,
    I did a small project using forms and reports 6i. Now i prepared a repor that will calucalate the sum(expenditure)per report level. Now the problem is i want to print the sum which is in number form , in words. That is if the sum is 50000 then i want to print "fifty thousand". For this conversion from number to figure i wrote a small programme , which successfully compiled and created a function.
    Now I want to create a field in the report and in which I want to call this plsql function and perform the number conversion of sum(expenditure)per report field. Please describe in detail how to make reference between these two fields i.e sum(expenditure)per report and field in which I want to run plsql code and thereby converting the sum into figures.
    Thanks in advance
    Prasanth a.s.

    hi,
    use this code
    it works !!
    regards
    sandy
    CREATE OR REPLACE FUNCTION NUMBER_CONVERSION(NUM NUMBER) RETURN VARCHAR2
    IS
    A VARCHAR2(1000);
    B VARCHAR2(20);
    X NUMBER;
    Y NUMBER := 1;
    Z NUMBER;
    LSIGN NUMBER;
    NO NUMBER;
    BEGIN
    X:= INSTR(NUM, '.');
    LSIGN := SIGN(NUM);
    NO := ABS(NUM);     
    IF X = 0 THEN
    SELECT      TO_CHAR(TO_DATE(NO, 'J'), 'JSP') INTO A FROM DUAL;
    ELSE
    SELECT      to_char(to_date(SUBSTR(NO, 1,
              NVL(INSTR(NO, '.')-1, LENGTH(NO))),
                   'J'), 'JSP') INTO A FROM DUAL;
    SELECT     LENGTH(SUBSTR(NO, INSTR(NO, '.')+1)) INTO Z FROM DUAL;
    A := A ||' POINT ';
    WHILE Y< Z+1 LOOP
         SELECT TO_CHAR(TO_DATE(SUBSTR(NO, (INSTR(NO, '.')+Y), 1), 'J'), 'JSP')
         INTO B FROM DUAL;
              A := A || B ||' ';
              y :=y+1;
    END LOOP;
    END IF;

  • HT4009 in app purchase from OMGPOP "Draw Something" of 400 coins never received - has anyone else had this problem and do you have a suggestion for me  Tried "report a problem" and directed to this site."

    in app purchase from OMGPOP "Draw Something" of 400 coins never received - has anyone else had this problem and do you have a suggestion for me  Tried "report a problem" and directed to this site."

    Hi AP_In_Surbiton,
    I am really sorry that you have had so much trouble getting your Caller ID up and going.  I'll be happy to help you out with this and get it working for you.
    Could you drop me in an email please? Use the 'contact us' form in my forum profile under the 'about me' section. You can find it by clicking on my username.
    Thx
    Craig
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)”
    td-p/30">Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Report print problems

    we are working on a couple of reports that are giving us problems printing. on the first we are getting multiple records that are the same this report prints fine ,but when i add the distinct keyword to the query the report comes up blank on the web. in the client/server environment the report prints the expected results. the second report is simply passed one parameter and i want to print that parameter as a barcode. i can also get this report to run in client/server but not on the web. these reports produce no errors just a blank report. we have other reports running fine but these two are driving me crazy. is there anything i should look for.
    null

    Hi nrp,
    This seems to be more of a Windows error but it could be related to how LabVIEW is trying to communicate with IE too. I would recommend that you try the official example and see what happens. There is a VI in the Example Finder called HTML Report. It shows you how to correctly create a HTML report. There is also an example by the name of PrintControlReport.vi. This shows how you can then print any report that you’ve created. The combination of the two should give you what you need.
    Hope this helps,
    Regards,
    Mahdieh G
    Applications Engineer
    National Instruments UK&Ireland

  • Seniors please help me in this Report

    Hi Seniors,
    PLEASE HELP ME WITH THIS REPORT.
    I KNOW THE FUNTIONALITY OF THE REPORT AND I AM NOT ABLE TO PUT
    IT IN TO THE ABAP PROGRAM..
    REPORT NAME : CUMULATIVE   BILL
    FUNCTIONAL AND TECHNICAL SPECIFICATIONS
    SELECTION-SCREEN  FIELDS
    WERKS      -
    TABLE: EKPO---  PLANT
    LGORT       -
    TABLE: EKPO--- STORAGE LOCATION
    EBELN       -
    TABLE: EKPO…..   PURCHASING DOCUMENT NUMBER
    NOTE : FOR THIS EBELN NUMBER SELECTED IN THIS FIELD THE NEXT FIELD SHOULD BE  REACTED. MEANS FOR THE PURCHASING DOCUMENT SELECTED HOW MANY INVOICE ARE MADE SHOULD ONLY DISPLAY FOR THE BELOW FIELD.THE NEXT FIELD IS GIVEN BELOW.
    BELNR       -
    TABLE: RBKP---  Document number of an invoice document
    THE ABOVE FIELD BELNR SHOULD DIPLAY ON THE BASIS OF  NUMBER SELECTED IN EBELN.
    FUNTIONAL EXPLINATION : FOR A PARTICULAR PURCHASE ORDER(EBELN) HOW MANY INVOICES(BELNR) ARE MADE SHOULD BE DISPLAYED.
    OUTPUT SCREEN FIELDS
    TOP BOX SHOULD DISPLAY IN THIS FORMAT.
    PLANT       -WERKS-EKPO….                                   BILL NO:-XBLNR--
    PROJECT   -POST1---TABLE -PROJ……               DATE     : BUDAT--
    VENDOR   -NAME1-TABLE -LFA1…….               WO NO  :BELNR--
    ADDRESS -
    STREET—TABLE-ADRC--
    OUTPUT FIELDS IN THE FUNTIONAL SPEC….
    1)SLNO--2) DESCRIPTION-3) QTY UP TO PREVBILL---4) AMOUNT UPTO PREVIOUS BILL -5)CURRENT QUANTITY6)CURRENT RATE-7) CURRENT
    AMOUNT -
    8)CUMILATIVE QUANTITY----9)CUMILATIVE AMOUNT.
    THESE ARE THE FIELDS THAT SHOULD BE DISPLAYED IN THE OUTPUT IN A ROW…..
    ELOBORATING FIELDS RELATED TO THE OUTPUT SCREEN.
    1) DESCRIPTION :  TXZ01 ---EKPO
    2) QTY UPTO PREVIOUS BILL.-----
    3) AMOUNT UPTO PREVIOUS BILL---
    4) CURRENT QUANTITY –FIELD NAME : MENGE----- NOTE: THIS FIELD SHOULD GET THE QTYS OF THE PARTICULAR  INVOICE SELECTED IN THE SELECTION SCREEN THAT
    IS BELNR.
    5) CURRENT RATE------NETPR ---FOR THAT QTY MENTIONED IN WORK ORDER
    TABLE EKPO
    6) CURRENT AMOUNT------ MULTIPLYING THE PREVIOUS 2 FIELDS THAT IS CURRENT QUANITY AND CURRENT RATE (GIVE THIS FIELD CURRENT AMOUNT
    7) CUMULATIVE QUANTITY----- SHOULD BE DONE BY ADDING THE FIELDS
    QTY UPTO PREVIOUS BILL AND CURRENT QUANTITY .
    8) CUMILATIVE AMOUNT-----WE GET IT BY MULTIPLYING CURRENT RATE WITH CUMILATIVE QUANTITY.
    EXPLANATION FOR THE 2ND AND 3RD FIELDS
    2) QTY UP TO PREVIOUS BILL : SHOULD GIVE THE QTY ACCORDING TO THE SELECTION-SCREEN FIELD ….BELNR …IF BELNR IN THE SELECTION SCREEN CONTAINS 10 INVOICE FOR A PARTICULAR WORKORDER…EBELN
    SELECTED..
    AND WE SELECT ONE INVOICE FOR EXAMPLE 6TH INVOICE…….
    IT CONTAINS SOME MATERIALS AND QTY FOR THAT METERIALS …
    BUT IN THE FIELD OF QTY UP TO  PREVIOUS BILL THE QTY OF THE PREVIOUS INVOICE OF THAT PARTICULAR WO SHOULD BE DISPLAYED..
    THE  IS QTY OF THE PREVIOUS INVOICES OF 12345 = QTY UP TO PREVIOUS BILL + CURRENT QTY GIVES CUMILATIVE QTY FIELD…..
    OR
    ADDING OF 12345+6 = CUMULATIVE QTY – OF CURRENT QTY GIVES
    QTY UP TO PREVIOUS BILL.
    EITHER WAY WE CAN GET THE OUTPUT…….
    PLEASE HELP WITH THE ENTIRE  PROGRAM OR LOGIC……….
    PLEASE SEND ME THE CODING TO MY MAIL [email protected]

    Nalini,
    Take the step by step directions try to build  your program... if you find any difficulty in the middle just pose the question at that time.... every one will be ready to answer your questions....
    eg:
    take the first line...
    REPORT NAME : CUMULATIVE BILL
    design a report program with the above given name in se38...
    then second line.....
    SELECTION-SCREEN FIELDS
    WERKS -
    TABLE: EKPO--- PLANT
    LGORT -
    TABLE: EKPO--- STORAGE LOCATION
    EBELN -
    TABLE: EKPO….. PURCHASING DOCUMENT NUMBER
    build select-options: with the above mentioned 3 fields
    3rd direction.....
    NOTE : FOR THIS EBELN NUMBER SELECTED IN THIS FIELD THE NEXT FIELD SHOULD BE REACTED. MEANS FOR THE PURCHASING DOCUMENT SELECTED HOW MANY INVOICE ARE MADE SHOULD ONLY DISPLAY FOR THE BELOW FIELD.THE NEXT FIELD IS GIVEN BELOW.
    work accordingly....
    If you devide the spec like this... it would be easy for you to build the program...
    try it once... you can do it nalini....don't fear with that spec...
    gud luck nalini...

  • My two month old iphone lightning cable is corroded and not working. Any solutions to this apparently common problem on the horizon?

    My two month old iPhone lightning cable is suddenly corroded and not working. Any solutions to this apparently common problem on the horizon?

    You bought a used iPhone. Amazon is not an authorized supplier of iPhones, nor are any of the 3rd parties that sell iPhones there.
    You can make an appointment at the genius bar and have it looked at.
    If you are very very lucky, it is still under warranty and it wasn't opened or otherwise tampered with before you bought it. In which case, Apple will replace it under warranty.
    If it's not under warranty, they will replace it for $199.
    If it has been opened or tampered with, they won't touch it.

  • Pivot table problem. Please help me create this report

    Hi friends..I'm new to OBIEE. We can create the grand total column in pivot table. I need grand total as well as Grand average. How can I create a new column in pivot table that is same as grand total but calculates average.
    My table structure is like this.
    Facility......Date........totaldays
    A..........01/01/08......210
    B..........01/01/08......215
    C..........01/01/08......917
    A..........02/01/08......211
    B..........02/01/08......211
    C..........02/01/08......911
    A..........03/01/08......210
    B..........03/01/08......215
    C..........03/01/08......917
    I need the report like this..
    Facility.....01/01/08......02/01/08....03/01/08...Total....AVG
    A...............210.............211............210.....631......210.3
    B...............215.............211............215.....641.....213.6
    C...............917.............911............917.....2745....915
    For this report..I created pivot table but I'm not able to calculate the average..
    Can you please help..I'm new to OBIEE...
    Thanks in advance

    Please change your username....
    Here is what you need to do...
    1) In the Pivot Table View, click on the Measures column and select New Calculated Item.
    2) In the pop-up window complete as follows:
    Name: type "Total Average"
    Function: Select "Average" from the drop-down window.
    Click on the values in the right pane that you wish OBI to calculate the average for.
    3) Click "OK."
    You now have another column that is the average of the values in each row.

  • Report printing problem

    hi folks,
    I am facing problem in printing report thru Browser, Here is the case
    we have generated a text file at server using d2k report which we are displaying to user thru our application we have used all formating characters in it , we are required to print on 'dot matrics printer' . When we print the report the resulting printout is not comming as per page size in d2k reports means one report page is get printed on multiple page. We are supposed to print many report of different size .
    can any body suggest me how to handle this problem?
    we r trying to set browser print page size as per report page setting.if any body know abt it . please let me know.
    Thanks for any help
    Regards
    Pravin

    Hi Pravin,
    Why don't you try sending the report print straight to the printer without saving into text.
    Then you can customized the page print using printer definition files.
    Ref - http://www.oracle.com/webapps/online-help/reports/10.1.2/state/content/navId.3/navSetId._/vtTopicFile.htmlhelp_rwbuild_hs%7Crwrefex%7Cfiles%7Cprinting%7Cprt_a_packaged_printer_def%7Ehtm/
    Nilaksha.

  • Report print problem !

    Hi all,
    I have a problem that in printer friendly mode I want to take a report output to printer.But my report columns are too more and it is difficult to fit all to the page.How can ı success this please help me .I searched in forum some suggest media style sheet .How can I use this for my problem .I am waiting your helps!
    thanks.

    To print directly, you have to have the printer installed on the application server. This is where the report is created, not on your client PC.
    The only way around this is to use the ORARRP tool, but this involves installing software on the client PC and modifying your web server settings.
    See:
    http://otn.oracle.com/sample_code/products/reports/index.html#orarrp

  • Drill-Down Report Printing Problem for Selection Parameters

    Dear Experts,
    Have tried to configure Drill-Down Report for Vendor Balances,
    Am having trouble when printing this drill-down report, Printing is coming OK but it comes with ALL selection parameters, for e.g, have entered 20 vendor codes for the balance display, system first prints all selection parameters and then it prints the output of vendor balances,
    User does not want selection Parameters to be printed with the Report Output. Please find below screenshot for the problem.
    Input Parameter Screen
    Report Output Screen
    Print Preview Screen (First Page - Selection Parameters)
    Your help is much appreciated, if anyone can guide me, how to switch off selection parameters from Print Output of Drill-Down Report
    Thanks
    Regards
    P

    Hello Ms. Preeti,
    Thanks for your reply, Have designed the report through FKI0 (FKI*)
    Have already looked these setting, but these are not helping really, PFB screenshot for settings am having in my system, if you have any idea which can avoid User Input Parameters from printing then it will be really great help
    Thanks for your help
    Kind Regards
    P

  • Crystal report printing problem in Malayalam

    Hi,
    I have a printing problem in Malayalam in crystal report.The viewer displays the correct font but the printed output displays the square boxes.I have installed the font.I am using Visual studio 2010 and crystal report 13.0 version.what could be the problem???
    please help me...!!!

    Hi priyashekar,
    I’m afraid that it is not the correct forum about this issue, since this forum is to discuss Visual C#. You can post your question in the
    Crystal report forum: http://scn.sap.com/community/crystal-reports-for-visual-studio/content?filterID=content~objecttype~objecttype[thread]
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Landscape PDF Report Print Problem....?

    Dear All,
    I have campiled 6i report (Landscape PDF) in Report10g and successfully deploy on web through OAS 10g forms and report services.
    When we run this report on web it gives perfect landscape preview but it always prints as Portrait.
    Please guide us to get Landscape print.
    Thanks
    Rana

    Yes I did. We don't want this because some of our reports direclty goes to printer.
    So it wiil chang the format of thos reports.
    Kindly gives the proper solution so that it will not change other report's format.
    Regards
    Rana

  • Oracle Report Printing problem

    Dear All,
    i m using below code on button in oracle forms 6i problem is that when i click on button report should be print
    on network printer but it's print blank page however network printer is not my default printer when i set default printer
    to this network printer its working fine.
    and also its working when i set mode=character and network printer is not default printer but when i set mode=default or bitmap and notwork printer is not default then its print blank page.
         DECLARE
              p_list     PARAMLIST;
         BEGIN
         p_list := get_parameter_list('importdata');
         IF NOT Id_Null(p_list) THEN
    Destroy_Parameter_List('importdata');
         END IF;
              p_list := Create_Parameter_List('importdata');
              Add_Parameter(p_list,'P_IGM_NO',TEXT_PARAMETER,'10117/11');
              Add_Parameter(p_list,'P_INDEX_NO',TEXT_PARAMETER,'498');
              Add_Parameter(p_list,'P_CHR_NO',TEXT_PARAMETER,'CL-APL100/011');
              Add_Parameter(p_list,'P_CONTAINER_NO',TEXT_PARAMETER,'APHU6305929');
              Add_Parameter(p_list,'P_USER',TEXT_PARAMETER,'ALI');
              Add_Parameter(p_list,'P_BAL_QTY',TEXT_PARAMETER,0);
              Add_Parameter(p_list, 'PARAMFORM', TEXT_PARAMETER, 'NO');
              Add_Parameter(p_list,'DESTYPE',TEXT_PARAMETER,'PRINTER');
         Add_Parameter(p_list,'DESNAME',TEXT_PARAMETER,'\\192.168.1.67\epson');
         RUN_PRODUCT(REPORTS,'\\ORASERV\Atlas6I\Import\System\Reports\abc.rep',
         SYNCHRONOUS,
         RUNTIME,
         FILESYSTEM,
         p_list,
         NULL);
         END;

    i have made one oracle 6i reports. its is quite wide.when i run the report it shrink into too small font.
    and i increse it font size it by pressing + button on menu bar it looks okay.
    >
    The + button only causes a zoom in on the screen. It is not affecting the actual layout.
    >
    but the problem is that when i take print out of it ,it's printout comes in its intial format(in small font) evenif i choose different type of paper size or different orientation . it's printout is coming in too small font.
    pl tell me how to overcome this problem>
    The report rendering engine tries to fit the report page into the physical page size. This results in shrinking of font size,etc.
    To fix
    a) reduce the content on the report to something reasonable for printing.(Std paper sizes and orientation)
    b) change the page size selection. Of course, you will need a printer and paper of the size you set.
    Cheers,

  • Need suggestions on a single page printing problem

    I realize this may not be the appropriate place to post this question, but I will take any suggestions (including where else I may find the answer).
    Trying to be brief:
    Brand new iMac w/SL 10.6 up to date)
    New HP Photosmart copy/scan/printer (D110 e-Print; wireless)
    Filemaker Pro 6.
    I bring up the latter (FMPro) because I have one file, one particular layout that refuses to print.
    It SHOULD print all found records
    Print preview layout in FMPro SHOWS ALL RECORDS layed out correctly on an 8.5x11" landscape
    Telling it to print, gets a -9705 error which leads to one of two things:
    If I try to print, it only prints ONE RECORD (the first record)
    or
    If I try to open it in Apple's Preview application , or Save to PDF, neither of those apps open or display the page
    Really odd. I haven't had any printing problems in other programs (Safari web page, etc.)
    I've search Filemaker and Apple and HP sites and can't find the -9705 error any where
    It may just be an incompatibility issue with an 8 year old piece of software (which seems to run fine except for the printing)
    Thanks for any suggestions

    Thank you for that - D'OH! - moment.
    I had been googling for -9705, which I believe was finding everything BUT the term 9705 due to the 'minus' sign in front of it.
    Doing it correctly, got me a hit on the FMPro site which had a font suggestion I think may be the answer.
    Thanks!

  • ALV Report Print problem after 255 character line size

    Hi ABAP Gurus,
    I have created one alv report where i am getting output more then 255 character line size.
    so whenever i tried to print this report it print only line upto first 255 character and truncated after it in printing.
    is there any way i can print this report without truncation ....
    Thanks,
    Jack

    no there is no such way because you acan print at most 99 columns and utmost 255 characters .
    and alternative is take your filed in separate screen and make it appear through hotspot in another filedcatalog.then u will get more space .
    reward if useful
    keep rockin
    vivek

Maybe you are looking for