12-27-2014 6:09 AM
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.
12-27-2014 7:16 AM
Use
Field <field_name> Module <Module_name>.
within PAI of the screen. Give Error message in case validation fails.
12-27-2014 9:04 AM
12-27-2014 2:56 PM
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.
12-29-2014 8:48 AM
12-29-2014 10:59 AM
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.