Dynamic variant for select option High value

Hi ,
Please help me in creating dynamic variable for a select option date field high value.
II tried the following method:
1. Enter the values in the selection screen
2. Save the variant using the SAVE button
3. In the next screen for the date variable select the 'Selection variable' checkbox (L) and click on the button 'Selection variable' in the toolbar.
4. Now you will see this variable in the next screen with 3 types of buttons. Click on the middle button (i.e. D - Dynamic date calculation).
5. Click on the down arrow button and select the option 'Current Date'.
5. Save the variant.
But it is saving the date value in Field LOW of select option( From value).
I need it in TO field( High value).
Please help.
regards,
Sheeba

Hi Sheeba
    we can do it other way .. Select the same steps as you have done but after the assigning the value current date to low ..click on the selection option push button at the application bar and choose the 'less than or equal to' option to your select option value and try the same ....
I guess this would throw you same results as that of the value in the high value button
Cheers,
Jacks.

Similar Messages

  • Dynamic variant create for select option High value

    Hi ,
    I would like to set a dynamic variant for Date filed in selection screen as lower limit as 01/01/2009 and Last day of previous month as hiher limit. For examplae: Lower limit = 01/01/2009 and higher limit as 02/28/2011.
    Please help me in creating dynamic variant as mentiond above.
    Thanks & Regards,
    Venkat N.

    Hi,
    Thank you for your reply and could you please provide if you have any code.
    Thanks & Regards,
    Venkat N.

  • Specific default values for select-options high and low

    Hi
    My requirement is in the selection screen i have a select-options field for which i need to give default values as mentioned below.
    Description                              Data Type       Default Value     Mandatory?             Sel Scrn Type     
    Delivery/BOL Date        ekab-bedat                         1st DOM to current day     Y              Range     
    The datatype is ekab-bedat.
    In the low value field ,it should be 1st Date of month(DOM) and in the high value field it should be current day.
    Give me the code for the same asap.

    >
    sreedeep.sreekumar wrote:
    > Dont mistake my intensions. When i tried to write it in the form of a request it showed me that it cannot me posted beacuse the words that i am using (please,kindly) is not following the terms and conditions of the words to be written in the threads
    Sounds quite vague to me.
    >
    sreedeep.sreekumar wrote:
    > I was asking help for this as i am a novice in SAP-ABAP and i couldnt find solutions for it and also i have seen people directly writing codes for the queries.
    Becuase you see people posting pieces of code doesn't mean you can ask for a solution asap. Besides, whether you're new or a veteran in ABAP, what you need can be solved with some very basic knowlegde of ABAP. Just use a bit of common sense.

  • Dynamic F4 for Select Options

    Hi,
    I have two Select-Options for Kunnr and Bukrs.
    My requirement is that,
    when I select a particualar Kunnr in the Select Option the Corresponding Bukrs must appear in the F4 for the S_BUKRS.
    Can someone help please.
    Thanks,
    Supriya Manik.

    You might have to code a search help exit to achieve this purpose.
    In the KUNNR search help, have the exit export the selected value to parameter ID KUN.
    Then, from the BUKRS search help, read this value and pass it to the KUNNR field in the F4.
    You can find more info on search help exits at:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm
    Hope this helps.
    Sudha

  • Dynamic SQL for selection-option???

    Hi,
    I am trying to select a table from the parameters (range ) , but every time i run it give me a dump witn error in  where ...(itab)
    First i declare :
    data : cond(72) TYPE C,
             itab LIKE TABLE OF cond .
    select-options: p_auart  FOR vbak-auart ,
                          p_vkorg FOR vbak-vkorg.
    --->
    If not p_auart is initial.
        cond = 'auart IN p_auart' .
    APPEND cond To itab.
    endif.
    the i do select:
    Select * from vbak where (itab).
    ---> I give a dum in where clause....
    So could you please help me out of this
    Thanks

    Hi Friend,
    Make the following corrections.Your code will work fine.
    By the statement- 'itab LIKE TABLE OF cond .' you meant to create a table of the type 'COND' which should be a structure.
    So, here lies the problem.In your case COND is a char type variable and you are trying to mimic the table 'itab' from it.
    As a rule of thumb,a table should mimic a std., table or a structure.
    So remove the following lines:
    data : cond(72) TYPE C,
    itab LIKE TABLE OF cond .
    Include the following lines:
    type: begin og itab_record,
            cond(72) TYPE C,
            end of itab_record."Declaration of structure itab_record.
    data: itab type standard table of itab_record initial size 0 with header line."Declaration of the table itab which mimics the       structure itab_record.
    Modify these two statements,
    cond = 'auart IN p_auart' .
    APPEND cond To itab.
    to
    itab_record-cond = 'auart IN p_auart' .
    append itab_record.
    Other lines are exact,make these changes,execute it and seek my assistance if necessary.
    Regards,
    Lakshmanan

  • Dinamic variant for selection screen

    Hi,
    I got a requirement where i need  a Dynamic variant for selection screen .There is a date field in the selection screen i want to create  a variant such that when i choose it,it should give the current day date in selection screen.can anyone help me.
    Regards,
    Ravi

    Hi,
    Using Customer Exit code you can give it.
    Create a Customer Exit Variable and write simple code in CMOD. See the usefull Exit code for reports in the following url.
    https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    WHEN 'ZV_DAT'.
        IF i_step = 1 .
          CLEAR l_s_range.
          l_s_range-low = sy-datum.
          l_s_range-opt = 'EQ'.
          l_s_range-sign = 'I'.
          APPEND l_s_range TO e_t_range.
        ENDIF.
    Thanks
    Reddy

  • How to set a dynamic variant for date in select-options in the upper field

    Hi  Variant experts Good Evening!
           I have the following problem while setting up a dynamic varinat .
    Ex: select-options: dat for sy-datum.  
    I am able to save the lower limit as a dynamic value but not able to save the upper values as dynamic in the select-options. Could any of you please help me in this.
    Regards
    Ravi.

    i hope dynamic variant concept is not there,
    but u can use the fn module DYPRO_GET_VALUES  and
    DYNPRO_SET_VALUES
    DYNPRO_GET_VALUES gets the values in the screen,
    DYNPRO_SET VALUES sets the values.
    first get the values, compare and set the values as u want

  • How to set default values in initialization event for select option

    Abapers,
    I have 3 GL account like 0024831231,0024831238,0024831245.
    Please help me how to set default values in select-options ( s_hkont ) in INTIALIZATION event
    Thanks

    Select option is table <Structure> with fields, low, high, sign & option
    you need to append the value into the select option, with appropriate value in low or
    example:
    S_HKONT-low  = <value>
    S_HKONT-SIGN = 'I'
    S_hkont-OPTION = 'EQ'
    append s_hkont.
    Default value for select-option also can be added directly in select-option statement.
    Regards,
    Mahesh

  • Input Negative values in selection screen  for select-options field

    I am not able enter negative values for
    SELECT-OPTIONS V_ERFMG FOR MSEG-ERFMG.
    It says negative values are not allowed but I need to check for negative values. Kindly provide me solution.

    You can't put the negative values here...because the Domain which is attached to MSEG-ERFMG has not the "Sign" checkbox on.
    Try with this code:
    tables:wbrp.
    SELECT-OPTIONS V_ERFMG FOR WBRP-menge.
    Regards,
    Naimesh Patel

  • F4 help for select options based on parameter value

    hi all,
    I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
    Regard's,
    Girija
    Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
    Edited by: Vinod Kumar on May 17, 2011 1:36 PM

    hi all,
    I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
    Regard's,
    Girija
    Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
    Edited by: Vinod Kumar on May 17, 2011 1:36 PM

  • Value help for select-option not filling selection field

    I'm having some problems with a value help on a select-option. I've managed to get the value help displaying the correct values but for some reason can't get it to populate the selection field after I've selected a record.
    I have the following call:
      wd_this->m_handler->add_selection_field(
                          i_id = 'SHORT_D'
                          i_description = 'Program'
                          it_result = lt_range_table
                          i_read_only = read_only
                          i_value_help_type = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_SEARCHHELP
                          i_value_help_id = 'ZPROGSTUDY' ).
    where ZPROGSTUDY is a new search help I've set up with an exit to retrieve the values.
    Any ideas ? Thanks.

    Hi Malcolm,
    The code you have is OK. I copied your code into a test program and it worked as expected.
    I used a search help where the possible values are populated in the search help exit, exactly as in your case. The only time it did not work was when read_only = X, but that is obvious also from a visual point of view since the input field is greyed out in that case. The popup also tells you is in RO mode...
    Does your SHLP work when you test it from SE11? Returns values?
    SAP provides a lot of WD4A sample code, see for example component WDR_TEST_SELECT_OPTIONS look for
    select-option fields > special cases > input helps > Non field-specific input help using search help
    Regards,
    George

  • Set of default values for Select-Options

    Hi Gurus,
    I have a requirement where I need to set default values for select options
    ex: SELECT-OPTIONS: S_MTART FOR MARA-MTART
    default values must be ERSA - HIBE- FHMI - DIEN - GEST
    Please tell me how to do it.
    Effective replies will be rewarded with full points
    Karthik

    Hi,
    For each SELECT-OPTION, you can only specify one DEFAULT.
    You must specify the default value g in its internal format, e.g. "SELECT-OPTIONS DATE FOR SY-DATUM DEFAULT '19931224'", not "... DEFAULT '24.12.1993'".
    The default value g should normally be a literal because, at runtime when you use SUBMIT, it is transferred to the selection options table sel so early that no value can be assigned to the field g. System fields like SY-DATUM are an exception here because the system usually assigns values to them as soon as the report processing starts.
    When you use user-defined selection screens in your programs that you do not call using SUBMIT, the DEFAULT value is transfered when the selection screen is first called. In this case, therefore, you can use other fields g.
    regards,
    sowjanya
    Message was edited by: sowjanya suggula

  • How to assign list of default value for select-option variable???

    Hi every one
    This is Deepak,
    I want to know how to assign list of default value to select-option variable ? please any body tel me solution
    for example
    select-option matnr for mara-matnr default ..............and here i want to give more than 1 values that will be default value and use can choose any one at the time of input .
    Thank you in advance
    Deepak

    Hi.
    Check the following sample code.
    REPORT ztn_test.
    " It is example for list populating.
    TABLES:knvp.
    data: BEGIN OF itab OCCURS 10,
          kunnr like knvp-kunnr,
          END OF itab.
    data: wa_itab like itab.
    TYPE-POOLS: vrm.
    DATA: name TYPE vrm_id,
    list TYPE vrm_values,
    value LIKE LINE OF list.
    PARAMETERS: s_kunnr(20) type c  as LISTBOX VISIBLE LENGTH 40 .
    AT SELECTION-SCREEN OUTPUT.
    SELECT kunnr from knvp  into  CORRESPONDING FIELDS OF TABLE itab WHERE parvw = 'SP'. " SP for ur requirement
    " I have used loop to populate some values from table
    loop at itab into wa_itab.
      name = 'S_KUNNR'.
      value-key = sy-tabix.
      value-text = wa_itab-kunnr.
      append value to list.
      clear wa_itab.
    endloop.
    " If u want individaully assign the values change the code as
    name = 'S_KUNNR'." Select option name
      value-key = 1." Index
      value-text = 'VAL1'.
      append value to list.
    name = 'S_KUNNR'." Select option name
      value-key = 2." Index
      value-text = 'VAL2'.
      append value to list.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING id = name
    values = list.
    Edited by: tahir naqqash on Feb 21, 2009 4:38 PM

  • Restrict F4 help values for select option

    Hi All,
    How to restrict the F4 help for select option in Webdynpro for ABAP based on some input.
    Regards,
    Karthick S

    Hi Karthick,
    Use OVS help. It will take your inputs for search and give you corresponding search value list.
    Refer my blog, it will be helpful.
    [OVS Help in WDA|/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap]
    Thanks.

  • Dynamic Variant for Date filed

    Hi All,
    I need to create a dynamic variant for date fields for standard report.
    in date Low field...value will be harcoded as '01.01.2011' and S_Date-high date field should be current date - 1.
    I dnt want to go for code in report to handle this.
    I tried with many option but could not able to see up the dates like as above.
    Kindly help.
    Piyush

    Hi,
    try this code
    data prevday like sy-datum.
    SELECT-OPTIONS s_date for sy-datum DEFAULT '20110101'   .", sy-datum-1.
    INITIALIZATION.
    AT SELECTION-SCREEN OUTPUT.
    *  S_DATE-HIGH = PREVDAY.
      prevday = sy-datum.
    s_date-high = prevday.
    modify s_date index 1.
    Hope the help
    Edited by: j.ortiz on Jan 27, 2011 3:01 PM

