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

making a field mandatory based on other field

Former Member
0 Kudos
1,347

hi

in transaction ks01/ks02, in basic data tab i nedd to make the field functional area mandatory or raise an error message if the field is blank based on the company code.

i mean if the company code is 'kkkk' then the field functional area should be mandatory. kindly suggest me how can i achieve this.

thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Kudos
874

Hi ,

You can do it by Transaction Variant .

For that you need to create a cransaction Variant for the transaction KS01.

First go to the Transaction SHD0 .

Create the variant for KS01 and during creation of the variant make that field obligatory.

Then create transaction ofr that variant and assign that .

Regards

Pinaki

6 REPLIES 6
Read only

Former Member
0 Kudos
874

As per my understanding , user exit have to be implemented.

Read only

Former Member
0 Kudos
874

Hello,

You can go on with BAdis;

Check for the class, CL_EXIT_HANDLER.

Open this class and set a break-point at EXIT-NAME; then run your transaction.

Now note down the BAdis implemented, Copy those BAdi names and run transaction SE18/19.

Do required enhancements.

Thanks,

Zahack

Read only

Former Member
0 Kudos
875

Hi ,

You can do it by Transaction Variant .

For that you need to create a cransaction Variant for the transaction KS01.

First go to the Transaction SHD0 .

Create the variant for KS01 and during creation of the variant make that field obligatory.

Then create transaction ofr that variant and assign that .

Regards

Pinaki

Read only

tarangini_katta
Active Contributor
0 Kudos
874

Hi ,

I think,

this exit will sove u r problem.

EXIT_SAPLKMA1_003.Implement this exit.

if tcskp-bukrs is not initial.

Loop at screen.

IF SCREEN-NAME = 'CSKSZ-FUNC_AREA'

screen-required = 'X'.

enidf

endif.

hope this may help u.But i am sure this exit will help u.

Thanks,

Read only

Former Member
0 Kudos
874

Thanks

Read only

0 Kudos
727
  • Transaction Variant
    You can create Transaction Variant using SHD0
  • BADI
    CL_EXIT_HANDLER.