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

Week Number

Former Member
0 Likes
1,488

Hello!

How I can get week number in year?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,405

Hi Andrej,

Did you search this query on SCN before posting here???

For Others

Please refrain answering these type of questions, which are easily searchable.

Hope you all understand.

Hi Andrej,

Did you search this query on SCN before posting here???

For Others

Please refrain answering these type of questions, which are easily searchable.

Hope you all understand.

8 REPLIES 8
Read only

Former Member
0 Likes
1,405

Use FM:

DATE_GET_WEEK

Regards

Read only

Former Member
0 Likes
1,405

Hi,

These FMs wil help

DATE_GET_WEEK: Returns week for a date

HR_IE_NUM_PRSI_WEEKS, ISP_COUNT_WEEKS_ROUND_DOWN: number of weeks between two dates.

Regards,

Prashant

Read only

former_member585060
Active Contributor
0 Likes
1,405

Hi,

Use this function modules

GET_WEEK_INFO_BASED_ON_DATE

DATE_GET_WEEK

it returns the Year and no of week in that year, just separate the last 2 values from the return value to get the no of week.

Regards

Bala Krishna

Read only

Former Member
0 Likes
1,405

use DATE_GET_WEEK this FM

Edited by: Sudhir Kancheti on Dec 18, 2008 11:17 AM

Read only

Former Member
0 Likes
1,405

Hi,

You can Use the FUNCTION MODULE:

DATE_GET_WEEK.for More details ON these refer this link:

http://www.saptechies.com/abap-function-modules/.

Regards,

Rahul

Read only

Former Member
0 Likes
1,406

Hi Andrej,

Did you search this query on SCN before posting here???

For Others

Please refrain answering these type of questions, which are easily searchable.

Hope you all understand.

Read only

Former Member
0 Likes
1,405

Thank's

Read only

JanStallkamp
Advisor
Advisor
0 Likes
1,405

>

> Hello!

>

> How I can get week number in year?

The only accepted answer to this question is: "by searching the SDN". All other answers have lost their points to encourage people not to answer this type of question.

Best regards,

Jan Stallkamp