Can any one tell me difference between 2 dates in days

hi guys,
can any one tell me the difference between 2 dates in days
for eg: input  20.12.2006 and 06.11.2006 will be 34.
thanks in advance for you answers
Regards,
Anil kumar P

Hi Anil,
Check this code for u r requirement
REPORT ZDATEDIFF.
DATA: EDAYS LIKE VTBBEWE-ATAGE,
EMONTHS LIKE VTBBEWE-ATAGE,
EYEARS LIKE VTBBEWE-ATAGE.
PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
TODATE LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.
call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
exporting
i_date_from = FROMDATE
i_date_to = TODATE
I_FLG_SEPARATE = ' '
IMPORTING
E_DAYS = EDAYS
E_MONTHS = EMONTHS
E_YEARS = EYEARS.
WRITE:/ 'Difference in Days ', EDAYS.
WRITE:/ 'Difference in Months ', EMONTHS.
WRITE:/ 'Difference in Years ', EYEARS.
INITIALIZATION.
FROMDATE = SY-DATUM - 60.

Similar Messages

  • Can any one tell me How to load data in matrix from user table

    Hi,
    we need to load data to matrix when page loads. After loading data we should add row to that matrix and update the values in database without effecting previous data. It should have functionality like UDO Default Form. Can any help me out in this issue.
    Regards,

    Hi Souji,
    try this,
        SAPbouiCOM.Form oForm;
        SAPbouiCOM.DataTable DBTable;
        SAPbouiCOM.DBDataSource dbDatasource;
         string strqry;
         oForm = SBO_Application.Forms.Item("FormUID");
          int i;
          SAPbouiCOM.Item oitem;
           oitem = oForm.Items.Item("ItemUID");
           objMatrix = (SAPbouiCOM.Matrix)oitem.Specific;
           objMatrix.AddRow(1, objMatrix.RowCount + 1);
       dbDatasource = (SAPbouiCOM.DBDataSourceoForm.DataSources.DBDataSources.Item("TableName");
       DBTable= oForm.DataSources.DataTables.Add("UniqueName");
        strqry = "paste Query that you want to fetch";
        DBTableActivity.ExecuteQuery(strqry);
         for (i = 0; i <= DBTable.Rows.Count - 1; i++)
                objMatrix.FlushToDataSource();
                dbDatasource.SetValue("column1(name)", i, System.Convert.ToString(DBTable.GetValue(0, i)));
                dbDatasource.SetValue("column2(name)", i, System.Convert.ToString(DBTable.GetValue(1, i)));
                dbDatasource.SetValue("column3(name)", i, System.Convert.ToString(DBTable.GetValue(2, i)));
                dbDatasource.InsertRecord(i + 1);
                objMatrix.LoadFromDataSource();
    If it helps you, give me the reward points.
    Thanks
    Sravan Kumar Pothu

  • Can any one brief the difference between MSDN and Developer licensing

    We are looking at the licensing for SQL Server for  our development Team. 
    The scenario will be a   a common  DB server for entire development team.
    MSDN is a user based licensce which doesn't suits for our requirement.
    Any help  on this with appropriate licencing will be appreciated 
    Thank you
    Shahan

    Could you please explain difference and limitation between  MSDN and Developer edition
    The Developer Edition is available to everybody. It costs
    $59.95 in the Microsoft Store. But it's only available to be used in *development and testing* scenarios. You cannot use Developer Edition for production purposes. Developer Edition has equivalent functionality to Enterprise Edition.
    Within the MSDN Library there are also media and licenses available for the other editions of SQL Server. These instances, also, are only available for development and testing scenarios, but there are scenarios in which one might wish to *TEST* against a
    Standard Edition, Business Intelligence edition , or Enterprise Edition installation rather than a Developer Edition instance.
    The MSDN Library subscription is licensed on a per-user basis, so anybody using those three editions (Standard, BI, Enterprise) must also hold an MSDN Subscription, or you must own SQL CALs for those users to use Std/BI/Ent editions.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • Can any one give the difference

    can any one give the difference
    between normal java class and java bean
    Is every java bean is a java class

    A java bean is a class (always)
    A class does not have to be a java bean:
    For a bean you need to have a no argument constructor
    follow any of the other java bean guidelines/requirements...
    http://java.sun.com/developer/onlineTraining/Beans/index.html

  • Can any one tell me the difference between third party sales & intercompany

    Hai
    can any one tell me the difference between third party sales & intercompany billing
    reg

    Hi,
    In THIRD PARTY, Goods are sent to customer from the Vendor and no Delivery happens from Company Plant
    In THIRD PARTY, We will Pay to the Vendor and Bills Customer.
    In THIRD PARTY, the PR will be generated automatically from the Sales order
    In INTERCOMPANY Process, Goods are sent to customer from the Supplying Company code  to which an order was placed from the Ordering Company code
    In INTERCOMPANY,, Plant of the supplying company code will be assigned to the Ordering Sales Organisation
    In INTERCOMPANY , We Bills the customer and settles to the SUPPLY COMPANY CODE
    We will use two Pricing procedures, One Normal pricing and other is INTERCOMPANY pricing procedure.
    These are the Major differences.
    Please check these and revert back if you need more details
    regards,
    santosh

  • Can any one tell me how to make a join in between RESB & VBAP Table

    Hi.
    can any one tell me how to make a join in between RESB & VBAP Table. Please do the needful.

    u have Sales order number and sales order item number in RESB table..
    KDAUF   Sales Order Number
    KDPOS   Item Number in Sales Order

  • Can any one tell me how to talk between two controller.....

    Hi,
    Can any one tell me how to talk between two controller.....
    Help will be awarded.
    Regards,
    Gurprit Bhatia

    Hi Gurpit,
    If you want to share data between 2 controllers then you can simply do that by providing a data link between the controllers in your data modeler.
    If you want to use some methods of one controller in another then you can do it using
    wdThis.wdget<controller name>().<method name>();
    If your question is something different than this then please elaborate your requirement.
    Regards,
    Murtuza

  • Can any one tell me how can I move to a different folder pictures, that I've cloned, without them staying aggregated? They all come together to the other folder and I don't want that- thanks

    Can any one tell me how can I move to a different folder pictures, that I've cloned, without them staying aggregated? They all come together to the other folder and I don't want that… thanks

    There's more to it than that.
    Folders in Aperture do not hold Images.  They hold Projects and Albums.  You cannot put an Image in a Folder without putting it in a Project or an Album inside that Folder.
    The relationship between Projects and Images is special:  every Image must in a Project, and can be in only one Project.
    Images can be in as many Albums you want.  Putting an Image in an Album does not move it from the Project that holds it.
    You can make as many Versions from a Master as you want.
    What you want to do may appear simple to you, but it still much adhere to how Aperture works.  I still can't tell exactly what you are trying to do (specifically: Images don't live in Folders; moving an Image from a Folder is non-sensical).
    It can be very confusing (and frustrating) to get going with Aperture -- but it does work, and can be enormously helpful.  If you haven't, take a look at the video tutorials on Apple's Aperture support site.
    I feel as though I haven't helped you much -- but we need to be using the same names for interface items in order to get anything done -- and my sense is that you still haven't learned the names of the parts.

  • Can Any one tell me. System considering the Sales District also in Delivery Split which is not in standard. How to resolve this. Please help me

       Hi
    Can Any one tell me. System considering the Sales District also in Delivery Split which is not in standard. How to resolve this. Please help me

    Dear Srikanth,
    I am not sure, if my answer will satisfy you, but anyway I will try:
    Field Sales District is technically called BZIRK. In delivery structure is this field located in header (table LIKP), what cause split, if origin document (Sales Order) has different Sales District in some positions. This is standard program behavior. Basically it shouldn't happen, as value is taken from customer master (Sold-to Party) and copied to header and items of sales document. But user can manually changer for particular items.
    Well, to solve situation you have few ways:
    1. Do not allow users to change value on items - can be managed by organizational decision or by authorization concept.
    2. If there is a reason to have different Sales District in items, then it can be managed in in routines for copy control between sales and delivery documents (delete value of BZIRK for all items for instance). But then will be this information lost for further usage. It seems to me to invoice is value copied directly from sales order (field VBRP-BZIRK_AUFT) then it mustn't be a critical for analyses.
    3. Your situation also can happen if you wants to collect more sales documents to one delivery. In this case can be that Sales District is different for same customer in different sales order (even seems to be little bit strange). Then solution from point 2 can help as well, I believe.
    Best Regards
    Arnost

  • Can any one tell data match ticket with example  SD& MM

    hi
    this is jagadeesh
    can any one tell data match ticket with example in SD& MM

    Dear,
    Please refer below mention link.
    http://www.sap-img.com/sap-sd/link-between-sap-sd-mm-and-fi.htm
    Regards,
    Mahesh Wagh

  • I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    Hi Abdul,
    Sorry for my unprecise answer, but you talk about a tcode, but you're using a BAPI Call. Maybe you want to call the transaction in batch mode?
    http://help.sap.com/saphelp_erp60_sp/helpdata/de/fa/09715a543b11d1898e0000e8322d00/content.htm
    Regards,
    Franz

  • Can any one tell me when i use adobe flash media encoder how can i see my live vidoes on flash media

    can any one tell me when i use adobe flash media encoder how can i see my live vidoes on flash media server . thnx

    Flash Player version 10.1.102.64 is the last version available to PPC Mac users. However, this Flash version won't work for many videos on Facebook, YouTube and other sites. Adobe's latest version, 10.2.x or later, is only for Intel Macs. Adobe will not provide a newer Flash version for PPC Macs.
    The message requesting that you download Adobe Flash Player takes you to Flash Player requiring an Intel processor. Doesn't work on a PowerPC processor. I found a hack, installed it & it works with Firefox, TenFourFox & Safari.
    Download this http://www.steelbin.com/FPforFBPPC.zip to your desktop, unzip it, and replace the current Flash Player plug-in which is in your main/Library/Internet Plug-Ins folder, (not the user Library). Save the old one just in case this one doesn't work.
    Hack Allows PowerPC Macs to Access Flash 11 Content
    http://lowendmac.com/ed/royal/12sr/flash-11-and-powerpc.html
     Cheers, Tom

  • Can any one tell me how to use EXISTS clause inplace of IN operator.

    Hi All,
    Can any one tell me how to use EXISTS clause AND (JC.EMPL_ID, JC.EMPL_RCD) inplace of IN operator.
    SELECT COUNT (1)
    FROM SYSADM.OHR_PERS_CURR PC
    , SYSADM.OHR_JOB_CURR JC
    WHERE PC.EMPL_ID = JC.EMPL_ID
    AND (JC.EMPL_ID, JC.EMPL_RCD) in (
    SELECT HS.EMPL_ID, HS.EMPL_RCD
    FROM SYSADM.HU_SCRTY_JOB HS, ODSHR.OHR_SCRTY_USER_CFG OS
    WHERE HS.HU_SCRTY_CFG_ID = OS.HU_SCRTY_CFG_ID
    AND OS.DB_LOGIN = USER)
    Thank you.

    SELECT COUNT (1)
    FROM SYSADM.OHR_PERS_CURR PC
    , SYSADM.OHR_JOB_CURR JC
    WHERE PC.EMPL_ID = JC.EMPL_ID
    AND EXISTS (
    SELECT null
    FROM SYSADM.HU_SCRTY_JOB HS, ODSHR.OHR_SCRTY_USER_CFG OS
    WHERE HS.HU_SCRTY_CFG_ID = OS.HU_SCRTY_CFG_ID
    AND OS.DB_LOGIN = USER
    AND HS.EMPL_ID = JS.EMPL_ID AND HS.EMPL_RCD = JC.EMPL_RCD)
    But why ?
    Rgds.

  • Can any one tell me how to send one PO to mutilple mail ids in vendor maste

    Hi Experts,
    Can any one tell me how to send one PO as a mail to multiple vendors who are all maintained in my vendor master record
    Suppose I have 3 mail ids in my Vendor master record and I created a PO with that vendor, will that PO goes to all the three mail ids maintained in the vendor master record  or only to one ?
    Inorder to send to multiple mail ids, Do we need to do any configure any thing in SPRO settings functionally, if so where we have to maintain?
    Or shall an Abaper needs to maintain a code for that.?
    Please suggest me, I would appreciate your feed back.
    Best Regards,
    Sairam

    Go to XK02 enter the vendor code
    go to the communication tab
    Email will be there press the ---> button
    you can add many Emails in the list.
    Please ensure that the  message output is configured by
    the  SAP BASIS team
    No need of any configuration
    G.Ganesh Kumar

  • Can any one tell me should it take 6-8 hours to charge my iPad 2?

    Can any one tell me should it take 6-8 hours to charge my iPad 2?

    I have a iPad 2, when I let it go dead and then I put it on charge it takes about 6-8 hours to fully charge. Is that the normal time it takes to charge or could there be something wrong with my iPad 2.

Maybe you are looking for