Skip to Content
author's profile photo Former Member
Former Member

providing the weekdays

Hi!

Do you know how I can provide the weekdays

when user klicks on F4 (value halp) ?

e.g. Monday,Thuesday ....

Regards

ilhan ertas

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 10, 2008 at 02:37 AM

    You can create a data element for this field. And in its domain give the week days as its fixed values.

    Domain -> value Range ->Fix. Val.

    Monday

    Tuesday etc.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 10, 2008 at 02:09 AM

    Below example might help you understand for handling your requirement:

    TYPE-POOLS: slis.
    
    PARAMETERS: p_day TYPE langt.
    
    DATA: i_t246 TYPE STANDARD TABLE OF t246,
          wa_t246 TYPE t246.
    
    DATA: li_fc    TYPE   slis_t_fieldcat_alv, " Field Catalog
            lst_fc TYPE   slis_fieldcat_alv,   " Str. Field Catalog
            li_sle TYPE   slis_selfield.       " Field Selection
    
    DATA: l_flag TYPE char01.
    
    
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_day.
    
      CLEAR: li_fc[], lst_fc.
      lst_fc-col_pos = 2.
      lst_fc-fieldname = 'LANGT'.
      lst_fc-outputlen = 20.
      APPEND lst_fc TO li_fc.
    
    * FM for popup window with the list of Valuation Classes
      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
        EXPORTING
          i_title               = 'Weekday'
          i_selection           = 'X'
          i_screen_start_column = 20
          i_screen_start_line   = 10
          i_screen_end_column   = 70
          i_screen_end_line     = 20
          i_tabname             = 'I_T246'
          it_fieldcat           = li_fc
          i_callback_program    = sy-repid
        IMPORTING
          es_selfield           = li_sle
          e_exit                = l_flag
        TABLES
          t_outtab              = i_t246
        EXCEPTIONS
          program_error         = 1
          OTHERS                = 2.
      CLEAR: wa_t246.
      READ TABLE i_t246 INTO wa_t246 INDEX li_sle-tabindex.
      p_day = wa_t246-langt.
    
    INITIALIZATION.
    
      SELECT * FROM t246 INTO TABLE i_t246 WHERE sprsl = sy-langu.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.