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: 

Implementation of BAdi --

former_member355168
Participant
0 Kudos

Dear Experts,

I hv found BAdi name for F-02 using tcode se24. ( Name is FAGL_PERIOD_CHECK).

but I hv no idea abt how to proceed further to make changes using this BAdi.

Can any one help me in same.

Thanks in advance.

Regards,

Jaspal

7 REPLIES 7

Former Member
0 Kudos

Hi,

Steps:

1. Execute Business Add-In(BADI) transaction SE18

2. Enter BADI name i.e. FAGL_PERIOD_CHECKand press the display

button

3. Select menu option Implementation->Create

4. Give implementation a name such as Z_FAGL_PERIOD_CHECK

5. You can now make any changes you require to the BADI within this

implementation, for example choose the Interface tab

6. Double click on the method you want to change, you can now enter

any code you require.

7. Please note to find out what import and export parameters a

method has got return the original BADI definition

(i.e. FAGL_PERIOD_CHECK) and double click on the method name

8. When changes have been made activate the implementation

0 Kudos

Dear Neenu Jose,

Thanks alot for ur detailed reply.

I hv confusion abt the package. what package should i specify when save the implementation.

One I hv created ( i.e. YFI ) or the one that BAdi (FAGL_PERIOD_CHECK) belongs to.

And Neenu I just want to tell my scenario also.

The requirement is : whatever tcode ( FI ) user run, we need to put restriction that document date should not be greater than posting date. ( i.e. using f-02 user entering document date greater that posting date.)

Am I proceeding in right direction by using BAdi (FAGL_PERIOD_CHECK).

I will be very thankful for ur guidance.

and also if u provide some document link for enhancement for beginner.

Regards,

Jaspal

0 Kudos

Hi,

Why don't you use the FI validation (T-code : OB28)?

Search SCN for more details regarding the implementation of FI Validation.

Regards

Vinod

Former Member
0 Kudos

Follow the bellow steps.

1. Execute Business Add-In(BADI) transaction SE18

2. Enter BADI name i.e. FAGL_PERIOD_CHECKand press the display

button

3. Select menu option Implementation->Create

4. Give implementation a name such as Z_FAGL_PERIOD_CHECK

5. You can now make any changes you require to the BADI within this

implementation, for example choose the Interface tab

6. Double click on the method you want to change, you can now enter

any code you require.

7. Please note to find out what import and export parameters a

method has got return the original BADI definition

(i.e. FAGL_PERIOD_CHECK) and double click on the method name

8. When changes have been made activate the implementation

Note : The implemanttaion should be saved in ur package .

that is package with Y/Z.

Write ur code and put break point and check wether it is wrking.

Rajendra

0 Kudos

Hi Rajendra,

Thanks alot for ur guidance.

I hv done the same. Now the problem is, how to captured screen fields ( i.e budat, bldat) in the BAdi.

I hv checked the parameter list, there are no such parameters.

can u pls guide on this.

Thanks in advance.

Regards,

Jaspal

0 Kudos

HI Jaspal ,

Th BADI : FAGL_PERIOD_CHECK is only for posting period .

The following values are allowed for parameter CH_SUBRC:

0 Posting allowed

4 Period & is not open for account type & and general ledger &

6 No authorization for posting period .

Since its not having the fields for BLDAT AND BUDAT .

You will have to find out another BADI for this purpose or you should cosult your functional Consultant for the same .

Regards

Swapnil

0 Kudos

Thanks alot Swapnil for ur help.