01-25-2005 2:22 AM
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!
01-25-2005 2: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.
01-25-2005 2: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.
01-25-2005 5:38 AM
_ thank you very much Jerry. You must be in China:)
I also check your answer, but it is a variant not initial value. Anyway, I learn a new trick to meet our customer demand. Thank you all the same, I will give you the yellow 'Helpful'.
BestRegards
¾Ë
01-25-2005 8:38 AM
Hi,
Yes, I am just in China mainland. you may contact me through hjtcjerrychen@yahoo.com.cn
01-25-2005 3: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]
01-25-2005 5:34 AM
Yeap
thank you very much Poornanand.
It's very helpful for me, I solve my problem.
I will choose the green icon 'very help' for you!
BestRegards
minghan
_