How to add a leeter in front of char value in report

Hi guys
We need to get nr of days between two dates...I created two replacement path variables with referece to that dates as date2 and date1...and Iam using formua date2 - Date1..
Iam getting correct result when date2 is > date1...But when date2<date1  Iam getting the result as 70more...example
2/11/2008-3/19/2008 = -108
1/23/2008-2/6/2008 = -83
1/3/2008-1/22/2008 = -19
This is happening only if the month is diff in two dates...if same then its giving correct result...Iam using Jan till Dec as my colums....and Nr of days as rows...
Can any one let me know how to fix this
regards

Hello Sam,
Use the [ Boolean Operator|http://help.sap.com/saphelp_nw04/helpdata/en/23/17f13a2f160f28e10000000a114084/content.htm] to check the condition and calculate the difference accordingly.
The other option is using  a User Exit by reading these 2 date values and calculate the difference as per your requirement.
Thanks
Chandran

Similar Messages

  • How to add a zero in front of integer?

    i have a value, which is int, retrieve from database
    but now, i wish to add a zero in front of those single digit integer value, can anyone teach me how to do it?

    If you want to display 1 as 01 then one solution is is that yu have to convert it to the string and then display it. you can use this function
    private String convertString(int i)
    if(i<10)
    return "0"+Integer.toString(i);
    else
    return Integer.toString(i);
    i am using this function in my application.

  • How to add Customer Specific Product ID PRID_VENDOR to product with report

    CRM5.0
    Hi,
    I am trying to find out, how to add the customer specific product ID (product->relationships->customers) to a product with a report or a function module.
    It is stored in table COMM_IL_PRDCPN, data element COMT_PRID_VENDOR.
    Is there a class/method, function module, or some example coding, how I can do that?
    Thanks an regards,
    Thomas

    Hi,
    I don't think in Std it is possible to create CMIR in VD51 for cust.grp..
    u can try LSMW to create CMIR for sold-tos..
    Reg,
    JJ

  • How to add ASCII symbol to Front Panel

    Hello,
    I am trying to add an ASCII character to the front panel but I cannot figure out or find out how to do it. It should be ALT key plus the decimal code I thought.
    Any help would be appreciaited.
    John

    you can enter an "e", select the character, and change to symbol font.
    LabVIEW Champion . Do more with less code and in less time .

  • How To add a field in search criteria in SAP standard report

    Hi AlL,
    I have a requirement where i need to add a field in search criteria of selection screen and display in output of Standard SAP report.
    I have read in threads that to obtain Access key and modify the code in std report , if i am not able to get an Access key and not allowed to copy the report as Z.
    Could you please let me know how to solve this kind of requirement.
    thanks
    Chary

    Well - it's a report so there won't be a user exit. I think your options are what the others (and you) have suggested - change the standard program or make a copy.
    There are different opinions on the forum about which to do.
    Rob
    PS - you're not bothering anyone. We like problems.
    Message was edited by: Rob Burbank

  • How to add "Cost Plan Version" and "Planned Cost" into CNE5 report?

    Hi,
    I would like to display Cost Plan Version(VERSN) and Planned Cost in the CNE5 report.
    How to retrieve Planned Cost that based on the Cost Plan Version ?
    Appreciate helps. Thanks.
    Regards,
    See Mun

    Plan versions:   A plan version is created in accounting and stores different cost plans for a project, such as an "optimistic" and a "pessimistic" plan.
    Now coming to plan version 0 is verson where actaul cost is updated in your organisation.
    Plan version 1 is used for the planning...
    How to see the  same in CJE5 is suggested by Virendra..
    However there is no filed name planned cost  in report but the name of the filed is Proj.cost sched.000
    with which you can achieve your result.
    path is run txn CJE5>give your Project no.> F8> in new screen> F5-->in new Window scroll down in the  right side for the Proj.cost sched.000 filed > with select take the same to left side>Enter--> values will displyed for this field in your report.
    similarly you can use the other fields as well... take help of F4, to know the meaning of fileds.
    Regards
    Nitin
    Edited by: Nitin  Patoliya on Jan 17, 2009 11:18 AM

  • How to add f4 help for a parameter in selection screen (Report)

    hai friends
           I am hving a pblm regarding the F4 help in selection screen for a parameter field ,currenly this parameter field is for personnel number , now in f4 help all the personnel numbers r listing ,i need to include the name of the corresponding personnel numbers along with it ,how do i do that .please give me a help.
    thankyou

    Hai
    you first extract personal number and name into one internal table say itab.
    THEN CALL THE FM.
    AT SELECTION-SCREEN ON VALUE REQUEST FOR P_PARAMETER.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD     =  P_PARAMETER
           DYNPPROG     = SY-REPID
          DYNPNR       = SY-DYNNR
          VALUE_ORG    = 'S'
          WINDOW_TITLE = 'Open Quantity'
        TABLES
          VALUE_TAB    = ITAB.

  • How to add Oracle Graphics 6i charts (OGD) to my Oracle Reports 10g

    Hi,
    Is there any possibility to add Oracle Graphics 6i Charts (.OGD) to Oracle Reports 10g
    (OR)
    If not possible, Can you please provide steps to migrate OGD to any format that is supported in Oracle Reports 10g.
    Regards,
    Swethan

    Oracle Graphics and its OGD image format are no longer supported. Reports built with previous versions of Oracle Reports containing Oracle Graphics charts will continue to run in Oracle Reports 10g Release 2 (10.1.2) if the Oracle Graphics 6i runtime is installed on the same machine in a separate ORACLE_HOME. However, this is not a supported configuration, and Oracle will not fix bugs that result from this configuration.
    Re-create all Oracle Graphics 6i objects using the Graph Wizard

  • How to replace a table name with an item value in report region SQL query?

    I've got a SQL query in a report region that goes like this:
    SELECT :P30_HIDDEN FROM v_dms_dataset
    GROUP BY :P30_HIDDEN
    P30_HIDDEN is populated from a textfield input. Why doesn't this work, and is there a way to achieve what I'm trying to do here? I really need the ability to dynamically generate SQL queries in this way.

    Ben - you could either:
    1. case when :P30_HIDDEN = 'COL1' then col1 else ... end
    in order to determine which column to select (only really useful if you have a small number of predetermined columns to select from), or
    2. generate the SQL dynamically.
    Set the report region to SQL Query (PL/SQL function body returning SQL query), then have something like:
    declare
    l_sql VARCHAR2(4000);
    begin
    l_sql := 'SELECT ' || :P30_HIDDEN || ' FROM v_dms_dataset
    GROUP BY ' || :P30_HIDDEN;
    return l_sql;
    exception
    etc.
    end;
    John.

  • How to add currency sign?

    Hi,
    I have a group currency key figure in my report. I want to add $ sign in front of the amount for ex. 12550 it should show as $12550.
    How to add currency sign $ in front of the aount.
    Pts for ans.
    Regards,
    Shri.

    Hi,
    You can enable currency in the reporting output using following steps:
    Query properties> Display> select Display scaling factors for key figures.
    but using this option currency($) will be displayed after the amount. it means key figure values will be displayed like 300$, 800$.
    hope it helps..
    regards,
    raju

  • How to add entire new row at the top of table in pdf report from c# windows forms using iTextSharp

    Hi for past 3 days i was thinking and breaking my head on how to add entire new at top table created in pdf report from c# windows forms with iTextSharp.
    First: I was able to create/export sql server data in form of table in pdf report from c# windows forms. Given below is the code in c#.
    using System;
    using System.Collections.Generic;
    using System.Configuration;
    using System.Text;
    using System.Data;
    using System.IO;
    using System.Data.SqlClient;
    using System.Windows.Forms;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    namespace DRRS_CSharp
    public partial class frmPDFTechnician : Form
    public frmPDFTechnician()
    InitializeComponent();
    private void btnExport_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer= PdfWriter.GetInstance(doc, new FileStream("Technician22.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(7);
    table.TotalWidth=585f;
    table.LockedWidth = true;
    PdfPTable inner = new PdfPTable(1);
    inner.WidthPercentage = 115;
    PdfPCell celt=new PdfPCell(new Phrase(new Paragraph("Institute/Hospital:AIIMS,NEW DELHI",FontFactory.GetFont("Arial",14,iTextSharp.text.Font.BOLD,BaseColor.BLACK))));
    inner.AddCell(celt);
    Paragraph para = new Paragraph("DCS Clinical Report-Technician wise", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK));
    para.Alignment = iTextSharp.text.Element.TITLE;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(95f, 95f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn=new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select t.technician_id,td.Technician_first_name,td.Technician_middle_name,td.Technician_last_name,t.technician_dob,t.technician_sex,td.technician_type from Techniciandetail td,Technician t where td.technician_id=t.technician_id and td.status=1", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("ID");
    table.AddCell("First Name");
    table.AddCell("Middle Name");
    table.AddCell("Last Name");
    table.AddCell("DOB" );
    table.AddCell("Gender");
    table.AddCell("Designation");
    while (dr.Read())
    table.AddCell(dr[0].ToString());
    table.AddCell(dr[1].ToString());
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString());
    table.AddCell(dr[4].ToString());
    table.AddCell(dr[5].ToString());
    table.AddCell(dr[6].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(inner);
    doc.Add(table);
    doc.Close();
    The code executes well with no problem and get all datas from tables into table in PDF report from c# windows forms.
    But here is my problem how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    As the problem i am facing is my title or Header(DCS Clinical Report-Technician wise) is at top of my image named:logo5.png and not coming to it's center position of my image.
    Second the problem i am facing is how to add new entire row to top of existing table in pdf report from c# windows form using iTextSharp?.
    given in below is the row and it's data . So how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    as you can see how i create my columns in table in pdf report and populate it with sql server data. Given the code below:
    Document doc = new Document(PageSize.A4.Rotate());
    var writer= PdfWriter.GetInstance(doc, new FileStream("Technician22.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(7);
    table.TotalWidth=585f;
    table.LockedWidth = true;
    Paragraph para = new Paragraph("DCS Clinical Report-Technician wise", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK));
    para.Alignment = iTextSharp.text.Element.TITLE;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(95f, 95f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn=new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select t.technician_id,td.Technician_first_name,td.Technician_middle_name,td.Technician_last_name,t.technician_dob,t.technician_sex,td.technician_type from Techniciandetail td,Technician t where td.technician_id=t.technician_id and td.status=1", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("ID");
    table.AddCell("First Name");
    table.AddCell("Middle Name");
    table.AddCell("Last Name");
    table.AddCell("DOB" );
    table.AddCell("Gender");
    table.AddCell("Designation");
    while (dr.Read())
    table.AddCell(dr[0].ToString());
    table.AddCell(dr[1].ToString());
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString());
    table.AddCell(dr[4].ToString());
    table.AddCell(dr[5].ToString());
    table.AddCell(dr[6].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    So my question is how to make my column headers in bold?
    So these are my questions.
    1. how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    2. how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    3.how to make my column headers in bold?
    I know that i have to do some modifications to my code but i dont know how to do it. Can anyone help me please.
    Any help or guidance in solving this problem would be greatly appreciated.
    vishal

    Hi,
    >>1. how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    2. how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    3.how to make my column headers in bold?<<
    I’m sorry for the issue that you are hitting now.
    This itextsharp is third party control, for this issue, I recommended to consult the control provider directly, I think they can give more precise troubleshooting.
    http://sourceforge.net/projects/itextsharp/
    Thanks for your understanding.
    Regards,
    Marvin
    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.

  • How to add silver front panel theme for labview 2010

    how to add silver front panel theme for labview 2010

    Mahisnair wrote:
    yes i had tried this way but the vi built with silver theme doesnt look good in 2010 :-(
    wish if there was a way to include silver theme in 2010
    The only way I see to make it like that would be to recreate the theme in LabVIEW 2010 with external bitmap objects. Unfortunately it won't be as functional as the silver controls in various terms such scaling (bitmaps scale very badly) or transparency and click through functionality (a bitmap assigned to a control part will always catch all clicks and never allow a click to pass through anywhere to a lower layered part).
    The silver controls are using special internal graphic objects that were added in LabVIEW 2011, so recreating silver controls with the same functionality in earlier LabVIEW versions is impossible.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to add front shets to document

    On pages 08 how to add front sheet to document

    I can't remember back that far but if it is like Pages '09, then just insert a Section Break at the end of the 1st page or check Make first page different in the Section Inspector.
    Peter

  • How to add new fields in the EBP front end..

    Hi All,
    Can any one let me know the process of how to add new fileds in the shopping cart creation screens by using the "Tag Browser" option in the Object navigator.
    Best Regards,
    Mahesh. J

    Hi
    <b>Please go through the following links for more details and examples -></b>
    http://help.sap.com/saphelp_47x200/helpdata/en/a2/8c6eeb2d8911d596a000a0c94260a5/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/d3/5ecbe22a8a11d5991f00508b6b8b11/frameset.htm
    This will definitely help.
    <u>For adding customer fields to the Shopping cart, you need to refer SAP OSS Bote 672960 and 485891.</u>
    Do let me know, incase you need any other details.
    Regards
    - Atul

  • How to add a page in the SAP Scripts

    Hi All,
    I want to know how to add a page in the sap scripts. there is already sap script developed by some other person.
    Now I have to add a page in front of that and have to add some more data.I added a page in page windows but thats not at all working.
    Please help me out in this.
    Thanks,
    Praveen

    new page will create in sap scripts using new page command.
    you have to set condition like after some number of records displayed in page new page has to be trigger.
    ex:YOU HAVE SO MANY RECORDS FOR PRINTING BUT YOU WANT TO DISPLAY 100 RECORDS IN FIRST PAGE REMAINING IN SECOND PAGE LIKE THAT.
    Here you can use NEW PAGE COMMAND .
    IT IS OPPOSITE PURPOSE OF PROTECT AND ENDPOTECT.
    Reward if useful.

Maybe you are looking for

  • Java package concept in ABAP Objects

    Hi, just a question on grouping of classes in ABAP Objects. In Java, you can group classes by "package" to avoid namespace collision, my question, in ABAP Objects, how do you group classes to avoid namespace collision? I know that there is package co

  • Mobile-Desktop socket connection

    I have a client program running on a mobile and a server program running on my desktop, I am trying to establish a socket connection between them and send "hello" message from the mobile to the desktop, here are the codes Client: try{ SocketConnectio

  • New nvidia driver 56.6

    what about this driver, it seems for me, it's loosing some tabs, i can't find, opengl tab settings, and directx, or memory allocation for directx.....m i missing something?

  • How to save QT files?

    I can move iTunes files to QT where they sound much better. How can I save these files in the QT format instead of having to open iTunes and drag and drop every time I want to listen to them? Is there some app that I could use to store them and have

  • PDFs move very chunkily

    PDFs move very "chunkily," i.e. never smoothly, on my iMac. I try to use the drag bar on the right and it does nothing--gives me the spinning wheel of death, the jumps several pages. When I use the button to advance one  page at a time, it takes 4-6