Restriction of date selection in calender window

Hi,
How to restrict the calender dates selection in a calender window?
For suppose i want to restrict all future dates greater than current date. User shouldnt able to select any future dates.
Thanks,
Raghav

Thank You for all of your inputs.
AHP:
Here is the code that i had done based on AHP pseudocode... But ran into an error "E:Field "[/BIC/AZOLAMTOT00-COMPANY]" unknown."
$$ begin of routine - insert your code only below this line -
fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
to make monitor entries
TABLES: /bic/ods200.
DATA : lt_ods2 like /bic/ods200 occurs 0 with header line.
SELECT * from /bic/ods200 into table lt_ods2
for all entries in data_package
where [/bic/ods200-company] = data_package-[company]
and [/bic/ods200-chrt_accts] = data_package-[chrt_accts]
and [/bic/ods200-gl_account] = data_package-[gl_account]
and [/bic/ods200-ref_key3] = data_package-[ref_key3]
AND [/bic/ods200-ztotal] <> 0
ENDSELECT.
sort lt_zolamtot by [company] [chrt_accts][gl_account] [ref_key3] .
*DELETE ADJACENT DUPLICATES FROM lt_zolamtot comparing [company] [chrt_accts] *[gl_account] [ref_key3].
loop at data_package.
read table lt_zolamtot with key [company]=data_package-[company] [chrt_accts]=data_package-[chrt_accts] [gl_account]=data_package-[gl_account] [ref_key3]=data_package-[ref_key3].
data_package-ztotal = ztotal
data_package-loc_currcy = loc_currcy
if sy-subrc ne 0.
delete data_package.
endif.
endloop.
if abort is not equal zero, the update process will be canceled
ABORT = 0.
The requirement is to populate the ZTOTAL field and LOC_CURRCY into the Infocube, hence i have included the same.
Manfred: Please advise me on Binary search and how to code it.
$$ end of routine - insert your code only before this line -
Thank Again.
Regards,
RR

