‎2007 Nov 29 12:08 PM
Hi
How to validate the data by using dialog programming, Any technique
Thanks
‎2007 Nov 29 12:14 PM
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.
‎2007 Nov 29 12:31 PM
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.