Crystal Report-Amount in Words Need correction and Delivery date.

Dear Experts,
Issue 1
                        In crystal reports i'm converting Amount in to words using the following formula. In that i am getting Every thing in Uppercase with - i.e. RUPEES ONE THOUSAND-FIVE HUNDRED AND .
I need in Sentence case i.e all First Letters in Capital and also want to Remove '-'
Amount in Word
numbervar RmVal:=0;
numbervar Amt:=0;
numbervar pAmt:=0;
stringvar InWords :="Rupees ";
Amt := {OPOR.DocTotal};
if Amt > 10000000 then RmVal := truncate(Amt/10000000);
if Amt = 10000000 then RmVal := 1;
if RmVal = 1 then
InWords := InWords + " " + towords(RmVal,0) + " crore"
else
        if RmVal > 1 then InWords := InWords + " " + towords(RmVal,0) + " crores";
    Amt := Amt - Rmval * 10000000;
    if Amt > 100000 then RmVal := truncate(Amt/100000);
    if Amt = 100000 then RmVal := 1;
    if RmVal = 1 then
        InWords := InWords + " " + towords(RmVal,0) + " lakhs"
    Else
        If RmVal > 1 then InWords := InWords + " " + ToWords(RmVal,0) + "Lakhs";
        Amt := Amt - Rmval * 100000;
        if Amt > 0 then InWords := InWords + " " + towords(truncate(Amt),0);
        pAmt := (Amt - truncate(Amt)) * 100;
        if pAmt > 0 then
            InWords := InWords + " and " + towords(pAmt,0) + " paisa only"
        else
            InWords := InWords + " only";
        UPPERCASE(InWords)
Issue 2.
At Delivery terms I'm using the following formula to display the delivery data. If the document date and due date is same it will print Delivery Immediate otherwise it should calculate the Delivery date from document date, but now it's printing DocDue date.
I need to calculate Delivery Date = DocDuedate - DocDate. 
If {OPOR.DocDate} = {OPOR.DocDueDate} Then
    "2. Delivery immediate"
Else
    "2. Delivery on or before " &  {OPOR.DocDueDate}
Thanks
Kamal

Hi
Try this formula
numbervar RmVal:=0;
numbervar Amt:=0;
numbervar pAmt:=0;
stringvar InWords :="Rupees ";
Amt := {@GrandTotal} ;
if Amt > 10000000 then RmVal := truncate(Amt/10000000);
if Amt = 10000000 then RmVal := 1;
   if RmVal = 1 then
        InWords := InWords + " " + ProperCase (towords(RmVal,0)) + " crore"
   else
        if RmVal > 1 then InWords := InWords + " " + ProperCase (towords(RmVal,0)) + " crores";
    Amt := Amt - Rmval * 10000000;
    if Amt > 100000 then RmVal := truncate(Amt/100000);
    if Amt = 100000 then RmVal := 1;
    if RmVal = 1 then
        InWords := InWords + " " + ProperCase (towords(RmVal,0)) + " lakhs"
    Else
        If RmVal > 1 then InWords := InWords + " " + ProperCase (ToWords(RmVal,0)) + " Lakhs";
        Amt := Amt - Rmval * 100000;
        if Amt > 0 then InWords := InWords + " " + ProperCase (towords(truncate(Amt),0));
        pAmt := (Amt - truncate(Amt)) * 100;
        if pAmt > 0 then
            InWords := InWords + " and " + ProperCase (towords(pAmt,0)) + " paise only"
        else
            InWords := InWords + " only";
        ProperCase(InWords)
Regards
Vivek

