How to get the first month of the year inputed by user manually

Hi Expert,
Just like the subject, I 'd like to get the first month of the year inputed by user manually, but don't know how to set the variable, please help.
For example, user execute a query and input the value of variable Year = 2010, and what I want to get is 201001 into another variable, so that I can use this variable to setup another selection.
Thank you.
Andy

Hi Andy,
1) U will create a user input varaible for year and say it is ZYEAR.
2)  U will create another variable  for calmonth  which has processing type : customer exit ..single value ...mandatory ....say ZCMONTH.
This needs to be populated using the year( user inputted )  and calmonth '001'
This code will fetch the user input value into ZYEAR and append '001' to the user input value and the value
will be passed to the ZCMONTH varaible...
Sample Code is....
When 'ZCMONTH'.
IF I_STEP = 2.
     READ TABLE I_T_VAR_RANGE WITH KEY VNAM = 'ZYEAR'.
     IF SY_SUBRC = 0.
                L_S_RANGE-LOW  =  I_T_VAR_RANGE-LOW.
               L_S_RANGE-LOW+4(3) = '001'.
              L_S_RANGE-SIGN = 'I'.
             L_S_RANGE-OPT  = 'EQ'.
                  APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
ENDIF.
Regards
vamsi

Similar Messages

  • Negative assets cause full depreciation the first month

    Hi guys: please help me understand why the negative assets that I have set up via AS91 are depreciating completely in the first month.
    The positive assets are correctly depreciating. I suspect its the depreciation key LINA that i am using that is causing this, but is it an element of the key (example the base method 0011) that may be tr

    Hi,
    Check your base methods, which are assigned to your depreciations phases for dep key LINA.
    I hope you might have changed the standard key
    Check Dep key LIN, below is the standard settings for it.
    Phase 1
    DepType- N
    Phase -1
    Base method -0009
    Decl.-bal. method-001
    Prd cont-003
    Multilev.meth-010.
    Class-SLM
    Multiple shift  Increase in depreciation and expir
    Scrap value-0
    Shutdown-No
    Phase 2
    DepType-Z
    Phase-1
    Base method-0030
    Decl.-bal. method-001
    Prd cont-001
    Multilev.meth-011.
    Class-(blank)
    Multiple shift- Increase in depreciation and expir
    Scrap value-0
    Shutdown-No
    SAVE and check your assets now
    Thanks,
    Srinu

  • How to get the first day in the month from a domain date ?

    Hi,
    I like to know how to get the first day in the month from a domain date?
    Thanks
    Stephen

    Hi Gokul...
    Instead of using the funtion module you can just write the 3 statements of code to get the first day of the week.
    Its similar to the above one but instead of writing case statement you can achive the following.
    data : w_res type i,
             w_data type d,
    w_res = w_date mod 7.
    w_date = w_date - w_res.
    write w_date.
    This works.
    Regards,
    Siddarth

  • How  to  get the FIRST DAY OF THE CURRENT MONTH

    how to get the FIRST DAY OF THE CURRENT MONTH in oracle 9i.
    plzzzzz send immedaily.advance thanks

    TEST@test SQL> select trunc(sysdate,'MON') from dual;
    TRUNC(SYS
    01-OCT-06
    TEST@test SQL>                                  

  • On my iPad 3, how do I make calendar items lasting more than one day appear as such on the monthly view of my calendar? Right now only the first day of the item appears.

    On iPad 3, all of my calendar items lasting more than one day do not appear correctly when looking at the monthly view of the calendar; only the first day of the appointment appears. For example, if I am taking a vacation for 4 days, only the first day of the vacation is marked on the calendar, instead of being listed on all 4 days. When I look at the weekly view, however, it is correct and is listed on all 4 days. The problem here of course is that at a glance, there is no way to look at my monthly schedule. On my iPhone, everything is correct, regardless of month or week view, so clearly this is an iPad problem I guess? Please advise on how this can be corrected. Thank you!

    Unfortunately you can't do what you want. Many people have complained to Apple about this. I suggest you provide Apple feedback directly at http://www.apple.com/feedback/macosx.html. They will not provide a direct response but hopefully if enough people provide feedback Apple will fix this.

  • I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click. How do I get version 4 to do this? Thanks.

    I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click.
    How do I get version 4 to do this?
    Thanks.

    The new but not-ready-for-prime-time autocomplete method searches for matches that contain the entered text, not just ones that begin with the string. Your options are:
    1) type in longer strings that narrow the search
    2) use an add-on to search just the beginnings:
    https://support.mozilla.org/en-US/questions/1037469
    3) install an older version of TB:
    http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/

  • How can I get the phone numbers in contacts to appear with dashes between the first 3 numbers, the next 3 numbers, and the last 4 numbers?  Until very recently it did so.  Contacts on my macbook pro does show up this way.  I do have a mobile me account an

    How can I get the phone numbers in contacts to appear with dashes between the first 3 numbers, the next 3 numbers, and the last 4 numbers?  Until very recently
    it did so.  Contacts on my macbook pro does show up this way.  I do have a mobile me account and in the past syncing was no problem.  What setting has changed?

    The phone number format as well as the date language and format and the time format are controlled by the Region Format setting. Go to Settings > General >International > Region Format.  When you change a region format, you can go back one page (to International) and see an example of the date/time/phone number format that your selected region format will produce.

  • I try to find something on my iPad, many results are emails, when I push on an email I can't see the email, because I get ever the first email,or the previous selected email in my inbox. How can I see the email selected?

    I try to find something on my iPad, many results are emails, when I push on an email I can't see the email, because I get ever the first email,or the previous selected email in my inbox. How can I see the email selected?

    Is your Yahoo account set up as POP3 or IMAP?

  • HT1222 My phone is telling me about a Software Update but for the first time it is asking me for a passcode, I have never set up a passcode and do not know how to get around this to do the upgrade?

    My phone is telling me about a Software Update 7.1.1 but for the first time it is asking me for a passcode, I have never set up a passcode and do not know how to get around this to do the upgrade?

    See if this helps:
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212

  • How can I get rid of the drop down suggestion box that appears as soon as I type the first letter in the address box?  Runnung 7.1.2

    How can I get rid of the drop down suggestion box that appears as soon as I type the first letter in the address box?  Runnung 7.1.2

    Writelady,
    I do not know of any such option. I don't think that it is even possible at this time, however it doesn't mean that maybe sometime in the future Apple or someone else will make a way to do such as your request.
    I do however think that you should let Apple know your opinion if you have not done such yet. You can give them product feedback at the following link. https://www.apple.com/feedback/safari.html
    I hope that this helps,
    -Weston

  • In Pages, when I hit the return button, the first letter on the new line is not capitalises. How do I get it to capitalise automatically?

    In Pages, when I hit the return button, the first letter on the new line is not capitalises. How do I get it to capitalise automatically?

    Right click the Back button and choose the page you want to go to from the list.
    '''N.B.''' I noticed that your Flash installation is out of date which exposes your system to attack. See: http://www.adobe.com/support/security/bulletins/apsb11-18.html<br><br>
    Update via http://get.adobe.com/flashplayer/

  • How do I cancel my annual membership within the first month without calling to their phone?

    I want to cancel my annual membership during the first month, but I can not call to their phone. Anybody has a solution? Thanks.

    Hi,
    thanks, but their instructions lead you to contact them, and I can not call them.
    Am 06-Nov-2014 12:42:38 +0100 schrieb [email protected]:
    HOW DO I CANCEL MY ANNUAL MEMBERSHIP WITHIN THE FIRST MONTH WITHOUT CALLING TO THEIR PHONE?
      created by Kartikay_Sharma in _Creative Cloud Download padding: 10px; margin-top: 20px;">
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6904898#6904898
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: 
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the STOP EMAIL NOTIFICATIONS LINK.
    Start a new discussion in Creative Cloud Download & Install by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • If my application is free to download, but requires my user to purchase a monthly subscription, will Apple collect a 30% fee every month that user is billed?  Or will Apple only collect a 30% fee for the first month?  If so, is there anyway around this?

    Hi!
    I am looking into developing an app for the App Store and my question is regarding Apple's 30% in app purchase fee.  If my application is free to download, but requires my user to purchase a monthly subscription, will Apple collect a 30% fee every month that user is billed?  Or will Apple only collect a 30% fee for the first month?  If so, is there anyway around this? 
    What all does Apple collect a 30% app store fee on?  What does Apple not collect a fee on in the App Store?
    How does Amazon get billed if someone purchases something from Amazon from within their iPhone application?

    Any in-app purchases are subject to the 30% withholding.
    No way around it.
    Amazon purchases are physical items (not digital) and do not go through in-app purchase so they are exempt.

  • Cancel creative cloud in the first month

    How do I cancel my creative cloud membership in the first month? I have followed the help links, but they don't take me anywhere that actually let's me cancel my membership.

    Hello Jmarks244,
    Welcome to the Adobe Forums!
    I am sorry to hear you have trouble to get in touch with our customer support.
    Please allow me to get in touch with you by email.
    Thanks.
    Arnaud.

  • Want to make Monday as the first day of the week in GregorianCalendar. how?

    hi
    I need to know what day is the first of the month is. for example the 1st of Nov 2004 is Moday and 1st of Dec 2004 is saturday.
    I am using the GregorianCalendar:
    1.  GregorianCalendar calendar = new GregorianCalendar(2004,11,1);    //set date to 1st Nov 2004
    2.  int firstDay = calendar.get(Calendar.DAY_OF_WEEK);now firstDay is 2. This is because the week starts from Sunday, so Monday is the 2nd day.
    But I am in Uk and my Uk Calendar shows monday as the first day (even in Windows 2000 Calendar).
    I would like the GregorianCalendar to have Monday as the first day of the week, so that the
    int firstDay = calendar.get(Calendar.DAY_OF_WEEK);
    returns 1 in the above case.
    I also tried adding
    calendar.setFirstDayOfWeek(Calendar.MONDAY); just between line 1 and line 2, but it did not help.
    This is because i don't want to manually subtract 1. If i manually subtract one, then the program might not work in other locale and timezones.
    Also if I subtract 1, then for 1 Feb 2004,
    int firstDay = calendar.get(Calendar.DAY_OF_WEEK);
    will return 1 as 1st Feb 2004 falls on Sunday. so if i subtract 1 it will be 0, so I have to do a extra checking for 0.
    Is there anyway to make the Calendar have Monday as the first day of the week??
    Tanveer

    hi
    I need to know what day is the first of the month is.Why does this matter? Since we know that 1 == Sunday and 2 == Monday... Why do you need Monday to be == 1? and couldn't you just subtract 1 if it's so important?
    for example the 1st of Nov 2004 is Moday and 1st of
    Dec 2004 is saturday.
    I am using the GregorianCalendar:
    1.  GregorianCalendar calendar = new
    GregorianCalendar(2004,11,1);    //set date to 1st Nov
    2004
    2.  int firstDay = calendar.get(Calendar.DAY_OF_WEEK);now firstDay is 2. This is because the week starts
    from Sunday, so Monday is the 2nd day.
    But I am in Uk and my Uk Calendar shows monday as the
    first day (even in Windows 2000 Calendar).
    I would like the GregorianCalendar to have Monday as
    the first day of the week, so that the
    int firstDay = calendar.get(Calendar.DAY_OF_WEEK);
    returns 1 in the above case.
    I also tried adding
    calendar.setFirstDayOfWeek(Calendar.MONDAY);[/cod
    ] just between line 1 and line 2, but it did not help.
    This is because i don't want to manually subtract 1.
    If i manually subtract one, then the program might not
    work in other locale and timezones.
    Also if I subtract 1, then for 1 Feb 2004,
    int firstDay = calendar.get(Calendar.DAY_OF_WEEK);
    will return 1 as 1st Feb 2004 falls on Sunday. so if i
    subtract 1 it will be 0, so I have to do a extra
    checking for 0.
    Is there anyway to make the Calendar have Monday as
    the first day of the week??
    Tanveer

Maybe you are looking for

  • Invoices are not getting displayed in the process receivables for a cust.

    Dear All. Collection Management I have a situation here in prod environment the worklist is displaying the customer and his outstanding balances/all the data when we select that customer and go for process receivables then i cant find any invoices/do

  • Using UDK software with MB pro GeForce GT 330M

    Hi, Can anyone confirm or offer more information on whether UDK development software is compatible with the Nvidia GeForce GT330M graphics card onboard Macbook pro 15" & 17" models? I currently run a Macbook (2008) with the older Intel graphics card

  • Using OS 10.4 Mail. IMAP mailboxes filling up on server. How to periodically archive on my Mac but delete from server?

    I'm using OS 10.4, Mail. Accessing IMAP accounts on mail server. The server mail boxes are filling up and bouncing mail. How can I archive the old mail on my computer and delete it from the server to make room for new mail? Will creating an archive m

  • Email app

    Ineed to acces my email on my android tablet. Do I have to download an app

  • Process and not quitting

    I am writing a tag for Lasso (like php) with the Lasso Java API to use OpenOffice as a converter for documents. I wrote a function to start the service if it is not running. Unfortunately it is not running as I thought it would. Previously in c++ I u