Similar Messages

  • Excute_query when new date selected from calender

    hi,
    i have a mater detail form. form is displaying current day values as default.
    i put a calendar to form for users can be select date.
    now,
    i want to excute_query when new date selected from calender.
    i writed below code to text_item(calendar) when_validate_item trigger but it nor woring
    .giving frm-40137 error.
    code is;
    :parameter.GUNLUK_TARIH := Name_In('PARAMATRELER.TARIH_SON');
    SET_RECORD_PROPERTY(1,'XXMOB_YAPBOZ_TAHTASI_GV',STATUS,QUERY_STATUS);
    go_block('XXMOB_YAPBOZ_TAHTASI_GV');
    DO_KEY('Execute_query');
    any help please
    best regards
    aykut

    I was thinking your date selected from CALENDAR ended in a list_item.
    I don't know I thinking that
    well,
    :master_block.itemdate is your text_item where calendar return date selected.
    and then , following Gerd's step
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :master_block.itemdate := calendar (.........);
    go_block ('master-block');
    execute_query;
    end;
    or set a global or parameter variable date selected from calendar :parameter. xxxxxx
    in a PRE-QUERY
    :master_block.itemdate := :parameter. xxxxxx
    and
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :parameter. xxxxxx := calendar( ....);
    go_block ('master-block');
    execute_query;
    end;
    regards

  • Date selection from calender.

    Hi,
    I have  created a report based n values in Cube. I have a selection criteria where date range(based on 0CALDAY) is to be filled.
    I have a requirement where is instead of user enter values manually, there should display a calender and user will pick up values from there.
    Is this possible. If it is how to do it.
    I am in BI7 NetWeaver 2004s.

    Hi Amiya,
    Thanks for Reply.
    well, this variable has been created on 0CALDAY which is a calender day. But, on clicking the selection screen, search helps pops up, but it contains the list of dates and direct manual entry, which we dont want.
    I have a requirement where on clicking search help a calender will pop up directly as it pop up in SAP R/3 and user will select values from there.
    Regards.

  • DateField: Restrict user to select date only from the calender control ??

    How can I restrict user to select date only by using the Calender control, not by typing.
    Abhinav

    Hi,
    This is working perfectly but user can enter or delete date into the text_item >>>through keyboard i want to restrict that they can only select date from calendarSet Insert allowed to 'NO' in property pallete of item ENTRY_DATE.
    In ON-ERROR Trigger::
    BEGIN
    DECLARE
    err_code CONSTANT NUMBER := error_code;
    err_type CONSTANT VARCHAR2(3) := error_type;
    BEGIN
    IF (err_type = 'FRM'
    AND err_code IN (40200)) THEN
    Message('Updates Not allowed, Please Select Your Date from Calendar');
    Message(' ');
    ELSE
    NULL;
    END IF;
    END;
    END;
    Thanks,
    Bhujendra

  • Popup window for data selection in maintenance view

    Hi,
    How to create popup window for data selection in maintenance view. For example when you go to view v_t510 in se16, there you will see a popup window to enter values. after you enter the values in that window, then data related to those values that you entered in the popup window will displayed.
    How can we do that for the custom maintenance view?
    Thanks in advance for your help guys.
    Regards,
    Srinivas.

    In your custom maintainace view, if you select the Data browser / Table view maintainace under the tab "Maint Status" as "Dispaly maintanence allowed with restriction" than system will give you popup to restrict by selection.
    Regards,
    Naimesh Patel

  • Sample code in Update Rule to restrict data selection?

    We used to restrict data selection in InfoPackage data selection, e.g., for company code range when loading data from a source system (e.g. EBP which is similar to R3), but somehow the company code range we set in InfoPackage data selection not working and we found actually it occurs on the source system side when running RSA3 on EBP side and input the company code range in RSA3 selection section, but still it extracts data beyond the company code range.  We don't understand why EBP data selection doesn't work, then we consider in update rule on BW to set the company code range.  We know in update rule, we can select Start Routine, formula, or routine to set the company code range.  But we would be appreciated if experts here can recommend which one is the most efficient to load data fast for data load performance reason and would be appreicated if you can let us know the sample code!
    Thanks in advance!

    hi Hari,
    I copy the whole code of the start routine below:
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    Includes to update generic objects
    INCLUDE rsbctgn_top .
    INCLUDE rsbctgn_update_rules .
    INCLUDE rsbctbbp_generic_objects.
      The following section is prepared for you if you compound
      the business partner 0BPARTNER with the
      Source System 0BBP_SYS_BP or if you compound the organizational
      Unit 0ORGUNIT with the source System 0BBP_SYS_BP
    TYPE-POOLS: RRSV.
    Data: L_HLP_CHAVL_CMP       TYPE RSCHAVL.
    DATA:
           L_S_DEP       TYPE RRSV_S_DEP,
           L_T_DEP       TYPE RRSV_T_DEP.
      End of compound
    DATA: l_s_errorlog        TYPE rssm_s_errorlog_int,
          l_hlp_chavl         TYPE rschavl.
    $$ end of global - insert your declaration only before this line   -
    The follow definition is new in the BW3.x
    TYPES:
      BEGIN OF DATA_PACKAGE_STRUCTURE.
         INCLUDE STRUCTURE /BIC/CS0BBP_CONF_TD_1.
    TYPES:
         RECNO   LIKE sy-tabix,
      END OF DATA_PACKAGE_STRUCTURE.
    DATA:
      DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    FORM startup
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
               MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
               DATA_PACKAGE STRUCTURE DATA_PACKAGE
      USING    RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
    to make monitor entries
    delete data_package where 0comp_code < 'X300' OR 0comp_code > 'X6ZZ'.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.

  • *.eml Time Stamp - Select File in Windows Explorer Changes the Modified Date

    The Windows Live Mail *.eml files time stamp is getting changed to the current date when the file is selected in the Windows Explorer! I save backup copies of important E-mails to folders on the Hard Drive and then synchronize them with the same folders on other LAN Hard Drives for backup archives. When these E-mail files are selected or opened from the Windows Explorer in the Windows 7 OPS the Modified Date Time Stamp is changed to the current date automatically! This action creates a real problem when doing later synchronizations of all of the folders! The date will not be the original date of the E-mail and the original file will be over copied with the file with the newest date stamp. I stopped Indexing on the *.eml files and that stopped the time stamp change when overcopy synchronization, but if the file is selected during a viewing in Windows Explorer then the Time Stamp is updated to the current date again! A solution to this problem would be greatly appreciated if anybody knows of one. Thanks - - - Shorto

    The Date and Timestamp changing issue in Windows 7 has a two part fix!
    1. Disable the Indexing of the *.eml file type in the Indexing Options located by Clicking on "Control Panel" -  "Indexing Options" - Advanced Button - File Types Tab - scroll down to the .eml file type and uncheck the Box then click OK to finish, so
    that the Email type of files won't be Indexed.
    2. Delete the Registry Entry listed below, be sure to Export and Save the original Key so it could be Restored if something goes wrong!  \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers
     and Delete the .eml entry
    That should fix the problem with the changing Date/Timestamp of Email Files. For more information read CarlS's WindowsSeven Fourm thread where I also have more input:
     http://www.sevenforums.com/browsers-mail/35334-eml-files-timestamps-updated-constantly.html
    This should give you a better understanding on the problem and the Fix. - - - Shorto

  • Date picker - is there a way to restrict the minuit select list to 1/4 hr

    Hi,
    When using date picker item with format 'DD-MON-YYYY HH24:MI',
    Is there a way to restrict the minuit select list on the calendar to 1/4 hr instead of 00 to 59. Example: 00,15,30,45
    Thank you,
    Francis

    Hold down command key to select multiple songs, then "Get Info", and you will modify all fields at the same time.

  • In RSA3, Data Selection is not Restricting the Data

    Hi Guys,
       In RSA3, if check the entries after providing the Selection Criteria, it is extracting all the Data.
    I tried for OSS Note. I didn't find any?
    Please refer this information:
    We load data from a source system EBP (similar to R3) to our BW system. The four ODSs (targets) we are using are:
    0BBP_SC (Shopping Cart - Individual Documents)
    0BBP_SCA (Approval Process for Shopping Cart - Single Documents)
    0BBP_INV (Invoice - Single Documents)
    0BBP_CON (Goods/Services Confirmation - Single Documents)
    And the four Datasources related to the above respectively are:
    0BBP_TD_SC_1
    0BBP_TD_SC_APPR_1
    0BBP_TD_INV_1
    0BBP_TD_CONF_1
    In the four InfoPackages related to the above, we use company code 0COMP_CODE (which corresponds to EBP field CO_CODE (Company Code in FI System) as data selection and the range, e.g., from X100 to X200, but somehow other company code ranges of data get in, e.g., Q001, Q100, 1000, and etc. What would cause the problem?
    Thanks
    Nagesh.

    Can you just try giving only one value instead of range and see what it comes?
    Ex: Company code = X100?
    regards,
    Hari

  • Select Record Between Date Gap-Oracle 11g, Windows 2008 server

    hello everyone,
    I have a sql query where I need to select only records with an 18 month gap between max(date) and previous date( no dates between max(date)
    and 18 month gap date), when I run the below query it should only select supid 130, not 120 (even though 120 does contain an 18 month gap date it also has a date that is less then the 18 month gap( '25-NOV-2012','DD-MON-YYYY').
    how would get the query to look back 18 months for the next date and evaluate the month_between.
    any help is greatly appreciated.
    example:
    create table supply(supID number(8), supply varchar2(20), supdate Date,supamount number(13,2));
    insert into supply values(100,'Tapes',to_date('01-AUG-2013','DD-MON-YYYY'),50.00);
    insert into supply values(100,'TV',to_date('01-APR-2013','DD-MON-YYYY'),250.00);
    insert into supply values(100,'Discs',to_date('25-DEC-2012','DD-MON-YYYY'),25.00);
    insert into supply values(120,'Tablets',to_date('25-AUG-2013','DD-MON-YYYY'),15.00);
    insert into supply values(120,'Paper',to_date('25-NOV-2012','DD-MON-YYYY'),35.00);
    insert into supply values(120,'Clips',to_date('20-NOV-2010','DD-MON-YYYY'),45.00);
    insert into supply values(120,'Binders',to_date('28-FEB-2012','DD-MON-YYYY'),25.00);
    insert into supply values(130,'Discs',to_date('25-JUL-2013','DD-MON-YYYY'),75.00);
    insert into supply values(130,'Calc',to_date('25-JAN-2012','DD-MON-YYYY'),15.00);
    insert into supply values(130,'Pens',to_date('15-DEC-2011','DD-MON-YYYY'),55.00);
       select * from supply p where to_char(p.supdate,'yyyy')='2013'
       and p.supid in(select s.supid from supply s where months_between(s.supdate,p.supdate)<-18)
         SUPID SUPPLY               SUPDATE    SUPAMOUNT
           120 Tablets              25-AUG-13         15
           130 Discs                25-JUL-13         75

    Something like this?
    select
    from (
    select
      supid
    , supply
    , supdate
    , supamount
    , lead(supdate) over (partition by supid order by supdate desc) ldate
    from supply
    where
    months_between(supdate,ldate) >= 18
    SUPID
    SUPPLY
    SUPDATE
    SUPAMOUNT
    LDATE
    130
    Discs
    07/25/2013
    75
    01/25/2012
    Ok. i see you want only he diff to max date.
    select
    from (
    select
      supid
    , supply
    , supdate
    , supamount
    , lead(supdate) over (partition by supid order by supdate desc) ldate
    , row_number() over (partition by supid order by supdate desc) rn
    from supply
    where
    months_between(supdate,ldate) >= 18
    and
    rn = 1
    Message was edited by: chris227
    extended

  • Need help in Data selection in Smartforms

    Hi All,
    this data selection is for displaying data in smartforms.
    I have a internal table passed on to the Smartforms where i have the Main item and its batches.
    posnr text
    10 line text1
    90004
    90005
    20 line text2
    90006
    90007
    And in the coding i have made the posnr for batches as 00000 for someother purpose.
    now i need to display a text after an item and its batches.
    like :
    Item Prodcode description Qty uom Picked Factor
    batchNo batch qty reel size to ship qty
    10 19501 material description 200 M 0 3
    Batch1 200 482448
    Batch2 200 482448
    Special instructions :
    i used the following code in the Smartforms to display the Text.
                                                                                    V_SPL = 'Special Line Instructions:'.
    V_INDEX1 = V_INDEX + 1.
    CLEAR IT_FINAL.
    READ TABLE IT_FINAL INDEX V_INDEX1.
    CLEAR V_INDEX1.
    IF IT_FINAL-POSNR > 0.
       CLEAR IT_FINAL.
       READ TABLE IT_FINAL INDEX V_INDEX.
       V_INDEX1 = '9999'.
                                                                                    V_ITEMTEXT = IT_FINAL-ITEMTEXT.
    V_PACKTEXT = IT_FINAL-PACKTEXT.
    ENDIF.
    V_INDEX = V_INDEX + 1.
    DESCRIBE TABLE IT_FINAL LINES V_LINE.
    IF V_INDEX > V_LINE.
       V_INDEX1 = '9999'.
    its ok now if the data in the internal table is like this without any batches.
    10
    20
    30
    if the data in the internal table is like :
    posnr text
    10 line text1
    0000
    0000
    0000
    20 line text2
    0000
    0000
    30 line text3
    0000
    it is not getting the data for the text.
    Actually in the code i have written to read the next record in the internal table and if it is greater than 0, i will write the TEXT before writing the next item.
    But if the next record is 0000, how to code it.
    and the main this is , the text has to be written only after writing the item and its batches.
    please tell me how to do this.
    Waiting for your replies.
    Vikki.

    Hi,
    Just use the internal table to print the data in main window.
    for first line which has not batchspitted(main line item) put condition as POSNR NE INITIAL.
    and for batch split items, you already made posnr as '0000',
    so put condition as POSNR eq INITIAL.
    I think this will solve your problem.
    Regards,
    S Raju.

  • Need help in data selection

    Hi All,
    this data selection is for displaying data in smartforms.
    I have a internal table passed on to the Smartforms where i have the Main item and its batches.
    posnr        text
    10            line text1               
    90004
    90005
    20           line text2
    90006
    90007
    And in the coding i have made the posnr for batches as 00000 for someother purpose.
    now i need to display a text after an item and its batches.
    like :
    Item    Prodcode           description                   Qty  uom     Picked   Factor
                batchNo           batch qty   reel size        to ship              qty
    10         19501            material description            200       M         0          3
                Batch1     200               482448
                Batch2     200               482448
    Special instructions :
    i used the following code in the Smartforms to display the Text.
    V_SPL = 'Special Line Instructions:'.
    V_INDEX1 = V_INDEX + 1.
    CLEAR IT_FINAL.
    READ TABLE IT_FINAL INDEX V_INDEX1.
    CLEAR V_INDEX1.
    IF IT_FINAL-POSNR > 0.
       CLEAR IT_FINAL.
       READ TABLE IT_FINAL INDEX V_INDEX.
       V_INDEX1 = '9999'.
                                                                                    V_ITEMTEXT = IT_FINAL-ITEMTEXT.
    V_PACKTEXT = IT_FINAL-PACKTEXT.
    ENDIF.
    V_INDEX = V_INDEX + 1.
    DESCRIBE TABLE IT_FINAL LINES V_LINE.
    IF V_INDEX > V_LINE.
       V_INDEX1 = '9999'.
    its ok now if the data in the internal table is like this without any batches.
    10
    20
    30
    if the data in the internal table is like :
    posnr         text
    10            line text1
    0000
    0000
    0000
    20            line text2
    0000
    0000
    30            line text3
    0000
    it is not getting the data for the text.
    Actually in the code i have written to read the next record in the internal table and if it is greater than 0, i will write the TEXT before writing the next item.
    But if the next record is 0000, how to code it.
    and the main this is , the text has to be written only after writing the item and its batches.
    please tell me how to do this.
    Waiting for your replies.
    Vikki.

    Hi,
    Just use the internal table to print the data in main window.
    for first line which has not batchspitted(main line item) put condition as POSNR NE INITIAL.
    and for batch split items, you already made posnr as '0000',
    so put condition as POSNR eq INITIAL.
    I think this will solve your problem.
    Regards,
    S Raju.

  • Make the data fit in 1 or 2 pages in Rpt as per the data selection- Hyp IR

    Hi,
    Request to provide me solution for the following issue at the earliest :
    On dashboard I'll have 3 dropdowns drp1,drp2,drp3 and 3 list boxes lb1,lb2,lb3. User selects value from drp1 and selected value can be placed in lb1 thru "=>" button. So any no. of values (less or more values) can be placed in lb1 selected from drp1. Similarly values selected from drp2 placed in lb2 and values selected from drp3 in lb3 thru "=>" buttons.
    After selecting process button I have to place the list box (lb1,lb2,lb3) values (Text) in Text Labels (tlb1,tlb2,tlb3) on the Report. First part of the report contains Pivot with some calculations. Pivot will increase or decrease horizontally. Vertically its size is fixed. Down the pivot, Text Labels tlb1,tlb2,tlb3 are placed down the other. Spring option has been used for tlb1,tlb2,tlb3.
    Now issue I am facing is If user selects more values from drp1,drp2,drp3 then in report tlb1,tlb2,tlb3 are expanding and I am getting the report with 2 pages. After that if user selcts less values from drp1,drp2,drp3 then the data selected getting fitted in single page of report but the 2nd page previously expanded remains exist. But user should not get this 2nd page blank. I tried to apply report grouping . But didn't worked.
    Please suggest me solution for this problem. Can I achieve this requirement if I use any other controls instead of text labels in Report ( less values single page more values 2 pages). Thanks.

    Thanks Eric for the response.
    Our requirement is, in a Production instance, not to allow a DB user (APPS/SYSTEM) to see the confidential data. For example, a user who has the APPS schema password should not be able to see the salary details. However allowing the application like forms/reports/jsp to present the actual data and not the masked data.
    I understand from your reply that the data masking feature CANNOT be used for this purpose as it is rebiulding the tables with the masked data. However we understand that the same feature can be used in a TEST/DEV environment so that we can restrict the developer who is working on the TEST/DEV instance, from accessing the confidential data.
    Any pointers to acheive our requirement will be highly helpful.
    Thanks for your time.
    Ramana.

  • How to write a routine in infopack to restrict a date range !!!!

    Hi
    I want to load the data for a speicific date range ,i.e , i want to load the data between created on some date range which is not in between the same range for changed on...so i want to restrict that date range for changed on....Please le tme know the routine logic to restrict a date range....
    regards...

    How to ... Write Infopackage selection Routine
    1.Create an Infopackage 2. Go to selections tab and choose Type: 6 u2013 ABAP Routine.You can see following available options(F4 Help).
    3. Give disruption, and hit enter, now you will move to following screen. 4. Write Code between begin of Routine and End of Routine.
    5. See below sample code to select date range from Previous 6 days to Current date.
    6. L_T_Range table is of Type structure RSSDLRANGE.
    a. RSSDLRANGE contains SIGN, OPTION, LOW, HIGH
    We need to populate these fields to pass range dynamically.
    Sample Code:
    ***$$ begin of routine - insert your code only below this line -
    Data: l_idx like sy-tabix.
    Data: date_low like sy-datum.
    Date_low = sy-datum u2013 6.u201D(To get 6 days back).
    read table l_t_range with key
    fieldname = 'CRDAT'.
    l_idx = sy-tabix.
    Pass Range values to L_T_Range Table.
    Move date_low to L_T_Range -Low.
    Move sy-datum to L_T_Range -High.
    L_T_Range -Sign = u2018Iu2019. *****(Here: I u2013 Include, E u2013 Exclude)
    L_T_Range -Option = u2018BTu2019.****( Here: BT u2013 Between )
    modify l_t_range index l_idx.
    p_subrc = 0.
    **$$ end of routine - insert your code only before this line -
    7. Syntax check and Save.
    Hope it Helps
    Srini

  • How to restrict the default selection of first row in ALV  in Webdynpro

    Hi Experts,
    In webdynpro i used ALV to display the bulk amount of datas under a view container. While running it ll cme by default selection on first row. how to restrict that.....

    Hi Vimal,
    Whenever we create nodes then by default the Initialization lead selection property of  node is always checked. That why in the alv by default the first row is selected.
    To restrict this default selection just unchecked the Initialization lead selection property of your node.
    Regard
    Manoj Kumar

Maybe you are looking for

  • Images showing in wrong place in IE put right in Fire fox

    Hi, I have designed a page for my clubs new website - I have probably done this all wrong as I am a complete novice. I have set tha images to align 'right' but in IE they dont yet do in Firefox The webpage is www.thevillagers.co.uk/sponsors.html I ca

  • Solaris 10 on Netra T1 install issues....

    I have gentoo installed on my netraT1 (which is apparently in the sun4u Platform Group) it has a 500mhz UltraSparc IIe processor and 1Gig of RAM. I decided to try solaris 10 so I downloaded all the cd images to my winows machine and used nero to burn

  • Itunes ringtones category non existent!

    Im using the new Mac desktop and my itunes is up to date, for some reason I don't have a ringtones category?? And when I plug in my iphone, that also doesn't have a ringtones category?? Can someone help!

  • Uneven pen pressure in Photoshop CS6 Extended with Wacom Intuos5

    I got Photoshop CS6 Extended recently, but the lines I draw in it aren't smooth, like they should be (example below). The tablet produces perfect lines in any other bit of software (Flash,  ToonBoom, etc.), but not Photoshop. I've tried lots of diffe

  • Add Digital ID window does not have all options.

    When trying to add a digital ID I cannot see the the option for the person to add his or her information.