Skip to Content
avatar image
Former Member

validating custom enhanced fields for wbs elements in cj20n

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.







   

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Dec 27, 2014 at 07:16 AM

    Use

    Field <field_name> Module <Module_name>.

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • Dec 29, 2014 at 08:48 AM

    Hi,

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.