RE: calculate no of months for the calmonth variable range enetered

Dear All,
Please can anyone tell me for a given  calmonth range entered in the selection screen how do i get the no of months for the range entered.
I need to use this figure in calculating the no of stock turn overdays.
for ex: 01.2009 to 03.2009---no of months = 3
03.2009 to 08.2009 ---no of months = 6
So depending on the values entered for calmonth variable(as a range) how do i get the no of months in the report.
Please advice
Regards
Madhuri

create new formula varaible and processing type customer exit and put this below code in cmod.
Say formula varaible is ZFNODAYS and 0calmonth variable is ZCALMONTH.
IF I_STEP = 2.
data: yrd(2),
        mmd(2).
Read table it_var_range into wa_it_var_range where vnam = 'zcalmonth'.
yrd = wa_it_var_range-high+3(4) - wa_it_var_range-low+3(4).
yrd = yrd * 12.
mmd = wa_it_var_range-high(3) - wa_it_var_range-low(3).
mmd = mmd + yrd.
if i_vnam = 'ZFNODAYS'.
l_s_range-low = mmd.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
append l_s_range into e_t_range.
clear l_s_range.
endif.
ENDIF.

Similar Messages

  • Get Months for the given date ranges on the Selection Screen

    Hello All,
    If I give Begin Date (Begda) and End Date (Endda) on the Selection Screen, I need to get all the months given in the selection screen ranges.
    Could any one please suggest me how to proceed further on this.
    Thanks in Advance
    Regards
    Yathish

    HI,
    Check this FM
    HR_99S_INTERVAL_BETWEEN_DATES  ---> this can help you it will return the month in this table MONTH_TAB
    HR_99S_MONTHS_BETWEEN_DATES

  • Hello, I have Acrobat XI Pro for which I pay by monthly subscription. Each month, for the past three months or so, at renewal time, I receive a note stating that my trial period has expired and I cannot open my Acrobat Files. I have telephoned three or fo

    Hello, I have Acrobat XI Pro for which I pay by monthly subscription. Each month, for the past three months or so, at renewal time, I receive a note stating that my trial period has expired and I cannot open my Acrobat Files. I have telephoned three or four times each time this happens and have been told that the matter has been resolved - it has not! At one time I had paid inadvertently for three account for Acrobat XI Pro running at the same time - I only need 1. I'm afraid that I may have just opened a second account by mistake in order to open my files. I repeat, I only require one account. Would you please advise and assure me that this matter has finally been resolved and that I will no longer receive these notifications each month..

    I don't work for Adobe but it seems to me you might be signing in to Acrobat with the wrong Adobe ID.
    Check the Adobe ID you use in Acrobat.
    Check this Adobe ID on Adobe's to make sure that it has an active subscription.

  • Why is basic visual voice mail free on the Note 3 and 2.99 a month for the S4 ?

    Why is basic visual voice mail free on the Note 3 and 2.99 a month for the S4 ?

    I'm trying to reach these issues myself. There are a few different flavors of voicemail:
    Basic voice mail -- the kind you call in with your phone and press touch tones, like people used to do twenty years ago. Included with contract.
    Basic visual voice mail -- see your messages listed by caller, choose which one to play. Included with contract, but only on certain phones. The Note yes, Galaxy s5 yes, Galaxy s4 no.
    Visual Voice Mail -- the 2.99/mo version Verizon wants you to pay for. Has the features of 2, but also will transcribe your voice mails into text. Available on most phones because it is a Verizon app.
    iphone visual voicemail. Same as 2, for all intents and purposes. Has always been included because Apple established it as a condition for the carriers to be permitted to sell them.
    The mystery is number 2, what you are asking about. Though it is mentioned on a verizon comparison chart, 'basic visual voicemail' is not discussed in any verizon literature and I suspect most techs don't know about it yet. It seems to have been enabled with a kitkat update (version 4.4.4 of Android) that has been released on some, but not all phones. I think the way it worked is that users were given a free trial of the pay version of voicemail, but at the end of the trial were able to 'downgrade' to basic voicemail and keep that without paying.
    I also have an S4, and basic /no cost visual voice mail does not seem to be possible, though I have heard there may be some ways to make it work with technical workarounds. I have not confirmed any of these methods but they almost certainly would not be recommended by Verizon staff.
    To get back to your question, basic visual voicemail and what Verizon calls regular 'visual voicemail' are different products. The basic seems to be a recent product only available on some phones. The regular 'visual voicemail' is the pay service available on all phones.

  • Calculate teh tax maintained for the PO line items

    I need to calculate teh tax maintained for the PO line items...how do i do it????
    can somebody help??
    kanishak

    Hi,
    Use this FM to get data from KOMP
    tax amount = komp-mwsbp
    CALL FUNCTION 'RV_PRICE_PRINT_ITEM'
        EXPORTING
          comm_head_i = komk
          comm_item_i = komp
          language    = nast-spras
        IMPORTING
          comm_head_e = komk
          comm_item_e = komp
        TABLES
          tkomv       = tkomv
          tkomvd      = tkomvd.
    Regards
    Krishna

  • Brief report of about 2 months for the sqls run under a specific user ?

    Hi,
    Is there a way i can get the brief report of about 2 months for the sqls run under a specific user in Oracle 11g.
    thanks in advance

    913410 wrote:
    Yes,
    auditing is enabled
    SQL> show parameter audit;
    NAME                                 TYPE        VALUE
    audit_file_dest                      string      /u01/app/oracle/admin/PRCMTDB/
    adump
    audit_sys_operations                 boolean     FALSE
    audit_syslog_level                   string
    audit_trail                          string      DBthen how to get the informationabove is necessary, but not SUFFICIENT
    default Oracle behavior is that NO specific actions are audited.
    You would have had to manually enable AUDIT for all SQL statement by single user

  • I am already customer and want to upgrade and take the offer of $29.99/month for the complete CS for existing customers (which I qualify for) but when I try 'BUY' - it keeps sending me to this forum?? How do I get the $29.99/month deal?

    I am already customer and want to upgrade and take the offer of $29.99/month for the complete CS for existing customers (which I qualify for) but when I try 'BUY' - it keeps sending me to this forum?? How do I get the $29.99/month deal?

    Hi Bev,
    Thanks for the the email - I understand now.
    I would just like to ask another question with regards to my new order for complete Creative Cloud which you suggested. I have now pre-paid for a full year but I’m not
    sure when I can start downloading the other APPS as they don’t seem to be updating on my current Creative Cloud account app display. It still shows my old configuration
    of products (i.e. Photoshop etc) and my ‘activity stream’ relates back to 9 days ago.
    Please let me know how to get my new order activated.
    Thanks
    Kevin Bartley
    [personal information removed... Mod - https://forums.adobe.com/docs/DOC-3731]
    [This is an open forum, not Adobe support, please do not post personal information]
    [If you are posting using email, please turn your 'sig file' function OFF for posting]

  • Month for the given Week

    Can anybody tell me how to get the month for the given week..
    In my requirement I have week(201026).
    For this input, i nedd the month for this 26th week .
    Thanks in Advance.
    Moderator Message: Basic Date-related questions are not allowed since they are FAQ.
    Edited by: kishan P on Dec 17, 2010 1:17 PM

    Here's that code modified to something much more like what you specified. It prints the number of weeks between to dates inclusive, eg. there are 4 weeks between "Feb 1, 2003" and "Feb 28, 2003" not 3.something.
    I am now using the number of milliseconds in a day instead of in a week. The value 86400 is 24*60*60.
    I've also changed the input format to support days like
    June 1, 2003. Note you will need to put the args in "" when you run it because of the spaces.
    import java.util.Date;
    import java.text.*;
    public class TestTP
         static double MILLIS_PER_DAY = 86400*1000;
         public static void main( String args[ ] ) {
              double weeks;
              Date d0,d1;
              for (int i = 0; i<(args.length-1); i+=2)
                   d0 = parseDate(args);
                   if(null == d0)System.out.println(args[i]+" is bad");
                   else
                        d1 = parseDate(args[i+1]);
                        if(null == d1)System.out.println(args[i+1]+" is bad");
                        else
                             double days = dayDiff(d0,d1); // get difference in days
                             weeks = (1+days)/7;               // make it inclsive in weeks
                             System.out.println(args[i+1]+" is "+weeks+" weeks after "+args[i]+" inclusive");
         static Date parseDate(String ds)
              Date dt;
              SimpleDateFormat sdf = new SimpleDateFormat("MMM d, yyyy");
              sdf.setLenient(false);
              try{dt = sdf.parse(ds);}
              catch (ParseException e){dt = null;}
              return dt;
         static double dayDiff(Date d0, Date d1)
              return (d1.getTime()-d0.getTime())/(MILLIS_PER_DAY);

  • Time Machine says it will take months for the first backup.

    Time Machine said it would take over a month for the first backup on my new Mac. I figured it would get its act together overnight, but when I got up this morning, it said 160 days.
    Here are my specs:
    Mac mini 2.3 GHz Intel Core i5 (Macmini5,1)
    2 GB RAM, 500 GB internal HD
    Mac OS X 10.7.2 (current on updates)
    1 TB Seagate
    Connected through FireWire 800
    614.32 GB available
    Disk Utility verifies there are no problems
    I used the same drive for Time Machine on the Power Mac with no problems. And it's communicating fine with the Mac mini -- I transferred all of my music, photos, applications, and other documents very quickly. Spotlight has finished indexing -- there is no dot in the magnifying glass in the upper right corner of the screen. Activity Monitor looks normal. Right now, the CPU is between about 70 and 95% idle, inactive memory is about 225 MB, and page outs are at 148 KB.
    I started Time Machine again an hour or so ago, and it said "About 3 days" right at first, but the number is going up quickly. It isn't completely stuck -- the number of items is slowly going down and the MB backed up is slowly going up (not as quickly as the number of days is going up).
    Right now, it says, "Backing up 760,527 items" and "81.4 MB of 222.37 GB – About 104 days."

    Benjamin McDaniel wrote:
    Disk Utility verifies there are no problems
    Did you run Repair Disk on your backups, and Verify Disk on your internal HD, and both said " . . . appears to be OK"?
    If so, Spotlight may be indexing your backups (Lion re-indexes everything, and that may not show the dot in the Spotlight icon).
    A clue may be lurking in your logs.  Use the widget in #A1 of  Time Machine - Troubleshooting to display the backup messages from your logs.  See if there are repeated "indexing" messages.  If so, the index may be damaged.  See the pink box in #D2 of the same link.

  • I pay 9.99 usd per month for the Creative Cloud Photography Plan.  I mostly use LR... can i download / use the more powerful Photo Shop for this contract price also?

    I pay 9.99 usd per month for the Creative Cloud Photography Plan.  I mostly use LR... can i download / use the more powerful Photo Shop for this contract price also?
    Asking for help here. 

    Yes, the Creative Cloud photography plan includes photoshop & Lightroom.
    Regards
    Rajshree

  • Your system of contact for help is very rigid and complecated : Hallo, you are charging me twice every month for the Adobe Creative Cloud, please, please cancel one!!!!! Hauke

    Your system of contact for help is very rigid and complecated : Hallo, you are charging me twice every month for the Adobe Creative Cloud, please, please cancel one!!!!! Hauke
    Message was edited by: Hauke Juergens : Your system of contact for help is very rigid and complecated : Hallo, you are charging me twice every month for the Adobe Creative Cloud, please, please cancel one!!!!! Hauke

    Posting here is not going to help you.  This is a user to user forum.  No one here has any ability to manage your account.
    Phone support | Orders, returns exchanges
    http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
    For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Creative Cloud support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html ( http://adobe.ly/19llvMN )

  • I am paying $$/month for the creative suite 6 and when i try to access them they still say trial ver

    i am paying $$/month for the creative suite 6 and when i try to access them they still say trial ver

    Referr to this:
    Sign in or activation errors
    For anything else contact support directly by phone or web chat.
    Mylenium

  • Use two indicators for the same variable in two different VIs

    hello, I want to use two indicators for the same variable in two different VIs running at the same time
    should I use global variables?? I want to avoid because I have lot of variables and it would takes too much memory,I tried with this code but the value of the second indicator is not updated 
    I tried to use the queue and it works but the problem is as i said previously that i have many variables shoud I use a queue for each one??
    what should I do?
    thank you in advance
    cordialy
    Attachments:
    projet.zip ‏13 KB

    CrisSTine01 wrote:
    hello, I want to use two indicators for the same variable in two different VIs running at the same time
    I'm a huge fan of User Events to send updates to GUIs from who knows where.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Can we set a default value for the container variable in BPM?

    Can we set a default value for the container variable.?
    Suppose if i have a loop step and i have given a container variable i=5 as end condition.What value will it take during its first execution?Can we set the value for container before a recieve step?

    Hi
    Define Container Variable of Type integer and Category Simple Type .Use Condtion in Loop.
    In Container Operation Step Assign value and Use Expression to
    Increase or Decrease Valus according to your operation.
    look Pattern 4 in this blog to understand Container Operation
    /people/sharathchandra.girmaji/blog/2008/09/11/bpm-with-patterns-explained-part-1

  • LabVIEW could not generate code for the shared variable.You must open the VI in the project that contains the library where the shared variable resides

    HI
    When I put a network shared variable with fifo RT activated on my diagram, the arrow is broken.and I' ve got this message:
    ""LabVIEW could not generate code for the shared variable.You must open the VI in the project that contains the library where the shared variable resides""
    If I uncheck FIFO RT option for this variable the arrow isn't broken anymore.
    I 've no idea how to correct this weird error?
    Autodeploy is on, and I've check copy / delete in diagram in tool/options\diagram
    regards,
    james

    Hello,
    I don't reproduce this error.
    Could you send your VI?
    Regards
    VéroniqueD
    NI France

Maybe you are looking for

  • Photoshop CS5 64 bit crashes at launch, save as, and when opening photos from Lightroom.

    I have had this problem intermittently for years with different versions and different computers, but this time it is not going away.  I need to use the 64 bit version for large files, but it keeps crashing in several different ways. 1- I open the pr

  • ID CS5 crashes when opening older ID file

    I am attempting to open an ID file started in 2007 and edited in 2008. CS5 crashes after a few seconds in this attempt. Is there a magic bullet to fix this? This is not the first time, but I found an output pdf and used those compoments to rebuild th

  • My imac will not let me access my bank web page.  How can I fix this?  It did until about a week ago.

    I cannot open the web page for my bank using Safari, Firefox, Googl, or Yahoo.  I can see others have had this problem, what is the fix?  I have reset Safari and made sure cookies are accepted and that did not fix the problem.  The bank assures me it

  • Regarding SM19 filter Criteria.

    Hi Experts, I have configured SM19 filters for DDIC, SAP* & GSUPER1 (master users) and i have checked all the AUDIT CLASSES and Security level and security level as LOW. I have written a program to send an SD ticket when there was a critical transact

  • Javascript in  XSLT?

    in OC4J,I write a XSLT as follows: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1"> <xsl:strip-space elements="doc chapter section"/> <xsl:output method="xml" encoding="GBK" indent="yes"/> <xsl:template match="doc"> <ht