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.

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.

  • 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 .

  • 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?

  • 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

  • How to to load data from a flat file in selection screen in portal .

    Dear All,
    I have a question to share : In BEX analyzer i know how i can upload multiple data in selection screen through a flat file , for example if i have to load 200 materials at one go in the selection screen, i can do that in BEX Analyzer . But if i run the same report through portal i am not able to find the upload option through flat file ..... Am i missing some option here ?
    Thanks & Regards,
    Ashutosh Singh

    You will not be able to load through the portal directly. it is possible to load if you can create Visual composer model. that also you will not be able to upload in bulk.

  • 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.

Maybe you are looking for

  • Is there any way to fix long (45-90 seconds) delay in copying messages to sent mail folder?

    Thunderbird is synched with IMAP to a GMail account. The only time long delays occur is copying messages to the sent mail folder. Is memory or storage within Thunderbird an issue?

  • What exactly the auditing team will or should check in my database.

    Dear all, i am using oracle 10g database on windows server 2003 and oracle application server 10g on windows server 2003. now an internal auditing team is going to audit my database. i want to know what they will audit so that i do preparation for it

  • Call of Duty 4 Processor Requirements.

    I am Thinking about getting Call of Duty 4 for my Mac Mini. But the system requirements says I need to have a 2.0 ghz processor, but I have a 1.82 ghz processor. Could I still play the game or will that be a big factor?

  • OSB Load balancing issue

    We have a situation in our project. We have weblogic8 sp5 server having a MDB deployed which consumes messages from distributed queues created on WLS8. OSB business services post messages on these distributed destinations. Set up: Non production envi

  • FSRM and Quota's showing incorrect values

    Hi, I have set up folder quota's, and on one folder I have set it to 100GB.  This Quota shows as 99% used, but the actual folder in Explorer shows only as 28GB used.  What am I missing, or set up wrong, or is there a fix that needs to be applied? (I