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

Engent, Who could help about selection-screen.

Below is the code!

CALL FUNCTION 'DATE_CREATE'

EXPORTING

anzahl_tage = 7

datum_ein = sy-datum "

IMPORTING

datum_aus = gdf_wadat. "

SELECT-OPTIONS: p_wadat FOR likp-wadat

DEFAULT sy-datum to gdf_wadat.

All I want to do is to set the low as currenct system date

then the high as seven days later.

But, by using the code above I could not do that!

God help me! Thank you very much!

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 Jan 25, 2005 at 02:43 AM

    Hi MingHan,

    You need not code any thing. The SAP variant may help you.

    first, choose 'selection variance' of the related fields. then choose 'Selection criterion' equals 'D', and set the value sy-datum+7.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2005 at 03:56 AM

    Hello Minghan,

    I see that you have registered just a few hours back. Welcome to SDN.

    Coming to your requirement, you do not need a Function Module call at all. Try this out.

    tables likp.
    select-options: p_wadat for likp-wadat.
    
    
    initialization.
    p_wadat-low = sy-datum.
    p_wadat-high = sy-datum + 7.
    append p_wadat.
    

    Hope this helps,

    Regards,

    Anand Mandalika.

    P.S. : Since you are a new member here, I should like to introduce you to the Forum Etiquette. Answering the queries you make in SDN requires some time and effort from the person(s) who take up your question. So when you get an answer that you find to be useful, please do reward it accordingly by clicking on the Yellow star icon in the reply. It is an SDN way of saying Thank You! For more information, you can refer to the weblog https://weblogs.sdn.sap.com/pub/wlg/680. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]

    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.