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

Substitution does not trigger when posting through FB01

Former Member
0 Likes
1,923

Hi all,

My requirement is when user post through tcode FB01 ,the posting date should change to first date of next month if posting period is closed.

i am trying to achieve it through Substitution but the substitution does not trigger when posting date is in closed period as it throws standard error .

Please help.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,474

You could use BAdI FI_HEADER_SUB_1300 to prepare default data for screen.

Alas for your exact requirement, I fear that the period check is executed too early in a PAI module of screen dynpro, so you may be required to find some (implicit) enhancement before call of FI_PERIOD_CHECK.

Regards,

Raymond

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,475

You could use BAdI FI_HEADER_SUB_1300 to prepare default data for screen.

Alas for your exact requirement, I fear that the period check is executed too early in a PAI module of screen dynpro, so you may be required to find some (implicit) enhancement before call of FI_PERIOD_CHECK.

Regards,

Raymond

Read only

0 Likes
1,474

Thank you  for your help Raymond but i  don't think BADI or implicit enhancement would be good option as i need to change posting date from multiple Transaction codes.its like if posting is done through any module (SD MM, FICO) the posting date should change to the first of the following month if the posting date is within closed period.

Anyways for now my functional said that in transaction code OB52 if we maintain the whole year open for account type + then it will trigger the substitution then on each account type (K,D,S,A) we need to closed the period .

Read only

Former Member
0 Likes
1,474

Did you 'activate' the substitution? I remember I had to change something in a (customizing) table: tc OBBH

Read only

0 Likes
1,474

Thanks Zhou..But the substitution is very much active because when i trigger through MIRO and try to change the posting date it works completely fine.