2006 Apr 25 7:39 AM
amit wrote it and none of them exist myversion is 4.6
. HR_99S_GET_DATES_QUARTER
For quarter
(just pass the quarter number,
and the year,
it will give start and end date of the quarter)
*----
SLIM_GET_QUARTERLY_PERIODS
we can also use this FM,
it will give all the QUARTERS
with their corresponding start and end dates.
2. HR_JP_MONTH_BEGIN_END_DATE
This will give both start and end dates .
(we have to pass a date )
2006 Apr 25 7:43 AM
Hi Liat,
Just check if the following function modules exist in your version.
WSAF_GET_LAST_DAY_OF_MONTH(Get Last Day Of the Month)
FKK_ADD_WORKINGDAY(Get nth working day of the month)
Regards,
Amit Mishra
2006 Apr 25 7:45 AM
Hi,
Check whether these FM are present:-
BKK_GET_QUARTER_DATE
TSTR_PERIODS_QUARTERS
Function group SVAV
Regards,
Sameena
2006 Apr 25 7:49 AM
i go to se37 in make search and dont see that FM.
amit how your function can help me to find the quarter
2006 Apr 25 7:52 AM
sameena.
i find it TSTR_PERIODS_QUARTERS
i have parameter like this 200407
how can i run this func
2006 Apr 25 7:54 AM
Hi,
Goto SE37
Enter the name BKK_GET_QUARTER_DATE
And click display.
This Function module takes a date and returns the Quarter start and end date for the given date.
Regards,
Sameena
2006 Apr 25 7:58 AM
why i get DOES NOT EXIST (ver 4.6)
WHY?
2006 Apr 25 8:04 AM
Hi liat,
1. it should not happen ideally
2. goto se37
3. instead of typing the full name of the FM,
just give first three characters
and *.
eg.
HR_*
4. Then press Ctrl F
5. Clear the field for maximum number of hits.
6. and press F8.
regards,
amit m.
2006 Apr 25 8:11 AM
amit i made it and i didnot find?
2006 Apr 25 8:11 AM
Hi,
check whether the spelling of the function module is correct.
try
Enter BKKDATE or TSTRQUARTERS
press F4
when the list is displayed select BKK_GET_QUARTER_DATE or TSTR_PERIODS_QUARTERS
Regards,
Sameena
2006 Apr 25 8:31 AM
hi
i foud TSTR_PERIODS_QUARTERS
what is the declarition
because i declare this and get err
data : itab type TSTR_GENSEGYEARTAB.
2006 Apr 25 8:43 AM
Hi Liat,
You must declare the type-pools first in order to use the types..
type-pools: tstr.
data : i_yeartab type tstr_yeartab,
i_ttstr type ttstr,
i_gensegtab type tstr_gensegyeartab.
call function 'TSTR_PERIODS_QUARTERS'
exporting
it_yeartab = i_yeartab
is_ttstr = i_ttstr
importing
et_gensegtab = i_gensegtab
exceptions
error = 1
others = 2.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Regards,
Suresh Datti
2006 Apr 25 9:56 AM
how i can move number 2006 into i_yeartab
2006 Apr 25 10:14 AM
Hi liat,
1. This FM is a little tricky.
2. use like this (just copy paste in new program)
3. it will write out the quarters.
4.
report abc line-size 200.
type-pools : TSTR.
*----
data : year type TSTR_YEARTAB .
data : yearwa type line of TSTR_YEARTAB .
data : itab type TSTR_GENSEGYEARTAB.
data : itabwa type line of TSTR_GENSEGYEARTAB.
data : TTSTR type TTSTR.
data : p type table of TSTRGENSEG .
data : pwa type TSTR_GENSEGWA.
*----
yearwa = '2006'.
append yearwa to year.
*----
CALL FUNCTION 'TSTR_PERIODS_QUARTERS'
EXPORTING
IT_YEARTAB = year
IS_TTSTR = ttstr
IMPORTING
ET_GENSEGTAB = itab
EXCEPTIONS
ERROR = 1
OTHERS = 2.
*----
break-point.
loop at itab into itabwa.
p = itabwa-gensegtab.
endloop.
*----
loop at p into pwa.
write 😕 pwa-begin_date , pwa-end_date.
endloop.
regards,
amit m.
2006 Apr 25 10:20 AM
Hi,
type-pools: tstr.
data : lit_yeartab type tstr_yeartab with header line,
lit_gensegtab type tstr_gensegyeartab.
lit_year = '2006'.
call function 'TSTR_PERIODS_QUARTERS'
exporting
it_yeartab = lit_yeartab
importing
et_gensegtab = lit_gensegtab
exceptions
error = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
lit_gensegtab contains the start and end date for the quarters.
Regards,
Sameena
Message was edited by: sameena attarwala
2006 Apr 25 7:50 AM
HI
REFER THE FUNCTION MODULES AVAILABLE IN THE FUNCTIONAL GROUP SVAV UNDER THE LINK
<a href="http://72.14.207.104/search?q=cache:ZbQsSxuRZp4J:www.geocities.com/victorav15/sapr3/abapfun.htmlFunctionalModuleINABAP&hl=en&gl=in&ct=clnk&cd=1">FM IN THE FUNCTION GROUP SVAV</a>
REGARDS
ANOOP
2006 Apr 25 7:52 AM
Hi,
Use FM : CALCULATE_DATE for your requirement.
You can add either no. of days or no. of months to a specific date and get result date.
Regds,
Akshay