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

Capture month in Report

Hi there,

Is there any way to capture month of current year by giving week number in selection screen ( i.e. from 1 to 52). can anybody suggest.

Regards,

Naseer.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2007 at 08:45 AM

    Hello,

    Try this,

    week_iv is the week number entered on the screen.

    year_iv is the year

    concatenate year_iv week_iv into week_lv.

    call function 'WEEK_GET_FIRST_DAY'

    exporting

    week = week_lv

    importing

    date = date_ev

    exceptions

    week_invalid = 1

    others = 2.

    it returns the first day of the week. The date_ev would be returned and you can take month as date_ev4+(2).

    <b>Reward ponts if useful</b>

    Saket Sharma

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2007 at 09:27 AM

    Hi,

    u can calculate month by giving week

    simply multiply it with 7 and compare with days accordingly u can calculate month

    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.