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

XREF1_HD field added on FB01 screen doesn't show up occasionally. BADI is already active.

Former Member
0 Likes
3,891

Hi,

We have recently created a new BADI implementation for the BADI definition  FI_HEADER_SUB_1300 with filter on countries US, Japn and Germany.

We populated XREF1_HD field using the new BADI implementation and activated the BADI. Our intent is to display XREF1_HD field on FB01 screen.

The problem is XREF1_HD field appears in FB01 screen sometimes and doesn't appear at times under my userid. Similarly, other users are facing the same issue. There is no code/restriction applied on Userids.

Could anyone  suggest as to why this happens? Also, could it be due to an existing standard implementation ( please note this existing standard implementation has filters for Brazil and Canada only ... My code is for US...I believe,it shouldn't affect)? Appreciate help on this.

Thanks,

Pavan

6 REPLIES 6
Read only

naimesh_patel
Active Contributor
0 Likes
2,380

BADI FI_HEADER_SUB_1300 is not multiple use BADI. So, you can't have two active implementations for that at the same time. That might be the reason for discrepancy.

Regards,
Naimesh Patel

Read only

0 Likes
2,380

Hi Naimesh,

I have deactivated one of the implementations. But,still the field doesn't show up regularly. One peculiar thing I have noticed is that when we open FB01 for the first time, XREF1_HD field doesn't show up. If we open FB01 for the second time it shows up.

Even though there are multiple implementations active due to different filters,it should pick the correct implementation based on the country. This way, it should display the field.

Not sure, why XREF1_HD doesn't show up for the first time.

Thanks,

Pavan

Read only

Former Member
2,380

Found out the issue. In the user parameters, need to pass parameter id BUK = (default it to any of the country for which BADI FI_HEADER_SUB_1300 is implemented).  Ocassionally XREF1_HD field was not showing up on FB01 since this BADI is implemented only for certain coutnries( based on filter).

Thanks,

Pavan

Read only

Former Member
2,380

OK, it's late.

You have to fill the company code. If the company code is not filled, the BAdI is not called. So fill the company code, press enter and restart the transaction.

Read only

Idroj1981
Explorer
0 Likes
2,380

Hi all,

We work with several company codes, so, do we need to inform 'BUK' parameter in user profile if we don't know wich company code we will use every time we execute FB01?

Thanks a lot!!

Read only

0 Likes
2,380

Yes. We faced similar issue and defaulted Company code in User profile.