Need Func Mod that provides Julian Date

Hi,
Anyone aware of a Function Module that will provide Julian dates?
Thanks.

Hi,
Heres a small piece of code that will convert date into julian date and vice versa.
YYYYMMDD to JULIAN FORMAT
*Convert Date into Julian format yynnn
report z_date_to_julian.
data : v_i type i.
data : v_n(3) type n.
data : v_julian(5) type n.
data : date1 like sy-datum.
parameters : p_date like sy-datum.
concatenate p_date(4) '0101' into date1.
v_i = p_date - date1 + 1.
move : v_i to v_n.
concatenate p_date+2(2) v_n into v_julian.
write :/ 'Date -',  p_date.
write :/ 'Julian -' , v_julian.
JULIAN DATE to YYMMDD format
parameters : p_julian(5) obligatory.
move : p_julian(2) to v_yy.
move : p_julian+2(3) to v_days.
do 12 times.
  move : sy-index to v_mm.
  move : v_mm to v_month.
  move : v_yy to v_butag.
  call function 'NUMBER_OF_DAYS_PER_MONTH_GET'
       exporting
            par_month = v_month
            par_year  = v_butag
       importing
            par_days  = v_days_month_n.
  move : v_days_month_n to v_days_month.
  v_diff = v_days - v_days_month.
  if v_diff le 0.
    move : v_days to v_dd.
    concatenate v_yy v_mm v_dd into v_output.
    exit.
  else.
    v_days = v_diff.
  endif.
enddo.
write :/ 'Input' , p_julian.
write :/ 'Output', v_output.
Hope this is useful..
Reward if helpfull...
Cheers,
Sowjanya.

