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

validation before save in cj01 tcode

Former Member
0 Likes
1,917

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

1 ACCEPTED SOLUTION
Read only

JJosh
Active Participant
0 Likes
1,739

*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.

5 REPLIES 5
Read only

JJosh
Active Participant
0 Likes
1,740

*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.

Read only

Former Member
0 Likes
1,739

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.

Read only

JJosh
Active Participant
0 Likes
1,739

Hi,

There is a BADI for 'SAVE'

WORKBREAKDOWN_UPDATE

Check whether u cld write the code over here...

Read only

Former Member
0 Likes
1,739

Hi

this is for WBS level not Proj Level I suppose but I will Check .

Read only

Former Member
0 Likes
1,739

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.