2012 Jul 18 11:02 AM
Hi All
I am an ABAPer I have a requirement in Project system.
I have created a custom screen using exit CNEX0006 it is working fine but in CJ20n it displays as custom tab
and in CJ01 as a separate screen.
when all details are entered and custom screen details are not entered if we save it is saving.
I want to restrict when they save if any fields are not entered message should be displayed saying some fields are not entered.
I have kept fields as required bt also its not restricting.
Please reply
Thanks & Regards
Indu Priya
2012 Jul 18 11:13 AM
*Validating multiple field on a dynpro screen via a PAI module call
FIELD scr_field-field1
MODULE validate_screen_field "ABAP code for validation contained in PAI module
ON INPUT.
CHAIN.
FIELD: field1, field2.
MODULE validate_screen_fields. "Write the logic here
ENDCHAIN.
2012 Jul 18 11:13 AM
*Validating multiple field on a dynpro screen via a PAI module call
FIELD scr_field-field1
MODULE validate_screen_field "ABAP code for validation contained in PAI module
ON INPUT.
CHAIN.
FIELD: field1, field2.
MODULE validate_screen_fields. "Write the logic here
ENDCHAIN.
2012 Jul 18 12:10 PM
Hi
I have written code but it is not giving any message see the procedure below
Goto cj01 enter details
click enter
enter fields
now save its just saves without restricting.
I am not even going to custom screen bt the project is created.
2012 Jul 18 12:25 PM
Hi,
There is a BADI for 'SAVE'
WORKBREAKDOWN_UPDATE
Check whether u cld write the code over here...
2012 Jul 18 1:03 PM
Hi
this is for WBS level not Proj Level I suppose but I will Check .
2012 Jul 19 6:36 AM
Hi
Thanks for your answer i got a hint in BADI
WORKBREAKDOWN_UPDATE is not working PROJECTDEF_UPDATE
is working.
Now my requirement is completely working.