on 08-10-2016 6:44 AM
Hi,
My requirement is I/P : CalMonth and required O/P : Last year-Month . Ex : I/p: 032016 O/p : 032015.
Is there any standard Function module available to achieve this.
Thanks in Advance.
HI,
FM: https://scn.sap.com/thread/1060098 you can find here, the output will be dte, zo you can ..
move date(6) to result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not really sure if I understood you correctly but based on the given example what you want to achieve is to decrease year by one which can be done as presented below.
DATA lv_year TYPE i.
DATA lv_date(6) TYPE c.
lv_date = '032016'.
lv_year = lv_date+2(4).
lv_year = lv_year - 1.
lv_date+2(4) = lv_year.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.