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

BEx Variable

I need to write a user exit which generates the number of days of a month automatically without entering any date. i.e when i run the query today it will return 27. Could someone please post the code to generate the same. I am a ABAP illiterate and need help urgently. Thanks one and all

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Feb 28, 2007 at 02:12 AM

    Hi,

    Do you want to get the number of days in the present month? For example February has 28 this year.

    Or, do you want to get the Day of the month? For example, today is the 28th?

    Regards,

    Jake

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Jake Fruelda

      Jake,

      You gave u an awesome code to calculate the number of days to-date. Can u also gimme a code for total number of days in a month. The code should not call any FM since they are not working on my system. My requirement here is to generate number of days remaining in a month after today. So what i tought of was, if i have a exit variable which gives me number of days in that month, then i could dedcut days to date (previous variable) from total days in that particular month.

      Thanks a lot for everything.

  • author's profile photo Former Member
    Former Member
    Posted on Feb 28, 2007 at 07:52 AM

    Hi,

    Look at this, may help -

    Enable Trend Reporting - By Manipulating Variable Value

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a

    Regards

    Vikash

    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.