Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

looking for FM

Former Member
0 Kudos

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 )

16 REPLIES 16

former_member927251
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

Check whether these FM are present:-

BKK_GET_QUARTER_DATE

TSTR_PERIODS_QUARTERS

Function group SVAV

Regards,

Sameena

0 Kudos

i go to se37 in make search and dont see that FM.

amit how your function can help me to find the quarter

0 Kudos

sameena.

i find it TSTR_PERIODS_QUARTERS

i have parameter like this 200407

how can i run this func

0 Kudos

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

0 Kudos

why i get DOES NOT EXIST (ver 4.6)

WHY?

0 Kudos

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.

0 Kudos

amit i made it and i didnot find?

0 Kudos

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

0 Kudos

hi

i foud TSTR_PERIODS_QUARTERS

what is the declarition

because i declare this and get err

data : itab type TSTR_GENSEGYEARTAB.

0 Kudos

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

0 Kudos

how i can move number 2006 into i_yeartab

0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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