Show selected data in a selection screen.

Hi, ABAPers.
I've made a selection screen with a pushbutton which launches a ALV to make a certain selection criteria (based on pairs of two data). Is it there an easy way of showing (via a list, an ALV embeded into the Sel Screen, etc.) the data selected in a way of giving information to the customer.
Thanks in advance for your wise help.
Regards.

yes , you can make search help based on your requirements.
1. crate data base view ( make joins of required tables e.g.. kna1, lfa1 ....)
2.Create search help which will call your view.( selection method ( your view)
3. in your program call this search help
DATA: BEGIN OF rp_return OCCURS 0.
        INCLUDE STRUCTURE ddshretval.
DATA: END OF rp_return.
PARAMETERS: kunnr TYPE kunnr.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
      tabname    = 'KNA1'
      fieldname  = 'KUNNR'
      searchhelp = 'ZSH_your'
    TABLES
      return_tab = rp_return.
  kunnr = rp_return-fieldval.

Similar Messages

  • Analyzer 6.1.1 Not showing all data in 800x600 PC screen settings

    I have a user not able to see the whole Analyzer view due to their client pc settings for screen size being set at 800x600. I created the Anazler views with my setting at 1024x768. I need the Analyzer server to make all of the views to be 100% instead of using pixels.

    Hi man. Put de border and the proprierts to ajust fit screen. So, when the user open in 800x600, the report will ajust automaticaly in the screen.Regards,Gustavo Santade

  • Show input after selecting date in datepicker

    Hi
    I'm using apex 4.1.1
    And i want to use a Date Picker item on my page. This works, but.. When a user selects a date you can see the date highlighted. But in the "textarea"corresponding tot the datepicker is not showing the date. This shows the date after clicking the close button.
    I would like to show the date directly after selecting a new date. Does anyone know how?

    I am having the same issue - and wondering if this is a bug, or the functionality that we expect is not possible?
    It seems that when using a date picker field (in our case, for a field that requires a timestamp), when you click on a day in the calendar, the chosen date is not reflected in the field until the user clicks the 'close' button.
    I would expect this to be how it SHOULD work - the user chooses a date and time from the picker popup, and it is instantly reflected in the value displayed in the field. Then the user can click 'close'.
    Alternatively, if this is expected behaviour, then maybe the button should be renamed to something like 'select' which would be more appropriate and infer that the date will now be updated in the field.

  • How to get the opening balances for lessthan selected date in cubes.

    Hi All,
    my task is to get the opening balances for the selected date.
    Ex: If I select date say 31-1-2013, I should get the sum of values which are less than the selected date.
    in sql:
    select sum(balance) from banktrans where banktrans.transdate < 31-1-2013;
    BankTable                            BankTrans
    BankId                               BankId
                                            balance
                                            transdate
    BankTable (records):
    SCB
    BankTrans(records):
    a) SCB, 15000, 10-02-2013
    b) SCB, 20000, 31-01-2014
    c) SCB, 50000, 21-09-2012
    If I select date as 31-01-2014, I should get the value as 65000 
    If I select date as 10-02-2013, I should get the value as 50000
    Date will be dynamic selection from years months days hirearchy ( time dimension)
    How can i achieve this?  
    any help is much appreciated.
    Thanks,
    Rakesh

    Dear David,
    I've tried the below with static date but i'm not getting the values which are sum of less than the given date.
    I've given 1st jan 2013 as static date and I need to get the sum of values which are less than the 1st jan date.
    CREATE
    MEMBER
    CURRENTCUBE.[Measures].[OPENBALANCE]
    AS
    Sum({Null:[Time].[Years
    Quarters Months Weeks Days].[Days].&[2013-01-01T00:00:00]},[Measures].[AmountCur]]),
    FORMAT_STRING
    = "Standard",
    VISIBLE
    = 1
    can you plz check the above once and guide me.
    Thankyou,
    Rakesh

  • Error when selecting date range in query designer

    hi all,
    when iam trying to select date range in query designer like 01.04.2009 to 10.04.2009 it has to select only that dates where as it is selecting all the dates in between those like 010.04.2009,01.03.2009,01.02.2009.why this is happening ,iam unable to understand.plzz help me in this issue.
    Vamshi D Krishna

    hi ,
    i have created a variable as you told but no use.still i have to select the dates manuallyone after the other.for more user friendly can i have a calander where i can select date ranges.is it posible to have calander for selecting date ranges instead selecting dates one by one,if posible i request you to give  the detailed steps.plzz guide me in this issue.thanks in advance.
    Vamshi D Krishna

  • IPhone - ABPersonViewController Not Showing My Data

    I've been struggling with this one for a few days now. Hopefully it's something simple that I've been missing...
    I have a basic app that uses the PeoplePickerController to show a list of contacts. That works. I select a contact and the view goes away. That works fine. I persist the ABRecordRef. That seems to work fine as well. The next step is where I'm having a few issues. I'm using the ABPersonViewController to show the data for the selected contact. It comes up and for some reason it won't show all of the contacts data. I'm using the displayProperties on the controller to tell it what to display but it doesn't work... For a contact that has multiple email address, multiple phone numbers, a nickname, etc... I'm only seeing the first, last, and nick name of the contact... Any Ideas?
    Here's my code:
    From the .h file:
    NSMutableArray *properties;
    From the .m file:
    The two blocks below aren't directly next to each other. Block One is being set in the peoplePickerNavigationController: method. Block Two is from a showPersonViewer method which is called behind a button click.
    Block One:
    properties = [[NSMutableArray alloc] init];
    [properties addObject:[NSNumber numberWithInt:kABPersonPhoneProperty]];
    [properties addObject:[NSNumber numberWithInt:kABPersonNicknameProperty]];
    [properties addObject:[NSNumber numberWithInt:kABPersonFirstNamePhoneticProperty]];
    [properties addObject:[NSNumber numberWithInt:kABPersonLastNamePhoneticProperty]];
    [properties addObject:[NSNumber numberWithInt:kABPersonMiddleNamePhoneticProperty]];
    [properties addObject:[NSNumber numberWithInt:kABPersonOrganizationProperty]];
    [properties addObject:[NSNumber numberWithInt:kABPersonJobTitleProperty]];
    [properties addObject:[NSNumber numberWithInt:kABPersonDepartmentProperty]];
    [properties addObject:[NSNumber numberWithInt:kABPersonEmailProperty]];
    [properties addObject:[NSNumber numberWithInt:kABPersonBirthdayProperty]];
    [properties addObject:[NSNumber numberWithInt:kABPersonNoteProperty]];
    Block Two:
    ABPersonViewController *personController = [[ABPersonViewController alloc] init];
    personController.displayedPerson = selectedContactRecord;
    personController.allowsEditing = YES;
    //personController.addressBook = abRef;
    personController.personViewDelegate = self;
    personController.displayedProperties = properties;
    [[self navigationController] pushViewController: personController animated: YES];
    [personController release];

    As in the manual page 49:
    Call forwarding, call waiting, and caller ID
    The following information applies only to GSM networks. For CDMA networks, contact your carrier for information about enabling and using these features. See support.apple.com/kb/HT4515.
    Turn call forwarding on or off: Go to Settings > Phone > Call Forwarding. The Call Forwarding icon ( ) appears in the status bar when call forwarding is on. You must be in range of the cellular network when you set iPhone to forward calls, or calls won’t be forwarded. FaceTime calls are
    not forwarded.
    Turn call waiting on or off: Go to Settings > Phone > Call Waiting. If you’re on a call and call waiting is turned off, incoming calls go directly to voicemail.
    Turn caller ID on or off: Go to Settings > Phone > Show My Caller ID.

  • I am attempting to have cells use data from a selective month from the year before so that I can show actual from the prio. years each month.

    I am attempting to have cells use data from a selective month from the year before so that I can show actual from the prio. year each month. I need to create a spreedsheet using the the Acutlas from the year-to-date and from last year-to-date, but need to report each month.

    Hi Tony,
    Answering your question would be easier given a screen shot of the source table and one of what you want the summary table to look like.
    Is the data you want for each month in a single cell o the source table, or does the summary table need to collect February's data (for example) from several cells and do some math with those numbers before presenting them on the summary table?
    Regards,
    Barry

  • Date problem in selection screen

    hi all,
    in my selection screen i have two select options as follows
    select-options: s_budat for anek-budat obligatory,  (report date)
    s_budat1 for anek-budat. (posting date)
    means first date i have taken as report date and second as posting date.
    my requirement is that whenever i should input some date i should get data
    between those dates.
    so how to do this bcoz i have done it and it is woking fine for the first but not working for the second.
    so plz guide me and bfor answering keep in mind that my both dates refers to same field.
    i have given logic like this
    IF s_budat-high IS INITIAL.                                            
    v_year = s_budat-low+0(4).                                             
    v_mon = s_budat-low+4(2).                                              
    IF v_mon LT '04'.                                                      
    v_year = v_year - 1.                                                   
    CONCATENATE v_year '0401' INTO v_low.                                  
    v_high = s_budat-low.                                                  
    ELSE.                                                                  
    CONCATENATE v_year '0401' INTO v_low.                                  
    v_high = s_budat-low.                                                  
    ENDIF.                                                                 
    ELSE.                                                                  
    v_low = s_budat-low.                                                   
    v_high = s_budat-high.                                                 
    ENDIF.                                                                 
      i want in the same way s_budat1 should also work ie if we give some range of date in it then it should show data in between those dates only but it is now showing full data irrespective of date entered in second select option.
    Message was edited by:
            sanjeev singh

    hi dinesh as u told me i have already done like this but i am not getting the output
    when i am entering data in second selectoption s_budat1 it is still considering the
    date entered according to date entered in s_budat select option.
    i have debuged it also in which i found that after taking date from s_budat
    it is not going to s_budat it is simply jumping out.
    so here i am sending my code if u can solve it then i will be gratefull to u.
    REPORT Z_FA_ACQ  NO STANDARD PAGE HEADING
                     LINE-SIZE 400
                     LINE-COUNT 65(3).
    TYPE-POOLS : SLIS.
    TABLES : ANLA,               "ASSET MASTER RECORD-SEGMENT
             ANLZ,               "time dependent asset allocations
             ANLC,               "Asset-value fields
             ANEP,               "Asset line item
             ANEK.               "Document header asset posting
    *Internal Table Declaration
    DATA : BEGIN OF T_ANLA OCCURS 0,
           BUKRS LIKE ANLA-BUKRS,  "Company code
           ANLN1 LIKE ANLA-ANLN1,  "Main asset number
           ANLN2 LIKE ANLA-ANLN2,  "Asset sub-number
           AKTIV LIKE ANLA-AKTIV,  "Asset capitalization date
           TXT50 LIKE ANLA-TXT50,  "Name of asset
           ZUGDT LIKE ANLA-ZUGDT,  "Asset value date of the first posting
           MENGE LIKE ANLA-MENGE,  "Quantity
           MEINS LIKE ANLA-MEINS,  "Base unit of measure
           ANLKL LIKE ANLA-ANLKL,  "Asset class
           END OF T_ANLA.
    DATA : BEGIN OF T_ANLZ OCCURS 0,
           BUKRS LIKE ANLZ-BUKRS,
           ANLN1 LIKE ANLZ-ANLN1,
           ANLN2 LIKE ANLZ-ANLN2,
           GSBER LIKE ANLZ-GSBER,   "Business area
           KOSTL LIKE ANLZ-KOSTL,   "Cost center
           STORT LIKE ANLZ-STORT,   "Asset location
           RAUMN LIKE ANLZ-RAUMN,   "Room
           KFZKZ LIKE ANLZ-KFZKZ,   "License plate no. of vehichle
           WERKS LIKE ANLZ-WERKS,   "Plant
           END OF T_ANLZ.
    DATA : BEGIN OF T_ANEK OCCURS 0,
           BUKRS LIKE ANEK-BUKRS,
           ANLN1 LIKE ANEK-ANLN1,
           ANLN2 LIKE ANEK-ANLN2,
           BELNR LIKE ANEK-BELNR,
           BUDAT LIKE ANEK-BUDAT,   "Posting date in document
           BZDAT LIKE ANEK-BZDAT,   "Asset value date
           BLDAT LIKE ANEK-BLDAT,   "Document date in document
           BUZEI LIKE ANEK-BUZEI,   "Line item number within the accounting
           XBLNR LIKE ANEK-XBLNR,   "Reference document number
           SGTXT LIKE ANEK-SGTXT,    "Item text
           GJAHR LIKE ANEK-GJAHR,    "Fiscal year
           LNRAN LIKE ANEK-LNRAN,"Sequence number of asset line items in fis
           END OF T_ANEK.
    DATA : BEGIN OF T_ANLC OCCURS 0,
           BUKRS LIKE ANLC-BUKRS,
           ANLN1 LIKE ANLC-ANLN1,
           ANLN2 LIKE ANLC-ANLN2,
           ANSWL LIKE ANLC-ANSWL, "Acquisition value reducing transactions f
           NAFAP LIKE ANLC-NAFAP, "Planned ordinary depreciation for the yea
           AAFAP LIKE ANLC-AAFAP,"Planned unplanned depreciation for the yea
           AFABE LIKE ANLC-AFABE, "Real depreciation area
           GJAHR LIKE ANLC-GJAHR, "Fiscal year
           END OF T_ANLC.
    DATA : BEGIN OF T_ANEP OCCURS 0,
           BUKRS LIKE ANEP-BUKRS,
           ANLN1 LIKE ANEP-ANLN1,
           ANLN2 LIKE ANEP-ANLN2,
           ANBTR LIKE ANEP-ANBTR,  "Amount posted
           NAFAB LIKE ANEP-NAFAB, "Ordinary depreciation on transactions
           GJAHR LIKE ANEP-GJAHR, "Fiscal year
           AFABE LIKE ANEP-AFABE, "Real depreciation area (01)
           BELNR LIKE ANEP-BELNR, "Accounting document number
            BUZEI LIKE ANEP-BUZEI,"Line item number within the accounting do
            LNRAN LIKE ANEP-LNRAN,"Sequence number of asset line items in fi
           END OF T_ANEP.
    DATA : BEGIN OF IT_FINAL OCCURS 0,
            ANLN1 LIKE ANLA-ANLN1,
            ANLN2 LIKE ANLA-ANLN2,
            AKTIV LIKE ANLA-AKTIV,
            TXT50 LIKE ANLA-TXT50,
            ZUGDT LIKE ANLA-ZUGDT,
            MENGE LIKE ANLA-MENGE,
            MEINS LIKE ANLA-MEINS,
            GSBER LIKE ANLZ-GSBER,
            KOSTL LIKE ANLZ-KOSTL,
            STORT LIKE ANLZ-STORT,
            RAUMN LIKE ANLZ-RAUMN,
            KFZKZ LIKE ANLZ-KFZKZ,
            BELNR LIKE ANEK-BELNR,
            BUDAT LIKE ANEK-BUDAT,
            BZDAT LIKE ANEK-BZDAT,
            BLDAT LIKE ANEK-BLDAT,
            XBLNR LIKE ANEK-XBLNR,
            SGTXT LIKE ANEK-SGTXT,
            ANBTR LIKE ANEP-ANBTR,
            NAFAB LIKE ANEP-NAFAB,
            AAFAP LIKE ANLC-AAFAP,
            ANLKL LIKE ANLA-ANLKL,
            GJAHR LIKE ANEK-GJAHR,
            END OF IT_FINAL.
    End of Internal table Declaration
    *added for date logic by sanjeev
    DATA:V_LOW LIKE SY-DATUM,
        V_HIGH LIKE SY-DATUM,
        V_MON(02) TYPE N,
        V_YEAR(04) TYPE N.
    *end of date logic
    *Declaration for Field Catalog
    DATA : LINE_COLOR(4) TYPE C.
    DATA : FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
           GD_LAYOUT TYPE SLIS_LAYOUT_ALV.
    DATA: EVENT  TYPE SLIS_ALV_EVENT OCCURS 0 WITH HEADER LINE.
    End of field catalog Declaration
    *Selection Screen Desing
    SELECTION-SCREEN : BEGIN OF BLOCK B_FA WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_BUKRS FOR ANLA-BUKRS DEFAULT 'ML',
                     S_ANLN1 FOR ANLA-ANLN1,
                     S_ANLN2 FOR ANLA-ANLN2 VISIBLE LENGTH 2.
    SELECTION-SCREEN : END OF BLOCK B_FA.
    *SKIP 2.
    SELECTION-SCREEN : BEGIN OF BLOCK B_FA1 WITH FRAME TITLE TEXT-002.
    SELECT-OPTIONS : S_ANLKL FOR ANLA-ANLKL VISIBLE LENGTH 4,
                     S_AKTIV FOR ANLA-AKTIV,
                     S_GSBER FOR ANLZ-GSBER VISIBLE LENGTH 4,
                     S_KOSTL FOR ANLZ-KOSTL VISIBLE LENGTH 8,
                     S_WERKS FOR ANLZ-WERKS VISIBLE LENGTH 3,
                     S_STORT FOR ANLZ-STORT,
                     S_BUDAT FOR ANEK-BUDAT DEFAULT SY-DATUM.
    SELECTION-SCREEN : END OF BLOCK B_FA1.
    *SKIP 2.
    SELECTION-SCREEN : BEGIN OF BLOCK B_FA2 WITH FRAME TITLE TEXT-003.
    SELECT-OPTIONS : S_BUDAT1 FOR ANEK-BUDAT.
    SELECTION-SCREEN : END OF BLOCK B_FA2.
    *End of Selection screen design
    Logic for date
    IF S_BUDAT-HIGH IS INITIAL.
    V_YEAR = S_BUDAT-LOW+0(4).
    V_MON = S_BUDAT-LOW+4(2).
    IF V_MON LT '04'.
    V_YEAR = V_YEAR - 1.
    CONCATENATE V_YEAR '0401' INTO V_LOW.
    V_HIGH = S_BUDAT-LOW.
    ELSE.
    CONCATENATE V_YEAR '0401' INTO V_LOW.
    V_HIGH = S_BUDAT-LOW.
    ENDIF.
    *ELSE.
    *v_low = s_budat-low.
    *v_high = s_budat-high.
    ELSEIF S_BUDAT1-HIGH IS INITIAL.
    V_YEAR = S_BUDAT1-LOW+0(4).
    V_MON = S_BUDAT1-LOW+4(2).
    IF V_MON LT '04'.
    V_YEAR = V_YEAR - 1.
    CONCATENATE V_YEAR '0401' INTO V_LOW.
    V_HIGH = S_BUDAT1-LOW.
    ELSE.
    CONCATENATE V_YEAR '0401' INTO V_LOW.
    V_HIGH = S_BUDAT1-LOW.
    ENDIF.
    ELSE.
    V_LOW = S_BUDAT1-LOW.
    V_HIGH = S_BUDAT1-HIGH.
    ENDIF.
    end of logic
    *Start-of-selection
    SELECT BUKRS ANLN1 ANLN2 AKTIV TXT50 ZUGDT MENGE MEINS ANLKL
           FROM ANLA
           INTO CORRESPONDING FIELDS OF TABLE T_ANLA
           WHERE ANLN1 IN S_ANLN1
           AND   ANLN2 IN S_ANLN2
           AND   BUKRS IN S_BUKRS
           AND   ANLKL IN S_ANLKL
           AND   AKTIV IN S_AKTIV
          AND   ZUGDT >= V_LOW  " added to get the date logic work
          AND   ZUGDT <= V_HIGH. " added to get the date logic work
    CHECK : NOT T_ANLA[] IS INITIAL.
    SELECT BUKRS ANLN1 ANLN2 GSBER KOSTL STORT RAUMN KFZKZ
           FROM ANLZ
           INTO CORRESPONDING FIELDS OF TABLE T_ANLZ
           FOR ALL ENTRIES IN T_ANLA
           WHERE ANLN1 = T_ANLA-ANLN1
           AND   ANLN2 = T_ANLA-ANLN2
           AND   BUKRS = T_ANLA-BUKRS
           AND   GSBER IN S_GSBER
           AND   KOSTL IN S_KOSTL
           AND   WERKS IN S_WERKS.
    SELECT BUKRS ANLN1 ANLN2 BELNR BUDAT XBLNR SGTXT GJAHR BZDAT BLDAT BUZEI
            LNRAN FROM ANEK
           INTO CORRESPONDING FIELDS OF TABLE T_ANEK
           FOR ALL ENTRIES IN T_ANLA
           WHERE ANLN1 = T_ANLA-ANLN1
           AND   ANLN2 = T_ANLA-ANLN2
           AND   BUKRS = T_ANLA-BUKRS
           AND   BUDAT >= V_LOW    " added to get the date logic work
          AND   BUDAT <= V_HIGH  " added to get the date logic work
    AND BZDAT >= V_LOW AND BZDAT <= V_HIGH
    AND BLDAT >= V_LOW AND BLDAT <= V_HIGH.
    SELECT BUKRS ANLN1 ANLN2 ANSWL NAFAP AAFAP AFABE GJAHR
           FROM ANLC
           INTO CORRESPONDING FIELDS OF TABLE T_ANLC
           FOR ALL ENTRIES IN T_ANLA
           WHERE ANLN1 = T_ANLA-ANLN1
           AND   ANLN2 = T_ANLA-ANLN2
           AND   BUKRS = T_ANLA-BUKRS
           AND   AFABE = '01'.
    SELECT BUKRS ANLN1 ANLN2 ANBTR NAFAB GJAHR AFABE BELNR BUZEI LNRAN
           FROM ANEP
           INTO CORRESPONDING FIELDS OF TABLE T_ANEP
           FOR ALL ENTRIES IN T_ANLA
           WHERE ANLN1 = T_ANLA-ANLN1
           AND   ANLN2 = T_ANLA-ANLN2
           AND   BUKRS = T_ANLA-BUKRS
           AND   AFABE = '01'
    AND BZDAT >= V_LOW AND BZDAT <= V_HIGH.
    SORT T_ANLC BY BUKRS ANLN1 ANLN2.
    SORT T_ANLZ BY BUKRS ANLN1 ANLN2 GSBER.
    SORT T_ANEP BY BUKRS ANLN1 ANLN2 BELNR BUZEI LNRAN.
    LOOP AT T_ANLA.
      MOVE : T_ANLA-ANLN1 TO IT_FINAL-ANLN1,
             T_ANLA-ANLN2 TO IT_FINAL-ANLN2,
             T_ANLA-AKTIV TO IT_FINAL-AKTIV,
             T_ANLA-TXT50 TO IT_FINAL-TXT50,
             T_ANLA-MENGE TO IT_FINAL-MENGE,
             T_ANLA-MEINS TO IT_FINAL-MEINS.
      READ TABLE T_ANLZ WITH KEY BUKRS = T_ANLA-BUKRS
                                 ANLN1 = T_ANLA-ANLN1
                                gsber = t_anlz-gsber
                                 ANLN2 = T_ANLA-ANLN2 BINARY SEARCH.
      IF SY-SUBRC EQ 0.
        MOVE : T_ANLZ-GSBER TO IT_FINAL-GSBER,
               T_ANLZ-KOSTL TO IT_FINAL-KOSTL,
               T_ANLZ-STORT TO IT_FINAL-STORT,
               T_ANLZ-RAUMN TO IT_FINAL-RAUMN,
               T_ANLZ-KFZKZ TO IT_FINAL-KFZKZ.
      ENDIF.
      READ TABLE T_ANLC WITH KEY BUKRS = T_ANLA-BUKRS
                                 ANLN1 = T_ANLA-ANLN1
                                 ANLN2 = T_ANLA-ANLN2 BINARY SEARCH.
      IF SY-SUBRC EQ 0.
        MOVE : T_ANLC-AAFAP TO IT_FINAL-AAFAP.
      ENDIF.
    added to get the date logic work
    LOOP AT T_ANEK WHERE BUKRS = T_ANLA-BUKRS AND ANLN1 = T_ANLA-ANLN1 AND
        ANLN2 = T_ANLA-ANLN2 AND BZDAT >= V_LOW AND BZDAT <= V_HIGH
    AND BLDAT >= V_LOW AND BLDAT <= V_HIGH
    AND BUDAT >= V_LOW AND BUDAT <= V_HIGH.
        MOVE : T_ANEK-BELNR TO IT_FINAL-BELNR,
               T_ANEK-BUDAT TO IT_FINAL-BUDAT,
               T_ANEK-BZDAT TO IT_FINAL-BZDAT,
               T_ANEK-GJAHR TO IT_FINAL-GJAHR,
               T_ANEK-XBLNR TO IT_FINAL-XBLNR,
               T_ANEK-SGTXT TO IT_FINAL-SGTXT.
    READ TABLE T_ANEP WITH KEY BUKRS = T_ANEK-BUKRS
                               ANLN1 = T_ANLA-ANLN1
                               BELNR = T_ANEK-BELNR
                               LNRAN = T_ANEK-LNRAN
                               ANLN2 = T_ANLA-ANLN2.
    MOVE : T_ANEP-ANBTR TO IT_FINAL-ANBTR,
            T_ANEP-NAFAB TO IT_FINAL-NAFAB.
        APPEND IT_FINAL.
      ENDLOOP.
    ENDLOOP.
    PERFORM BUILD_FIELDCATALOG.
    PERFORM DISPLAY_ALV_REPORT.
    PERFORM BUILD_LAYOUT.
          FORM BUILD_FIELDCATALOG                                       *
    FORM BUILD_FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'ANLN1'.
      FIELDCATALOG-SELTEXT_M = 'ASSET MAIN NO'.
      FIELDCATALOG-COL_POS   = 0.
      FIELDCATALOG-OUTPUTLEN = 14.
      FIELDCATALOG-EMPHASIZE = 'X'.
      FIELDCATALOG-KEY       = 'X'.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'ANLN2'.
      FIELDCATALOG-SELTEXT_M = 'SUB NO'.
      FIELDCATALOG-COL_POS   = 1.
      FIELDCATALOG-OUTPUTLEN = 7.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'AKTIV'.
      FIELDCATALOG-SELTEXT_M = 'CAP.DATE'.
      FIELDCATALOG-COL_POS   = 2.
      FIELDCATALOG-OUTPUTLEN = 10.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'TXT50'.
      FIELDCATALOG-SELTEXT_M = 'NAME'.
      FIELDCATALOG-COL_POS   = 3.
      FIELDCATALOG-OUTPUTLEN = 50.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'BZDAT'.
      FIELDCATALOG-SELTEXT_M = 'ASSET VALUE DATE'.
      FIELDCATALOG-COL_POS   = 4.
      FIELDCATALOG-OUTPUTLEN = 17.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'MENGE'.
      FIELDCATALOG-SELTEXT_M = 'QTY'.
      FIELDCATALOG-COL_POS   = 5.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'MEINS'.
      FIELDCATALOG-SELTEXT_M = 'UNITS'.
      FIELDCATALOG-COL_POS   = 6.
      FIELDCATALOG-OUTPUTLEN = 3.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'GSBER'.
      FIELDCATALOG-SELTEXT_M = 'BA'.
      FIELDCATALOG-COL_POS   = 7.
      FIELDCATALOG-OUTPUTLEN = 4.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'KOSTL'.
      FIELDCATALOG-SELTEXT_M = 'COST CENTER'.
      FIELDCATALOG-COL_POS   = 8.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'STORT'.
      FIELDCATALOG-SELTEXT_M = 'LOCATION'.
      FIELDCATALOG-COL_POS   = 9.
      FIELDCATALOG-OUTPUTLEN = 10.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'RAUMN'.
      FIELDCATALOG-SELTEXT_M = 'ROOM'.
      FIELDCATALOG-COL_POS   = 10.
      FIELDCATALOG-OUTPUTLEN = 10.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'KFZKZ'.
      FIELDCATALOG-SELTEXT_M = 'LICENSE PLATE NO'.
      FIELDCATALOG-COL_POS   = 11.
      FIELDCATALOG-OUTPUTLEN = 20.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'BELNR'.
      FIELDCATALOG-SELTEXT_M = 'DOC NO'.
      FIELDCATALOG-COL_POS   = 12.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'BUDAT'.
      FIELDCATALOG-SELTEXT_M = 'POSTING DATE'.
      FIELDCATALOG-COL_POS   = 13.
      FIELDCATALOG-OUTPUTLEN = 15.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'XBLNR'.
      FIELDCATALOG-SELTEXT_M = 'REF NO'.
      FIELDCATALOG-COL_POS   = 14.
      FIELDCATALOG-OUTPUTLEN = 25.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'SGTXT'.
      FIELDCATALOG-SELTEXT_M = 'TEXT'.
      FIELDCATALOG-COL_POS   = 15.
      FIELDCATALOG-OUTPUTLEN = 50.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'ANBTR'.
      FIELDCATALOG-SELTEXT_M = 'ACQ VAL'.
      FIELDCATALOG-DATATYPE     = 'CURR'.
      FIELDCATALOG-DO_SUM = 'X'.
      FIELDCATALOG-COL_POS   = 16.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'NAFAB'.
      FIELDCATALOG-SELTEXT_M = 'ORD.DEP'.
      FIELDCATALOG-DO_SUM = 'X'.
    FIELDCATALOG-DATATYPE     = 'CURR'.
      FIELDCATALOG-COL_POS   = 17.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'AAFAP'.
      FIELDCATALOG-SELTEXT_M = 'UNPLAN DEP'.
      FIELDCATALOG-COL_POS   = 18.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
    ENDFORM.
          FORM BUILD_LAYOUT                                             *
    FORM BUILD_LAYOUT.
      GD_LAYOUT-ZEBRA = 'X'.
      GD_LAYOUT-INFO_FIELDNAME = 'LINE_COLOR'.
    ENDFORM.
          FORM DISPLAY_ALV_REPORT                                       *
    FORM DISPLAY_ALV_REPORT.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
          EXPORTING
            I_INTERFACE_CHECK        = ' '
             I_CALLBACK_PROGRAM       = SY-REPID
            i_callback_pf_status_set = '100'
            i_callback_user_command  = sy-ucomm
            I_STRUCTURE_NAME         =
             IS_LAYOUT                = GD_LAYOUT
               IT_FIELDCAT              = FIELDCATALOG[]
            IT_EXCLUDING             =
            IT_SPECIAL_GROUPS        =
            IT_SORT                  =
            IT_FILTER                =
            IS_SEL_HIDE              =
            I_DEFAULT                = 'X'
            I_SAVE                   = ' '
            IS_VARIANT               = ' '
            IT_EVENTS                =
            IT_EVENT_EXIT            = EVENT[]
            IS_PRINT                 =
            I_SCREEN_START_COLUMN    = 0
            I_SCREEN_START_LINE      = 0
            I_SCREEN_END_COLUMN      = 0
            I_SCREEN_END_LINE        = 0
       IMPORTING
            E_EXIT_CAUSED_BY_CALLER  =
            ES_EXIT_CAUSED_BY_USER   =
           TABLES
                T_OUTTAB                 = IT_FINAL
           EXCEPTIONS
                PROGRAM_ERROR            = 1
                OTHERS                   = 2.
    ENDFORM.

  • Requirement date in ME2O selection screen.

    Hi Friends,
    I see that requirement date in ME2O selection screen is no where available in the output . Is this equal to PO creation date?

    Actually in ALV grid list out put, the document date is the Requirement date.
    If you analysis the same, you will find the solution.
    See I have analysis the same.
    In my ME2O transaction, I can see the document date as follow for the Purchase order number
    4700048844.
    Here the document date is showing 20.12.2011.
    When I go to to ME23N to display the PO number 4700048844, I can see the document date is different.
    But when I checked the requirement date, then I can see the same date for the PO number.

  • How to get data based on selection screen on the output

    Hi Expert,
    Can any one tell me based on material number on slection screen correspondind field i.e on selection scren
    WERKS,MTART,EKGRP,DISPO,BESKZ,MATNR should also get. i.e if i give mtart on selection screen corresponding to material number mtart shoul get.
    NOTE: I HAVE WRITTEN SELECT QUERY FOR TWO TABLES I.E MARA,MBEW.
    Below is my code
    TABLES:MARA,MARC,MARD.
    TYPES: BEGIN OF ty_mbew,
          matnr TYPE matnr,
          bwkey TYPE werks_d,
          lbkum TYPE lbkum,
          END OF ty_mbew.
    TYPES: BEGIN OF ty_close_stk,
           mandt TYPE mandt,
           matnr TYPE matnr,
           cdate TYPE zwkdate,
           bwkey TYPE werks_d,
           meins TYPE meins,
           zlbkum TYPE lbkum,
           WERKS  TYPE WERKS,      "
           MTART  TYPE MTART,
           EKGRP  TYPE EKGRP,
           DISPO TYPE  DISPO,
           BESKZ TYPE BESKZ,      
           salk3 TYPE salk3,
           END OF ty_close_stk.
    TYPES: BEGIN OF ty_mbewh,      
           matnr type matnr,
           bwkey type bwkey,
           lbkum type lbkum,
           lfmon type lfmon,
           end of ty_mbewh.        
    TYPES: begin of wa_matnr,
                matnr type matnr,
           end of wa_matnr.
    dATA : it_matnr type standard table of wa_matnr.
    DATA : it_close_stk_del TYPE STANDARD TABLE OF zclose_stock WITH HEADER LINE.
    DATA : it_close_stk TYPE STANDARD TABLE OF ty_close_stk,
           it_mbew TYPE STANDARD TABLE OF ty_mbew,
           wa_close_stk TYPE ty_close_stk,
           wa_mbew TYPE ty_mbew,
           it_mbewh TYPE STANDARD TABLE OF ty_mbewh,            "89286
           wa_mbewh TYPE ty_mbewh.                              "89286
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001.
    89286*********************
    SELECT-OPTIONS: WERKS FOR MARD-WERKS,    "Plant
                    MTART FOR MARA-MTART,    "Material type
                    EKGRP FOR MARC-EKGRP,    "Purchasing group
                    DISPO FOR MARC-DISPO,    "MRP Controller
                    BESKZ FOR MARC-BESKZ,    "Procurement type
                    s_MATNR FOR MARA-MATNR.  "Material number
    ************89286***************
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE TEXT-002.
    select MATNR INTO CORRESPONDING FIELDS OF TABLE IT_MATNR
           FROM MARA
           WHERE MATNR IN S_MATNR.
    SELECT matnr
             bwkey
             lbkum
             salk3            "MSK25072011
             FROM mbew INTO CORRESPONDING FIELDS OF TABLE it_mbew
            WHERE lfgja = fis_year
              where matnr  in s_matnr
               and  bwkey in werks.

    Hi
    Perhaps I don't understand yet, but you have several select-options in your selection-screen, every select-options can be assigned to different tables (MARA, MARC, MBEW), so you need to decide if to use a JOIN o single SELECTION in order to get all data in one step or many steps.
    IF you need to do several selections, these have to be linked in order to get the data for the records selected in the previous selection, something like that:
    SELECT matnr mtart INTO TABLE t_mara
        FROM mara
          WHERE matnr IN s_matnr
            AND mtart IN s_mtart.
      IF sy-subrc = 0.
        SELECT matnr werks ekgrp INTO TABLE t_marc
          FROM marc
            FOR ALL ENTRIES IN t_mara
              WHERE natnr = t_mara-matnr
                AND ekgrp IN s_ekgrp.
        IF sy-subrc = 0.
          SELECT matnr bwkey lbkum salk3 INTO TABLE t_mbew
            FROM mbew
              FOR ALL ENTRIES IN t_marc
                WHERE matnr = t_marc-matnr
                  AND bwkey = t_marc-werks.
        ENDIF.
      ENDIF.
    But you can use an single join with all tables
    Max

  • FISCAL year from Date  in the Selection Screen.

    Hi Folks,
    Is there any function module which returns the Fiscal year if we provide the date in ranges.
    I mean, I have a select option for date in the selection screen.So,if a user enters the date say 01042007 01042007 it should return the corresponding fiscal year.
    Kindly let me know if anyone here has any idea regarding this.
    Thanks,
    K.Kiran.

    Hello,
    Check these FM's
    FTIS
    FTI_FISCAL_YEAR_MONTH_GET
    KBPA                           Budget/Plan - application-specific
    KBPA_GET_START_FISCAL_YEAR     Determine Start Year for Funds Management
    KBPA_GET_START_FISCAL_YEAR_OPT
    Vasanth

  • Setting default date range in selection screen when executing as batch job.

    Hi Guys,
    I have one report to be scheduled as weekly batch job and one of the selection screen field is date range. If i set this report to run today then the date range will be from one week back date(Lower value) to today date(Higher value). When it runs for next week(Already scheduled as weekly batch job) the date range should be like this
    Lower value = today date
    higher value= next week run date.
    How can i achieve this functionality. Is it possible through Dynamic variant concept?. Rest of the selection screen fields have some default values and should not change.
    <REMOVED BY MODERATOR>
    Thanks in advance,
    Vinod.
    Edited by: Alvaro Tejada Galindo on Feb 22, 2008 3:52 PM

    Hi Vinod,
    Would suggest you to this.
    Create two parameters : p_start_date and p_end_date of type sy-datum on your selection screen , instead of a range.
    Now goto create a variant from SE38 for the report.
    While creating the variant, mark the "Selection Variable" checkbox for the two parameters and click on "Selection Variables".
    Select the option "D: Dynamic date calculation" for both the date fields.
    For p_start_date - select the option "Current Date"
    For p_end_date  - select the option "Current date +/- ??? days" and put 7 in the pop up.
    Hence what you have done now is, set up a dynamic variant, where p_start_date will have sy-datum and p_end_date will have sy-datum + 7, everytime the job runs.
    Now, in the program, first step after START-OF-SELECTION code the following:
    RANGES: r_date FOR sy-datum.
    start-of-selection.
    refresh r_date.
    r_date-sign = 'I'. r_date-option = 'BT'.
    r_date-low = p_start_date. r_date-high = p_end_date.
    append r_date.
    Hence this way, you would have built your range and use it as needed.
    Cheers,
    Aditya

  • HT1420 What will the screen show when I deauthorize all computers?   Will it show them and then I select the ones to authorize?  I don't want to undo or be unable to re-authorize the ones I still want.

    What will the screen show when I deauthorize all computers?   Will it show them and then I select the ones to authorize?  I don't want to undo or be unable to re-authorize the ones I still want.

    "What will the screen show when I deauthorize all computers?  "
    Nothing.  Not sure what you mean.
    " Will it show them and then I select the ones to authorize? "
    No.
    You have to authorize a computer from that computer.  You cannot authorize a computer from another computer.

  • Report data showing a date 1 day greater than selection formula end date

    Hi All,
       I have a report that contains the following selection:
    date(dateadd("h",-{Calendar.EstUTCOffset}, {tbl.TimeStamp})) >= date(minimum({?Date})) and date(dateadd("h",-{Calendar.EstUTCOffset}, {tbl.TimeStamp})) <= date(maximum({?Date})) and dayofweek(dateadd("h",-{Calendar.EstUTCOffset}, {tbl.TimeStamp})) in {?DayOfWeek} and
        time(dateadd("h",-{Calendar.EstUTCOffset}, {tbl.TimeStamp})) >= time({?Start Time}) and
        time(dateadd("h",-{Calendar.EstUTCOffset}, {tbl.TimeStamp})) < time({?End Time})
    When I view the report, if my date(maximum({?Date}))  is 5/1/2011, the report shows data for 5/2/2011. I can't seem to figure out why my report is generating data for a date that is 1 day greater than my end date.
    Any suggestions would be appreciated.
    Thank you in advance,

    No need to send SQL as dates are not in WHERE clause.
    It someting to do with the way crystal handles datetimes
    If you want to see dates up to an including 6/2/2011 if its a date time crystal will create a where caluse
    Datetimefield <= 6/3/2011 00:00:00
    Looks like when this is converted to date its stayin as 6/3/2011
    Sorry can't think of any solutions, also I live in UK so just about to leave, hopefully some one else may be able to offer a solution.
    Ian

  • Java-specific way to show and select dates on a calendar in JSP?

    I need my JSP to show a calendar and let a user choose a date. However, I know this is normally done in Javascript and I don't want to use Javascript ever. Is there an all-Java/HTML way to do this? Thanks.
    Ken

    try dis code out this may help....
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="iCardsErrorPage.jsp" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
         <title>Choose Day</title>
         <script language="javascript">   
              function gotoPage()
                   var year = document.selectdate.year.options[document.selectdate.year.selectedIndex].value;
                   var month = document.selectdate.month.options[document.selectdate.month.selectedIndex].value;
                   if ((month=="")||(month==null))
                        alert("Please enter a month and year.");
                        return false;
                   if ((year=="")||(year==null))
                        alert("Please enter a month and year.");
                        return false;
                   document.location = 'selectdate.jsp?year='+year+'&month='+month+'&formName=<%= request.getParameter("formName")%>&where=<%= request.getParameter("where")%>';
         </script>
    </head>
    <body bgcolor="#999999">
         <%@ page import="java.util.Calendar" %>
         <%@ page import="java.util.Date" %>
         <%@ page import="java.util.GregorianCalendar" %>
         <form name="selectdate">
         <%
              Calendar calendar = new GregorianCalendar();
              Date trialTime = new Date();
              calendar.setTime(trialTime);
              Calendar calendar2 = new GregorianCalendar();
              calendar2.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), 1);
              int today = calendar.get(Calendar.DAY_OF_MONTH);
              int currentYear = calendar.get(Calendar.YEAR);
              String Month = "";
              int daynum= 1;
              int column = 1;
              int row = 1;
              int year = 0;
              int month = 0;
              String y = request.getParameter("year");
              if (y==null)
                   year = calendar2.get(Calendar.YEAR);
              else
                   year = Integer.parseInt(y);
                   calendar2.set(year,calendar2.get(Calendar.MONTH),1);
              String m = request.getParameter("month");
              if (m==null)
                   month = calendar2.get(Calendar.MONTH);
              else
                   month = Integer.parseInt(m);
                   calendar2.set(calendar2.get(Calendar.YEAR),month,1);
              int firstDay = calendar2.get(Calendar.DAY_OF_WEEK);
              switch (month)
                   case Calendar.JANUARY: Month = "January";break;
                   case Calendar.FEBRUARY: Month = "February";break;
                   case Calendar.MARCH: Month = "March";break;
                   case Calendar.APRIL: Month = "April";break;
                   case Calendar.MAY: Month = "May";break;
                   case Calendar.JUNE: Month = "June";break;
                   case Calendar.JULY: Month = "July";break;
                   case Calendar.AUGUST: Month = "August";break;
                   case Calendar.SEPTEMBER: Month = "September";break;
                   case Calendar.OCTOBER: Month = "October";break;
                   case Calendar.NOVEMBER: Month = "November";break;
                   case Calendar.DECEMBER: Month = "December";break;
              }      %>
                <TABLE border="0" cellpadding="0" cellspacing="0" WIDTH="200" ALIGN="LEFT" >
                  <TR>
                         <TD ALIGN="CENTER" COLSPAN="4" >
                             <SELECT NAME="month" SIZE="1" ONCHANGE="gotoPage();return false;">
                                  <OPTION VALUE="0" <% if (month==0){%>SELECTED<% } %>>Jan</OPTION>
                                  <OPTION VALUE="1" <% if (month==1){%>SELECTED<% } %>>Feb</OPTION>
                                  <OPTION VALUE="2" <% if (month==2){%>SELECTED<% } %>>Mar</OPTION>
                                  <OPTION VALUE="3" <% if (month==3){%>SELECTED<% } %>>Apr</OPTION>
                                  <OPTION VALUE="4" <% if (month==4){%>SELECTED<% } %>>May</OPTION>
                                  <OPTION VALUE="5" <% if (month==5){%>SELECTED<% } %>>Jun</OPTION>
                                  <OPTION VALUE="6" <% if (month==6){%>SELECTED<% } %>>Jul</OPTION>
                                  <OPTION VALUE="7" <% if (month==7){%>SELECTED<% } %>>Aug</OPTION>
                                  <OPTION VALUE="8" <% if (month==8){%>SELECTED<% } %>>Sep</OPTION>
                                  <OPTION VALUE="9" <% if (month==9){%>SELECTED<% } %>>Oct</OPTION>
                                  <OPTION VALUE="10" <% if (month==10){%>SELECTED<% } %>>Nov</OPTION>
                                  <OPTION VALUE="11" <% if (month==11){%>SELECTED<% } %>>Dec</OPTION>
                           </SELECT>
                             <SELECT NAME="year" SIZE="1" ONCHANGE="gotoPage();return false;">
                                  <OPTION VALUE="<%= currentYear-2 %>" <% if (year==currentYear-2){%>SELECTED<% } %>><%= currentYear-2 %></OPTION>
                                  <OPTION VALUE="<%= currentYear-1 %>" <% if (year==currentYear-1){%>SELECTED<% } %>><%= currentYear-1 %></OPTION>
                                  <OPTION VALUE="<%= currentYear %>" <% if (year==currentYear){%>SELECTED<% } %>><%= currentYear %></OPTION>
                                  <OPTION VALUE="<%= currentYear+1 %>" <% if (year==currentYear+1){%>SELECTED<% } %>><%= currentYear+1 %></OPTION>
                                  <OPTION VALUE="<%= currentYear+2 %>" <% if (year==currentYear+2){%>SELECTED<% } %>><%= currentYear+2 %></OPTION>
                           </SELECT>
                        </TD>
                  </TR>
                  <TR valign="top" >
                         <TD valign="top" align="left" class="header" WIDTH="20%"> </TD>
                         <TD valign="middle" colspan="2" ALIGN="CENTER" class="header" WIDTH="60%">
                             <font style="font-family:Verdana, Arial, Helvetica, sans-serif" style="font-size:12px" style="font-weight:normal" style="color:#FFFFCC" style="vertical-align:middle"><%= Month %> <%= year %></font>
                        </TD>
                         <TD valign="top" align="right" class="header" WIDTH="20%"> </TD>
                  </TR>
                  <TR>
                         <TD CLASS="FORMTABLE" COLSPAN="4">
                             <TABLE border="0" cellpadding="0" cellspacing="0" WIDTH="100%" >
                             <!--<TR>
                                       <TD CLASS="FORMTABLE" ALIGN="RIGHT"><B>Year</B></TD>
                                  <TR>
                                       <TD COLSPAN="7" ALIGN=center CLASS="FORMTABLE"><B>
                                       <%= Month %> <%= year %></B></TD>
                                  </TR>-->
                                  <TR>
                                    <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Sun</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Mon</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Tue</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Wed</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Thu</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Fri</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Sat</font></TD>
                                  </TR>
                                  <TR>
                               <%
                                       int maxdays = calendar2.getActualMaximum(Calendar.DAY_OF_MONTH);
                                       String max = String.valueOf(maxdays);
                                       while (daynum<=maxdays)
                                            if (row==1)
                                                 for (int j=1; j<firstDay; j++)
                                                 { %>
                                                   <TD ALIGN=center> </TD>
                                                   <%
                                                           column++;
                                            while ((column<8)&&(daynum<=maxdays))
                                            { %>
                                              <TD ALIGN="CENTER"><font style="font-family:Verdana, Arial, Helvetica, sans-serif" style="color:#FFFFFF" style="font-size:14px" style="cursor:hand"><A onclick="sendDate('<%= daynum %>'); return false;"
                                                 <%
                                                      if ((calendar.get(Calendar.MONTH))==(calendar2.get(Calendar.MONTH)) &&
                                                         (calendar.get(Calendar.YEAR))==(calendar2.get(Calendar.YEAR)) &&
                                                         (calendar.get(Calendar.DAY_OF_MONTH))==daynum)
                                                      { %>
                                                           CLASS="RED"
                                                  <% } %>><%= daynum %> </A></font></TD>
                                                   <%
                                                      column++;
                                                      daynum++;
                                            if (column!=8)
                                                 for (int j=column; j<8; j++)
                                                 { %>
                                                   <TD ALIGN="CENTER" > </TD>
                                         <%  }
                                            } %>
                                  </TR>
                                  <%
                                       if (daynum<maxdays)
                                       { %>
                                            <TR>
                                    <% }
                                       column=1;
                                       row++;
                                       } %>
                           </TABLE>
                        </TD>
                  </TR>
                </TABLE>

