Reg dates in selection screen

Hi All,
I need to populate the date fields Valid from and Valid to Valid from always should be the starting date of currect fin year and To date should be Last date of current Fin year can some body tell me how can we will get this?.
Thanks&Regards
Mahesh

Hi,
Write
data :
V_date(10), v_date1(10).
select-options: s_date for sy-datum.
In the Initialization event.
concatenate sy-datum+0(4)  '01'  '01'  to v_date.
concatenate sy-datum+0(4)  '12'  '31'  to v_date1.
s_date-low = v_date.
s_date-sign = 'I'.
s_date-option = 'EQ'.
append s_date.
s_date-high = v_date1.
s_date-sign = 'I'.
s_date-option = 'EQ'.
append s_date.
reward if useful
regards,
Anji
Message was edited by:
        Anji Reddy Vangala

Similar Messages

  • HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?

    HI,
    HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?
    thanks,
    samba.

    By selection screen, what do you mean?   There is no selection screen in WDA as there was in classic dynpro. Do you mean you are using the Select-Options reusable component?  Are you wanting to call a standard transaction via ITS - SAPGUI for HTML?  Please provide more details to your question.

  • Validating the Program Run Date on selection screen

    Hi ,
    REGUH-LAUFD field has to be validate on selection screen parameter, for this filed no check table available in REGUH.
    Finally date should be validate through any table as per my concern.
    Could please anyone tell me that which table i have to go for validate the above field.
    Regards,
    sud

    >
    sudsap wrote:
    > Hi ,
    >
    > REGUH-LAUFD field has to be validate on selection screen parameter, for this filed no check table available in REGUH.
    >
    > Finally date should be validate through any table as per my concern.
    >
    > Could please anyone tell me that which table i have to go for validate the above field.
    >
    >
    > Regards,
    > sud
    REGUH-LAUFD is the date that the payment run has created. There is no such foreign key check for this date. If you want, you create your own table and do your checks but not advisable.
    What is your requirement anyway?

  • Displaying Data Using Selection-screen in Module Pool

    Hi All,
    Currently I'm working on a module pool program.In that i'm having two screens 9000 and 9001.
    I want to select a bookrefno using a selection screen and display header & table control data in 9001 screen when the bookrefno is validated.
    can anyone help me sending sample code regarding this
    Regards
    Ravi S

    Hi Ravi
    Place "bookrefno." field on screen 9000.
    Use validations on that particular field by using chain-endchain.
    in PAI of 9000
    case sy-ucomm
    when 'display'
    call screen 9001
    write select statment to display data i.e header & table control in 9001 .
    hope this would solve your problem.
    reward points, if its helpful.
    Thanks
    RK Nimma

  • Logic based on Date on Selection-Screen

    Dear friends,
    I've been writing a report in which I have the date field on selection-screen. By default I have been displaying the system date on the selection-screen.
    The reqiurement is that the user cannot execute the code for a date in past (less than the system date) or cannot give a date less than the sytem date
    but can execute the same for a date in future (greater than the system date).
    Can any one give me the logic for the same.
    Regards,
    Alok.

    Hi
    This is the code for u.
    PARAMETERS : P_DATE TYPE SY-DATUM .
    INITIALIZATION.
      MOVE SY-DATUM TO P_dATE.
    AT SELECTION-SCREEN ON P_DATE.
       IF P_DATE < SY-DATUM.
                  MESSAGE 'Entered date cannot be in Past' Type 'E'.
    **Raise any message that u created otherwise 
       ENDIF.
    <b>Reward if Helpful</b>

  • Default date on selection-screen.

    Hi ABAPers,
    My requirement is that, i have one period(date) select-option in my selection screen.
    Now the problem was basing on the month the first and last date of that particular month should be initialised.
    For Ex:- present month was may, so in selection screen the date should be,
    PERIOD    05/01/2007    TO   05/31/2007
    Can any one send me the code for that.
    Thanks in Advance.
    Regards,
    Ramana Prasad. T

    Hi,
    you can use this code just copy paste and run
    SELECT-OPTIONS: s_date FOR sy-datum OBLIGATORY.
                                   DATA: l_date TYPE sy-datum.
                                   INITIALIZATION.
                                     s_date-sign   = 'I'.
                                     s_date-option = 'EQ'.
                                     s_date-low  = sy-datum.
                                     s_date-low+6(2) = '01'.
                                     s_date-sign   = 'I'.
                                     s_date-option = 'EQ'.
                                     s_date-high = sy-datum - l_date+6(2)  .
                                     s_date-high4(2) =  s_date-high4(2).
                                     CASE sy-datum+4(2).
                                       WHEN '1' OR '3' OR '5' OR '7' OR '8' OR '10' OR '12'.
                                         s_date-high+6(2) = '31'.
                                       WHEN '4' OR '6' OR  '9' OR  '11'.
                                         s_date-high+6(2) = '30'.
                                       WHEN '2' .
                                         s_date-high+6(2) = '28'.
                                     ENDCASE.
                                     APPEND s_date.
    regards ,
    Sudha.
    reward points if useful.

  • How to print data of selection screen

    hi plz tell me how to print that data in smartforms which the user enters in the selection screen...........

    Use FM RS_COVERPAGE_SELECTIONS
        CALL FUNCTION 'RS_COVERPAGE_SELECTIONS'
             EXPORTING
                  REPORT            = L_REPORTIDENTIFICATION
                  VARIANT           = SY-SLSET
                  NO_IMPORT         = 'X'                       "07/04/98
             TABLES
                  INFOTAB           = T_INFOSELECT
             EXCEPTIONS
                  ERROR_MESSAGE     = 1
                  VARIANT_NOT_FOUND = 3
                  OTHERS            = 2.

  • Reg: Alv and selection-screen

    Hi,
    I created a ALV report,
    I gave the user provision delete rows and dispalyed the new list without the deleted rows( one row at a time)
    when i deleted few rows and when i press the back button i am getting all the rows deleted, but i want to jump directly to selection screen
    please help me how to jump to selection screen after pressing the back button
    i tried set screen 0     leave to screen 0 but of no use,
    please help in this regard
    thnx

    Hi learner,
    After deleting a row in ur internal tab u hav to refresh the display to remove dat row from display rite .....how r u doing it...??
    Are u calling the ALV FM again... if ur doin so !! its a wrong way and der lies de problem....
    check the sample code below in which if u double click on a row dat row gets deleted and the screen is refreshed.....also if u click back it goes to the selection-screen and not the previous alv display with deleted rows......
    TYPE-POOLS: slis.
    PARAMETERS rows TYPE i DEFAULT 20.
    DATA: itab        TYPE TABLE OF mara      WITH HEADER LINE,
          ls_layout   TYPE slis_layout_alv.
    START-OF-SELECTION.
      SELECT * UP TO rows ROWS
      FROM   mara
      INTO   CORRESPONDING FIELDS  OF TABLE itab.
      ls_layout-colwidth_optimize = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_structure_name        = 'MARA'
          is_layout               = ls_layout
          i_callback_program      = sy-repid
          i_grid_title            = 'Double click on a row'
          i_callback_user_command = 'EVENT_HANDLER'
        TABLES
          t_outtab                = itab[].
    *&      Form  event_handler
    FORM event_handler  USING r_ucomm     TYPE sy-ucomm
                              rs_selfield TYPE slis_selfield.
      CLEAR  itab.
      DELETE itab INDEX rs_selfield-tabindex.
      MOVE 'X'   TO rs_selfield-refresh .                 " this automatically refreshes the display
    ENDFORM.                    "event_handler
    Cheers,
    jose.

  • Regarding dates and selection screen

    Hi all,
    In my selection screen i have 2 date fields(ranges). I have a requirement wherein i have to allow user to select only one date i.e. let the date fields be date1 and date2 when the user enters date1 he should not be allowed to enter date2 and when the user enters date2 then he should not be allowed to enter date1.
    when user enters date1 and tries to enter date2 then a message should be displayed.
    pls urgent requirement and points are gauranteed.
    Regards,
    Ravi

    try this code
    slect-options : sdate1 for mkpf-budat,
                          sdate2 for mkpf-budat.
    parameters : rdate1 radiobutton group rb1 user-command date default 'X',
                       rdate1 radiobutton group rb1.
    at selection-screen output.
    if rdate1 = 'X'.
    loop at screen.
    if screen-name = sdate2-low or screen-name = sdate2-high.
    screen-input = '0'.
    modify screen.
    elseif rdate2 = 'X'.
    loop at screen.
    if screen-name = sdate1-low or screen-name = sdate1-high.
    screen-input = '0'.
    modify screen.
    endif.
    at selection-screen.
    if rdate1 = 'X'.
    clear sdate2[].
    elseif rdate2 = 'X'.
    clear sdate1[].
    endif.
    START-OF-SELECTION.
    regards
    shiba dutta

  • Dynamic Variant -Current date  in selection screen - for batch jobs

    Hi Experts,
    My report runs in batch job with a variant, daily.
    One of the filed in selction screen should hv CURRENT DATE, with out providing as input explicitly by user.
    So, How Can I get it done?
    Its some thing with Dynamic variants + Selection Variables +  date selection, but, I forgot the navigation etc.
    pl. let me know
    thanq

    thanq.
    and pls. let me further clarify that,
    programitically am populating the date as current date minus 1 in the field of my_date in the selection screen.
    now, they wanna to run the report in back ground, daily.
    now, I followed ur tip/link and saved with_date_variant, fine.
    so, pls. let me know that,
    1) if the report runs in back ground tomorrow with with_date_variant(which is i created by seeing ur link), Is the selection screen my_date(prog. populates as June 5th) will be override with current date(i.e. June 6th)?
    In broad, Is the selection criteria wuld be over writes with the Dynamic varints?
    thanq

  • Validate the data in the internal table with the date in selection screen

    Hi all,
    I want to validate the data in the internal table and get only the records with the input date in the selection screen.
    The date is in the select options and please let me know how to get the records only if it satisfies the input date in the selection screen.
    Regards,
    Shalem

    For Ex.
    SELECT-OPTIONS: S_DATE FOR VBAK-VDATU
    If you want to read one INTERNAL TABLE record
    READ TABLE it_tab(internal table name) WHERE vdatu(date field name in the internal table) = s_date
    If you want to move more then one
    LOOP AT it_tab WHERE vdatu = s_date.
    Take the field values in another table and append it. then end loop.
    you will get the records which only have the date in select option..
    If you want detail code give me internal table name and select option name i will write you the code.
    regards
    Yuvaram

  • Not accepting date in selection screen

    Hi,
    I'm trying to submit rkaep000 with values to order, expected debit date and display variant in the selection screen. I'm able to fill values to order and display variant but not to the date. Why am I not able to pass the dates????? Tried directly passing then passing as range but still it takes the default date.
            submit rkaep000  via selection-screen
                   WITH p_tcode = 'KOB2'
                   WITH aufnr   in r_aufnr
                 WITH r_obdat in r_date
                    WITH r_obdat-low EQ '01032003'
                    WITH r_obdat-high EQ '01032007'
                    WITH p_disvar = 'SCORP 1404'
                   to sap-spool spool parameters params
                   without spool dynpro
                   and return .

    if r_obdat is a select option have you also tried:
    r_date-low = '20030301'.
    r_date-high = '20070301'.
    r_date-sign = 'I'.
    r_date-option = 'BT'.
    append r_date.
    submit rkaep000 via selection-screen
    WITH p_tcode = 'KOB2'
    WITH aufnr in r_aufnr
    WITH r_obdat in r_date
    WITH p_disvar = 'SCORP 1404'
    to sap-spool spool parameters params
    without spool dynpro
    and return .

  • Dates in selection screens

    I need to ask for the month in a selection screen (january, feb...) witha F4, wathever
    How can I do that???
    Thanks

    hi  check this ,
    report .
    tables: t247 , DFIES.
    parameters:p_month  LIKE T247-MNR.
    data: begin of itab occurs 0,
          mnr like t247-mnr,
          ktx like t247-ktx,
          end of itab .
    DATA : LT_FIELDS TYPE TABLE OF DFIES,
    LS_FIELD TYPE DFIES.
    at selection-screen on  value-request for  p_month.
    select MNR
           KTX
           from t247 into  corresponding fields of table itab
    where  spras = 'EN'.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = 'P_MONTH'
    DYNPPROG = sy-cprog
    DYNPNR = sy-dynnr
    DYNPROFIELD = 'MNR'
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = itab
    FIELD_TAB = LT_FIELDS .
    regards,
    venkat.

  • Reg: GOING TO SELECTION SCREEN FROM ALV GRID.

    Hi all,
    Iam using an ALV grid display.
    I have called the grid display every times when i select a check box in the grid display.
    Then when i click on the back button the screen navigates to the previous ALV grid. My requirement is to go to the first selection screen.
    For this I have coded in the Back button as Call selection--screen <screen no>.
    When i do this, and after navigation to the selection-screen when i click on the back button on the selection screen its navigating back to the ALV grid.
    But i need to exit to the program in this case.
    Can anyone Help me on this issue?
    Regards
    Naveen

    You have to use LEAVE TO SCREEN 0.
    Regards
    Eswar
    Addition: Also see that you are releasing the grid with statement like CALL METHOD g_grid->free.
    So the code should be something like:
      CASE ok_code.
        WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
          CALL METHOD g_grid->free.
          LEAVE TO SCREEN 0.
      ENDCASE.
    Edited by: Eswar Rao  Boddeti on Feb 19, 2008 1:48 PM

  • How to change the caption in data entry selection screen??

    using cats0009 i populated the data into wbs desc and a/a desc but
    but i am not able to change the name(caption of additioanl field) as 'wbs description'. and A/A desciption.
    can anyone please help me out how to do this...

    You don't mean selection text do you? Can you be more specific?

Maybe you are looking for