Yestarday date(sy-update-1) in select-options

Hi,
I want to show yestarday date in my select-options as default.
I have written like this...
select-options: s_update for sy-datum.
INITIALIZATION.
s_update = sy-datum - 1.
I not getting it...where is wrong?
thanks in advance,
fractal.

Try this
selection-screen begin of block block3 with frame title text-003.
select-options:s_update for sy-datum .
parameter:dat like sy-datum.
selection-screen end of block block3.
INITIALIZATION.
*for slect-options.
s_update-option = 'EQ'.
s_update-sign = 'I'.
s_update-low = sy-datum - 1.
s_update-high = sy-datum - 1.
append s_update.
*For parameter
dat = sy-datum - 1.
Thanks
Message was edited by: Saquib Khan

Similar Messages

  • F4 help for date in select options..

    Hi Gurus,
    I want a search help for date field which belongs to select options.
    I know if it is a parameter we directly map the attribute value to that data element.
    Can some help me with this..
    Best Regards,
    Navin Fernandes.

    Hi Gurus,
    The select options works for date.. I got the solution.
    It directly relates to the default data dcitionary help.
    Got it from this example: WDR_TEST_SELECT_OPTIONS
    Best Regards,
    Navin Fernandes.

  • Update a select-option From Table

    Hi,
    I'm originally a C++ developer trying to learn ABAP.
    I want to append values to a select-option from a table if another select-option is specified.  I wrote some code that I believe will work but looks very inefficient to me.  Any advice on how to streamline this process would appreciated.
    The following is pseudo code and I left out some tweaks for simplicity and understanding but the basic idea is there.  I want to add selection criteria to a select-option based upon a second select option (that may or may not be provided) table lookup.
    Example:
    DATA: groups TYPE table3.
    SELECT-OPTIONS:
         s_accountNo FOR table1-accountNo,
         s_accountGroupNo FOR table2-accountGroupNo.
    **** get the Account Groups that meet the selection criteria.
    START-OF-SELECTION
         SELECT * INTO TABLE groups
              FROM table3
              WHERE accountGroupNo IN s_accountGroupNo.
    **** Remove duplicate accounts from the Account Groups
    SORT groups BY accountNo.
    DELETE ADJACENT DUPLICATES FROM groups COMPARING accountNo.
    **** Append the account #'s onto the s_accountNo range/select-option
    LOOP AT groups.
         APPEND groups-accountNo TO s_accountNo.
    ENDLOOP.
    **** manually edit the  s_accountNo to have the correct option/sign for use in further select statements.
    LOOP AT s_accountNo.
         s_accountNo-sign = 'I'.
         s_accountNo-option = 'EQ'.
         MODIFY s_accountNo.
    ENDLOOP.
    Thanks much,
    -Chris

    The actual selection is fairly complicated from my point of view.  I wrote the accountNo example to make things less confusing for me as much as anyone else, not to hide anything.  I also didn't expect this amount of feedback, though it is appreciated.
    The eventual select statement that is done is the following:
      SELECT DISTINCT vttp~zseq_num
                      likp~vbeln
                      likp~lprio
                      likp~vstel
                      lips~werks
                      likp~lgnum
                      lips~posnr
                      lips~lgort
                      lips~vgbel
                      lips~vgpos
                      lips~sobkz
                      lips~lfimg
                      lips~vrkme
                      lips~matnr
                      lips~volum
                      mara~raube
                      vttk~dplbg
                      vttp~tknum
                      vttp~tpnum
                      likp~berot
                      likp~vkorg
                      likp~lfart
                      INTO TABLE temp_deliveries
      FROM vttk
           INNER JOIN vttp
           ON vttk~tknum = vttp~tknum
           INNER JOIN likpuk AS likp
           ON vttp~vbeln = likp~vbeln
           INNER JOIN lipsup AS lips
           ON likp~vbeln = lips~vbeln
           INNER JOIN mara
           ON lips~matnr = mara~matnr
      WHERE likp~vstel = p_vstel
        AND lips~werks = p_werks
        AND likp~lgnum IN s_lgnum
        AND likp~vbeln IN s_vbeln
        AND lips~vgbel IN s_vgbel
        AND vttk~dplbg IN s_dplbg
        AND vttk~tknum IN s_tknum
        AND mara~raube = p_raube
        AND likp~lfart IN ('ZLF', 'NL')
        AND lips~kosta <> 'C'
        AND lips~kosta <> ''
        AND likp~kostk <> 'C'
        AND likp~vbtyp = outbound.
    and the structure it is put into is the following:
    TYPES: BEGIN OF type_deliveries,
              zseq_num    TYPE vttp-zseq_num,
              vbeln       TYPE likp-vbeln,
              lprio       TYPE likp-lprio,
              vstel       TYPE likp-vstel,
              werks       TYPE likp-werks,
              lgnum       TYPE likp-lgnum,
              posnr       TYPE lips-posnr,
              lgort       TYPE lips-lgort,
              vgbel       TYPE lips-vgbel,
              vgpos       TYPE lips-vgpos,
              sobkz       TYPE lips-sobkz,
              lfimg       TYPE lips-lfimg,
              vrkme       TYPE lips-vrkme,
              matnr       TYPE lips-matnr,
              volum       TYPE lips-volum,
              raube       TYPE mara-raube,
              dplbg       TYPE vttk-dplbg,
              tknum       TYPE vttk-tknum,
              tpnum       TYPE vttp-tpnum,
              berot       TYPE likp-berot,
              vkorg       TYPE likp-vkorg,
              lfart       TYPE likp-lfart,
              sdabw       type likp-sdabw,
              orig_lgort  TYPE lips-zzorig_lgort,
              selected    TYPE flag,
              counter(15) TYPE n,
            END OF type_deliveries.
    Currently there is a select option for tknum and I am attempting (successfully with my change shown above, though as many have pointed out I may be misusing the intended functionality) to add another select-option for s_pickno which is a field of a custom table that has pickno as one of it's unique keys and tknum as another of it's fields.  The idea is to be able to take a pickno and use it to find all the tknum's associated and then use them in the select statement above as well as any tknum's provided as initial input by the user.  If there is a better method than modifying the s_tknum selection I'm open to feedback.
    Apologies that my initial example did not portray this, but being new I was a little overwhelmed myself and want something I can wrap my head around better.  There's my wall of text

  • Date validation using select-options

    i have declared date1 as select-options which is in date format.
    I need to validate min of SIX months duration from LOW value to HIGH value in select-options.How to validate for min SIX months

    Hi,
    u can go through the following code..
    data:
      w_date like sy-datum.
    select-options:
      s_date for w_date.
    initialization.
    s_date-high = sy-datum.
    CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
      EXPORTING
        DATE            = s_date-high
        DAYS            = 0
        MONTHS          = 6
        SIGNUM          = '-'
        YEARS           = 0
    IMPORTING
       CALC_DATE       = w_date .
    s_date-low = w_date.
    append s_date.
    Reward if helpful..........

  • Select options - dynp_values_update

    Hi,
    I need to update a select option ( multiple values ) in the selection screen. I tried with DYNP_VALUES_UPDATE but it was not working. I am checking on this for last two days but did not reach the solution.
    Please donot tell me to use submit statement ( calls an internall session ) becuase that is what i got when i searched in SCN. I want this functionality to happen when the f4 help is selected. We are providing a popup of multiple checkboxes when f4 is pressed on a select option. When one or more check boxes are selected then those values must be appended to the select option. Please give me some ideas.
    If i have to use DYNP_VALUES_UPDATE then how should i use it for select option ?
    Regards
    Kesav

    Hello Keshav,
    Not sure why you've used REUSE_ALV_POPUP_TO_SELECT. You can achieve the same by turning on the MULTIPLE_CHOICE param in F4IF_INT_TABLE_VALUE_REQUEST. Check this code snippet:
    DATA: v_field TYPE fieldname.
    SELECT-OPTIONS: s_field FOR v_field NO INTERVALS.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'S_FIELD-LOW'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_field-low.
    * Local type declarations
      TYPES : BEGIN OF t_flds,
        tabname   TYPE dfies-tabname,
        fieldname TYPE dfies-fieldname,
        keyflag   TYPE dfies-keyflag,
        fieldtext TYPE dfies-fieldtext,
      END OF t_flds.
      CONSTANTS: lc_field TYPE fieldname  VALUE 'FIELDNAME'.
    * Local data declarations
      DATA:
            ls_flds TYPE t_flds,
            lt_flds TYPE STANDARD TABLE OF t_flds,
            ls_values TYPE ddshretval,
            lt_values TYPE STANDARD TABLE OF ddshretval,
            lt_dfies TYPE TABLE OF dfies,
            ls_dfies TYPE dfies.
    * Get field details of the Table
      CALL FUNCTION 'DDIF_FIELDINFO_GET'
        EXPORTING
          tabname        = 'MARC'
          langu          = sy-langu
        TABLES
          dfies_tab      = lt_dfies
        EXCEPTIONS
          not_found      = 1
          internal_error = 2
          OTHERS         = 3.
      IF sy-subrc = 0.
        LOOP AT lt_dfies  INTO ls_dfies WHERE fieldname NE 'MANDT'.
          MOVE-CORRESPONDING ls_dfies TO ls_flds.
          APPEND ls_flds TO lt_flds.
        ENDLOOP.
      ELSE.
        EXIT.
      ENDIF.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = lc_field
          window_title    = 'Select the Table Field'(001)
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'S_FIELD-LOW'
          value_org       = 'S'
          multiple_choice = 'X'
          display         = 'F'
        TABLES
          value_tab       = lt_flds
          return_tab      = lt_values.
      s_field-sign    = 'I'.
      s_field-option  = 'EQ'.
      LOOP AT lt_values INTO ls_values .
        s_field-low = ls_values-fieldval.
        APPEND s_field.
      ENDLOOP.
      DATA: lt_dynpread   TYPE STANDARD TABLE OF dynpread,
            lwa_dynpread  TYPE dynpread.
      READ TABLE s_field INDEX 1.
      IF sy-subrc = 0.
        lwa_dynpread-fieldname  = 'S_FIELD-LOW'.
        lwa_dynpread-fieldvalue = s_field-low.
        APPEND lwa_dynpread TO lt_dynpread.
    *  Update the screen field values
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            dyname               = sy-repid
            dynumb               = sy-dynnr
          TABLES
            dynpfields           = lt_dynpread
          EXCEPTIONS
            invalid_abapworkarea = 1
            invalid_dynprofield  = 2
            invalid_dynproname   = 3
            invalid_dynpronummer = 4
            invalid_request      = 5
            no_fielddescription  = 6
            undefind_error       = 7
            OTHERS               = 8.
        IF sy-subrc NE 0.
        ENDIF.
      ENDIF.
    Hope this helps.
    BR,
    Suhas

  • How to get all the values in the Select-option.

    Hi,
    I got the select-option field so_week, for eg. If I give 200923 to 200926 (year and week)  in the selection screen and then I need to pass this value (200923) to the FM 'ZWEEK_GET_FIRST_DAY' to get the first day of the week.
    My question is how can i get all the values from the select option, (i.e) i need to get 200923, 200924,200925, 200926.
    Regards,
    Anbu.

    Hello,
    I will prefer Max's solution. But just for the sake of this req.
    i need to get 200923, 200924,200925, 200926
    i am proposing my soln:
    DATA: V_WEEK TYPE RSCALWEEK.
    SELECT-OPTIONS: S_WEEK FOR V_WEEK NO-EXTENSION OBLIGATORY.
    AT SELECTION-SCREEN.
      DATA:
      V_COUNT TYPE I,
      V_ADD   TYPE I,
      RT_WEEK TYPE RANGE OF RSCALWEEK,
      RS_WEEK LIKE LINE OF RT_WEEK.
      V_COUNT = ( S_WEEK-HIGH - S_WEEK-LOW ) + 1.
      DO V_COUNT TIMES.
        RS_WEEK-SIGN = 'I'.
        RS_WEEK-OPTION = 'EQ'.
        RS_WEEK-LOW = S_WEEK-LOW + V_ADD.
        APPEND RS_WEEK TO RT_WEEK. "RT_WEEK--> Will contain the week values
        CLEAR RS_WEEK.
        V_ADD = V_ADD + 1.
      ENDDO.
    @Max: I was stupid enough not to think of your solution. Need to leave office
    Cheers,
    Suhas

  • F4 functionality in select option.

    Hi,
    I am not able to get list of values of f4 help for the fields of select option table fields.Even though there are records available in the base table ,whose field is used as reference to the selection option field.
    Kindly let me know, is there any prerequisite i need to do for this problem.
    With Rgds,
    Anil

    Here is example code for the on value request:
    data: gd_name like USR02-BNAME.
    select-options so_fpath for rlgrap-filename.
    *at selection-screen
    AT selection-screen on value-request for so_fpath-low.
    then within here call the function module or execute
    the code you want to happen when the user press f4.
    i.e. call FM F4_user which provides a search help for
         SAP users:
    CALL FUNCTION 'F4_USER'
    EXPORTING
       OBJECT        = '*'
    IMPORTING
       RESULT        = gd_name.
    But personnelly if the other way works fine by referencing the correct field i would go down that route.
    Hope this helps
    Mart
    P.s.
    There are also a few examples of using 'on value-request' on the http://www.sapdevelopment.co.uk website, one being http://www.sapdevelopment.co.uk/file/file_fmfile.htm or just do a search for 'on value-request' from the main site.

  • Case with a select-options

    hi,
    How do I use the CASE statement when the variable is a range (so_mes).
    so_mes is defined like a select-options.
    i have the next code.
    case so_mes-low.
                 when '01'.
                    move dobli-wtp01 to oejer.
                  when '02'.
                    move dobli-wtp02 to oejer.
                  when '03'.
                    move dobli-wtp03 to oejer.
                  when '04'.
                    move dobli-wtp04 to oejer.
                  when '05'.
                    move dobli-wtp05 to oejer.
                  when '06'.
                    move dobli-wtp06 to oejer.
                  when '07'.
                    move dobli-wtp07 to oejer.
                  when '08'.
                    move dobli-wtp08 to oejer.
                  when '09'.
                    move dobli-wtp09 to oejer.
                  when '10'.
                    move dobli-wtp10 to oejer.
                  when '11'.
                    move dobli-wtp11 to oejer.
                  when '12'.
                    move dobli-wtp12 to oejer.
    in this case only take the low value. How can I asigned the the high value in the statement CASE?.

    I would suggest doing something like this.  Allow the user to enter only single values in the select-option, then you can loop at the select-option and process accordingly.
    report zrich_0001.
    * Type pools
    type-pools: slis, sscr.
    data: char2(2) type c.
    select-options: so_mes for char2.
    initialization.
      perform initilization.
    start-of-selection.
      loop at so_mes.
        case so_mes-low.
          when '01'.
    *move dobli-wtp01 to oejer.
          when '02'.
    *move dobli-wtp02 to oejer.
          when '03'.
    *move dobli-wtp03 to oejer.
          when '04'.
    *move dobli-wtp04 to oejer.
        endcase.
      endloop.
    *  INITILIZATION
    form initilization.
    * Restrict the select options for SO_MES
    * to just a date range
      data: selopt   type sscr_***,
            opt_list type sscr_opt_list,
            restrict type sscr_restrict.
      clear opt_list.
      opt_list-name          = 'EQ'.
      opt_list-options-eq    = 'X'.
      append opt_list to restrict-opt_list_tab.
      clear selopt.
      selopt-kind            = 'S'.
      selopt-name            = 'SO_MES'.
      selopt-sg_main         = 'I'.
      selopt-sg_addy         = ' '.
      selopt-op_main         = 'EQ'.
      selopt-op_addy         = 'EQ'.
      append selopt  to restrict-***_tab.
      call function 'SELECT_OPTIONS_RESTRICT'
           exporting
                restriction            = restrict
           exceptions
                too_late               = 1
                repeated               = 2
                selopt_without_options = 5
                selopt_without_signs   = 6
                invalid_sign           = 7
                empty_option_list      = 9
                invalid_kind           = 10
                repeated_kind_a        = 11
                others                 = 12.
    endform.
    Regards,
    Rich Heilman

  • PROBLEM IN SELECT OPTION

    Dear all, i want to display the document no,document status,date of document,document type and item details here input field is document number.tables are bkpf and bseg.i wrote the program and executed that program it causes runtime error.so please solve the problem.
    REPORT  ZOPENSQL5.
    *ENTER INPUT VALUE
    DATA : V_BELNR TYPE BELNR_D.
    SELECT-OPTIONS : K_BELNR FOR V_BELNR.
    *CREATE USER DEFINED DATA TYPES
    TYPES : BEGIN OF TY_BKPF,
            BELNR TYPE BELNR_D, "ACCOUNTING DOCUMENT NUMBER
            BSTAT TYPE BSTAT,   "DOCUMENT STATUS
            BLDAT TYPE BLDAT,   "DOCUMENY DATE
            BLART TYPE BLART,   "DOCUMENT TYPE
            END OF TY_BKPF.
    TYPES : BEGIN OF TY_BSEG,
            BELNR TYPE BELNR_D, "ACCOUNT DOCUMENT NUMBER
            BUZEI TYPE BUZEI,   "ITEM DETAILS
            END OF TY_BSEG.
    TYPES : BEGIN OF TY_FINAL,
            BELNR TYPE BELNR_D, "ACCOUNTING DOCUMENT NUMBER
            BSTAT TYPE BSTAT,   "DOCUMENT STATUS
            BLDAT TYPE BLDAT,   "DOCUMENY DATE
            BLART TYPE BLART,   "DOCUMENT TYPE
            BUZEI TYPE BUZEI,   "ITEM DETAILS
            END OF TY_FINAL.
    *CREATE INTERNAL TABLES FOR ABOVE TABLES
    DATA : IT_BKPF TYPE STANDARD TABLE OF TY_BKPF,
           IT_BSEG TYPE STANDARD TABLE OF TY_BSEG,
           IT_FINAL TYPE STANDARD TABLE OF TY_FINAL.
    DATA : WA_BKPF TYPE TY_BKPF,
           WA_BSEG TYPE TY_BSEG,
           WA_FINAL TYPE TY_FINAL.
    *MOVE DATA
    SELECT BELNR
           BSTAT
           BLDAT
           BLART
           FROM BKPF
           INTO TABLE IT_BKPF
           WHERE BELNR IN K_BELNR.
    IF NOT IT_BKPF IS INITIAL.
      SELECT BELNR
             BUZEI
             FROM BSEG
             INTO TABLE IT_BSEG
             FOR ALL ENTRIES IN IT_BKPF
             WHERE BELNR = IT_BKPF-BELNR.
    ENDIF.
    LOOP AT IT_BSEG INTO WA_BSEG.
      MOVE-CORRESPONDING : WA_BSEG TO WA_FINAL.
      READ TABLE IT_BKPF INTO WA_BKPF WITH KEY BELNR = WA_FINAL-BELNR.
      IF SY-SUBRC = 0.
        MOVE : WA_BKPF-BSTAT TO WA_FINAL-BSTAT,
               WA_BKPF-BLDAT TO WA_FINAL-BLDAT,
               WA_BKPF-BLART TO WA_FINAL-BLART.
      ENDIF.
      APPEND WA_FINAL TO IT_FINAL.
      CLEAR WA_FINAL.
    ENDLOOP.
    *DISPLAY THE DATA
    ULINE (55).
    WRITE :/1  SY-VLINE        ,
            2  'DOC NO'        ,
            14 SY-VLINE        ,
            16 'DOC STATUS'    ,
            26 SY-VLINE        ,
            28 'DATE OF DOC'   ,
            43 SY-VLINE        ,
            44 'DOC TYPE'      ,
            55 SY-VLINE        .
    WRITE : /1 SY-VLINE.
    ULINE (55).

    You violated the most basic performance principles, please read here and only post again if there is still a problem.
    Please Read before Posting in the Performance and Tuning Forum
    Thread locked.
    Thomas

  • Select -options (fields as mandatory) and alv

    Hi all,
    i have 5 fields in select options and alv table , based on selection criteria values will display in alv table. now i want to make 2 fields as mandatory in select-options. without entering values in those two fields it should not allow the values to display iin alv table , it should rise a message..
    (i have not created node for select-options ,i have directly used data type in wddoinit for select-options and for alv table i have created node)
    thanks all

    Hi,
    In wddoinit while creating select options by ADD_SELECTION_FIELD method ,it has a parameter called I_OBLIGATORY. Set it as X and thus the field becomes mandatory.
    Regards
    Karthiheyan M

  • Multipl selection not working in Select Options, NO-EXTENSION not specified

    Hi,
    My code for the selection screen is as given below:
    data: v_bukrs type ekko-bukrs.
    select-options: s_one    for v_bukrs default '1234',
                    s_two    for ekko-lifnr,
                    s_three  for ekko-ekgrp.
    select-options: s_last   for ekko-llief no intervals.
    However, when I execute my program, all for select-options show Multiple selection icon. When I click on the icon for multiple selection, it is not processed.
    I tried to debug and find out but to no avail. Also I have searched extensively over SDN, but have not found any solution for my problem.
    Kindly help with relevant solution.
    Regards,
    Smruthi

    Hi Anurag and Vinod,
    Thanks for your replies.
    The FM - SELECT_OPTIONS_RESTRICT has not been used in my program.
    The issue is however, resolved. There was an error in the selection screen events, that was triggering the disabling.
    Regards,
    Smruthi

  • Validation of Select Options for a field

    Hi All,
    I need to write a validation logic for a select option for VTWEG (Distribution Channel).
    select-options:  s_vtweg for komg-vtweg.
    I need to check whether the user has entered the correct value based on the search help. The check table of this particular field is TVTW. 
    Following is the code i wrote under the AT SELECTION-SCREEN block:
    IF NOT S_VTWEG-LOW IS INITIAL.
    SELECT SINGLE VTWEG INTO KOMG-VTWEG FROM TVTW
                                     WHERE VTWEG IN S_VTWEG.
    IF SY-SUBRC NE 0.
    CONCATENATE ' Please enter the correct
                                    Distribution Channel '
    Z_MSG INTO Z_MSG.
    SET CURSOR FIELD 'S_VTWEG-LOW'.
    MESSAGE E000 WITH Z_MSG.
    ENDIF.
    ENDIF.
    It works fine when the user enters a wrong value in the S_VTWEG-LOW field, where as if i gives more than one wrong value in the range or giving individual values its not working. Let me know how to do the validation check for multiple values entered individually or in ranges.
    Could you please suggest how to resolve this problem.
    Thank You,
    Suresh

    You could do something like this.....here looping at the select-option table and check the values for low and high.
    report zrich_0003.
    tables: komg.
    data: z_msg(100) type c.
    select-options: s_vtweg for komg-vtweg.
    at selection-screen.
      loop at s_vtweg.
        if not s_vtweg-low is initial.
          select single vtweg into komg-vtweg from tvtw
                 where vtweg = s_vtweg-low.
          if sy-subrc ne 0.
            concatenate ' Please enter the correct
            distribution channel '
                      z_msg into z_msg.
            set cursor field 'S_VTWEG-LOW'.
            message e001(00) with z_msg.
          endif.
        endif.
        if not s_vtweg-high is initial.
          select single vtweg into komg-vtweg from tvtw
                 where vtweg = s_vtweg-high.
          if sy-subrc ne 0.
            concatenate ' Please enter the correct
            distribution channel '
                      z_msg into z_msg.
            set cursor field 'S_VTWEG-HIGH'.
            message e001(00) with z_msg.
          endif.
        endif.
      endloop.
    Regards,
    Rich Heilman

  • HOW TO PASS SELECT-OPTIONS AS IMPORT PARAMETER TO A CLASS

    Hi experts,how to pass select options value as a export parameters to a zclass.
    can  give me some idea.
    Thanks
    sai

    As Sachin already said, selection options are stored in an internal table. You can reconstruct the table type without the corresponding input fields using the type addition RANGE OF.
    So - assuming you have the following in your program:
    DATA: wa TYPE sflight.
            SELECT-OPTIONS so_car FOR sflight-carrid.
    you can create a publically-visible type in your class using direct type entry and the code
    TYPES: my_selectoption TYPE RANGE OF sflight-carrid.
    and use this to define the importing parameter of the method.
    The only other thing you have to remember is that select-options generates an internal table with header line. Thereore, to pass the table to the method, you would use (in the above example) so_car[], and not just the name of the select-option.
    Hope this helps.
    Regards
    Jon.

  • APO : Problem in time stamp select option

    Hi All,
        I am using a time stamp data elemnt (/SAPAPO/TSUCR) as select option in the selection screen. As the time stamp is a combination of date and time, the user is entering only the date in the selection screen. Say the user is entering data as 27.08.2006, inside the program the select option value is changed to 26.08.2006. We are getting a day less. how can we solve the problem. I had tried using adding a day in the program. Please post your valuable ideas if you had expierience same kind of problem.
    Kind Regards,
    Vijay Dhanasekar

    Hi,
    I am not sure if this would be correct.You can change the selection-screen parameter to type 'date' instead of 'timestamp' and convert it into timestamp inside the Program using the FM 'ADDR_CONVERT_DATE_TO_TIMESTAMP'.
    Import parameters               Value   
    IV_DATE                         2006/09/11        
    IV_HIGH                         ' ' 
    Export parameters               Value             
    EV_TIMESTAMP                    20060911000000
    regards,
    Priya.
    Message was edited by: Priya Prakash

  • Select-option w/out reference table-field

    Hi,
    I have a select-option in the selection-screen where the values will be stored as fixed values under "Value range" of the domain. My problem here is that the reference table was not given. If i will use the select-option syntax, it will give an error because the reference table is not specified. Do you have any way to solve this? Please help.
    Thanks.

    Hello Akira,
    Yes, it is very simple - please follow the code below:
    "Let's say Z_DOMAIN is your domain which has a number of fixed values...so please create a Data
    "Element say Z_DATELEM which has Z_DOMAIN as the domain....
    TYPES: ty_mytype TYPE z_datelem.
    DATA: gv_mydata TYPE ty_mytype.
    SELECT-OPTIONS: so_myso FOR gv_mydata.
    And that's it! It should solve your problem now.
    Cheers,
    Sougata.

Maybe you are looking for

  • Need to print some text only in last page in SAP script

    Moved to correct forum by Moderator.  General wasn't right either. Hi All. I need to print "Remarks" only in last page of sap script. Can anyone please help me on this. Thanks Senthil kumar V. Edited by: Matt on Nov 21, 2008 7:38 AM

  • Relationship between logical system and a client

    Hi, Our internal notes say that, in order to create a new client, I must do the following: 1. Create a logical system using BD54. The client name must be SID + "CLNT" + number. In my case, this would be NSPCLNT100. 2. Create a client using SCC4. Ques

  • Using workflow work items

    Hi all, I need some assistance guys. I am trying to understand that how do we use work items in work flow. Can anyone please help me with it, that is how to create the workflow and so on..... If possible please let me know if there is some document y

  • How to freeze a column in numbers with ipad

    Wondering how to freeze a column in numbers on the ipad. Anybody know?

  • Who's using this?

    Is there a place in Server Admin or the Console or a Terminal command that can show me what IP addresses are using the Software Update Server. I would be helpful to know if I need to expand the service and where most of the usage is coming from.