on 02-11-2015 12:45 PM
Hi,
is there any infoobject similar to 0calweek but only with the number of the week?
For example, 07.2015 but to get only the 07.
or if not, how could I to achieve this?
Thanks in advance.
Regards.
I do not think it is available for week.I know its there in case of month like 0calmonth2.
My suggestion to achieve this would be to create a zinfoobject of type NUMC and length 2.
Map you source date field with it--Rule type routine.
Make use of function module DATE_GET_WEEK
Pass your date it will give you year and week number.Out of that you can get week number.
This is the idea to achieve it.
Regards,
AL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For example, 07.2015 but to get only the 07.
if ask only 07. that is not make sense.
it should be 07.2015 - week. year.
Thanks,
Phani.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Where do you want to use it.... you can use transformation to meet your requirement.
Regards,
AR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
About standard time char am not sure.
if not exist then you can create a custom info object which is type of number with 2 length.
at transformations you can write small routine and read first 2 digits(0(2)) from source.
You can map source field to target object(month number) and writ a routine.
Result = <source date field>+0(2).
Source field assuming in MMYYYY.
do syntax check and activate transformations.
Please check with your abaper if you get any error about code.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.