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

selection screen design

Hi frnds,

Can anyone hlep me how to write the selection screen for the stuff below.

Zavail(program name) , create parameter selection to run by travel dates. Must have ability to run nightly (travel date range: tomorrow’s date to 60 days later) and weekly (travel date range: 61days after of tomorrow to 6 month after of today’s date).

help me frnds.

regards,

sanjay

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 18, 2008 at 11:07 AM

    Try this code...

    "nightly (travel date range: tomorrow’s date to 60 days later) and
    "weekly (travel date range: 61days after of tomorrow to 6 month after of today’s date).
    
    SELECT-OPTIONS : s_nigtly FOR sy-datum.
    SELECT-OPTIONS : s_weekly FOR sy-datum.
    
    INITIALIZATION.
    s_nigtly-sign = 'I'.
    s_nigtly-option = 'BT'.
    s_nigtly-low = sy-datum + 1. "tommorrows date
    s_nigtly-high = sy-datum + 60. "60 days later.
    APPEND s_nigtly.
    
    s_weekly-sign = 'I'.
    s_weekly-option = 'BT'.
    s_weekly-low = s_nigtly-low + 61 . "61days after of tomorrow
    
    CALL FUNCTION 'MONTH_PLUS_DETERMINE'
      EXPORTING
        months        = '6'
        olddate       = sy-datum
     IMPORTING
       NEWDATE       = s_weekly-high. "6 month after of today’s date
    APPEND s_weekly.
    

    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.