Similar Messages

  • HT4914 When I'm using iCloud,and I'm NOT in wifi will I need to pay a service provider for data useage?

    When I'm using iCloud,and I'm NOT in wifi will I need to pay a service provider for data useage?

    It's your choice. If you know that you will be away from wifi then you could download the music that you want to listen to so that it is available on your phone. If you do subscribe to Match and want to be able to access it via your carrier's network then you will also need to be an area where you get reception from your carrier.
    There are also some wifi-enabled external drives that allow you to stream content to a device e.g. Seagate GoFlex Satellite

  • I have quicktime pro and it does NOT have the screen record mode that Quicktime is suppose to have.  Can I uninstall it and go back to an older version that would have screen recording?  If so, how?  Step by step needed.  Thank you for your time.

    I have quicktime pro and it does NOT have the screen record mode that Quicktime is suppose to have.  Can I uninstall it and go back to an older version that would have screen recording?  If so, how?  Step by step needed.  Thank you for your time.

    Did you remove Quicktime X?
    On a normal install Quicktime 7 is installed in the Utilities folder and Quicktime Pro in the main Applications folder.
    You will need to reinstall OS X to get Quicktime X back if you have deleted it.
    I notice yor profile says 10.5.8. Quicktime X is only available on 10.6 and above.

  • Need a report that shows sales shipments and billing by date

    We need a report that will show sales shipment and billing information by date.  Specifically, we need to find orders that were shipped in one month/period, but were not invoiced until the next month/period.  Does a standard report exist?

    I dont think it is possible. You will have to customize.
    For list of deliveries, you can use VL06O.
    For billing due list, you can use VF04.
    Regards,
    GSL.

  • Badly need help!!! installing an application that needs classic mode

    i'm totally new with mac, got mine 3 weeks ago. . . i have this CD-ROM that i need to install but it says int the instruction that it needs classic mode to install. i've been reading the "classic mode" topic int the MAC HELP. . it says there that i can install the classic mode folder with the installer hardware test disc that comes with the mac, but it has two CDs, i don't know which is the hardware test disc. . .is it the disc 1 or disc 2??? and is there other way aside from this. . and another thing, i read something in the topic that i cannot use classic application in an intel-based comp, does that mean that theres no way i can install this application??
    by the way i'm using mac OS 10.4. .

    i read something in the topic that i cannot use classic application in an intel-based comp, does that mean that theres no way i can install this application??
    That's right.
    What is this app? Perhaps there is an alternative that someone can recommend.

  • I  need a program that translates a FrameMaker 5.5 dokument to PDF.  Is there an Adobe product  that can provide that?

    I need a tool that can translate a FrameMaker 5.5 document to PDF. Which Audobe product can provide that?

    Thanks. I don't remember if Save as PDF worked as advertised in FrameMaker 5.5 -- I think it did not. Anyway, if Acrobat is not installed, it will be needed. So, if the poster has Acrobat installed with FrameMaker, then printing to PDF is all that is needed.

  • We are using EBS 12.1.3.  When we input a sales order from a customer we input the sales order and specify the date the customer wants it.  This isn't always the date that we intend on manufacturing it though.  I need to put a customer due date in, but be

    We are using EBS 12.1.3.  When we input a sales order from a customer we input the sales order and specify the date the customer wants it.  This isn't always the date that we intend on manufacturing it though.  I need to put a customer due date in, but be able to put a date in another field that MRP can read in the event we choose to manufacture based on another date.  For example, early.
    Any help would be appreciated.

    What you are experiencing is 100% related to Malware.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • 8.0.2 - problem 1 - unable to scroll screen when the keyboard is present. Huge problem for emails and other cloud based providers that allow for data entry. We need a fix ASAP!

    8.0.2 - problem 1 - unable to scroll screen down or up when the keyboard is present. When typing text, I am unable to see the text I am writing due to this problem. Huge problem for emails and other cloud based providers that allow for data text entry. While the keyboard is present, I am unable to scroll down to see the text, the screen automatically scrolls back up to the top of the screen. We need a fix ASAP!

    Have you tried resetting your iPad? You will not lose any data. Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Two tables that provide detail information about data source?

    what are the tables that provide information about the datasource?
    How to prevent duplicate records in at the data target level?

    ROOSOURCE for the details of the datasource...
    How to avoid duplicate? --> Dont load same data twice..If delta is supported by the datasource then do a psuedo delta, or delete pervious request with same selections when you do a full load...
    Plz elaborate on your question..

  • I need help drawing a state map that highlights demographic data by zip code and county

    I'm trying to draw a map of Florida that highlights some data I've collected.  I need to be able to show distinctions between/among counties and zip codes.  The "make a map of geographic data" video didn't really help me, as it gave no instructions on how to find the blank map in the first place.
    Any help, please?  Thanks
    Make a map of geographic data | Adobe for Academics | Adobe TV

    google or equivalent. how did illustrator give you that impression? it's for creating content, generally, not a clipart library.
    edit: there are several here with county boundaries that you could probably convert to your needs:
    Category:SVG maps of Florida - Wikimedia Commons

  • I need an app or software that records the date/time each time a write something and press enter. This needs to be quick so I can continue writing right after I press enter, and the date/time is inserted for each word. Does this sort of software exist?

    I need an app or software that records the date/time each time a write something and press enter. This needs to be quick so I can continue writing right after I press enter, and the date/time is inserted for each word. Imagine a spreadsheet - each time a write something in a cell and press enter to go into the next cell, I need the app/software to automatically insert the corresponding dat and time. Does this sort of software exist?

    No one here is going to do anything about it. Send feedback to Apple.
    http://www.apple.com/feedback/ipad.html
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • I have an apple time capsule and am about to have xfinity cable and internet hooked up in my new apartment.  The cable provider said I need a modem that is Docsis3 capable - will my time capsule do the job or do i need another modem?  Thanks

    I have an apple time capsule and am about to have xfinity cable and internet hooked up in my new apartment.  The cable provider said I need a modem that is Docsis3 capable - will my time capsule do the job or do i need another modem?  Thanks

    will my time capsule do the job or do i need another modem?
    The Time Capsule is only a router...with a built in hard drive. It does not have a modem built in, so you will need to use a separate modem with your new calbe service.
    If the cable provider offers a modem with their service it would be good idea to use that device, as you know that it will be supported by your provider in the event of any Internet connection difficulties.
    If the provider does not offer a modem, I am sure that they have a list of compatible modems on their website, or check with customer support for more information.

  • Julian dates

    I have a file that reads in date
    MMDDYYYY from the user.
    I need to pass this parameter somewhere to convert it
    into a julian date. I will later use this julian date to query a database based on the start and ending date criteria.
    How do I make the conversion?
    RycherX

    http://forum.java.sun.com/thread.jsp?forum=31&thread=198725
    http://forum.java.sun.com/thread.jsp?forum=57&thread=120630
    http://forum.java.sun.com/thread.jsp?forum=31&thread=56572
    http://forum.java.sun.com/thread.jsp?forum=256&thread=44652
    http://forum.java.sun.com/thread.jsp?forum=31&thread=192366
    Here are a few threads with similar questions. It took about 30 seconds of searching to find these. If you don't find the right answer, please ask again and provide any code you have already started.

  • Can I set up a Content Filter that is Time/Date stamp dependent?

    My company would like to add an additional disclaimer text during Holidays where the company is closed.  It will say something like: "In observance of the 'XYZ' holiday, our offices will be closing at 3:00 PM on Friday, December........ and will reopen at 8:30 AM Monday.......".
    I was wondering if there is a way to set up conditions in an Outgoing content filter to only include that text if the email is sent between certain dates.
    This would allow me to set up the filters prior to the holidays and not have to manage them manually.
    I tried to do it via Exchange Transport rule, but I can't find a time/date dependent condition for the rules in Exchange.
    Thanks,
    Rachel    

    Hi Rachel,
    there is no way to archive this directly in content filters, an indirect way would be to use a message filter that adds an additional header (i.e. X-mas: true) during a specific period. For that, message filters provide the 'date' rule, i.e
    HolidayHeader:
    if ((date > '12/20/2012 13:00:00') and
         (date < '12/28/2012 12:00:00'))
    insert-header('X-mas', 'TRUE');
    You'd then create an outbound content filter matching on this header and inserting the specific footer if the header exists. Or, of course, you could have that action in the message filter already, however in that case you need additional conditions to make sure the rule applies on outbound messages only.
    Hope that helps,
    Andreas

  • Why do we need SSIS and star schema of Data Warehouse?

    If SSAS in MOLAP mode stores data, what is the application of SSIS and why do we need a Data Warehouse and the ETL process of SSIS?
    I have a SQL Server OLTP database. I am using SSIS to transfer my SQL Server data from OLTP database to a Data Warehouse database that contains fact and dimension tables.
    After that I want to create cubes using SSAS form Data Warehouse data.
    I know that MOLAP stores data. Do I need any Data warehouse with Fact and Dimension tables?
    Is not it better to avoid creating Data warehouse and create cubes directly from OLTP database?

    Another thing to note is data stored in transactional system may not always be in end user consumable format for ex. we may use bit fields/flags to represent some details in OLTP as storage required ius minimum but presenting them as is would not make any
    sense to user as they would not know what each bit value represents. In such cases we apply some transformations and convert data into useful information for users to understand. This is also in the warehouse so that information in warehouse can directly be
    used for reporting. Also in many cases the report will merge data from multiple source systems so merging it on the fly in report would be tedious and would have hit on report server. In comparison bringing them onto common layer (warehouse) and prebuilding
    aggregates would be benefitial for the report performance.
    I think (not sure) we join tables in SSAS queries and calculate aggregations in it.
    I think SSAS stores these values and joined tables and we do not need to evaluates those values again and this behavior is like a Data Warehouse.
    Is not it?
    So if I do not need historical data, Can I avoid creating Data Warehouse?
    On the backend SSAS uses queries only to extract the data
    B/w I was not explaining on SSAS. I was explaining on what happens inside datawarehouse  which is a relational database by itself. SSAS is used to built cube (OLAP structures) on top of datawarehouse. star schema is easier for defining relationships
    and buidling aggregations inside SSAS as its simple and requires minimal lookups to be performed. Also data would be held at lowest granularity level which can easily be aggregated to required levels inside OLAP cubes. Cube processing is very resource
    intensive and using OLTP system would really have a huge impact on processing performance as its nnot denormalized and also doing tranformation etc on the fly adds up to complexity. Precreating a layer (data warehouse) having data in required format would
    make cube processing easier and simpler as it has to just cross join tables and aggregate data based on relationships defined and level needed inside the cube.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for