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

Validate KS01 and KS02

Former Member
0 Likes
1,208

Hi,

Is there a way to validate whether certain fields are entered during cost centre creation (KS01) and change (KS02).

My requirement is that I have to make sure that all fields in 'Joint venture' tab in KS01 and KS02 have to be filled (even though they are not mandatory). If they are not filled I have to display an error message.

Thanks in advance.

Regards,

Arun Mohan

Message was edited by:

Arun Mohan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
923

u can use user exit wherein u need to check whether all fields on this tab have been filled or not...If any field is blank u can popup an error and then user can input the required values.

3 REPLIES 3
Read only

Former Member
0 Likes
923

Hi

I think you can achieve this by using Tcode GGB0 - Validation manitanance.

Regards

Suresh

Read only

Former Member
0 Likes
923

You will need to do a search for BADIs. Set a breakpoint at the FM 'pf_astat_open'. This will be executed everytime a BADI will be called. Also check for user exits.

If there are none. You have two options.

1. Amend the standard SAP PAI processing.

2. Amend the screen and set the fields to be mandatory. You could also do this in the PBO of the screen by using

loop at screen

if screen-name eq '???'

screen-REQUIRED = 1.

endif.

modify screen

endloop.

Read only

Former Member
0 Likes
924

u can use user exit wherein u need to check whether all fields on this tab have been filled or not...If any field is blank u can popup an error and then user can input the required values.