Application Development and Automation 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: 
Read only

seacrh help for week

Former Member
0 Likes
1,085

hi

i wrote message before but i was not clear.

i look for search help standard for month

thanks

have a nice day

hi

i wrote message before but i was not clear.

i look for search help standard for month

thanks

have a nice day

3 REPLIES 3
Read only

Former Member
0 Likes
779

There is no SAP Standard search help to get a week.But you can use the FM "DATE_GET_WEEK" to get the week on the basis of the date entered on the screen.You can also try the FM GET_WEEK_INFO_BASED_ON_DATE FOR THIS PURPOSE.

Read only

0 Likes
779

You can have a look at this code :

data: lv_monday like sy-datum,

lv_sunday like sy-datum.

call function 'GET_WEEK_INFO_BASED_ON_DATE'

exporting

date = s_date-low

importing

monday = lv_monday

sunday = lv_sunday.

Read only

0 Likes
779

if you need a matchcode for MONTH, try this

<b>

&----


*& Report ZPMR0041_TEST *

*& *

&----


*& *

*& *

&----


REPORT ZPMR0041_TEST .

INCLUDE rmcs0f0m. " parameter month/year

parameters: p_spmono(7).

  • Matchcode to field month/year.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_spmono.

PERFORM monat_f4.

</b>

Alexandre