Maybe you are looking for

  • Problem migrating to new Mac mini Server from Time Machine Backup

    I sell my old Mac mini Server and after I purchase the new one (unibody). I had the Time Machine Backup but I'm not able to restore it to the new mac mini. I started it with the Server Install DVD into it and I went to Utility menu to choose "*Restor

  • Reclaiming Q Partition Space

    At the end of a backup and restore to a new internal HDD , I had the option to create factory media or reclaim the space occupied by the Q partition - I chose to create factory media, got a message that it didn't exist, but now I'm unable to reclaim

  • Partial rejection of some of lines in multiline cart for header level SC WF

    Hi, We are on SRM 7.1 ECS. We ahve configured the N step process level workflow for shopping cart at the header level(for entire document). The issue we are facing is doing partial rejection.Earlier in SRM 5,even though the header level worklfow was

  • How do I make images round - CS5 Photoshop

    I'm editing photographs of tabletop ceramics - plates, etc. and often images are shot off center and I have to make them round. I use the Filter Lens Correction Feature with some success and the Warp feature to fine tune - but it's all eyeballing the

  • Error With Ubuntu and windows 8 dual boot

    I have a levovo x240 and I had Ubuntu and windows 8 dual booted I removed the Ubuntu partition in windows partition modifier and when I restarted my computer it launch "grub rescue> " How do I boot into windows and stop this problem