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

Similar Messages

  • Populate select list when a date selected from date picker in tabular form

    Hi Guys,
    I have a situation where user picks a date from a date picker in tabular form.
    So as soon as he picks a date say 05/31/2011 from the date picker I want to populate a select list with 2 values : Tuesday AM , Tuesday PM.
    I have gone through the forums a lot and figured we can write a Dynamic Action using JQuery Selector. But I am not sure how to figure out the day from a date picker.
    I appreciate if some one can give your thoughts on how to proceed. It seems to be simple but looks like a tricky one. I am not familiar with writing Java Script.
    Thanks ,
    Raj

    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.

  • V.15 and New Data Selection

    Hi,
    in V.15 transaction the "New data selection" is greyed out. How can i allow the user to check/uncheck this box?
    The problem is when the "New data selection" is checked and when i execute the transaction, the "Name of sold-to party" is empty but when it's unchecked it's filled ... strange. What is the "New data selection" means?
    Thank you for your replies.

    if you do not select "new data selection" the program with just import previously selected data (the data from previous run which was stored - it's done by selecting "save dataset").
    "New data selection"  means the data is selected from database tables again instead of importing previously selected dataset from storage.
    I believe if you at least once SAVE dataset - the option "new data selection" will be editable, SAP just saves datasets per user, so if user have not saved any dataset - the only option is to run with "new data selection" = 'ON' .

  • Is it possible to delete data selectively from Business content cubes

    Dear Experts,
             Requesting you to help me out to know, is it possible to delete data selectively from Business content cubes.
    When I'm trying to delete selectively from Business content cubes, the background job gets cancelled with ST22 logs stating
    A RAISE statement in the program "SAPLRSDRD" raised the exception  condition "X_MESSAGE".                                                                               
    Since the exception was not intercepted by a superior program, processing was terminated.  
    and i tried  with few more Technical content cubes but the same thing happens.
    Pls let me know how to selectively delete data from Business content cubes if it's possible?.
    Thanks in advance for your favorable assistance.
    Regards,
    Ramesh-Kumar.

    Hi Ramesh,
    Follow below steps for selective deletion:
    1.     Transaction code: Use the Transaction code DELETE_FACTS.
    2.     Generate selective deletion program:
    A report program will be generated of the given name, here .
    3.     Selection screen:
    Take the deletion program u201CZDEL_EPBGu201D to the transaction code SE38 to see/execute the program.
    After executing it will take you to a selection screen:
    As we need to carry out deletion selective on Calendar week, we need to get the screen field for the field Calendar week. For this, click on the Calendar week field and press F1.
    Click on the technical information button (marked in red box above) you will get below screen:
         ABAP program to carry out the Calendar week calculation
    Problem scenario: As stated earlier the requirement is to delete the data from the cube based on the calendar week. Thus a code must be developed such that the number of weeks should be taken as input and corresponding calendar week should be determined. This calendar week should be then passed to the deletion program in order to carry out the data deletion from the InfoCube.
         Transaction code: Use T-code SE38 in order to create a program.
    Logic: Suppose we need to delete the data older than 100 weeks.
    a.     Get the number of weeks and system date in variables and calculate the total number of days :
    lv_week = 100.      *number of weeks      
    lv_dte = sy-datum.     *system date
    v_totaldays = lv_week * 7.      *total days
    b.     Get the corresponding calendar day from the total days. This is obtained by simply subtracting the total no. of days from the system date.
    lv_calday = lv_dte - v_totaldays. *corresponding calday.     
    c.     Now in order to get the calendar week corresponding to the calculated calendar day we must call a function module 'DATE_TO_PERIOD_CONVERT'. This function module takes input as Calendar day and Fiscal year variant and returns the appropriate fiscal period.
    Get the sales week time elements
      call function 'DATE_TO_PERIOD_CONVERT'
        exporting
          i_date                      = lv_calday
          i_periv                     = lc_sales
        importing
          e_buper                     = lv_period
          e_gjahr                     = lv_year
        exceptions
          input_false                 = 1
          t009_notfound               = 2
          t009b_notfound              = 3.
      if sy-subrc = 0.
        ls_time-calweek(4)      = lv_year.
        ls_time-calweek+4(2)    = lv_period.
      endif.
    v_week = ls_boots_time-calweek.
    Note: We can pass the fiscal year variant which can be obtained from the table T009B.For e.g. here fiscal year variant lc_sales = Z2. LS_TIME will be any table with suitable time units.
    d.     Now we have obtained the required calendar week in the v_week variable. This calendar week is the week till which we need to keep the data. And older data than this week will be deleted. This deletion will be done by the deletion program
    Submitting the Data deletion program for ZEPBGC01 and key field
    SUBMIT ZDEL_EPBG WITH C039 LT v_week.
              Here the calendar week value is submitted to the deletion program ZDEL_EPBG with the screen field of calendar week.
    Hope ... this will  help you..
    Thanks,
    Jitendra

  • MacBook Pro won't stay asleep with external monitor attached.  When sleep is selected from the Apple menu the computer will go to sleep only to continually wake up...go back to sleep...wake up...etc. every few seconds.

    MacBook Pro won't stay asleep with external monitor attached.  When sleep is selected from the Apple menu the computer will go to sleep only to continually wake up...go back to sleep...wake up...etc. every few seconds.  This only happens when using the external monitor. Does anyone have any suggestions?

    Mine does that too. The worst thing is when it goes to sleep, then wakes up and keeps running while the lid is closed and it is wrapped up in a case. I am afraid when the hot weather comes it is going to burn up. I am hoping Apple fixes it in the software or they may have a melted MBP to replace.
    Then when I open the lid it is crashed running at fill tilt, pumping out heat to beat the band. I am forced to hold the button down and reboot.
    I wiped my hard disk and reinstalled my OS, but it didn't help. I reversed my OS to 10.5.0 and it solved the DVI problem but still won't sleep. This post will probably be deleted by Apple, they did it a few days ago. I just don't know what to do, and I consider myself a real Apple expert. Just hoping you realize you are not the only one.

  • Query displaying from date & to date selected from calendar

    Hello every1,
    I just want to create a query which will display from date and to date which i need to select it from the calendar.
    Can any1 help me out for it.

    HELLO,
    ACTUALLY I HAVE A FIELD CALLED DUE DATE IN MY UDT WHERE I HAVE ENETERED  SOME MY DUE DATES. NOW WHEN IAM CREATING A QUERY FOR DUE DATE AS FOLLOW:
    SELECT * FROM DBO.[@LC_OV_H]  T0 WHERE T0.DUEDATE>='[%0]' AND T0.DUEDATE<='[%1]'
    IT IS GIVEN ME A LIST OF THE DUE DATES WHICH I HAVE ENTERED BUT HERE I WANT A CALENDER TO BE DISPLAYED DURING SELECTION.........
    Edited by: MEGHSHILPK on Jul 17, 2010 10:07 AM

  • Dynamic data select from table is giving dump

    Hello Experts,
       Below statement is giving Dump after it move all the data in my dynamic table.
    When i see in debug. All my recored are avilable in <T_TAB> Table.
    SELECT * FROM (pa_tab) INTO CORRESPONDING FIELDS OF TABLE <T_TAB>.
    > IF SY-SUBRC = 0.
    Information on where terminated
    The termination occurred in the ABAP program "ZFIR_ZTABLE_UPLOAD" in
    "F_DOWNLOAD".
    The main program was "ZFIR_ZTABLE_UPLOAD ".
    The termination occurred in line 403 of the source code of the (Include)
    program "ZFIR_ZTABLE_UPLOAD"
    of the source code of program "ZFIR_ZTABLE_UPLOAD" (when calling the editor
    4030).
    Processing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in
    the
    procedure "F_DOWNLOAD" "(FORM)" but was not handled locally, not declared in
    the
    RAISING clause of the procedure.
    The procedure is in the program "ZFIR_ZTABLE_UPLOAD ". Its source code starts
    in line 399
    of the (Include) program "ZFIR_ZTABLE_UPLOAD ".
    please help me.
    Regards,
    Amit
    Message was edited by:
            Amit Gupta

    Hi Amit,
    Check if you are doing the following in your program
    FIELD-SYMBOLS <T_TAB> TYPE STANDARD TABLE.
    DATA: g_tabref type ref to data.   "Reference to your table structure
    CREATE DATA g_tabref type standard table of (pa_tab).
    ASSIGN g_tabref->* to <T_TAB>.
    SELECT * FROM (PA_TAB) INTO TABLE <T_TAB>.
    Hope this solves your problem.
    Let me know if you require any further info.
    Enjoy SAP. Reward points of useful
    Rajasekhar

  • 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

  • Ttitle not displaying the title when no rows selected from a table

    My requirement is display the Ttitle value even when there are no rows fetched from a table. I tried the following -it didn't work. We are on Oracle 9.2.0.7.0. Anybody has thoughts on this... your help greatly appreciated.
    ORACLE_SID = [oracle] ? ABCDE
    PSDEVDB1:>sqlplus babu
    SQL*Plus: Release 9.2.0.7.0 - Production on Mon Jul 10 17:56:52 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Enter password:
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.7.0 - Production
    SQL> ttitle center 'testing'
    SQL> column x noprint
    SQL> select 'x' x from dual;
    testing
    SQL> select *from mytable3;
    testing
    NAME NO
    KUMAR 10
    RAMU 10
    BABU 10
    SQL> select *from mytable3 where no=20;
    no rows selected
    SQL>

    If your concepts are clear for Right outer join, Left outer join and Full outer join you can achieve what you are looking for.
    http://www.oreillynet.com/pub/a/network/2002/04/23/fulljoin.html
    Play with the data and may the force be with you.

  • How to read serial port only when new data has been sent to it

    I've written this very simple vi to read the serial port whenever the MKS Helium Detector sends a new value.  The timing of new data is controlled directly from the front panel of the MKS instrument.  I thought it was as simple as looking at the "bytes at port", and reading the port only if the value is not zero.  The problem I'm having is that the read function is occuring whether I want it to or not.  Consequently, the "Scan from String" function is returning an error (0) once in a while, because it's reading the serial port as it's being updated (I think).   Apparently, when the port is in the process of being updated, it is not zero.   Anyway, I'm assuming there is a simple fix, but I'm having no luck finding the Easter egg.  Any help would be, as always, very much appreciated. 
    Attachments:
    MKSRead.vi ‏55 KB

    You can approach your problem in a couple of ways. The way you've got it written now, as soon as the number of bytes is non-zero, you read and convert. This means that when a partial string is there, you conversion is nor correct. One way is to wait until non-zero bytes like you do now, and then in another loop, read until the byte count is equal to zero and then do the conversion. You can also read until the cr\lf is detected and then do the conversion on the string. You can also enable the termination character for the read but then you'll have to increase the number of bytes to read to something other than just the number of bytes first available. If the instrument always returns the same number of bytes, you can use that as a constant for the VISA Read. Then the read will terminate whenever the byte count OR the termination character is detected.
    I modified your VI to show you how you might put it in a loop and what for the CR/LF to be detected. You would want to add a timeout to this so that if the character does not show up, the loop will not run infinitely
    Attachments:
    MKSRead_mod.vi ‏68 KB

  • Updating the Leave Information (dates selected) from MSOutlook to SAP ESS

    Hi Forum,
                    I had a scenario where I need to use Microsoft Outlook as an interface and the leave information selected in outlook calender should be updated to SAP ESS. Does Any one worked on similar kind of scenarios ? I would like to know if any API is available to interface between MS Outlook and SAP. If not is there any 3rd part integration technologies available ? Helpful answers will be Appriciated in the SDN way
    Regards
    Ramesh

    Hi Manoj,
                   Thanks for your reply. I am looking for a Java API using which i can read the calender information in outlook (dates selected and saved by the user). If I can get this dates information i could think of updating the same dates (leave info) to SAP ESS usingn JCO Client java program.
    Please suggest me some java API to read the calender information stored in outlook.
    Thanks & Regards
    Ramesh

  • How to get group when the data source from system instead of UME database

    Hig guys,
    How to get group when the data source comes from backend system instead of UME database?
    I tried to use
    IUMPrincipal RefGroup = WPUMFactory.getGroupFactory().getGroup(groupName);
    But I was not able to get the group. But in "UserAdministrator", I can find this groupName.
    Which kind of API can I use?
    Thanks in advance!
    Regards,
    Liying
    Message was edited by:
            Liying Wang

    Ok,
    try this:
    com.sapportals.portal.security.usermanagement.IGroupFactory ep5GroupFactory = userManagementService.getGroupFactory();
    IGroupFactory groupFactory = UMFactory.getGroupFactory();
    com.sap.security.api.IGroup group = groupFactory.getGroupByUniqueName(groupName);
    IUMPrincipal ep5Principal = ep5GroupFactory.getEP5Group(group);
    This should do the trick,
    Romano
    PS: and thanks for the stars!

  • Mounting external tables - ORA-03113 caused when trying to select from

    We're having trouble trying to select from a mounted external table on Oracle 9.2.0.1.0. Each time a procedure containing the simple select statment is executed (within sqlplus) it causes the following error:
    ORA-03113: end-of-file on communication channel
    Initially we thought it was because we were using sqlplus 8.1.7 but when switching to 9.2.0 the error still occurs. We can do a desc and select count(*) on it though.
    Is this a know bug? Is there a work around?
    Jo

    We're having trouble trying to select from a mounted external table on Oracle 9.2.0.1.0. Each time a procedure containing the simple select statment is executed (within sqlplus) it causes the following error:
    ORA-03113: end-of-file on communication channel
    Initially we thought it was because we were using sqlplus 8.1.7 but when switching to 9.2.0 the error still occurs. We can do a desc and select count(*) on it though.
    Is this a know bug? Is there a work around?
    Jo

  • Value of a cell dependent on a data selected from the list in another cell

    Hello Everyone,
    Could you please help to solve this puzzle.
    I need to make a value of cells in the 2nd column dependent on the selection made in the cells in the 1st column, i.e.:
    Header 1
    Header 2
    List An
    LIst Bn
    Lists A and B have 10 items each
    A1    B1
    A2    B2
    A10  B10
    If A1 is selected I need a B1 appear in the second column in the same row, if A2 selected then B2,...and so on.
    Could you please hep to resolve this, if at all this is possible?
    Many thanks,
    Andrew

    Supposing that your list is a drop down list, you could put a script like the following on the exit event of List A. (very approximate, since I don't know any of your field names)
    switch (this.rawValue)
    case "A1":
         ListB.rawValue = "B1";
         break;
    case "A2":
         ListB.rawValue = "B2";
         break;
    Obviously, you'll want to replace "ListB" with the name of your field, and possibly the references to it (ie. TableName.RowName.FieldName) and fill in more case statements all the way to A10 if that's what you need. If List B is going to be a read-only field, you may even want to make it simply a text input box and have it display the values you want it to have based on the selection from List A.

Maybe you are looking for

  • Screen resolution in remote connection

    Hello. I have several macs, both at home and at the office. I like to use my MacBook Air on the go. When at the office, I like to work from a mac mini with a full HD screen resolution. The MacBook Air support this external screen. In order to avoid c

  • Regarding New G/L Account

    Hi All,   Curruntly m working  with  <b>New G/L</b> A/c. Now m not able to cancel my any billing document or Credit memo through VF11 of any <b>Old G/L</b> a/c.    Plz Explain me this funda of cancellation of Old & New G/L's BillingDocument or Credit

  • No .file type when saving???....

    hello has anyone had any issues with d/l themes? when I go to d/l I have nothing in the save as box just the name I created for the theme? there is no .file!!!!  

  • Help: i can't open all microsoft programs

    hi i am a newbie... i can't open all my microsoft programs from words to entourage after a software update... i try reinstalling and deleting files but it won't work... save me!!!

  • Gnome error after update

    i can't login on my desktop after update Fatal server error: Server is already active for display 0 If this server is no longer running. remove /tmp/.X0-lock and start again. Please consult the The X.Org Foundation support at http://wiki.x.org for he