Application Development 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: 

validating custom enhanced fields for wbs elements in cj20n

Former Member
0 Kudos

Hi,

I am validating custom enhanced fields for wbs elements in cj20n.

when i show error after a wrong value entered the screen is locked and i can't proceed for saving new values i.e it is not even allowing saving of values.

What i wanted was after user enters wrong value the field should remain active and take new values provided by f4 help and save it.

DATA : it_proj_typ TYPE TABLE OF zps_proj_typ.

SELECT * FROM zps_proj_typ INTO TABLE it_proj_typ WHERE zptp =

prps-zzptp.



  IF sy-subrc NE 0.

    LOOP AT SCREEN.



      IF screen-name = 'PRPS-ZZPTP'.



        screen-active = 1.

        screen-input = 1.

        screen-output = 1.

        MODIFY SCREEN.

      ENDIF.





    ENDLOOP.

*message text-001 type 'E'.

Also , i WOULD LIKE TO MENTION CHAIN END CHAIN IS NOT WORKING.







   

5 REPLIES 5

Former Member
0 Kudos

Use

Field <field_name> Module <Module_name>.

within PAI of the screen. Give Error message in case validation fails.

0 Kudos

i have already tried  it.

It's not working

0 Kudos

It has to. You might have done something wrong. Chain-Endchain is not a sytax for it.

Post a screenshot of your coding if possible.

former_member188724
Contributor
0 Kudos

Hi,

Did you try in debug mode whether screen names are correct?

0 Kudos

Hi ,

I could Finally solve the problem and get the output but still i don't know the exact reason for it.

What i did was change screen-input and screen-output values to 0 and it was working.

AND STILL VALIDATION THROUGH FIELD <FIELDNAME> MODULE <MODULENAME> IS NOT WORKING.

I still don't know why  it is not going to that part itself as i tried keeping  hard coded breakpoint in that but it never went to that break point.