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 .

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?

  • 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

  • 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

  • Object text not coming in report selection screen

    Hi,
    i have an object task type for which text has been loaded.this is included in one reports selection screen.But in F4 only kee is displayed and not text.If check button is pressed text is displayed besides key.Also text doesnt come after report is executed.
    please help.
    Thanks,
    Prasanna N.

    Hi Prasanna,
    In the Query Designer goto the properties of the required object that you want to display key and text for it, Select the Key and Text Display option. Then you can see in report key and text for that object.
    Hope this helps.
    Veerendra.

  • Push buttons are not triggering on the selection screen

    selection-screen begin of block a with frame title text-001.
    selection-screen skip.
    parameters:z like vbap-vbeln.
    selection-screen skip.
    selection-screen begin of block b with frame title text-002.
    selection-screen skip.
    parameters:sales radiobutton  group g default 'X',
               trans radiobutton  group g.
    selection-screen end of block b.
    selection-screen skip.
    selection-screen pushbutton 10(12) pu_text  user-command CANC.
    selection-screen pushbutton 30(12) qu_text  user-command STAT.
    selection-screen end of block a.
    Initialization.
    pu_text = 'Cancel Order'.
      qu_text = 'Status'.
    TABLES SSCRFIELDS.
    AT SELECTION-SCREEN.
    CASE SSCRFIELDS.
    WHEN 'CANC'.
    WRITE 'CANCEL'.
    WHEN 'STAT'.
    WRITE 'STATUS'.
    ENDCASE.

    hi,
    in your program declare SSCRFIELDS table before defining selection-screen with push-buttons.
    To create a pushbutton on the selection screen, you use:
    <b>SELECTION SCREEN PUSHBUTTON [/]<pos(len)> <push>
                                USER-COMMAND <ucom> [MODIF ID <key>].</b>
    The [/]<pos(len)> parameters and the MODIF IF addition have the same function as for the formatting options for underlines and comments.
    <b>follow this sample program.</b>
    REPORT DEMO.
    TABLES SSCRFIELDS.
    DATA FLAG.
    SELECTION-SCREEN:
      BEGIN OF SCREEN 500 AS WINDOW TITLE TIT,
        BEGIN OF LINE,
          PUSHBUTTON 2(10) BUT1 USER-COMMAND CLI1,
          PUSHBUTTON 12(10) TEXT-020 USER-COMMAND CLI2,
        END OF LINE,
        BEGIN OF LINE,
          PUSHBUTTON 2(10) BUT3 USER-COMMAND CLI3,
          PUSHBUTTON 12(10) TEXT-040 USER-COMMAND CLI4,
        END OF LINE,
      END OF SCREEN 500.
    AT SELECTION-SCREEN.
      CASE SSCRFIELDS.
        WHEN 'CLI1'.
          FLAG = '1'.
        WHEN 'CLI2'.
          FLAG = '2'.
        WHEN 'CLI3'.
          FLAG = '3'.
        WHEN 'CLI4'.
          FLAG = '4'.
      ENDCASE.
    START-OF-SELECTION.
      TIT  = 'Four Buttons'.
      BUT1 = 'Button 1'.
      BUT3 = 'Button 3'.
      CALL SELECTION-SCREEN 500 STARTING AT 10 10.
      CASE FLAG.
        WHEN '1'.
          WRITE / 'Button 1 was clicked'.
        WHEN '2'.
          WRITE / 'Button 2 was clicked'.
        WHEN '3'.
          WRITE / 'Button 3 was clicked'.
        WHEN '4'.
          WRITE / 'Button 4 was clicked'.
        WHEN OTHERS.
          WRITE / 'No Button was clicked'.
      ENDCASE.
    regards,
    Ashok Reddy

  • Text not appearing in Variable selection screen

    Hi
    When I select a value for an info object (say Plant) in the selection screen and click on "Check" in BEX usually text of the chosen plant appears on the right. But in case of some info objects it doesn't appear. Can someone please guide as to what might be going wrong here.
    I've noticed that this does not happen to SAP defined objects, but when i create a Z or Y object I come across this issue. User says that he wants to see the text of the chosen value and he chooses "Check". 
    Regards,

    Have you maintained the texts for your custom (Z* or Y*) InfoObjects, by either DataSource extraction and load, or directly manually in the InfoObject maintenance screen? If there isn't a text table for those InfoObjects, then the description will not be present for the values contained in it.
    Additionally, what are the settings that you have in the Business Explorer tab of these custom InfoObjects. Make sure that they're in sync with the standard content InfoObjects.

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

  • Display "without PGI" & "PGI done not invoiced" in the selection screen

    Hi All,
    I am preparing a query to track the status of outbound deliveries and would greatly appreciate it if you could guide me on the following requirement.
    Is there a way to display the following two fields in the "Selection Screen" of a query (TCode: SQ00).
    1. Without PGI (Delivery document saved but the delivery is yet to do a PGI).
    2. PGI done but not invoiced (PGI is done but the invoice is not raised).
    I have already added, joined LIKP and LIPS and retrieving a host of information from these two tables but stuck on the two points above.
    Thanks in advance.

    SAP SD_Newbie wrote:
    > The user wants these fields in the "Selection Screen" of the query (SQ00).
    >
    > 1. Without PGI (Delivery document saved but the delivery is yet to do a PGI).
    > 2. PGI done but not invoiced (PGI is done but the invoice is not raised).
    >
    > Importantly, I am a bit reluctant to use any other table apart from LIKP and LIPS  (I tried joining other tables but the performance was drastically slow because of too many inner / left outer joins).
    I do agree that standard transactions should be considered instead. The users always want the darndest things...
    Query is not a custom report and has some limitations, which needs to be understood by the users. We can't add such buttons/checkboxes on the screen in a query, but we can add the status fields as selection criteria.
    Since query is at the line item level (LIPS), the statuses also are needed at the line item level, which is VBUP table. WBSTA is GM status, FKSTA is billing status. I'd guess that if WBSTA is 'A' then it's not PGIed and if FKSTA is 'A' then it's not invoiced. But I'd check in your system to make sure the statuses are updated as expected.
    VBUP can be joined by primary key, so it shouldn't have a huge negative effect on performance. In any case, this is the only way to deliver such information in a query, I believe.

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

  • 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

  • Holding option on boot does not bring up boot selection screen

    Holding option on boot does not bring up the boot selection screen, the machine just boots from the previously selected startup drive.
    MBP 17 mid-2010.
    SL 10.6.7
    I created a three partition drive on a Seagate GoFlex 1.5 TB drive.  GUID partition table. 
    Used SuperDuper to clone the drive.  Drive is bootable.  Booting from drive works using Startup Drive selector, so does not appear to be a drive issue.
    I'm baffled.  What can I do to fix/troubleshoot?
    Peter

    Are you using a Bluetooth keyboard by any chance, I see that same behaviour at times if so ?
    I tend to select the desired boot volume with System Preferences/Startup Disc these days although option should work ...
    I have noticed that if you reboot right away the option key often works the second time round which is odd.

Maybe you are looking for

  • IPod 4th gen thinks it is charging even if it's not

    Hello, I have an iPod 4th gen, and it thinks it is being charged, all the time. It always displays "charging" icon and lights up its display all the time, and consequently gets drained quickly (when I really have to charge it). I have done all the ba

  • Match RAW to JPEG File

    Hi, I moved my iPhoto library to Aperture over a year ago and so far this has been an excellent move. Previously in my iPhoto library I would import RAW+JPEG. Once the import was completed in iPhoto I would export the raw to an external hard drive fo

  • 10.6.5 Update vs 10.6.5 Update (Combo)

    I downloaded the 10.6.5 Update but I just realize there's a 10.6.5 Update (Combo). Are they the same? Do I need or Should I download the Combo? Is the Combo an update to the Update? Please help.

  • Service Master vs. Material Master - Type DIEN (Service)

    We currently use Material Masters (type: DIEN) for procurement of all external services. I've been told it wasn't a good practice and that Service Masters should be adapted for this purpose. Is that so? I am now preparing a business case for implemen

  • How did they the build this?

    Hello, I like to build / need a web application like this page: http://www.shirtcity.com/shop/ The user should be able to make a very basic layout design with different type fonts and have a instant preview with in a fixed area. The final design will