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

Help in dialog programming command

Former Member
0 Likes
401

Hello All:

I am new to dialog programming and I have a code

FIELD ZFIGL_CLOSE_SCHD-SZHKZG MODULE chk_szhkzg on REQUEST.

When the cursor in in field ZFIGL_CLOSE_SCHD-SZHKZG and I hit enter it should validate based on code in chk_szhkzg. First time when screen comes up, when the cursor is in field and I hit enter it does not go through validattion! When I enter something then it goes to validation. I want it to go through validation even if I don't enter anything (I am checking if the fields is blank). Any ideas how to do this?

Thanks.

Mithun

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
386

Remove the "on REQUEST" part.

Regards,

Rich Heilman

Read only

0 Likes
386

Thanks Rich. I already tried that. Here is the sequence I have

FIELD C_SREF MODULE chk_ref on REQUEST.

FIELD C_SASSIGN MODULE chk_assign on REQUEST.

FIELD ZFIGL_CLOSE_SCHD-SKOSTL MODULE chk_kostl on REQUEST.

FIELD ZFIGL_CLOSE_SCHD-SHKONT MODULE chk_shkont on REQUEST.

FIELD ZFIGL_CLOSE_SCHD-SZHKZG MODULE chk_szhkzg." on REQUEST.

FIELD C_SRATE MODULE chk_srate on REQUEST.

FIELD C_SWRBTR MODULE chk_SWRBTR on REQUEST.

If I remove on request for FIELD ZFIGL_CLOSE_SCHD-SZHKZG and when I enter value for C_SREF and hit enter, it goes directly into valiation for FIELD ZFIGL_CLOSE_SCHD-SZHKZG instead of moving cursor to field C_SASSIGN !

Thanks.

Mithun

Read only

0 Likes
386

Do you want to do validation for ALL those fields? If so, remove the ON REQUEST for all those lines of code.

Regards,

Rich Heilman