To disply month on selection screen

Hi all,
        i'm modifying one report which contains date field on selection screen i need to replace date field by month field( jan, feb..) , how to do this.
Is there any function modules available
Regards
Suprith

You can try something as below:
TYPE-POOLS: vrm.
PARAMETERS: p_month TYPE ltx AS LISTBOX VISIBLE LENGTH 10.
DATA: i_val TYPE vrm_values,
      wa_val TYPE vrm_value,
      i_t247 TYPE STANDARD TABLE OF t247,
      wa_t247 TYPE t247.
INITIALIZATION.
  CALL FUNCTION 'MONTH_NAMES_GET'
   EXPORTING
     language                    = sy-langu
    TABLES
      month_names                 = i_t247
   EXCEPTIONS
     month_names_not_found       = 1
     OTHERS                      = 2.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  LOOP AT i_t247 INTO wa_t247.
    wa_val-key = wa_t247-mnr.
    wa_val-text = wa_t247-ltx.
    APPEND wa_val TO i_val.
  ENDLOOP.
  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      id              = 'P_MONTH'
      values          = i_val
    EXCEPTIONS
      id_illegal_name = 1
      OTHERS          = 2.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
Regards
Eswar

Similar Messages

  • Year-month-week selection screen format?

    Hi experts,
    I will create sd report but I need selection screen that includes year-month-week,
    example;
    Year   :   2012
    Month :  March    ( Listbox for all months )
    Week :  1.week   
    I wıll execute report like that.
    This report program is going to be comparison of weeks in specific years.
    How can I achieve this selection screen ?
    any help will be appreciate
    best regards

    Hello Kutay,
    This is an example of listbox.
    PARAMETERS:  listbox(1) AS LISTBOX VISIBLE LENGTH 10 DEFAULT 'N'.
    AT SELECTION-SCREEN OUTPUT.
    DATA:
    name TYPE vrm_id,
    list TYPE vrm_values,
    value TYPE vrm_value.
    name = 'LISTBOX'. " Name should be in UPPER CASE
    value-key = '1'.
    value-text = 'January'.
    APPEND value TO list.
    value-key = '2'.
    value-text = 'February'.
    APPEND value TO list.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id = name
    values = list
    EXCEPTIONS
    id_illegal_name = 0
    OTHERS = 0.
    Idem for week field.
    I hope you help.

  • I wnat to select month in selection screen

    Hi ., can anyone tell me how to select Month in the selection screen.
    POPUP_TO_SELECT_MONTH is displaying both <b>month</b> and the <b>year</b> in the selection-screen.
    but i want only month to be displayed in the selection-screen. i.e., like October, december...
    my code is like this
    parameters : s_month like isellist-month.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MONTH.
    CALL FUNCTION 'POPUP_TO_SELECT_MONTH'
      EXPORTING
        ACTUAL_MONTH                     = '200510'
      FACTORY_CALENDAR                 = ''
      HOLIDAY_CALENDAR                 = ' '
       LANGUAGE                         = SY-LANGU
      START_COLUMN                     = 8
      START_ROW                        = 5
    IMPORTING
       SELECTED_MONTH                   = S_MONTH
       RETURN_CODE                      = S_CODE

    use  this function to change  from digit  to text as ur requirment.....
    CALL FUNCTION 'MONTH_NAMES_GET'
                     EXPORTING
                       language                    = sy-langu
                     mnr                         = num
                   IMPORTING
                     RETURN_CODE                 =
                      TABLES
                        month_names                 = it_month
                   EXCEPTIONS
                     MONTH_NAMES_NOT_FOUND       = 1
                     OTHERS                      = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE it_month WITH KEY mnr = date+4(2).

  • Month in report from selection screen

    Hi Experts,
    I have to create a report which should display like :-
    PLANT  |  MONTH  |  TARGET  |  PVDONE  |
    2000     |  Aug2007 |   50           |   20           |
    2000     |  Sep2007 |   30           |   10           |
    3000     |  Aug2007 |   40           |   10           |
    3000     |  Sep2007 |   30           |   5             |
    Target means No. of materials whose phy.inventory not done for the month ,
    PVDONE means No. of materials whose phy. inventory done for the month.
    In selection screen inputs are Plant, Month & storage location.
    The problem is how to get all the materials selected in the selection screen for choosen plant. how to put the month n selection screen in a internal table to diplay and perform calculations
    Regards
    Nik

    Hi,
    Based on the month and year input get the First date and last date of the Month and use this range in your selection screen.

  • By entering month and year in selection screen

    Hi Friends,
                   My requirement is , when i enter month and year in selection screen and again i press enter now it show me the begin and end date of that month  in selection screen.
    Thanks & Regards,
    Himanshu

    u can use this type of code...
    AT SELECTION-SCREEN.
      DATA it_dynfield TYPE STANDARD TABLE OF dynpread WITH HEADER LINE.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname               = sy-repid
          dynumb               = sy-dynnr
          request              = 'A'
          translate_to_upper   = 'X'
        TABLES
          dynpfields           = it_dynfield
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          invalid_parameter    = 7
          undefind_error       = 8
          double_conversion    = 9
          stepl_not_found      = 10
          OTHERS               = 11.
      READ TABLE it_dynfield WITH KEY fieldname = 'month'.
      IF it_dynfield-fieldvalue IS NOT INITIAL.
        month = it_dynfield-fieldvalue.
      ENDIF.
      READ TABLE it_dynfield WITH KEY fieldname = 'year'.
      IF it_dynfield-fieldvalue IS NOT INITIAL.
        year = it_dynfield-fieldvalue.
      ENDIF.
    use FM HR_JP_MONTH_BEGIN_END_DATE..
    get startdate and enddate
    AT SELECTION-SCREEN OUTPUT.
    startdate = <start date from FM>.
    end date = <end date from FM>.

  • Field catalog restriction with the selection screen input

    Hi,
      I am doing ALV grid report.In that I am facing problem,fieldcat has to display according to the input given in the selection screen.
    my selection screen value is s_gstrp+4(2) that is month given inthe input.
         PERFORM FIELD_CATALOG TABLES IT_FIELDCAT
           USING: 'IT_COL_PLAF' 'PWWRK' 'X' 'Plant' ' ',
                 'IT_COL_PLAF' 'MATNR' ' ' 'Material' ' ',
                 'IT_COL_PLAF' 'MAKTX' ' ' 'Material description' ' ',
                 'IT_COL_PLAF' 'MEINS' ' ' 'Unit' ' '.
          PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
                     'IT_COL_PLAF' 'GSMNG_01' ' ' 'Jan-Qty' ' '.
          PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
                     'IT_COL_PLAF' 'GSMNG_02' ' ' 'Feb-Qty' ' '.
            PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
                     'IT_COL_PLAF' 'GSMNG_03' ' ' 'Mar-Qty' ' '.
          PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
              'IT_COL_PLAF' 'GSMNG_04' ' ' 'Apr-Qty' ' '.
             PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
              'IT_COL_PLAF' 'GSMNG_05' ' ' 'May-Qty' ' '.
              PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
              'IT_COL_PLAF' 'GSMNG_06' ' ' 'Jun-Qty' ' '.
            PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
              'IT_COL_PLAF' 'GSMNG_07' ' ' 'Jul-Qty' ' '.
            PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
             'IT_COL_PLAF' 'GSMNG_08' ' ' 'Aug-Qty' ' '.
              PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
              'IT_COL_PLAF' 'GSMNG_09' ' ' 'Sep-Qty' ' '.
             PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
             'IT_COL_PLAF' 'GSMNG_10' ' ' 'Oct-Qty' ' '.
             PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
             'IT_COL_PLAF' 'GSMNG_11' ' ' 'Nov-Qty' ' '.
            PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
            'IT_COL_PLAF' 'GSMNG_12' ' ' 'Dec-Qty' ' '.
    if month given in select-option : sep to dec ie,1.09.2009 to 31.12.2009.
    then my field cat has to display,sep qty,oct,qty,nov qty,dec,qty.
    Suggest some ideas.
    regards,
    Bathri

    hi,
    Use
    if month ge  09 .
    PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
              'IT_COL_PLAF' 'GSMNG_09' ' ' 'Sep-Qty' ' '.
    endif.
    if month ge 10.
             PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
             'IT_COL_PLAF' 'GSMNG_10' ' ' 'Oct-Qty' ' '.
    endif.
    if month ge 11.
             PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
             'IT_COL_PLAF' 'GSMNG_11' ' ' 'Nov-Qty' ' '.
    endif.
    if month ge 12.
            PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
            'IT_COL_PLAF' 'GSMNG_12' ' ' 'Dec-Qty' ' '.
    endif.
    if month given in select-option : sep to dec ie,1.09.2009 to 31.12.2009.
    then my field cat has to display,sep qty,oct,qty,nov qty,dec,qty.
    If if you give month in selection screen you will get relevant month details .
    Regards
    Nandan.N

  • SELECTION SCREEN FIELD FOR MONTH AND YEAR

    Hi All.
    We are developing a 'Monthly Sales Tax(payable) Report.
    they want the report based on the date(in the selection screen it will come only month and year only.).Depends on that month and year for that select-options ,it will pick up the record.
    like if, jan 2005  to march 2006.
    then it will  pick up from 01.01 .20005 to 31.03.2006  records.
    Can any body help me to resolve this.
    Thanks in advance,
    Regards,
    Venkat

    Hi Venkat,
    Copy the following code.
    DATA :  ws_billfrom    TYPE dats,
            ws_billto      TYPE dats.
    DATA : mon TYPE fcltx.
    SELECT-OPTIONS: s_month FOR mon
                MATCHCODE OBJECT zsdhtch_sh_mnth
                OBLIGATORY. "o get values for F4
    PARAMETER :  p_year LIKE bkpf-gjahr
                 MATCHCODE OBJECT zsdhtch_sh_year
                 OBLIGATORY.
    RANGES : s_date FOR sy-datum.
    DATA : ws_fcmnr TYPE fcmnr.
    START-OF-SELECTION.
      SELECT SINGLE mnr
             INTO ws_fcmnr
             FROM t247
             WHERE ltx = s_month-low.
      CONCATENATE p_year ws_fcmnr '01' INTO ws_billfrom.
      CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
           EXPORTING
                iv_date             = ws_billfrom
           IMPORTING
                ev_month_begin_date = ws_billfrom
                ev_month_end_date   = ws_billto.
      s_date-low = ws_billfrom.
      s_date-high = ws_billto.
      s_date-sign = 'I'.
      s_date-option = 'BT'.
      IF NOT s_month-high IS INITIAL.
        SELECT SINGLE mnr
               INTO ws_fcmnr
               FROM t247
               WHERE ltx = s_month-high.
        CONCATENATE p_year ws_fcmnr '01' INTO ws_billfrom.
        CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
             EXPORTING
                  day_in            = ws_billfrom
             IMPORTING
                  last_day_of_month = ws_billto.
        s_date-high = ws_billto.
      ENDIF.
      APPEND s_date.
      WRITE s_date.
    You can write your select statement here.  
      select * from dbtable where date in s_date.
    If 'HR_JP_MONTH_BEGIN_END_DATE' is nto there in your server, you can use 'RP_LAST_DAY_OF_MONTHS' in both cases.
    Regards,
    Susmitha.
    Dont forget to reward points for  useful answers

  • Display month and year in dropdown list on selection screen

    Hi
      Can anyone tell me how to display months and year in a dropdown list on a selection screen?
      also please tell me how to get the first and the last dates upon selecting the month and year on the dropdown list.
    Month: January Year:2007 . 
    After selecting the required month and year, the first date and last date i.e '01.01.2007 - 31.01.2007' should be displayed on the right side.
    Reward Points assured..
    thanks,
    Chetan

    Hi..,
    <b>
    Just copy, paste and execute this program !!</b>
    type-pools: vrm.
    parameters : p_month(2) type n as listbox visible length 10,
    p_year(4) type n as listbox visible length 10.
    DATA : W_DATE type d, w_ldate type d.
    initialization.
    perform user_drop_down_list_fordt.
    perform user_drop_down_list_foryr.
    start-of-selection.
    concatenate p_year p_month '01' into w_date.
    call function 'BKK_GET_MONTH_LASTDAY'
      exporting
        i_date        = w_date
    IMPORTING
       E_DATE        = w_ldate
    write /: w_date,w_ldate.
    build user_drop_down_list
    form user_drop_down_list_fordt.
    data: name type vrm_id,
    list type vrm_values,
    value like line of list.
    data: t_months type t247 occurs 0 with header line.
    clear list. refresh list.
    name = 'P_MONTH'.
    select * into  table t_months
    from t247 where spras eq 'EN'.
    sort t_months ascending by mnr.
    loop at t_months.
    clear value.
    value-key = t_months-mnr.
    value-text = t_months-ltx.
    append value to list.
    endloop.
    Set the values
    call function 'VRM_SET_VALUES'
    exporting
    id = name
    values = list.
    endform.
    for year...
    form user_drop_down_list_foryr.
    data: name type vrm_id,
    list type vrm_values,
    value like line of list.
    clear list. refresh list.
    name = 'P_YEAR'.
    do 9999 times.
    clear value.
    value-key = sy-index.
    append value to list.
    enddo.
    Set the values
    call function 'VRM_SET_VALUES'
    exporting
    id = name
    values = list.
    endform.
    <b>
    Hope this solves ur problem..</b>
    regards,
    sai ramesh

  • Can we modify the pnp selection screen and get only month and year?

    Dear Freinds,
                  I have requirement where i have to modify the PNP selection screen. So with the help of report category and coding in AT SELECTION-SCREEN OUTPUT  , i have modified all the fields relating to dates . i.e i have removed all the radio buttons (i.e Today, Current month,current year etc) and finally
    i have landed with only Period ( PNPBEGDA & PNPENDDA range) . But i dont want the PNPBEGDA & PNPENDDA range , but i want only is the month and year ( i.e just like the PNPPABRP & PNPPABRJ)
    on my selection screen along with the pernr .
    i have used the below code to close all the fields except pnpbegda and pnpendda.
    AT Selection-Screen output.
    loop at screen.
      IF screen-group4 = '098' .
          screen-input = '0'.
          screen-invisible = '1'.
        ENDIF.
        IF screen-group4 = '092' .
          screen-input = '0'.
          screen-invisible = '1'.
        ENDIF.
        IF screen-group4 = '094' .
          screen-input = '0'.
          screen-invisible = '1'.
        ENDIF.
        IF screen-group4 = '100' .
          screen-input = '0'.
          screen-invisible = '1'.
        ENDIF.
        IF screen-group4 = '104' .
          screen-input = '0'.
          screen-invisible = '1'.
        ENDIF.
        MODIFY SCREEN.
    endloop.
    i.e on my selection screen i want only  month & year combination and pernr -
    when iam using the logical database PNP . Could any one please let me know how can i get only mon & year only on my selection screen .
    If it is possible please let me know .
    Thanks & regards
    divya.

    Hi ,
       The requirement is that the user doesnt want to enter the date range i.e for ex:  01012008 to 31012008.
    As per the requirement the user will enter only the month and year only . so i on the selection screen
    i want only the month and year only . Is there any means i can modify the date period which is there by
    default (PNPbegda and PNPendda) on PNP selection screen. Instead of we givign to the user the
    PNPBEGDA and PNPPENDA i want is only month and year .
    AS already the code has already been written and now they have asked that they want only the month and year on the selection screen.
    Please suggest me in this regard.If iam hiding all the buttons relating the dates fields, and now if iam adding the parameters for the month and year  it is coming below below the fields pernr , personnel ara and subara , company code , payroll area, employee group of the standard fields of PNP selection screen , there by any body could please suggest me how to change.
    regards
    divya.

  • Get Months for the given date ranges on the Selection Screen

    Hello All,
    If I give Begin Date (Begda) and End Date (Endda) on the Selection Screen, I need to get all the months given in the selection screen ranges.
    Could any one please suggest me how to proceed further on this.
    Thanks in Advance
    Regards
    Yathish

    HI,
    Check this FM
    HR_99S_INTERVAL_BETWEEN_DATES  ---> this can help you it will return the month in this table MONTH_TAB
    HR_99S_MONTHS_BETWEEN_DATES

  • Selection screen - month and year

    Hi friends,
    I have a selection screen where I need to have two fields one for Period(month) and the other for Fiscal year. So I used
    parameters    :  p_lfmon   like mbewh-lfmon.
    parameters    :  p_lfgja   like mbewh-lfgja.
    My requirement is when I execute the program I want to see the current period(08) and Year(2006) in these two fields. And also I was wondering if we can add the input help F4 for these two fields as they dont have one right now.
    Finally if I want to compare the these two fields month and year with a field in normal date format (08/25/2006), what is the easiest way to do that.
    Waiting for replies. Especially from Rich. Thanks

    If you need to default the current fiscal period, then you can do this.
    report zrich_0001.
    data: datum type sy-datum value '20060806'.
    parameters: p_spbup type spbup  .
    initialization.
      data: xgjahr type bkpf-gjahr.
      data: xpoper type t009b-poper.
      call function 'FI_PERIOD_DETERMINE'
           exporting
                i_budat = sy-datum
                i_bukrs = '0010'
           importing
                e_gjahr = xgjahr
                e_poper = xpoper.
      concatenate xgjahr xpoper+1(2) into p_spbup.
    start-of-selection.
      if datum+0(6) = p_spbup.
        write:/ datum, 'is in period', p_spbup.
      endif.
    Regards,
    Rich Heilman

  • Month/year input field in selection screen

    Hi,
    Can anyone tell how to declare an input field in selection screen in the format month/year with out day.
    Thanks.
    Prasad.

    hi ,
    I have the same doubt ,
    but its taking invalid input also as in if i enter 13/2006
    Can it be avoided,
    also can the calender be displayed at F4 on such field.
    Thanks in advance
    Regards
    Bijal

  • Change order variable in selection screen of WAD

    Hi,
    I created a wad with 2 queries.
    Selection screen of Query A :
    Year
    Month
    Site
    Customer
    Activity
    Selection screen of Query B :
    Year
    Site
    Customer
    I checked the [MELT_VARIABLES] in the WAD because Year, Site and Customer are in both queries
    Unfortunately, the result in my wad is :
    Year
    Site
    Customer
    Month
    Activity
    But i would like to have :
    Year
    Month
    Site
    Customer
    Activity
    How could i do it ?
    Thanks in advance

    @Rakesh,
    I'm using WAD 7.0
    @Edward,
    Yes, i know it's possible to change the ordre in Query Designer.
    It's why i set the sequence in Query A and Query B as i showed in my initial post.
    Unfortunately, it seems than in WAD the sequence is changed.
    First, it show the variable that exist in both queries ( in my case : Year, Site and Customer )
    then the variable that exist only in query A ( Month, Activity )
    then the variable that exist only in query B  ( Nothing )
    I wish to change this behavior.
    Thanks,
    David

  • How to use MM/YYYY Format in the selection Screen?

    There is this program RMCB0300 where the date format in the selection screen has MM/YYYY Format.
    I am working on a report which requires it "Period" Field in the selection screen to be in the same format.
    However, i am trying to give the select option as " SL_SPMON FOR S031-SPMON MODIF ID PER." and declaring S031 table in the declaration part.
    But still, its not been able to provide me F4 help in the inpur screen.
    Can someone please provide me some guidance in this regard?

    Hi,
    the following works for me..
    *& Report  ZPMONAT                                                     *
    report  zpmonat                                 .
    tables: s031.
    selection-screen begin of block abc.
    select-options:  sl_spmon for s031-spmon.
    selection-screen end of block abc.
    at selection-screen on value-request for sl_spmon-low.
      perform monat_f4.
    at selection-screen on value-request for sl_spmon-high.
      perform monat_f4.
    start-of-selection.
    end-of-selection.
    *&      Form  monat_f4
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form monat_f4 .
      data: begin of mf_dynpfields occurs 1.
              include structure dynpread.
      data: end   of mf_dynpfields.
      data: mf_returncode   like sy-subrc,
            mf_monat        like isellist-month,
            mf_hlp_repid    like sy-repid.
      field-symbols: <mf_feld>.
    * Wert von Dynpro lesen
      get cursor field mf_dynpfields-fieldname.
      append mf_dynpfields.
      mf_hlp_repid = sy-repid.
      do 2 times.
        call function 'DYNP_VALUES_READ'
          exporting
            dyname               = mf_hlp_repid
            dynumb               = sy-dynnr
          tables
            dynpfields           = mf_dynpfields
          exceptions
            invalid_abapworkarea = 01
            invalid_dynprofield  = 02
            invalid_dynproname   = 03
            invalid_dynpronummer = 04
            invalid_request      = 05
            no_fielddescription  = 06
            undefind_error       = 07.
        if sy-subrc = 3.
    *     Aktuelles Dynpro ist Wertemengenbild
          mf_hlp_repid = 'SAPLALDB'.
        else.
          read table mf_dynpfields index 1.
    *     Unterstriche durch Blanks ersetzen
          translate mf_dynpfields-fieldvalue using '_ '.
          exit.
        endif.
      enddo.
      if sy-subrc = 0.
    *   Konvertierung ins interne Format
        call function 'CONVERSION_EXIT_PERI_INPUT'
          exporting
            input         = mf_dynpfields-fieldvalue
          importing
            output        = mf_monat
          exceptions
            error_message = 1.
        if mf_monat is initial.
    *     Monat ist initial => Vorschlagswert aus akt. Datum ableiten
          mf_monat = sy-datlo(6).
        endif.
        call function 'POPUP_TO_SELECT_MONTH'
          exporting
            actual_month               = mf_monat
          importing
            selected_month             = mf_monat
            return_code                = mf_returncode
          exceptions
            factory_calendar_not_found = 01
            holiday_calendar_not_found = 02
            month_not_found            = 03.
        if sy-subrc = 0 and mf_returncode = 0.
    *     ASSIGN (MF_DYNPFIELDS-FIELDNAME) TO <MF_FELD>. " ==>> note 148804
    *     <MF_FELD> = MF_MONAT.
          call function 'CONVERSION_EXIT_PERI_OUTPUT'
            exporting
              input  = mf_monat
            importing
              output = mf_dynpfields-fieldvalue.
          collect mf_dynpfields.
          call function 'DYNP_VALUES_UPDATE'
            exporting
              dyname               = mf_hlp_repid
              dynumb               = sy-dynnr
            tables
              dynpfields           = mf_dynpfields
            exceptions
              invalid_abapworkarea = 01
              invalid_dynprofield  = 02
              invalid_dynproname   = 03
              invalid_dynpronummer = 04
              invalid_request      = 05
              no_fielddescription  = 06
              undefind_error       = 07.           "<<== note 148804
        endif.
      endif.
    endform.                                                    " monat_f4
    Regards,
    Suresh Datti

  • How to display current day(13-nov-06) in selection screen-its very urgent

    hi all,
    iam sending code to change the date from mm/dd/yyyy to dd-mon-yy(10-nov-06).my requirement is i have to keep a parameter and when iam executing thid report say p_text1 is a parameter when iam executing this report in selection screen it has to show 12-nov-06 say current date.any body can suggest me how to do and please send me the sample code.
    iam sending the code to change the date format as below.
    data: begin of itab occurs 0,
    SPRAS type SPRAS,
    MNR LIKE T247-MNR,
    KTX LIKE T247-KTX,
    LTX LIKE T247-LTX,
    end of itab.
    DATA : month LIKE T247-MNR.
    DATA: YEAR(4).
    DATA: FINAL(18).
    DATA: DAY(2).
    DAY = sy-datum+6(2).
    MONTH = sy-datum+4(2).
    YEAR = sy-datum+0(4).
    DAY = sy-datum+6(2).
    YEAR = sy-datum+0(4).
    select SINGLE * from t247 into itab where mnr = month
    AND SPRAS = 'E'.
    APPEND ITAB.
    CONCATENATE DAY ITAB-KTX YEAR+2(2)
    INTO FINAL SEPARATED BY '-'.
    WRITE: FINAL.
    thanks,
    maheedhar.T

    keep this entire code in INITIALIZATION EVENT.
    data: begin of itab occurs 0,
    SPRAS type SPRAS,
    MNR LIKE T247-MNR,
    KTX LIKE T247-KTX,
    LTX LIKE T247-LTX,
    end of itab.
    DATA : month LIKE T247-MNR.
    DATA: YEAR(4).
    DATA: FINAL(18).
    DATA: DAY(2).
    parameters: p_date type char15.
    initialization.
    DAY = sy-datum+6(2).
    MONTH = sy-datum+4(2).
    YEAR = sy-datum+0(4).
    DAY = sy-datum+6(2).
    YEAR = sy-datum+0(4).
    select SINGLE * from t247 into itab where mnr = month
    AND SPRAS = 'E'.
    APPEND ITAB.
    CONCATENATE DAY ITAB-KTX YEAR+2(2)
    INTO P_DATE SEPARATED BY '-'.

