‎2007 Mar 07 2:42 PM
Hi Group,
When I am validating on screen field in one of the transactions in PAI include,if field is blnk I am throwing the Error message saying that please enter the value,but
after this error message the whole screen is disabled and user not able to enter the value further,can any body suggest how to enable the screen after this error message display.
‎2007 Mar 07 2:48 PM
use CHAIN...ENDCHAIN
PROCESS AFTER INPUT.
CHAIN.
FIELDS : field1 ,
field2........
ENDCHAIN.
specify all the screen fields as field1,field2 above
‎2007 Mar 07 2:49 PM
when validating do like this.
in pai.
field field1 module validate.
do your validating in the module validate.
if you have multiple fields that are to be input enabled even when you get the errro message, then do like this
chain.
field field1.
field field2.
module validate.
endchain.
‎2007 Mar 07 2:51 PM
‎2007 Mar 07 2:53 PM
Hello,
<b>Use CHAIN .... ENDCHAIN like this:</b>
PAI
CHAIN.
FIELD RMMG1-WERKS module validate
In Report
MODUL VALIDATE.
IF FLAG1 = SPACE.
MESSAGE E255.
ENDIF.
ENDMODUL VALIDATE.Reagrds,
Vasanth
‎2007 Mar 07 2:54 PM
hI,
PAI.
Field Sflight-carrid values (LH).
Field Sflight-connid values (0400 0500).
In this case if the user enters only carrid wrong, then this particular field is enabled and rest of the fields are disabled for user to input. Many times if the user enters wrong value for one field, then you might want to give option to user to enter all the fields, which is not possible by using Field statement only. This functionality can be achieved by CHAIN ENDCHAIN.
Syntax
Chain.
Field sflight-carrid value (LH).
Field sflight-connid values (between 200 and 500).
Endchain.
Field sflight-price values (100 1000).
In this case, if the user enters wrong value only for carrid, both the fields i.e. carrid and connid are enabled as they are grouped together in the Chain statement. The field price will be disabled for input. Usually, logically related fields are grouped together with Chain-Endchain statement.
Regards,
Sruthi
‎2007 Mar 07 2:56 PM
hi ,
CHECK IN PBO ,
IF YOU DOING THIS,
loop at screen.
screen-input = 0.
modify screen.
endloop.
IF YOU SEE THIS THEN COMMENT IT.
PLEASE POST THE CODE SO THAT WE CAN BE IN A BETTER POSITION TO HELP YOU OUT
LET ME KNOW IF YOU NEED ANYTHING ELSE.
THANKS
VENKI