Selction-Screen Query??

Hi..
I have a date field on my selection-screen.
And I want 2 things for it..
1) I want a default value of sy-datum - 30 days for that field.And to implement it I have done the following Coding:--
INITIALIZATION.
  V_DATE = SY-DATUM - 30.
  SELECT-OPTIONS: S_ERDAT   FOR NAST-ERDAT DEFAULT V_DATE
But, the problem is that I am not getting the correct default value of the date .(It comes as 00.00.000)
Please help me sort out this issue.
2) I also want to restrict the "multiple entries possibility " for this field.
Please tell me what shall I do?
Thanks

Subash,
Do this ...
INITIALIZATION.
V_DATE = SY-DATUM - 30.
S_ERDAT-OPTION = 'EQ'.
S_ERDAT-SIGN = 'I'.
S_ERDAT-LOW = V_DATE.
APPEND S_ERDAT.
SELECT-OPTIONS: S_ERDAT FOR NAST-ERDAT NO-INTERVALS NO-EXTENSIONS.
Or you can do this as well
INITIALIZATION.
V_DATE = SY-DATUM - 30.
SELECT-OPTIONS: S_ERDAT FOR NAST-ERDAT NO-INTERVALS NO-EXTENSIONS DEFAULT V_DATE.
Regards,
Ravi
Note :Please mark the helpful answers
Message was edited by: Ravikumar Allampallam