Similar Messages

  • Can one Crystal Report could contian Current Month, YTD and ITD data?

    Hi,
    I am trying to build a crystal report and be able to show data in summarized format on single report containing data for the current month, year to date and Inception to date.
    The difficulty that I find is the date ranges. Current month date range is different from YTD and ITD date.
    what would be the best way to show such data on crystal report? is there a sample report available that can help me to produce such report?
    your help will be highly appreciated, thanks!
    regards,
    Mansoor

    Hey Joe,
    if you have CRXI, take a look at the sample reports
    Record Selection on Date Range has some good examples
    you can do this with multiple Groups
    create a formula
    in to currentdate
    ( this group will cover your inception date to currentdate)
    second group will be a date group also, select year as your print by option for this group.
    3rd group also by date,
    select month.
    add fields to your details section, select the field, right click and select summary location,
    (add to all groups)
    you can then supress footers and headers as needed.
    Hope this helps.

  • PO report with cost center, order and delivery date

    Hi,
    pls. I just need a report to display the next fields Account Assigment and Delivery Date.
    I attempted with standard reports like ME2N, ME2K but it is impossible to display all the information in the same screen.
    Thanks a lot for cooperation.
    Regards.

    HI,
    Create a Infoset query or ask ababper
    Tables EKKN, EKPO, EKKO
    Regards,
    Pardeep Mlaik

  • Creation of Z reports for client adding two more column that is Purcahse order and delivery dates with Internal order wise

    HI Experts,
    Can any one help me to add two more column for standard report that is purchase order and delivery dates for Internal order wise.
    But here problem is when i checked with ABAP team they said there is no standard functional module to add two column.
    Please note below :
    Selection criteria is: 1) controlling area
                                  2) Fiscal Year
                                  3) From date and To date
                                  4) Plan Version
                                  5) Order Group.
    My client suggested : S_ALR_87012993 this tcode to run, but we suggested with S_ALR_87013019 as in this tcode we can get all the details
    That is required output fields, as it is showing all details but on yearly basis, he wants this to be period wise and also Abap team is not able to find standard functional module in the second tcode as well.
    Out Put fields to Pop up
    1) Orders.
    2) Budget
    3) Actual
    4) commitment
    5) Alloted
    6) Available
    These are two additional column
    7)Purchase order
    8) Delivery date.
    Require your help to know which all tables are included to extract above out put fields please help me.
    Thanks in Advance.
    Regards,
    Sudesh

    Hi Preeti,
    Thanks for reply, can you please let me know is there any other way to show the output fields.
    As my client is very specific to run the report on period wise, i also tried to execute the standard tcode S_ALR_87013019 and were we are getting all the required outputs to pop up but this is on year wise, but we can also check by period basis by clicking on order number and actual period basis where we can see period basis.
    Also one more question,what is the commitment table which is popping up in this, please advise.
    Thanks in advance.
    Regards,
    Sudesh

  • Report for viewing Sales order no against delivery date & actual GI date

    Hi Experts,
    Is there any report for viewing Sales order no against delivery date & *actual GI date*
    Because in VL06F , i can only able to get planned GI.
    Please guide regarding the same where i can get 'ACTUAL GI DATE ' against above combination .
    Regards,
    Sujit S.

    dear Hrishi,
    i followed your suggestion, but couldn't get desired results,
    here i can get planned GI date, where i wanted to get Actual GI date for complted deliveries,
    thanks for your valuable reply.
    @ G. Lakshmipathi ;-
    i think i will need to develop z-report for fetching the data from the tables
    VBAK (to get sale order reference) and
    LIKP (to get delivery and actual GI date)
    thanks for your reply,
    Regards,
    Sujit

  • How to combine sales and delivery data

    hi
    i have requirement to make a report from sales as well as deliveries. Important fields in report are sales document , material , plant , sales document type , country key , sold to party , ordered quantity , delivered quantity , price from vakon ( KBETR ), actual goods issue date.
    The required extractors are 2LIS_11_VASCL, 2LIS_11_V_SSL ,2LIS_11_VAKON.
    Problem is how to combine sales and delivery data as V_SSL has different key figures.Multicube is not the solution as dont have plant , sold to party and many other fields in V_SSL.
    Kindly suggest how to combine sales and deivery data.
    Regards,
    Monika

    I guess you do have shipping point in delivery.
    In most scenarios shipping point may not(or) may be same like order plant.
    Although they are different you can still roll up the delivery information to order level by plant since you have order # available as reference key in delivery.
    With this reference key you can convert all delivery information to order (item) level.
    I guess you can use one merge ODS with one cube (or) with 2 ODS for each at order level for validation.
    You may have to map delivery type to order type as per R3 configuration as well.
    speak with any Logistics guys for help.
    cheers
    Martin

  • Req. delivery date and Delivery date should be same in a sales order

    Hi experts,
    We need a customization for getting Requested delivery date, Material Availability date and Delivery date should be same.
    Example if I keep request delivery date as 12/12/2012, system should consider same dates for MAD and Delivery and confirm the requested quantity.
    How to achieve this customization..
    Thanks,
    Bala.

    system should consider same dates for MAD and Delivery and confirm the requested quantity
    What you are going to achieve by this?  Hope you know the concept of MAD and confirmed quantity fields.  Let us assume, if stock is not there for a material for which sale order is created, can you let me know, you want the system still to confirm the quantity? You can post the goods issue only if system confirms the quantity in schedule line which is possible, only if stock is made available.  If client asks something which is not possible in SAP, think in a logical way how SAP works and convince them accordingly. 
    G. Lakshmipathi

  • RFQ quantity and delivery date

    Hi,
    I created a smartform for RFQ.I am getting material details from EKPO.But i need RFQ quantity and delivery date to be displayed for each quantity.I found the field in structure RM06E.I tried by putting structure name in form.Its not working.
    Any table to find these data(reg RFQ details)?How to solve this issue?

    Hi,
    u can get the RFQ date and Quantity from EKKO & EKPO tables.
    Quantity: EKPO-KTMNG;
    RFQ No and Date: EKKO-EBELN, EKKO-AEDAT
    Thanks,
    Pavani.

  • Where does the data come from which powers the ship date and delivery date

    Hi All,
    Please let me know, where does the data come from which powers the ship date and delivery date?.
    Adi.

    Hi,
    DELIVERY DATE  will be maintain in the SALES DOCUMENT TYPES in VOV8 in the tab REQUESTED DELIVERY DATE/PRICING DAE/PURCHASE ORDER DATE.
    The field is PROPOSE DELIVERY DATE .
    If you check the field then the document created date will be the Requested date and will be carried from ORDER TO DELIVERY.
    If you want the delivery date other thann the CURRENT date then you have to maintain the LEAD TIME in days in the same tab.
    SHIP DATE: is the date on which you do the PGI in the delivery .
    Please check them and revert back if u need further details
    thanks,
    santosh

  • I ordered iphone 6 on 15 oct and delivery date will be from 3 nov-6nov. i'll travel on 7 nov morning, am worried to receive the order late.. can you please expedite the order?

    i ordered iphone 6 on 15 oct and delivery date will be from 3 nov-6nov. i'll travel on 7 nov morning, am worried to receive the order late.. can you please expedite the order?

    No. Because we are not Apple employees. In fact there is no one from Apple in this forum. Contact Apple directly via phone. Use the "Contact Us" link at the bottom of this page to find the phone listing.

  • There are no scheduled and delivery dates in /sapapo/rrp4

    Hi Gurus,
    When executing the transaction /sapapo/rrp4, category PO memo are being displayed. But I noticed that there are PO memos that dont have scheduled and delivery dates while the others have. Is this behavior normal? But when compared to transaction /SAPAPO/RRP3, the PO memos that dont have dates in /SAPAPO/RRP4 have dates in transaction /SAPAPO/RRP3. Could you please help me understand why there are PO memos that dont have sheduled and delivery dates when using /SAPAPO/RRP4?
    Thanks,
    Ann

    The rrp4 view shows only receipt elements, such as Planned orders, WIPs etc.In rrp3 view (Product view), we can see both requirement and receipt elements an pegging structure.

  • Store Replenishment STO created date and delivery date

    Hi
    The Store replenishment STO generated out of WRP1 ; 
    The  STO document date and delivery date is defaulted to 3 days later.
    ie. WRP1 was run on 31st May.  But the delivery date and the STO doc. date is 3rd June.
    Is there any way to influence this?  We want it to be defaulted to the next date;  Replenishment is to be run for th next date.
    ie. June 1st.
    Regards

    Hi Carlos
    The master data of the article field MARC-PLIFZ- is maintianed as 0 days.
    Basically the replenishment is done in the same day.  (DC in the same city as the store)
    However still the delivery date in the STO is by default 3 days later.
    In the WRP1 screen - the  planning date is today date.
    Regards

  • The export of a Crystal Reports to MS Word creates big files

    Hi all,
    if I export a report to pdf the file size is 72 KB . But if I export to Microsoft Word (97-2003) format, the filesize amounts to 1,35 MB.
    After I opened the exported document in MS Word and saved it with a new name, the size is only 176 KB.
    Is this a common problem? Is it possible to force crystal reports produce a smaller document?
    Why does Crystal Reports create such large files?
    (Environment: Crystal Reports 2008 SP1)
    Regards, Timo

    Hallo Don,
    first Iwill tell you, if I do export the Report to MS Word, in the FileDialog, it is only possible to create a *.rtf - File.
    Do it act normal?
    So due to your suggestion, i replaced an Image in the report (embedded as an OleObject) as a Graphic-JPG-Object.
    The size of the exported report has reduced from 1,39 MB to 141 KB.
    Thanks a lot!
    Timo

  • Crystal Reports Based on SAP Function Module and Transperant Tables

    Hi,
    I need to develop reports based on SAP trasperant tables and to filter the records I require to use one of the function module in SAP.
    I have created parameters in Crystal reports that are required for the function to execute and are included in the where clause of the query. This helped the fuction to get those parameters and execute it.
    The thing is that the fuction works fine with one set of parameters and gives accurate results both in SAP and Crystal Reports.
    But fails for other set of parameters.
    It works fine when we directly execute function in SAP produces a record set. But, when we pass those parameters from Crystal Reports it fetches no data.
    Can anybody tell me the exact procedure to use function module and transperent tables together in Crystal Reports ?
    Thanks in Advance.
    Niwas Joshi

    Hi,
    This is going to be hard to explain, however you need to recognize that the function has input and possibly output (export) parameters.  Crystal Reports is able to work with these parameters.  However it is up to you to figure out how these parameters are used effectively to give you the correct results when joining the function with other data sources such as transparent tables.
    If you're using transparent tables and functions in a Crystal Report, then you need to link these objects in such a way so that a left outer join for example is using the function's output parameters to join to the transparent table equivalent fields.  However if the table is the starting point then the joins from the table should join the Input parameters of your function.
    you can set these joins in the Database menu | Database Expert | Links of Crystal Reports.

  • Crystal Report Output is Fluctuating between USA and European format Issue

    We use Crystal Report 10 .net for our web development in asp.net. We export crystal to PDF Or excel. And it is showing different format for date and decimal points. Its not doing this all the time, but its like every other time I run the webpage then report exports to pdf shows dd/mm/yyyy format, then next time would be mm/dd/yyyy format. Same things with numbers like
    10,000.50 would show like 10.000,50.
    Is something corrupted or there are any hot fix if this is an issue?
    The weird thing is, its not continuously doing this but its fluctuating between this formats.
    Please help....

    Best I can suggest is trying the latest Service Pack:
    https://smpdl.sap-ag.de/~sapidp/012002523100005985482008E/cr10win_en_sp6.zip
    More downloads are here:
    http://service.sap.com/sap/bc/bsp/spn/bobj_download/main.htm
    Other than that, as CR 10 has been out of support for a number of years, I have no way of testing or reproducing the issue. In order for me to do any troubleshooting, You'd need to get to a supported version of CR. Either CR XI r2 (11.5) or CR 2008 (12.x). 12.x recommended as CR XI r2 will be out of patch support next month.
    Ludek
    Follow us on Twitter
    http://twitter.com/SAPCRNetSup

