Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Engent, Who could help about selection-screen.

Former Member
0 Kudos

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!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

5 REPLIES 5

Former Member
0 Kudos

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.

0 Kudos

_ 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

–¾ŠË

0 Kudos

Hi,

Yes, I am just in China mainland. you may contact me through hjtcjerrychen@yahoo.com.cn

Former Member
0 Kudos

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]

0 Kudos

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

_