2006 Dec 16 6:45 AM
Hi,
Suppose if we do BDC for tcode ca02, in one of the screens i find a table control containing some data. here i want to insert data into that table control. the data (value) that i want to insert into table control from internal table needs to be checked . if it contains value already, then give an error message. how to do?
next question is how can we get the records from the table control in the screen into internal table while doing BDC?
Thanx,
Kranthi
2006 Dec 16 7:14 AM
Hi,
There is no way you can get the data dynamically from a screen while running BDC. Check the DB table from which the table control in CA02 is getting populated. Get all the data before running BDC, & then decide about the error message.
2006 Dec 18 10:17 AM
I think there is no way to validate the fields dynamically.
For the second query, .....
declare itab1 like same structure of itab. and code as follows....
PAI.
loop at itab.
module transferdata.
endloop.
Module transferdata code:
module transferdata input.
append itab to itab1.
endmodule.
Cheers.