Logic for monthly quarterly yearly basis for  ar eport

hi ,
          i need to run a report (which shows sales order number and creation date
based on erdat entered in selection screen)
in back ground. for that i have to develop a wrapper program which calls the main program and executes it. i can do that but the thing is i need logic to run that wrapper program to execute the report on basis of monthly quarterly and yearly.
example : if i execute the report for erdat-creation date range 15.01.2005 and 25.03.2005 we will display sales order num and date b/w this range.
if i excute this thro wrapper program for entered date and select monthly basis,
it should split into 3 variants i,e for  3 months and execute .what is the logic for that.

hi ,
          i need to run a report (which shows sales order number and creation date
based on erdat entered in selection screen)
in back ground. for that i have to develop a wrapper program which calls the main program and executes it. i can do that but the thing is i need logic to run that wrapper program to execute the report on basis of monthly quarterly and yearly.
example : if i execute the report for erdat-creation date range 15.01.2005 and 25.03.2005 we will display sales order num and date b/w this range.
if i excute this thro wrapper program for entered date and select monthly basis,
it should split into 3 variants i,e for  3 months and execute .what is the logic for that.

Similar Messages

  • How to set filter criteria for month and year using in timestamp input field?

    Hi,
    I am using jdev 11.1.2.3,
    I have one problem with Report generation,,,,,,I have one report table which is in the form of VO(query based) and i want to search this table as month and year basis
    but in this table(query) that field having timestamp based value.. how to search with month name and year only.. Here i am using totally query base VO's for generating
    reports........ Can any one guide me.
    Thank You.

    You can use a inputdate, which allows you to selecte a moth, year and a day. Once the selection is made you convert it to only allow moth and date like
            <af:inputDate label="Label 1" id="id1" autoSubmit="true" value="#{bindings.myMonthYear1.inputValue}">
              <f:convertDateTime pattern="MM/yyyy"/> 
            </af:inputDate>
            <af:outputText value="Selected #{bindings.myMonthYear1.inputValue}" id="ot1" partialTriggers="id1"/>
    then you have a string holding month and year only. This value you split into two variables you or pass it as a whole parameter to the query and split it there.
    Another way is to add two static lovs one for month and one for year and use them to get to the filter values.
    Timo

  • Data element for Month and Year

    Hello All,
    Is there any data element which will have only Month and Year.
    I have to introduce this field in a table. It should have convesion exits also.
    Ex: If i give 092009, it sould come like 09.2009
    Thank you.
    Best Regards,
    Sasidhar Reddy Matli.

    Kindly Try this code for Month and year as input and having standard F4 help..
    INCLUDE RMCS0F0M.
    TYPES : BEGIN OF TY_SELECT,
              MONTH TYPE FTI_MONTH_YEAR,
            END OF TY_SELECT.
    DATA : WA_SELECT TYPE TY_SELECT.
    SELECTION-SCREEN : BEGIN OF BLOCK SANDEEP WITH FRAME.
      SELECT-OPTIONS : S_MONTH FOR WA_SELECT-MONTH OBLIGATORY NO INTERVALS NO-EXTENSION.
    SELECTION-SCREEN : END OF BLOCK SANDEEP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MONTH-LOW.
      PERFORM MONAT_F4.
    SANDEEP JAIN

  • I have lightroom.  My photos are stored on an external disk drive with a backup disk.  With iCloud, will all of my photos go to the cloud?  Will I still need the external drives? Is the $9.99 per month for just one year or for always?

    I am an amateur photographer and have lightroom.  My photos are stored on an external disk drive with a backup disk.  With iCloud, will all of my photos go to the cloud?  Will I still need the external drives? Is the $9.99 per month for just one year or for always? 

    If the iTunes database files are on that drive, launch iTunes with the Shift key(Windows) or Option key(Mac OS X) held down, select Choose Library, and navigate to it. The computer may need to be authorized to play protected content, and if the library contains rented movies, those won't play.
    If not, import the content to an iTunes library.
    (100371)

  • How to have more months and years appear for selection in the archives for blog posts?

    Hello,
    How to have more months and years appear for selection in the archives for blog posts?  It just shows past 3 months in the year 2014, but we have many blog posts in years 2013, 2012 and 2011 and further back.  I am using the OOB SharePoint blog
    feature.
    Paul

    Hi,
    Thanks for the reply; it doesn't add anything as RSA6 was one of the options I listed and this was my fall back option if there was no other special treatment for the COPA datasources.
    I have found out why this, and other fields, are not available in KEB0.  The program uses a Function called KERA_COPA_METADATA_INTERFACE within which there is a section that selects the COPA fields:
    ***** 1. RULES (choice/class)
    * set rules for fixed fields
      PERFORM COPA_SET_RULES_FIXED_FIELDS USING I_ACCTCOST
                                          CHANGING E_T_RULES[].
    When you look at this code section there is a hard coded list of fields to exclude:
      MRULE 'MANDT     ' NEVER FORGET_IT NEVER FORGET_IT.
      MRULE 'PAOBJNR   ' NEVER FORGET_IT NEVER FORGET_IT.
      MRULE 'PASUBNR   ' NEVER FORGET_IT NEVER FORGET_IT.
      MRULE 'PAPAOBJNR ' NEVER FORGET_IT NEVER FORGET_IT.
      MRULE 'PAPASUBNR ' NEVER FORGET_IT NEVER FORGET_IT.
      MRULE 'HRKFT     ' NEVER FORGET_IT NEVER FORGET_IT.
      MRULE 'HZDAT     ' NEVER FORGET_IT NEVER FORGET_IT.
      MRULE 'USNAM     ' NEVER FORGET_IT NEVER FORGET_IT.
      MRULE 'RKESTATU  ' NEVER FORGET_IT NEVER FORGET_IT.
      MRULE 'TIMESTMP  ' NEVER FORGET_IT NEVER FORGET_IT.
      MRULE 'PERDE     ' NEVER FORGET_IT NEVER FORGET_IT.
      MRULE 'PERIO     ' OBLIGATORY CHAR_CE3 OBLIGATORY CHAR_CE3.
      MRULE 'COPA_AWTYP' NEVER FORGET_IT NEVER FORGET_IT.
      MRULE 'COPA_AWORG' NEVER FORGET_IT NEVER FORGET_IT.
    As this is a standard delivered SAP function I do not recommend that you change this code as you will invalid your SAP support and upgrade paths.
    Thanks
    Neil

  • Regarding Date data in the format of WEEKLY , MONTHLY , QUARTERLY , YEARLY

    hai
    i have one Infoobject(ZDATE) which is created based on the Reference Characteristic(ocalday) and contains data in the YYYYMMDD format.
    I want same date data in weekly , monthly , quarterly and yearly.
    So for this one i need to created ZWEEK , ZMONTH, ZQUARTER and ZYEAR infoobjects by using Reference Characteristics 0calweek , 0calmonth , 0calquarter , 0calyear and i need to write the formula for these InfoObjects for converting & getting data from the ZDATE.
    So please give the formulas for each InfoObject.
    I will assign the points
    bye
    rizwan

    Hi ,
    Try this for month and year in Transfer structure .
    zyear = zdate+0(4).
    zmonth = zdate+4(2).
    For quarter since it will be depend of what kind of fiscal period you are using.. say for ex april - march.
    For Week... whether you want find it based on calender year or fiscal period.
    Regards
    Balaji

  • I have used Firefox for over a year. For some reason it quit working and I can't seem to fix it. I uninstalled and reinstalled the download and it's still not working. When I click on the icon it says unable to connect.

    I have used Firefox for over a year. For some reason it quit working and I can't seem to fix it. I uninstalled and reinstalled the download and it's still not working. When I click on the icon it says unable to connect.

    Yes, if you repurchase it you may lose your progress. The exception would be a game that stored all your progress on a server under your ID
    If you want to retain your progress you have two choices:
    1. Don't apply the update.
    2. Use your fathers account password to update the game.

  • SELECTION SCREEN FIELD FOR MONTH AND YEAR

    Hi All.
    We are developing a 'Monthly Sales Tax(payable) Report.
    they want the report based on the date(in the selection screen it will come only month and year only.).Depends on that month and year for that select-options ,it will pick up the record.
    like if, jan 2005  to march 2006.
    then it will  pick up from 01.01 .20005 to 31.03.2006  records.
    Can any body help me to resolve this.
    Thanks in advance,
    Regards,
    Venkat

    Hi Venkat,
    Copy the following code.
    DATA :  ws_billfrom    TYPE dats,
            ws_billto      TYPE dats.
    DATA : mon TYPE fcltx.
    SELECT-OPTIONS: s_month FOR mon
                MATCHCODE OBJECT zsdhtch_sh_mnth
                OBLIGATORY. "o get values for F4
    PARAMETER :  p_year LIKE bkpf-gjahr
                 MATCHCODE OBJECT zsdhtch_sh_year
                 OBLIGATORY.
    RANGES : s_date FOR sy-datum.
    DATA : ws_fcmnr TYPE fcmnr.
    START-OF-SELECTION.
      SELECT SINGLE mnr
             INTO ws_fcmnr
             FROM t247
             WHERE ltx = s_month-low.
      CONCATENATE p_year ws_fcmnr '01' INTO ws_billfrom.
      CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
           EXPORTING
                iv_date             = ws_billfrom
           IMPORTING
                ev_month_begin_date = ws_billfrom
                ev_month_end_date   = ws_billto.
      s_date-low = ws_billfrom.
      s_date-high = ws_billto.
      s_date-sign = 'I'.
      s_date-option = 'BT'.
      IF NOT s_month-high IS INITIAL.
        SELECT SINGLE mnr
               INTO ws_fcmnr
               FROM t247
               WHERE ltx = s_month-high.
        CONCATENATE p_year ws_fcmnr '01' INTO ws_billfrom.
        CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
             EXPORTING
                  day_in            = ws_billfrom
             IMPORTING
                  last_day_of_month = ws_billto.
        s_date-high = ws_billto.
      ENDIF.
      APPEND s_date.
      WRITE s_date.
    You can write your select statement here.  
      select * from dbtable where date in s_date.
    If 'HR_JP_MONTH_BEGIN_END_DATE' is nto there in your server, you can use 'RP_LAST_DAY_OF_MONTHS' in both cases.
    Regards,
    Susmitha.
    Dont forget to reward points for  useful answers

  • F4 option for Month and Year

    hi
    In Selection Screen i have Month and Year as input.....
    How to give "F4" Option for both Month and Year?
    Regards
    Smitha

    hi,
    this will help u get the month in f4 help .
    similarly u can fill up the itab for year and get that f4 help too i guess.
    TABLES: T247 ,
            DFIES.
    PARAMETERS:P_MONTH LIKE T247-MNR.
    DATA: BEGIN OF ITAB OCCURS 0,
    MNR LIKE T247-MNR,
    KTX LIKE T247-KTX,
    END OF ITAB .
    DATA : LT_FIELDS TYPE TABLE OF DFIES,
           LWA_FIELD TYPE DFIES.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MONTH.
      SELECT MNR
             KTX
      FROM T247 INTO CORRESPONDING FIELDS OF TABLE ITAB
      WHERE SPRAS = 'EN'.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD    = 'P_MONTH'
          DYNPPROG    = SY-CPROG
          DYNPNR      = SY-DYNNR
          DYNPROFIELD = 'MNR'
          VALUE_ORG   = 'S'
        TABLES
          VALUE_TAB   = ITAB
          FIELD_TAB   = LT_FIELDS.

  • First month and year relevancy for COI

    When transferring the data from legacy system to ECC/BCS system, what is the context in the ‘Year and period of first data entry’ will help the COI process.
    Suppose the go live is on Jan 2008, is it put the first month and year as 001,2008.
    How this impacts BCS ,particularly COI functionality in future if the data of starting in BCS as first month and year.
    How does this impact the future execution of the function.

    Venkat,
    do you mean Year & Period of 1st Collection fields in the Companies screen?
    If yes, then the answer is very easy. If you have clicked on the 1st field description and then press F1, you would get the following help:
    Year of First Data Collection
    Attribute of the consolidation unit, which specifies the first period for which reported financial data can be entered or collected for that consolidation unit.
    You are able to record reported financial data in the period of first entry and the year of first entry, even if posting and entry is blocked.
    Dependencies
    In customizing of consolidation units, you specify the year of first entry along with the period of first entry.
    Regarding the periods.
    I usually start customization in the period that is definitely earlier than go-live period.
    Because:
    1. I need to upload beginning balances. Usually I do this upload in the last periods of the year prior to go-live. -- in order to make balance carryforward.
    2. In case of CoI I need to post and consolidate the history of capital. In periods prior go-live.
    Edited by: Eugene Khusainov on Apr 25, 2008 8:54 AM

  • ABAP Logic - This Month This Year to This Month Last Year problem

    Hi All,
    I have a following requirement ... the report currently compares This Month This Year to This Month Last Year. But this is not a valid comparison for the user until the end of the month is reached as only then is it comparing 2 full months. We would like to use a formula replacement path variable to work out which proportion of data we have for this month. ie. if its day 15, we have 50% of data (if there are 30 days in the month - this just an example), therefore we should only show 50% of This Month Last Years column so that the comparison between the 2 is sensical.
    So I'd like the formula variable to return a ratio or percentage which I can then use in a calculated key figure in the query to pro-rata the last year data.
    The query currently displays data by Fiscal Period, so when working out the ratio I would need to check which Fiscal Period we're in and also consider that the data is loaded every night, so on the 1st day of a Fiscal Period we are comparing everything up until yesterday.
    Can anyone see in problem with the logic of this, or better yet, has anyone done this before and maybe has some code for me? Is there another way I could be doing this?
    Edited by: Julius Bussche on Sep 19, 2008 4:31 PM

    Have you tried google for this Error Message...
    http://support.microsoft.com/kb/959077

  • Branching row to Monthly from (Monthly, Quarterly, Yearly)

    Hello all,
    I ended up having another problem, which is exact reverse of the problem posted by me earlier, more info is at:
    Re: Consolidating rows
    Consider following input data set:
    CREATE TABLE SABEGH_TEST
    PRODUCT VARCHAR2(100),
    TRADE_DATE DATE,
    PROMPT VARCHAR(30),
    PERIOD VARCHAR(10),
    PRICE DECIMAL(8,2)
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PROMPT','2012-04',34.75);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PM+1','2012-05',34.25);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PQ','2012-Q2',34.35);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PQ+1','2012-Q3',34.25);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PQ+2','2012-Q4',34.75);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PY','2013-CY',40);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PQ+3','2013-Q1',39.25);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PQ+4','2013-Q2',39.75);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PQ+5','2013-Q3',40.25);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PQ+6','2013-Q4',40.75);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PY+1','2014-CY',42.5);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PY+2','2015-CY',44.75);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PROMPT','2012-04',58.25);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PM+1','2012-05',58.75);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PQ','2012-Q2',58.63);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PQ+1','2012-Q3',59.75);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PQ+2','2012-Q4',61.85);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PY','2013-CY',68.64);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PQ+3','2013-Q1',64.55);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PQ+4','2013-Q2',67.4);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PQ+5','2013-Q3',70.05);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PQ+6','2013-Q4',72.55);
    INSERT INTO SABEGH_TEST VALUES('B',TRUNC(SYSDATE),'PY+1','2014-CY',75.64);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PY+2','2015-CY',78.14);
    So basically, the table contains Prices of a Product starting from Apr, 2012 going forward to Dec, 2015. If the price is same between consecutive months, those rows are merge into Quarters, Year and so on.
    i would like to have following output.
    A, 2012-04, 34.75
    A, 2012-05, 34.25
    A, 2012-06, 34.35
    A, 2012-07, 35.25
    A, 2012-08, 35.25
    A, 2012-09, 35.25
    A, 2012-10, 35.75
    A, 2012-11, 35.75
    A, 2012-12, 35.75
    A, 2013-01, 39.25
    A, 2013-02, 39.25
    A, 2013-03, 39.25
    A, 2013-04, 39.75
    A, 2013-05, 39.75
    A, 2013-06, 39.75
    A, 2013-07, 40.25
    A, 2013-08, 40.25
    A, 2013-09, 40.25
    A, 2013-10, 40.75
    A, 2013-11, 40.75
    A, 2013-12, 40.75
    A, 2014-01, 42.5
    A, 2014-02, 42.5
    A, 2014-03, 42.5
    A, 2014-04, 42.5
    A, 2014-05, 42.5
    A, 2014-06, 42.5
    A, 2014-07, 42.5
    A, 2014-08, 42.5
    A, 2014-09, 42.5
    A, 2014-10, 42.5
    A, 2014-11, 42.5
    A, 2014-12, 42.5
    A, 2015-01, 44.75
    A, 2015-02, 44.75
    A, 2015-03, 44.75
    A, 2015-04, 44.75
    A, 2015-05, 44.75
    A, 2015-06, 44.75
    A, 2015-07, 44.75
    A, 2015-08, 44.75
    A, 2015-09, 44.75
    A, 2015-10, 44.75
    A, 2015-11, 44.75
    A, 2015-12, 44.75
    So let me explain, how I got this o/p.
    The first and second insert statement has data for month 2012-04 and 2012-05, the third statement now contains row for Quarter (Q2), which is Apr, May and Jun; Since we already covered Apr and May, only Jun is left, so we assign 34.35 to 2012-06. Similarly we split Q1 (Jan, Feb, Mar) , Q3 (Jul, Aug, Sep) and Q4 (Oct, Nov, Dec). One thing to watch out is the row containing column PROMPT value as ‘PY’, this row has the average prices for all quarter (Q1 through Q4) for that year (2013-CY), in this example.
    The table contains multiple PRODUCTS per TRADE_DATE.
    Let me know, if you need more clarifications,
    Sabegh
    Edited by: getsaby on Jun 23, 2012 4:44 PM

    Thanks for your prompt reply. I am really sorry, if i was not clear with my question, so lets, start from the scratch. I am using Oracle 11g. Just to make it simple I used trunc(sysdate) for column TRADE_DATE. But the below data set now contains hard-coded date.
    CREATE TABLE SABEGH_TEST
    PRODUCT VARCHAR2(100),
    TRADE_DATE DATE,
    PROMPT VARCHAR(30),
    PERIOD VARCHAR(10),
    PRICE DECIMAL(8,2)
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PROMPT','2012-04',34.75);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PM+1','2012-05',34.25);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PQ','2012-Q2',34.35);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PQ+1','2012-Q3',34.25);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PQ+2','2012-Q4',34.75);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PY','2013-CY',40);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PQ+3','2013-Q1',39.25);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PQ+4','2013-Q2',39.75);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PQ+5','2013-Q3',40.25);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PQ+6','2013-Q4',40.75);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PY+1','2014-CY',42.5);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PY+2','2015-CY',44.75);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PROMPT','2012-04',58.25);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PM+1','2012-05',58.75);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PQ','2012-Q2',58.63);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PQ+1','2012-Q3',59.75);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PQ+2','2012-Q4',61.85);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PY','2013-CY',68.64);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PQ+3','2013-Q1',64.55);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PQ+4','2013-Q2',67.4);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PQ+5','2013-Q3',70.05);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PQ+6','2013-Q4',72.55);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PY+1','2014-CY',75.64);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PY+2','2015-CY',78.14);
    The required output is as follows, and this will be store in some table for reporting purposes.
    PRODUCT, TRADE_DATE, PERIOD , PRICE
    A,      14-JUN-2012 , 2012-04, 34.75
    A,      14-JUN-2012 , 2012-05, 34.25
    A,      14-JUN-2012 , 2012-06, 34.35
    A,      14-JUN-2012 , 2012-07, 35.25
    A,      14-JUN-2012 , 2012-08, 35.25
    A,      14-JUN-2012 , 2012-09, 35.25
    A,      14-JUN-2012 , 2012-10, 35.75
    A,      14-JUN-2012 , 2012-11, 35.75
    A,      14-JUN-2012 , 2012-12, 35.75
    A,      14-JUN-2012 , 2013-01, 39.25
    A,      14-JUN-2012 , 2013-02, 39.25
    A,      14-JUN-2012 , 2013-03, 39.25
    A,      14-JUN-2012 , 2013-04, 39.75
    A,      14-JUN-2012 , 2013-05, 39.75
    A,      14-JUN-2012 , 2013-06, 39.75
    A,      14-JUN-2012 , 2013-07, 40.25
    A,      14-JUN-2012 , 2013-08, 40.25
    A,      14-JUN-2012 , 2013-09, 40.25
    A,      14-JUN-2012 , 2013-10, 40.75
    A,      14-JUN-2012 , 2013-11, 40.75
    A,      14-JUN-2012 , 2013-12, 40.75
    A,      14-JUN-2012 , 2014-01, 42.5
    A,      14-JUN-2012 , 2014-02, 42.5
    A,      14-JUN-2012 , 2014-03, 42.5
    A,      14-JUN-2012 , 2014-04, 42.5
    A,      14-JUN-2012 , 2014-05, 42.5
    A,      14-JUN-2012 , 2014-06, 42.5
    A,      14-JUN-2012 , 2014-07, 42.5
    A,      14-JUN-2012 , 2014-08, 42.5
    A,      14-JUN-2012 , 2014-09, 42.5
    A,      14-JUN-2012 , 2014-10, 42.5
    A,      14-JUN-2012 , 2014-11, 42.5
    A,      14-JUN-2012 , 2014-12, 42.5
    A,      14-JUN-2012 , 2015-01, 44.75
    A,      14-JUN-2012 , 2015-02, 44.75
    A,      14-JUN-2012 , 2015-03, 44.75
    A,      14-JUN-2012 , 2015-04, 44.75
    A,      14-JUN-2012 , 2015-05, 44.75
    A,      14-JUN-2012 , 2015-06, 44.75
    A,      14-JUN-2012 , 2015-07, 44.75
    A,      14-JUN-2012 , 2015-08, 44.75
    A,      14-JUN-2012 , 2015-09, 44.75
    A,      14-JUN-2012 , 2015-10, 44.75
    A,      14-JUN-2012 , 2015-11, 44.75
    A,      14-JUN-2012 , 2015-12, 44.75
    B,      14-JUN-2012 , 2012-04, 58.25
    B,      14-JUN-2012 , 2012-05, 58.75
    B,      14-JUN-2012 , 2012-06, 58.63
    B,      14-JUN-2012 , 2012-07, 59.75
    B,      14-JUN-2012 , 2012-08, 59.75     
    B,      14-JUN-2012 , 2012-09, 59.75     
    B,      14-JUN-2012 , 2012-10, 61.85     
    B,      14-JUN-2012 , 2012-11, 61.85     
    B,      14-JUN-2012 , 2012-12, 61.85     
    B,      14-JUN-2012 , 2013-01, 64.55     
    B,      14-JUN-2012 , 2013-02, 64.55     
    B,      14-JUN-2012 , 2013-03, 64.55     
    B,      14-JUN-2012 , 2013-04, 67.4     
    B,      14-JUN-2012 , 2013-05, 67.4     
    B,      14-JUN-2012 , 2013-06, 67.4     
    B,      14-JUN-2012 , 2013-07, 70.05
    B,      14-JUN-2012 , 2013-08, 70.05
    B,      14-JUN-2012 , 2013-09, 70.05
    B,      14-JUN-2012 , 2013-10, 72.55
    B,      14-JUN-2012 , 2013-11, 72.55
    B,      14-JUN-2012 , 2013-12, 72.55
    B,      14-JUN-2012 , 2014-01, 75.64
    B,      14-JUN-2012 , 2014-02, 75.64
    B,      14-JUN-2012 , 2014-03, 75.64
    B,      14-JUN-2012 , 2014-04, 75.64
    B,      14-JUN-2012 , 2014-05, 75.64
    B,      14-JUN-2012 , 2014-06, 75.64
    B,      14-JUN-2012 , 2014-07, 75.64
    B,      14-JUN-2012 , 2014-08, 75.64
    B,      14-JUN-2012 , 2014-09, 75.64
    B,      14-JUN-2012 , 2014-10, 75.64
    B,      14-JUN-2012 , 2014-11, 75.64
    B,      14-JUN-2012 , 2014-12, 75.64
    B,      14-JUN-2012 , 2015-01, 78.14
    B,      14-JUN-2012 , 2015-02, 78.14
    B,      14-JUN-2012 , 2015-03, 78.14
    B,      14-JUN-2012 , 2015-04, 78.14
    B,      14-JUN-2012 , 2015-05, 78.14
    B,      14-JUN-2012 , 2015-06, 78.14
    B,      14-JUN-2012 , 2015-07, 78.14
    B,      14-JUN-2012 , 2015-08, 78.14
    B,      14-JUN-2012 , 2015-09, 78.14
    B,      14-JUN-2012 , 2015-10, 78.14
    B,      14-JUN-2012 , 2015-11, 78.14
    B,      14-JUN-2012 , 2015-12, 78.14
    I still didn't understand what you meant by "You still haven't explained how the various columns in your table affect the results", based upon the output data, i don't think any columns will affect the results. I am just interested in the above output format, with those four columns (PRODUCT, TRADE_DATE, PERIOD, PRICES)
    Thanks,
    Sabegh

  • Display dates with zeros for month, day, year.

    I have a date coming from a database as an int (20021215 means 12/15/2002). If the database gives me a "0", meaning no date value is assigned, then it should be displayed as "00/00/0000". The following code snippet works for the non-zero int database values ...
    public static String formatDisplayDate(int date) {
        String dateAsString = null;
        if (date == 0) {
            dateAsString = "00000000";
        else {
            dateAsString = Integer.toString(date);
        String strYear = dateAsString.substring(0,4);
        String strMonth = dateAsString.substring(4,6);
        String strDay = dateAsString.substring(6);
        int year = Integer.parseInt(strYear);
        int month = (Integer.parseInt(strMonth)) - 1;
        int day = Integer.parseInt(strDay);
        DateFormat myFormat = DateFormat.getDateInstance(DateFormat.SHORT);
        Calendar cal = myFormat.getCalendar();
        cal.set(year, month, day);
        Date myDate = cal.getTime();
        String formattedDate = myFormat.format(myDate);
        return formattedDate;
    }Although I didn't really expect the zero values case to work, I am not sure how to implement it. How would I go about building a string using all zeros and still have it automatically display in the correct locale format?
    Any help is appreciated.

    Thank you for your response. I agree a blank field would be better, but I think the "zeros" format is there to give the user an idea of expected date entry formatting, not that they'll necessarily follow it. I have made a few changes per your suggestions (shown below for the record, minus the exception handling), and it works perfectly.
    public static String formatExternalDate8(int date) {
      String dateAsString = null;
      if (date == 0) {
        dateAsString = "00010101";
      else {
        dateAsString = Integer.toString(date);
      int year = Integer.parseInt(dateAsString.substring(0,4));
      int month = (Integer.parseInt(dateAsString.substring(4,6))) - 1;
      int day = Integer.parseInt(dateAsString.substring(6));
      DateFormat myFormat = DateFormat.getDateInstance(DateFormat.SHORT);
      Calendar cal = myFormat.getCalendar();
      cal.set(year, month, day);
      Date myDate = cal.getTime();
      String formattedDate = myFormat.format(myDate);
      if (date == 0) {
        formattedDate = formattedDate.replace('1', '0');
      return formattedDate;
    }Thanks again for your assistance.

  • F4 help for month and Year field in ztable please

    I have created a ztable. 
    The first field in my ztable is a primary key field and it holds MM/YYYY(eg.  08/2011).
    How ever my requirement is when ever we want to see the output, uer wants F4 help on that fields and when he selects the range , the ztable should display the values in that range.
    For eg.
    1). if user selects   01/2011  to 08/2011 using F4 Help,
    2). then the ztables should display all the records in that range.
    Thanks in advance for your help.
    Best regards,Sam
    Moderator message : Spec dumping / Outsourcing is not allowed.  Thread locked.
    Edited by: Vinod Kumar on Aug 8, 2011 11:17 AM

    Hi Sam,
    Create an F4 help using this FM
    l_t_date" has month and date
    l_f_programm = sy-repid.
        l_f_dynnr    = sy-dynnr.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield         = 'Date'"Field name of coloum of value tab
            dynpprog         = l_f_programm
            dynpnr           = l_f_dynnr
            dynprofield      = <>"Screen field name'
            value_org        = 'S'
            callback_program = l_f_programm
            callback_form    = ''
          TABLES
            value_tab        = l_t_date"Value table for date and month
    *      FIELD_TAB        = L_T_RETURN
            return_tab       = l_t_return_tab
          EXCEPTIONS
            parameter_error  = 1
            no_values_found  = 2
            OTHERS           = 3.
        READ TABLE l_t_return_tab INDEX 1.
        IF  sy-subrc = 0 .
        <fields> = l_t_return_tab-fieldval.
        ENDIF.
    Regards,
    Amit
    then filter the ztable accordingly

  • FM for month and year to Fiscal year period

    Hello ABAP Experts,
    Please suggest a FM to convert month+year to fiscal year period.
    Suggestions appreciated.
    Thanks in advance,
    BWer

    use the function moduleGM_GET_FISCAL_YEAR
    pass date and fiscal year variant as 24..
    see all the values of the fiscal year variant in the table T009
    Check with fm FI_PERIOD_DETERMINE
    Thanks
    Seshu

Maybe you are looking for

  • File to SOAP scenario question???

    Hi,experts let's take source system is A,target system is B. I have a File to soap scenario using BPM,the scenario is send file request(from A) to PI,PI will be communicating target system(B) with soap(syn).After that, PI receives the soap response a

  • Large TIF file errors/erratic performance

    Sorry for the redundancy, but I can't seem to find any clear answer on what the max file size (either dimension or MB) is before Aperture fails entirely. I'm scanning medium format on a Nikon LS-9000, which is resulting in ~8500x10500 TIF files of ~1

  • TREX Active Index - Which index is really being used?

    We are using ISA E-Commerce 5.0 for ERP 6.0. We run the ISA_CATALOG_REPLICATION program as an hourly job to create indexes in TREX. We add items to our catalog several times a day. Our variant is set to keep 5 indexes. 1. Where do I verify which inde

  • Help with syncing iPad/HTC Evo 4g/Outlook 2007

    Hello all. I've got a mass syncing problem that could be from one of three main items. My computer has Windows 7, uses office 2007. I have an iPad. I have an Evo 4g by HTC. I use Microsoft Exchange running Server 2003. We have 3 other evo 4g's using

  • Need a quote on creating a site search engine cfc

    Ok, this is what I have set up and you get the idea on what I am trying to accomplish. I have a table of my database called 'members' Amongst other items I have columns called: state: varchar(2) service: TinyInt keywords: LongText When people sign up