09-22-2008 9:59 AM
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
09-22-2008 10:01 AM
hi,
u can achieve this using functional configuration itself.
make the screen field of company code as manditory for fk03.
09-22-2008 10:01 AM
hi,
u can achieve this using functional configuration itself.
make the screen field of company code as manditory for fk03.
09-22-2008 10:06 AM
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?
09-22-2008 10:08 AM
hi Alec,
you can achieve this through transaction variant. Tcode is: SHDI.
hope this helps
ec
09-22-2008 10:52 AM
The screen variant solution solved this problem - created in transaction code SHD0 - Thanks Eric
09-22-2008 10:08 AM
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.