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: 

company code check T/C: FK03

Former Member
0 Kudos

Hello Gurus,

In the display vendor screen (FK03) I would like to implement a check to ensure a company code is entered.

Eg: If company code is blank issue error message " Enter a company code".

How would I do this?

Can anyone give me example code to do this and where I would put it?

I am not an ABAPer so please be as informative as possible.

Thanks,

Alec

1 ACCEPTED SOLUTION

GauthamV
Active Contributor
0 Kudos

hi,

u can achieve this using functional configuration itself.

make the screen field of company code as manditory for fk03.

5 REPLIES 5

GauthamV
Active Contributor
0 Kudos

hi,

u can achieve this using functional configuration itself.

make the screen field of company code as manditory for fk03.

Former Member
0 Kudos

I don't really want to modify a SAP standard screen, I know there are some config options around the fields in FK03 but nothing relating to company code on the initial screen. Unless you can tell me different.

any other ideas?

0 Kudos

hi Alec,

you can achieve this through transaction variant. Tcode is: SHDI.

hope this helps

ec

Former Member
0 Kudos

The screen variant solution solved this problem - created in transaction code SHD0 - Thanks Eric

Former Member
0 Kudos

Hi Alec,

You can create a Field Exit for this field.

Go to transaction CMOD.

In the first screen of CMOD, input "PRFB" in the transaction input box (where you enter various transaction name ex: SE38)

This will take you to the "Field Exit " screen.

From the menu bar, follow the path Field Exit > create

It will ask for data element , enter "LIF16".

It will take you to the SE37 screen with FM name "FIELD_EXIT_LIF16".

you need to create this FM.

If INPUT is INITIAL show error message.

After creating this, in the field exit screen, you can assign particualr screen for which it will be applicable.