Maybe you are looking for

  • How can I implement a datagrid like this

    I would like to implement a datagid as the attached picture. This datagrid will have some money columns and I would like to summary of money at the last row. Just only the last row. Thank you very much

  • How can I connect to Internet when there is a Gigabyte switch after Airport Extreme?

    I have a new Airport Extreme Base station. I have a wired home network set up through out the house. After the Airport Extreme, I have two gigabyte switches. I can connect to the network after the switch, but not the internet. I have also purchased n

  • Can I install 1 8GB RAM module in my macbook pro 13???

    Hi I am planning on upgrading my macbook pro 13's ram from 8 to 16GB by installing 2  seperate 8 GB modules by replacing the current 4GB ones. I am gonna use these Kingston 8GB 1600MHz DDR3 (PC3-12800) SODIMM Memory for Apple MacBook Pro (KTA-MB1600/

  • PO number getting generated but PO doesnt get save in the system

    Hi, System creating a PO number, and soon after a terminate message comes and no PO found in the system. What will be the reason, can any one please help? Regards, Sattuj

  • Illustrator crash CS5!

    Illustrator has started crashing with the message 'illustrator has quit unexpectedly' I have had this happen before on the odd occasion but is regularly happening now. I dont think its caused by any particular task and is just happening randomly. I r