‎2006 Nov 28 11:47 AM
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
‎2006 Nov 28 12:00 PM
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.
‎2006 Nov 28 11:59 AM
Hi
I think you can achieve this by using Tcode GGB0 - Validation manitanance.
Regards
Suresh
‎2006 Nov 28 11:59 AM
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.
‎2006 Nov 28 12:00 PM
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.