Application Development and Automation 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: 
Read only

Hi

Former Member
0 Likes
768

Hi Friends Please tell me the functionality of the following piece of code...

PERFORM GET_POSTING_PERIOD USING SY-DATUM '1000' ' '

CHANGING W-MONAT.

S_POSPER-LOW = W-MONAT.

S_POSPER-HIGH = ''.

S_POSPER-SIGN = 'I'.

APPEND S_POSPER.

CLEAR S_POSPER.

form GET_POSTING_PERIOD using p_sy_datum

value(p_0663)

value(p_0664)

changing p_monat.

CALL FUNCTION 'FI_PERIOD_DETERMINE'

EXPORTING

i_budat = P_SY_DATUM

i_bukrs = p_0663

i_periv = p_0664

IMPORTING

e_monat = p_monat

EXCEPTIONS

OTHERS = 1.

endform.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
740

this FM will take the date , companycode , fiscal year variant as input and returns the POSTING PERIOD

check the possible values for fiscal year variant in table T009

He your are giving fiscal year variant as space , so i guess it will not return any output

Hi Friends Please tell me the functionality of the following piece of code...

PERFORM GET_POSTING_PERIOD USING SY-DATUM '1000' ' '

CHANGING W-MONAT.

S_POSPER-LOW = W-MONAT.

S_POSPER-HIGH = ''.

S_POSPER-SIGN = 'I'.

APPEND S_POSPER.

CLEAR S_POSPER.

form GET_POSTING_PERIOD using p_sy_datum

value(p_0663)

value(p_0664)

changing p_monat.

CALL FUNCTION 'FI_PERIOD_DETERMINE'

EXPORTING

i_budat = P_SY_DATUM

i_bukrs = p_0663

i_periv = p_0664

IMPORTING

e_monat = p_monat

EXCEPTIONS

OTHERS = 1.

endform.

5 REPLIES 5
Read only

Former Member
0 Likes
740

Hi

This code is used to fecth the <b>POSTING period</b> in FI for the given date and the company code and the PERIV field(space here).

Reward points if useful

Regards

Anji

Read only

former_member214288
Participant
0 Likes
740

Hi Reema,

This piece of code is fetching FI Fiscal Year Variant Periods for given Company Code and Year.

Reward Points if helpful.

Regards,

Ram

Read only

Former Member
0 Likes
740

by using this code , u are geting Posting Period based on the values u are passing i.e system date and Company Code.

Regards

Peram

Read only

Former Member
0 Likes
740

HI,

The Function module will return a Period for the Date,

Read only

Former Member
0 Likes
741

this FM will take the date , companycode , fiscal year variant as input and returns the POSTING PERIOD

check the possible values for fiscal year variant in table T009

He your are giving fiscal year variant as space , so i guess it will not return any output