‎2008 Aug 22 3:55 PM
Hi friends i have a senario.
PERVE LIKE T009B-PERIV VALUE 'K4'.
iam using the below function module.
P_GJAHR = S_GJAHR-LOW.
P_POPER = S_POPER-LOW.
CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
EXPORTING
I_GJAHR = P_GJAHR
I_MONMIT = 00
I_PERIV = PERVE
I_POPER = P_POPER
IMPORTING
E_DATE = DATE1
EXCEPTIONS
INPUT_FALSE = 1
T009_NOTFOUND = 2
T009B_NOTFOUND = 3
OTHERS = 4
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
actually my problem is as u can see i have
I_PERVE = PERVE
parameter in the function module which basically gets fisical year varaient.
but iam hard coding this value as u can see on the top.
like when i enter company code the fiscal varient should be automatically taken.
how can i do that.
Regards,
priyanka.
‎2008 Aug 22 4:07 PM
I think this data is stored in table T093C
you should have then
parameters : p_ccode type burks.
data : l_periv type t093c-periv.
start-of-selection.
select single periv
from t093c
into l_periv
where bukrs = p_ccode.
‎2008 Aug 22 4:04 PM
Hi,
If you want PERIV value based on company code, you can fetch the value from table T001 into variable GV_PERIV and pass to the FM.
Check the table for T001 for PERIV field.
With Regards,
Dwarakanath.S
‎2008 Aug 22 4:07 PM
I think this data is stored in table T093C
you should have then
parameters : p_ccode type burks.
data : l_periv type t093c-periv.
start-of-selection.
select single periv
from t093c
into l_periv
where bukrs = p_ccode.