Date display 15 days automatically on selection screen.

I have to display on selection screen as
from date value (current date - 15 days )
To date (current date )
How to build logic ?
Thanks in advance

Hi sam,
1. simple
2. just copy paste
3.
REPORT ABC.
data : dt type sy-datum.
select-options : mydate for dt.
<b>*----
INITIALIZATION.
MYDATE-SIGN = 'I'.
MYDATE-OPTION = 'BT'.
MYDATE-LOW = SY-DATUM - 15.
MYDATE-HIGH = SY-DATUM.
APPEND MYDATE.</b>
regards,
amit m.

Similar Messages

  • Hi, unable to display full text on selection screen

    hi all
    please any one tell me how one can display full text on selection screen because whatevery i have defined in text for selection screen variable is not displaying full text, some letters are missing.
    for example :
    Poste(s) du document de facturation       
    above text i want to display on selection screen.
    but only  Poste(s) du document de factur
    is displying. some letters are missing
    please try to solve this
    thanking in advance

    Hi Raj,
    Check this..
    SELECTION-SCREEN COMMENT fmt name.
    Additions
    1. ... FOR TABLE dbtab
    2. ... FOR FIELD f
    3. ... MODIF ID mod
    4. ... ID id
    Effect
    Generates a comment on the selection screen. For the name name , there are two options:
    name takes the form TEXT-xxx where xxx is a three-character name for a text symbol. In this case, the contents of the text symbol are displayed at runtime, i.e. the text cannot be changed dynamically. name is another eight-character name. Here, you create a field with the name name in the length specified in the format fmt< /> and it is then generated as an output field on the selection screen. The contents of these comments must therefore be set at runtime (e.g. at INITIALIZATION or - in the case of comments in the database include program DBldbSEL - in the routine INIT of the database program SAPDBldb . They can also be changed when the selection screen is being processed.
    Note
    The field name is generated automatically and so cannot be defined with DATA .
    With comments, you must always specify a format fmt (see variant ULINE ).
    Note
    You must program a new line yourself via the format fmt .
    <b>Example
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 10(20) TEXT-001
                       FOR FIELD PARM.
      SELECTION-SCREEN POSITION POS_LOW.
      PARAMETERS PARM LIKE SAPLANE-PLANETYPE.
    SELECTION-SCREEN END OF LINE.
    This code displays a 20-byte long comment followed by the parameter at the normal position ( POS_LOW ) on the same line. If the user presses F1 for both objects, the documentation of SAPLANE-PLANETYPE is displayed.</b>
    Regards,
    Raj

  • Display alv grids in selection screen based on the user event

    Hi All,
    I am workign on displaying ALV in same selection screen.I am able to display the ALV in selection screen.
    But i have 2 buttons in my selection screen 'Create' and 'change'.
    When i click on create i need  with some type of data and when i click on 'change' my alv grid another type of data.Ex: if i click on crate mara data should be dispalyed when i click on change makt table data should be dispalyed and also i have user defined buttons are in my grids.
    So i have used 2 containers to dispaly to different data.I am able to display the perfectly but the problem is first time when i click on create the grid is displaying when i click on change button  the create alv grid is displaying down and change data is dispalying up.
    I need only one alv grid at a time.Can anybody please let me know how can i do this.
    Thanks,
    Taragini

    Hello,
    Also I would suggest if it is relevant data maintain in one interntal table and show/hide based on condition
    through fieldcatalog (NO_OUT) parameter.
    Thanks

  • Need to display TEXT in web selection screen

    HI All,
    We are working on CRM-BW  modeling. We have one field called "product" which will have key and medium text. We need to display both key + text in web reporting selection screen. When we ran first time text was not showing in web report. Then we found and change the configuration in search help in SE11 for that field. Then we can see the text+key combination in RSRT but still we can't see the text in web report selection screen...
    Now what we have to do to display text in selection screen on web...
    Please give your inputs  ASAP.....we are in UAT phase....
    Thanks in advance
    Arun

    Hi Arun,
    For you case: Display key & text in selection screen.
    In BW,
    You can go to query designer, then you'll go to the info-object belong to the variable (selection-screen : product). Right-click, find for the properties, Then you'll see the option for <b>display as</b>.
    Choose it for Key and text.
    Then save it.
    Go to the report, in the selection screen, when you're choosing for the help, you'll see the value displayed by key & text.
    Hopefully it can help you a lot.
    Regards,
    Niel
    Thanks a lot for any points you choose to assign.

  • How to display in sap-script the data which is input in selection screen by the user.

    Hii,
        I want to display the data in sap-script that has been input by the user in selection screen.
    Suppose the the user has done input for posting date from 25.1.2001 to 25.1.2005,what i want is to display this date in sap script.
    How can i do it.
    please help asap.
    Regards.

    Hi,
    If select-option name is s_erdat.
    then from value will be s_erdat-low and to value will be s_erdat-high.
    Arivazhagan S

  • How to display error documents in selection screen level

    Hi,
      Currently Iam doing Smartforms for journal voucher. Iam taking multiple documents as input and displaying relavent item data for each.
    Now, my requirement is i want to display invalid document numbers at selection screen level. For example there are 30 invalid document number i want to display them before start-of-selection.
    Thanks in advance,
    Regards,
    Chinna..

    i have a query......say i am using a selet-options s_ebeln for ekko-ebeln.
    i want to display error messages for
    1>lower limit cant be greater than upper limit?
    2>for special cahracters given in the select-options fields.....etc...
    now when i am writing the code......
    if s_ebeln-low gt s_ebeln-high.
    message e001.
    it is showing SAP's message not mine.
    but ....if my s_ebeln-high field is 0.
    then my message is showing.
    pls give me the codes for these?

  • Adding posting date in report mb52 in selection screen

    Hi all,
    We have a requirement of adding the posting date in the selection screen and based on which the report has to be displayed.
    We have copied the standard program and added the posting date in the selection screen but could not find where to include the search based on posting date.
    Could anyone guide to resolve this issue.
    Thanks in advance,
    Neela

    Hi,
    I have added the posting date in selection screen and in the form data_selection i have also joined table bsim to extract values to the internal table t_mat.
    But the results are not perfect. Should i do any changes elsewhere in d program.
    Can anyone help me in resolving d issue.
    Thanks in advance,
    Neela.

  • Can we display a message before selection screen

    hi experts,
                   I need to give a message to user's to give information abt the selection screen .
    like select values between 1000 to 2000 only.
    date must be todays date.
    so how i can display a message before the selection screen is displayed

    try like this it may be useful for you.
    load-of-program.
    CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
      EXPORTING
       TITEL              = 'Selection screen info'
        TEXTLINE1          = 'Material no should be between 1000 and 2000'
       TEXTLINE2          = 'Plant should be 1000'
    *   START_COLUMN       = 25
    *   START_ROW          = 6
    start-of-selection.
    if you want some more fields to pass then search popup* fn module in se37 which can be useful 4 you.
    regards
    shiba dutta

  • Display input field on selection screen based on condition

    Hi,
    I have a report with selection with no of  input fields and a checkbox .I want to hide  few i/p fileds based on checkbox i/p.
    If the checkbox = 'X',then only those fields should apper on screen for input.
    how do we get this on sel screen.
    thanks in advance.

    Hi,
    you can use this code as reference.
    Here, depens on check box, in the next screen resepective select options will be displayed.
    You can use this logic for your requirement.
    REPORT Z50871_SELECTOPS_DYNAMIC.
    PARAMETERS : CH_EBELN AS CHECKBOX,
    CH_VBELN AS CHECKBOX.
    DATA: V_EBELN TYPE EKKO-EBELN,
    V_VBELN TYPE VBAK-VBELN.
    SELECTION-SCREEN BEGIN OF SCREEN 100.
    SELECT-OPTIONS : EBELN FOR V_EBELN MODIF ID G1,
    VBELN FOR V_VBELN MODIF ID G2.
    SELECTION-SCREEN END OF SCREEN 100 .
    AT SELECTION-SCREEN OUTPUT.
    IF SY-DYNNR = 100.
    IF CH_EBELN = 'X' AND
    CH_VBELN = ''.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 EQ 'G1'.
    SCREEN-ACTIVE = '1'.
    ELSE.
    SCREEN-ACTIVE = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF CH_VBELN = 'X' AND
    CH_EBELN = '' .
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 EQ 'G2'.
    SCREEN-ACTIVE = '1'.
    ELSE.
    SCREEN-ACTIVE = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF CH_EBELN = 'X' AND CH_VBELN = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 EQ 'G1'
    OR SCREEN-GROUP1 EQ 'G2' .
    SCREEN-ACTIVE = '1'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ENDIF.
    ENDIF.
    AT SELECTION-SCREEN.
    IF SY-DYNNR = 1000.
    IF CH_EBELN = 'X' OR CH_VBELN = 'X'.
    CALL SELECTION-SCREEN 100.
    ELSE.
    MESSAGE I000(Z50871MSG) WITH 'Please select atleast one checkbox'.
    ENDIF.
    ENDIF.
    Regards
    Sandeep Reddy

  • How to fill another parameter automatically on selection screen?

    Hello Friends,
    I have two parameters on selection screen.
    Date
    ID
    When I do F4 for Date parameter, By calling following function it gives me date and ID value
      CALL FUNCTION 'F4_ZAHLLAUF'
       EXPORTING
         F1TYP               = 'D'
         F1NME               = ' '
         F2NME               = 'F110V-LAUFI'
         DISPLAY_LAUFK       = 'X'
         EXPLAIN_LAUFK       = ' '
       IMPORTING
         LAUFD               = v_laufd
         LAUFI               = v_laufi.
    All I need is when I do F4, It should automatic fill the ID parameter.
    Note : Date parameter filled automatically by doing F4.
    Please give me an example.
    Regards,
    RH

    interesting... if I try than it works
    can you copy the code here?
    Again, again, again: the importing parameters (f1nme and f2nme) of the FM has to get the names of the two selection screen fields for the payment run and date, the DYNP_VALUE_UPDATE FM will be called inside the F4_ZAHLLAUF FM in this case
    modified source code of Max:
    PARAMETERS: V_LAUFD TYPE F110V-LAUFD,
                V_LAUFI TYPE F110V-LAUFI.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR V_LAUFD.
    *  DATA: DYNAME     LIKE  D020S-PROG,
    *        DYNUMB     LIKE  D020S-DNUM,
    *        DYNPFIELDS TYPE  TABLE OF DYNPREAD WITH HEADER LINE.
      CALL FUNCTION 'F4_ZAHLLAUF'
           EXPORTING
                F1TYP         = 'D'
                F1NME         = 'V_LAUFD'
                F2NME         = 'V_LAUFI'
                DISPLAY_LAUFK = 'X'
                EXPLAIN_LAUFK = ' '
           IMPORTING
                LAUFD         = V_LAUFD
                LAUFI         = V_LAUFI.
    *  DYNAME = SY-REPID.
    *  DYNUMB = SY-DYNNR.
    *  DYNPFIELDS-FIELDNAME  = 'V_LAUFI'.
    *  DYNPFIELDS-FIELDVALUE = V_LAUFI.
    *  APPEND DYNPFIELDS.
    *  CALL FUNCTION 'DYNP_VALUES_UPDATE'
    *       EXPORTING
    *            DYNAME     = DYNAME
    *            DYNUMB     = DYNUMB
    *       TABLES
    *            DYNPFIELDS = DYNPFIELDS.

  • Display Longtext in variable selection screen (web)

    Hi Guys,
    I wanted to know if there is a way of having the long text displayed in variable selection screen instead of text in a web report?
    Thanks,
    Doniv

    Hi Doniv,
    This might help:
    Re: No Text displayed in the Input help in WEB

  • Display Output on the Selection-screen

    Hi all ! Could anybody tell me to how to display the name of the vendor/customer next to the input box on the selection screen area ? e.g. As soon as one presses the enter key after entering the vendor code on 'XK03' transaction screen, the name of the respective vendor is shown right next to the vendor code input box on the selection screen area.

    Hi,
    In AT-selection screen event write the code for getting the the Customer/vendor Name and display it on the screen.
    In-order for the Radiobutton selection process to initiate the 'AT selection-screen' event you need to add the 'USER_COMMAND' option to the parameter declaration. See code below.
    *Code used to Initiate the 'AT selection-screen' EVENT from radiobuttons.
    selection-screen begin of block group with frame title text-s04.
    parameters: p_sel1 type c radiobutton group sel user-command upd.
    parameters: p_sel2 type c radiobutton group sel.
    parameters: p_sel3 type c radiobutton group sel.
    selection-screen end of block group.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
      IF  p_sel1 = 'X'.
        Write select query to get teh customer/vendor name and display it.
      ENDIF.
    You can use LFA1 or KNA1 to get vendor/customer name

  • How to display list in Agent Selection Screen?

    Hi,
    I am using DISPATCH method in Agent Selection screen ( obj. type WF_TASK ).
    In description it says that this method could display a list of users but
    in reality it displays only one item.
    If anyone was able to display a list would you share how to do it?
    Thank you.

    I think you will need to give more information. What does your binding look like, what are the possible agents for the task you give in the binding? This last one if you get a list or search functionality.
    Regards,
    Martin

  • Display key in the selection screen and Key & Text in the report

    Hi,
    For the infoobject in the query,
    In the variable selection screen When i want to select any value it should display only key, and in the report i want to display key and text of that infoobject.
    Is it possible?
    Thanks
    Rani

    Hi
    Display As
    Here you determine whether and in what format the individual characteristic values of the characteristic are presented:
    ·        (Standard): The standard display type for characteristic values corresponds to the setting in InfoObject maintenance under Tab Page: Business Explorer.
    ·        No Display: The characteristic display is hidden. This function is useful, for example, with the currency/unit characteristic as the currencies are also shown in the key figures.
    ·        Key and Text: The characteristic values are displayed by their technical key and text.
    ·        Text: The characteristic values are displayed by their text.
    ·        Key: The characteristic values are displayed by their technical key.
    ·        Text and Key: The characteristic values are displayed by their text and technical key.
    In the dropdown box below, you can select the type of text you want to use if you set a display type that contains text. The following options are available:
    ·        Standard: The shortest available text for the characteristic values is used as the text.
    ·        Short text: The short text for the characteristic values is used as the text.
    ·        Long text: The long text for the characteristic values is used as the text.
    ·        Medium text: The medium text for the characteristic values is used as the text.

  • Fill data in 2 fields on selection screen from a search help

    Hi,
    I have defined a custom search help as given below.
    Selection Method : ZTSTCT
    Search Help Parameters : 
    TCODE Importing & Exporting
    TTEXT Exporting Only
    I have two parameters in my report as declared below:
    PARAMETERS : tcode TYPE tstct-tcode  MATCHCODE OBJECT zm_tstc,
                 ttext TYPE tstct-ttext.
    Now whenever a user selects any TCODE in the help ZM_TSTC, I need both the fields on the selection screen to be filled with appropriate data. When I tested the search help in SE11, both fields are getting filled with appropriate data but in the report only the field TCODE gets filled. Is there any way to get the other field also filled with the appropriate data ?
    Points will be awarded for helpful answers.
    Thanks & Regards,
    Mukul

    Hi,
      Use the Event.
      AT SELECTION-SCREEN AT tcode.
    Use the select query from the method ZTSTCT.
    select single  TTEXT into ttext from ZTSTCT where TCODE = TCODE.
    you will get the value of TTEXT .
    Regards,
    Balakumar.G.

Maybe you are looking for

  • Report Printing Error - No Data

    I have a simple form that passes a variable (month and year) to a page item and then calls a package function from an application process. The function populates a temporary table with the desired report data. The application then branches to a Repor

  • Macbook pro mid 2010 keeps crashing

    I need help, my macbook pro mid 2010 running on OS X 10.9.1 keeps on crashing. not only it always restarts, any apps I open also crashes.  This is one of the message from sarafi. can anybody advise me on this, please Process:         com.apple.WebKit

  • Working with hrefs, how does the target page know what to do?

    I'm working with a converted ND app. I have an href in a tiledView, which when clicked will take you to a detail page for the record. I see where in the creation of the HREF, it links together the model info from the source with the target: =========

  • Un Zipping an attached file

    I recieved an e-mail with a large zip file attached. I double click on the attachment but can't open it on my minimac. I did forward it to work and it opened with out a glitch. Am I doing something wrong or does OSX not handle zip files. Thanks, Pete

  • "ISV's Getting started webcast" link doesn't work

    After filling out all the data for the 5-step simple ISV migration to oracle you come to this page: http://www.oracle.com/webapps/dialogue/dlgpage.jsp where your first step is to view a webcast. Unfortunately you always get a "Warning : Error in proc