‎2007 Sep 04 8:38 AM
hi all,
i need program for this function module FIRST_DAY_IN_PERIOD_GET.
thank u,
siva.
‎2007 Sep 04 8:42 AM
RKPLNC01 CO-CCA Planning: Test Secondary Cost Record Consistency fo
RKPLNC54 CCA Planning:Test Secondary Cost Record Consistency for Re
RK_PEP_WL_CO_MINIAPP_1 Schedule Manager Worklists with Faulty Objects
RMCBNEWD Setup of Statistical Data BCO
RMCSS024 Updating for Work Center Analysis: S024
RMFIFO32 FIFO Valuation: Create Document Extract
RMLIFO32_DEFAULT_PARAMS_SET Form Default_Params_Set (RMLIFO32)
SAPDBBRF SAPDBBRF Logical Database
SAPF106 Open Item Balance Sheet Supplement (Russia)
SAPRCK10 Costing Run for Material: Costing by Costing Levels
SAPRCKMBEW3 Correction: Inconsistency Between Material Master and Cost
SAPRCKMBEW9 Analysis: Inconsistent Cost Est. Numbers - Material Master
SAPRCK_KALNR_CKMI1 Inconsistent Cost Estimate Numbers: Material Master/Cost E
‎2007 Sep 04 8:42 AM
Hello Siva,
Goto SE37. Enter this FM and click on where use. It will give u list of the porgrams from which u can use any for ref. If that is what you are trying.
‎2007 Sep 04 8:47 AM
Hi Siva,
Refer this code :
parameters: p_month like t009b-poper, "month
p_year like t009b-bdatj, "year
RANGES: s_date FOR mkpf-cpudt
call function 'FIRST_DAY_IN_PERIOD_GET'
EXPORTING
i_gjahr = p_year
i_periv = 'CY'
i_poper = p_month
IMPORTING
e_date = s_date-low.
Regards,
Hemant
‎2007 Sep 04 9:00 AM
Hi,
Use this code.
report ztest.
data: xt001 type t001.
data: xt009 type t009.
data: fi_year type BKPF-GJAHR.
data: start_datum type sy-datum.
data: end_datum type sy-datum.
data: idatum type table of sy-datum with header line.
select single * into xt001 from t001
where bukrs = '0010'. "< Your company code
select single * into xt009 from t009
where periv = xt001-periv.
call function 'FI_PERIOD_DETERMINE'
exporting
i_budat = sy-datum
i_bukrs = xt001-bukrs
importing
e_gjahr = fi_year.
call function 'FIRST_DAY_IN_PERIOD_GET'
exporting
i_gjahr = fi_year
i_monmit = 00
i_periv = xt001-periv
i_poper = '01'
importing
e_date = start_datum.
call function 'LAST_DAY_IN_PERIOD_GET'
exporting
i_gjahr = fi_year
i_monmit = 00
i_periv = xt001-periv
i_poper = xt009-anzbp
importing
e_date = end_datum.
do.
if start_datum > end_datum.
exit.
endif.
data: num type p.
call function 'DAY_IN_WEEK'
exporting
datum = start_datum
importing
wotnr = num.
if num = 7. " <- Sunday
idatum = start_datum.
append idatum.
endif.
start_datum = start_datum + 1.
enddo.
loop at idatum.
write:/ idatum.
endloop.
Thanks,
Anitha
‎2007 Sep 04 9:17 AM
Hi Siva,
If yuo want to insert a function module into a program, click on the Pattern button in the ABAP editor and enter the FM name and hit the green tick.
You will get the correct code inserted for you. Any of the interface parameters that are mandatory will require you to add local variables whilst those that are optional are commented out - you can add them if required.
Gareth.