Maybe you are looking for

  • Black background in native Display List elements overlayed with Starling

    Hello, I'm having an issue in the iPad, where all native DisplayObjects are shown with an opaque black background instead of being transparent while being displayed over Starling graphics using "nativeOverlay". This doesn't happen in the PC, in ADL,

  • Exporting dvcprohd 720p to play on youtube

    I have a sequence shot with an hvx in the 720p native format. I am trying to export it and put it on youtube. I am very new to hd, and I am hoping someone can help me with the right export settings I need for the best playback on the web. I know that

  • Does Konqueror Support Two Home Pages? File Manager Home, Web Home?

    Konqueror is getting better and better as a browser and I was using it at length the other day. I really miss a Home page though - not just the first page loaded, but a page you can return to by pressing a Home button on the button bar. Now Konqueror

  • Calendar Drag and Drop not working

    Hi All, I am trying drag and drop feature in calendar. I added Calendar Drop Attribute and associated a listener from my backing bean. Upon Drag and drop activity listener is not fired. Below is the xml fragment <af:calendarDropTarget dropListener="#

  • JSP dosen't work..

    I am a beginner and posting here for the first time. I am looking for little help with the a jsp... Here's my date.jsp: <jsp:useBean id="date" class="DateBean.class"/> <html>      <head>           <title>Date jsp</title>      </head>      <body>