Maybe you are looking for

  • Test Cases required for BW Statistics to test in QA annd DEV.

    HI All, I am currently working on a support Project.  My client has completed installing of Bw statistics in DEV and transported it to QA way back in 2006.Currrently before moving the BI Statistics data to PRD we have to test it in DEV and QA. How to

  • How to restore iphone 4 apps, after its been copied through the Iexplorer app on the Mac?

    I recently wanted to restore my iphone to its original factory settings, but I didn't want to lose my app data and game saves. so I copied the apps through Iexplorer, but I have no idea how to put the App files back into the Iphone. Does any know?

  • Laptop for adobe illustrator and photoshop

    We are getting a new laptop for my daughter and a subscription to the Adobe Creative Cloud.  She is interested in graphic design and mostly uses photoshop and illustrator.  She has already sold several ebook covers and some other design projects.  We

  • KPA6 and report painter

    HI Everyone and Consultants, Well i am at abaper and dont have much knowledge in finance controling. First issue: Currently we update our budget using the t.code KPA6 using Profit Center and Cost element. It is succesfully getting update at KPA7. But

  • Report teriminated error

    I am calling a report from oracle forms through RUN_REPORT_OBJECT. Since there is change in the Field length in Database, I have changed the respective field length in report for user parameters and field in Body. Application is hosted through Oracle