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

Error Mesage

Former Member
0 Likes
742

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.

6 REPLIES 6
Read only

Former Member
0 Likes
706

use CHAIN...ENDCHAIN

PROCESS AFTER INPUT.

CHAIN.

FIELDS : field1 ,

field2........

ENDCHAIN.

specify all the screen fields as field1,field2 above

Read only

Former Member
0 Likes
706

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.

Read only

Former Member
0 Likes
706

also chk this DEMO program

<b>DEMO_DYNPRO_FIELD_CHAIN</b>

Read only

Former Member
0 Likes
706

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

Read only

Former Member
0 Likes
706

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

Read only

Former Member
0 Likes
706

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