Similar Messages

  • How do I create a button in a selction screen of the report ??

    how do I create a button in a selction screen of the report ??

    See sample Program :
    REPORT ZLPRWINSPC_TMP .
    tables : mara,
             sscrfields.
    select-options s_matnr for mara-matnr.
    initialization.
    sscrfields-functxt_01 = 'Clear Selection'.
    selection-screen function key 1.
    AT SELECTION-SCREEN.
    case sscrfields-ucomm.
    when 'Clear Selection' or 'FC01'.
    clear s_matnr.
    refresh s_matnr.
    endcase.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Selction-screen

    hi all..
      iam having date field in the selction screen.... so if i click f4 i can get calander and i can enter specific date...
      now my requirement is to i  hav ti enter month end year only....
    so if i click any date in the seach help calender.... the input field of the selection screen has to avoid date and need to capture month and year....
    plz replay with code...
    Thank you,
    Naveen.

    Here's an example.  Note that update occurs when the user hits Enter
    PARAMETERS:
      mydate  TYPE datum OBLIGATORY.
    PARAMETERS:
      mymm(2) TYPE c MODIF ID xxx,
      myyy(4) TYPE c MODIF ID xxx.
    AT SELECTION-SCREEN OUTPUT.
      mymm = mydate+4(2).
      myyy = mydate+0(4).
      LOOP AT SCREEN.
        CASE screen-group1.
          WHEN 'XXX'.
            screen-input = 0.
            MODIFY SCREEN.
        ENDCASE.
      ENDLOOP.
    START-OF-SELECTION.
      mymm = mydate+4(2).
      myyy = mydate+0(4).

  • Displaying W message on selction screen and on enter need to go to ALV liso

    Dear All,
    I have  a requirement where i get my data in end-of-selection evenet after that i do  some calculation / validation and i display the warning message .
    But i need to display the warning on selction screen and on enetr need to go to ALV list , how to make it ?
    Regards

    WHy on the selection screen?
    I just do
    message 'my error text' type 'I' display like 'E',
    which results in a pop-up (if user has settings that way), and then allows seamless proceed to next step upon acceptance of the message.

  • Hiding Select options on a selction screen

    hi,
    How to Hide Select options on a selction screen
    thnks.

    hi,
    eg:-
    select-options: sel_mat for mard-matnr no-display.
    select-options: sel_plnt for mard-werks.
    in this the sel_plnt will appear and sel_mat will not be seen on the selction screen. there are many options avaliable with select-options..
    Like
        [OBLIGATORY / NO-DISPLAY]
        [VISIBLE LENGTH vlen]
        [NO-EXTENSION]
        [NO INTERVALS]
        [MODIF ID modid] ... .
    reward points if useful and mark answered if u got the answer 

  • Input values in bex selction screen

    Hi Experts--
    Iam facing a peculiar functionality in bex reporting.
    We are maintaining ZBATCH (Length 10)as the masterdata in BW.
    Created a variable for ZBATCH, in the selection screen if  i give values as 36789 as input it displays the data i mean the result..whereas if i give for the same as 0000036789 as input i got "No Applicable data" ..
       May i know the reason for this and how to rectify this..i mean if the user enters with 0000036789 it should display the data.
    Tried with ALPHA Conversion routines but i didn't got the sol with this..
    So can anyone plz help me in this regard.
    Regards,
    Rambo.

    Hello,
    here is one exapmle:
    i have a 'plant' characteristic(length 4,CHAR,no ocnversion exit).and in cube i have data like....0780,765,897.....
    after executing Query,if enter 0780..it accepts...but if enter 765..it says 'invalid'.
    when i have conversion exit ALPHA for 'plant'....if i enter 0765 and go for 'check'...it converts it as  '765'and u can execute the Query...
    so u r problem shold be solved with ALPHA conversion exit.
    hope this helps.
    regards
    Message was edited by: c c

  • Import flat file in selction screen

    Hi all,
    Could anybody help me in giving me a hint to import a flat file with thousands of values (articles selection) in the query selection screen.
    Best regards.
    Geo

    I have a question related to using the multiple selections in a BEx Query.  We are seeing some very long wait times for our selections and was wonder if this is normal, or if we have some things to fix in our system.
    In one of our Project System Queries, we are inputting 54 lines like the following list:
    AIR
    BAM
    BAR
    BRR
    BTR
    COM
    CSM
    CSR
    CTM
    CTR
    EPM
    EPR
    It is taking up to 45 minutes just to get these items loaded in from the clipboard, this seems a bit excessive to me, as it only take a matter of a second or two to do the same thing in our R/3 system.
    I was thinking that BW was doing some sort of validations as it brought in the list, but no one has been able to answer this question for me.
    If anyone can provide some advice or answers, it will be greatly appreciated.
    Thanks,
    Lloyd

  • Wrong date format when using selection screen query

    Hi all,
    I have a problem in a report when usign the selection screen of the query.
    the system has been upgraded recently from a 3.5 to 7.0. when a query is run in the bex web the user can put in the selection date needer to run the query.
    currently if u select a month using the selection screen next to the input form, the month will show up in the input field
    as 006 09 (006space09) instead of 06.2009 for the selection of june. 
    does anyone know how to fix this? it was working good using the 3.5 version of the bex web.
    Any help apriciated

    Using the list cube transaction and using the selection sceen and selecting the month it does put the right selection in the input field. ive also just tested it using de bx excel plugin and using the selection screen the correct value is set in the input field.  so i think it more of a bex we b problem but i dont know where to start the search for the solution.

  • How to arrange the variables in Selection Screen (Query)

    Hi,
    I am having Query-A (Contains 4 variables, among those, one is mandatory and one is Replacement Variable)
    Using Replacement Variable am calling Query-B (Contain one mandatory Variable).
    Now when am executing Query-A, in Variable screen its shows
    Query-A--Mandatory Variable
    Query-A--*********
    Query-A--*********
    Query-B--Mandatory Variable. (like this)
    But i need the Query-B--Mandatory Variable to be position in top. how to achieve this.
    Regards,
    Jackie.

    Hi Friends,
    Thanks for your quick replies, but like Dieu said i need to rearrange Variable between Query-A and Query-B.
    Query-A Variables                                
    Query-A--Mandatory Variable               
    Query-A--********
    Query-A--********
    Query-B Variables
    Query-B--Mandatory Variable
    I have join both the Query using Replacement Path Variable.
    Now when i execute Query-A, it shows the variables in Query-B also. Like this
    Query-A--Mandatory Variable          
    Query-A--********
    Query-A--********
    Query-B--Mandatory Variable
    But i need to like the following
    Query-A--Mandatory Variable          
    Query-B--Mandatory Variable
    Query-A--********
    Query-A--********
    Regards,
    Jackie
    Edited by: Jackie on Aug 11, 2008 12:04 PM
    Edited by: Jackie on Aug 11, 2008 12:05 PM

  • Selection screen -Query

    Hi Gurus:
    I have a query which has selections form extars tab in the
    infoset and one selection for language from the selection tab.
    The problem is that when this selection in teh selection screen
    from the selection tab is filled with no language(blank)
    and run withoutselecting anyother selection it gives all teh result,
    similaryly if I put in a language and in it and run it still shows up
    witha ll the result. Actually I would like to see only thiose
    materials with description for which the language is entered and not all .
    Since this selection copmes from teh selection tab fo the infoset
    its not filtering as required but the other selection criteria which
    comes from teh extra tab does filter accordingly.
    Could anyone sufggest as how tyo gho about doing it so
    that it shows the result by filtering from this languiage criteria also.
    My selection screen is as follows.
    (General data selection)
    TDG Language                    ___<----- this comes from the selection tab in infoset
    (Report-specific selection)
    Material Number                 ____               to    ____ (these comes from the extra tab in infoset)
    Material Type                   ____               to    ____
    Material Desc. Language         ____               to    ____
    Layout      ____
    Thanks

    I have two different columsn(additional field) for two diffrenet texts.
    FOr the first one its :and its sequence is 2.
    data: name3 type tdobname,
          language3 type spras,
          tlines3 type table of tline with header line.
    language3 = sy-langu.
    clear tdgtextz1.
    name3 = mara-matnr.
    call function 'READ_TEXT'
      exporting
        id                            = 'PRUE'
        language                      = language3
        name                          = name3
        object                        = 'MATERIAL'
      tables
        lines                         = tlines3
      exceptions
        others                        = 1.
    if sy-subrc = 0.
      loop at tlines3.
        if sy-tabix = 1.
          tdgtextz1 = tlines3-tdline.
        else.
          concatenate tdgtextz1 tlines3-tdline into
              tdgtextz1 separated by space.
        endif.
      endloop.
    endif.
    if p_spras = language3.
    check not tdgtextz1 = ' '.
    tdg_text = ' '.
    endif.
    for the second one as follows and has the same sequence in infoset as 2.
    data: name2 type TDOBNAME,
          language2 type SPRAS,
          tlines2 type table of TLINE WITH HEADER LINE.
    language2 = sy-langu.
    clear tdg_text.
    name2 = mara-matnr.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        ID                            = 'PRUE'
        LANGUAGE                      = language2
        NAME                          = name2
        OBJECT                        = 'MATERIAL'
      TABLES
        LINES                         = tlines2
      exceptions
        others                        = 1.
    IF SY-SUBRC = 0.
      loop at tlines2.
        if sy-tabix = 1.
          tdg_text = tlines2-tdline.
        else.
          concatenate tdg_text tlines2-tdline into
              tdg_text SEPARATED BY space.
        endif.
      endloop.
    ENDIF.
    if p_spras = language2.
    check not tdg_text = ' ' .
    tdgtextz1 = ' '.
    endif.

  • Supplier Item Catalog - search screen query ~ tends to take 10 - 12 secs

    I wanted to find out if any customer(s) out there has ever encountered this performance issue in the Supplier Item Catalog search screen. We setup an item catalog category using the supplier item but when we attempt to query on the item/supplier search, the search time takes up to 10 - 12 secs per find. Caveat, when you do search for the same item on the 2nd time; the return is alot quicker. It seems the parsing is the issue but we are still trying to figure a resolution to the performance factor. Thanks.

    Hi Hussein,
    Thanks for the reply back. Unfortunately, we tried to apply both patches (recommended patch (5404474) v. the previous patch(5567690) but it did not work . We actually have a TAR opened with Oracle support. I'd thought that with this Oracle forum site, other customers may have the similar performance issue and hopefully a recommended resolution. At this point, Oracle support mentioned the issue lies in the parsing segment of the query.

  • Populate values in f4 dialog screen based on the values in selction screen

    hi,
    i have done a module program where i would enter the details like ssales org ,division,distribution channel in the selection screen and would enter the screen having the table control... in that table control i have a field for customer code.. when i press f4 for cus code.,dialog box appears for the cus code and in that , sales group tab should be selected and the divsion ,dist channel and sales organisation i gave in the slection screen should be displayed as default...how can i do this ..
    since there is no screen no as such i am finding it difficult to crack.
    with thanks in advance ,
    syed

    if you do not give a specific number to selection-screen, its dynpro number is 1000.
    So in POV (AT SELECTION-SCREEN ON VALUE-REQUEST) use the classical DYNP_VALUES_READ with dynumb  = '1000' to get current values from screen, then you can
    - Fill yourself an internal table and call F4IF_INT_TABLE_VALUE_REQUEST
    - Call F4IF_FIELD_VALUE_REQUEST using CALLBACK_PROGRAM and CALLBACK_FORM to call a form in your report that will be executed by the search-help and there (look at online documentation) will change the default values of subfiled (itab) SELOPT of  SHLP parameter (type SHLP_DESCR_T)
    Sample of the second case (there are already too many samples for the first on sdn)
    .* POV
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_umskz.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
           EXPORTING
                tabname          = 'BSID'
                fieldname        = 'UMSKZ'
                callback_program = g_repid " copy of sy-repid
                callback_form    = 'CGS_DEBITOR'
           TABLES
                return_tab       = return_tab
           EXCEPTIONS
                OTHERS           = 1.
    * Form for callback
    FORM cgs_debitor TABLES   record_tab STRUCTURE seahlpres
                     CHANGING shlp TYPE shlp_descr_t
                              callcontrol LIKE ddshf4ctrl.
    * Local data
      DATA: ddshiface TYPE ddshiface,
            worklist LIKE lumskz,
            dynpfields TYPE TABLE OF dynpread WITH HEADER LINE.
    * Only D-ebitor
      LOOP AT shlp-interface INTO ddshiface WHERE shlpfield = 'KOART'.
        ddshiface-valtabname = 'BSID'.
        ddshiface-valfield   = 'KOART'.
        ddshiface-value      = 'D'.
        MODIFY shlp-interface FROM ddshiface.
      ENDLOOP.
    ENDFORM.
    .Regards,
    Raymond

  • Need to hide one of the selction screen block

    Hi Gurus!
    I need to hide one of the block in my selectrion screen and only display one radio button in that selection screen block . Somehow its not hiding the enitre block , so I tried doing the fields invisible but when it is transported it again makes it visible . Is it possible to do it through programming code itself rather than through screen.
    Follwoing is the block that I need to hide.
    SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-004.
    PARAMETERS:
    rb_list RADIOBUTTON GROUP rb1 DEFAULT 'X' USER-COMMAND opt.<<<<<<<<need to hide this
    SELECTION-SCREEN BEGIN OF BLOCK b4i WITH FRAME TITLE text-005 .<<< need to hide this block
    PARAMETERS: p_header AS CHECKBOX MODIF ID b5,
                p_send   AS CHECKBOX MODIF ID b5 USER-COMMAND opt,
                p_overr  TYPE sy-uname MODIF ID b6,
                p_alines AS CHECKBOX MODIF ID b5.
    SELECTION-SCREEN END OF BLOCK b4i .
    PARAMETERS: rb_alv  RADIOBUTTON GROUP rb1 DEFAULT 'X'.<<<< Just need to show this on my selection screen
    SELECTION-SCREEN END OF BLOCK b4.
    In the above code I need to hide the block b4i and the radiobutton rb_list.
    Help will be gretaly appreciated.
    Regards
    Aarav

    Hi!
    Thanks for the input but addition of that still gives me the first radiobutton 'rb_list 'in my selection screen .
    SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-004 .
    PARAMETERS:rb_list RADIOBUTTON GROUP rb1 MODIF ID rad .<<<<< This is still showing up --want to hide this
    SELECTION-SCREEN  BEGIN OF BLOCK b4i WITH FRAME TITLE text-005 .<<<<< want to hide is block completely
    PARAMETERS: p_header AS CHECKBOX MODIF ID b5 ,
                p_send   AS CHECKBOX MODIF ID b5 USER-COMMAND opt,
                p_overr  TYPE sy-uname MODIF ID b6,
                p_alines AS CHECKBOX MODIF ID b5.
    SELECTION-SCREEN END OF BLOCK b4i .
    PARAMETERS: rb_alv  RADIOBUTTON GROUP rb1 DEFAULT 'X'.<<< Just need to show this param,etere on the screen
    SELECTION-SCREEN END OF BLOCK b4.
    * At Selection screen output
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF rb_list IS INITIAL AND ( screen-group1 = 'B5').
          screen-active = '0'.
          MODIFY SCREEN.
        ELSEIF screen-group1 = 'B5'.
          screen-active = '1'.
          MODIFY SCREEN.
        ENDIF.
        IF p_send IS INITIAL AND screen-group1 = 'B6'.
          screen-active = '0'.
          MODIFY SCREEN.
        ELSEIF screen-group1 = 'B6'.
          screen-active = '1'.
          MODIFY SCREEN.
        ENDIF.
        CHECK screen-group1 = 'RAD' OR
              screen-group1 = 'B4'  OR
              screen-group1 = 'B5'  OR
              screen-group1 = 'B6' OR
        screen-active = 0.
        MODIFY SCREEN.
    Thanks
    Edited by: Aarav  Agnihotri on Sep 29, 2009 6:08 PM

  • Period and Fiscal Year in a report selction screen (3.1 I version of SAP.)

    Hi Team,
    I have a requirement on a Zreport. Suppose if we are executing a report in the month of March (3)-fiscal year 2011 and if I select a variant and the varinat should populate period as Feb (2 period) and fiscal year as last year (2010).
    In Nut shull if i am executing the report todays date the period and fiscal year in the selection screen should be 2 and 2010.
    Also please note that i am working on 3.1 I version of SAP.
    Your inputs are highly appreciated.
    Thank you
    Venkatesh Billa

    Hi,
    Generatlly while saing the variant for the report selection screen you can use the dynamic date calculation , where the last period and last fiscal year options are available.
    Also you can choose the option of calculating the period and fiscal year in your program and can default the same on the selection screen. But I think you should check in ABAP forum for this, whether there anything in coding also.
    Regards,
    Gaurav

  • Default the SAPscript name as custom script name in ME6F selction screen

    In the standard transaction ME6F , I have developed a custom SAPscript , z_meldruk.
    Now , the requirement is that while running the ME6F transaction instead of standard script MELDURK , the custom script Z_MELDRUK should come as default value in the selection screen.....
    how can i achieve this , since enhancement options are not available in the report program of ME6F transaction....
    pls advise....

    Hi,
    this is customizing. Ask functional consultanr or search SAP online documentation.
    Regards,
    Clemens

Maybe you are looking for

  • EM 10g - Listener does not show up on DB home, but is running. Why??

    Oracle Version          10.2.0.1.0 Microsoft Windows Server 2003 R2 Server 5.2 Service Pack 2 (32-bit) LSNRCTL> start LISTENER Starting tnslsnr: please wait... TNSLSNR for 64-bit Windows: Version 10.2.0.1.0 - Production System parameter file is D:\or

  • Error in invoking target 'install' of makefile ...ctx/lib/ins_ctx at instal

    During link steps at installing 11gR2 on OEL5 I got: Exception String: Error in invoking target 'install' of makefile '/oracle/112/ctx/lib/ins_ctx.mk'. See '/oracle/oraInventory/logs/installActions2009-10-09_09-21 -45PM.log' for details. Exception Se

  • Open file in folder with command line program

    I have a file, which is in native format for a given program [1] I have installed. This program I can start from Terminal.app and within the program I can open the file. The question is if I can have associated with this specific filetype this progra

  • Not able to do Pegging for both MPS & MRP Workbench

    Hi Experts, We have implemented SCP (Oracle EBS 11.5.10.2). Loaded the forecast, then ran the MDS. Also ran the MPS (for finished goods). Later opened the MPS workbench, cannot see items for pegging. Please do the needful. Thanks.

  • PGI no. and Accounting Entry of Invoice

    Hi, I have got a requirement that the PGI(Post Goods Issue) no of a delivery should be same as delivery no. And the Same for Invoice also: Accounting Entry no of the invoice should be same as Invoice no. Is there any way by which we can configure it!