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

How to validate the data by using dialog programming

Former Member
0 Likes
417

Hi

How to validate the data by using dialog programming, Any technique

Thanks

2 REPLIES 2
Read only

Former Member
0 Likes
354

Hello,

You can try this.

loop at itab <-----the table passed to table control

chain.

itab-tab_fld1.

itab-tab_fld2.

itab-tab_fld3.

module validate.

endchain.

endloop.

module validate input.

*do your validations for table control fields.

if sy-subrc <> 0.

loop at screen.

if screen-name = scrn_fld1.

screen-input = 1.

modify screen.

if screen-name = scrn_fld2.

screen-input =2.

modify screen.

endloop.

end module.

regards.

Read only

Former Member
0 Likes
354

Hi Krishna,

Check the below syntax.

loop at it_valid.

chain.

it_valid-seld1.

it_valid-seld2.

it_valid-seld3.

module valid.

endchain.

endloop.

module valid input.

if sy-subrc <> 0.

loop at screen.

if screen-name = scrn_fld1.

screen-input = 1.

modify screen.

if screen-name = scrn_fld2.

screen-input =2.

modify screen.

endloop.

end module.

Cheers.