2007 Sep 24 9:03 AM
hey guyz!
i have a requirement.....
in one enhancement i have added some 10 fileds of char1 with check boxes in a screen of which 1 must be checked while creating WBS.
soo...the user checks some of them...
we have to update those checked values into the respevted table..
soo....in the exit .....do we have to write code for updating these values???
or the updation will be done automaticly??
if we have to write the code...jus plz help me with code....provide me code....m a beginner....plz help me...
reg
Zid.
2007 Sep 24 9:13 AM
hi,
u have to write update query explicitly.
UPDATE <tablename> SET
<field1> = value1
<field2> = value2
. . .
WHERE <condition>.
in the USER_Command module of PAI.
here values are the name of the checkbox in your case.
thnks
Dharmishta
2007 Sep 24 9:14 AM
You have to write ABAP code to update the table.
Find the respective tables which are to be updated using F1 help.
Aslo u can find the names of the field using F1 help.
The checkboxes contain values <b>X</b>
Check which are fields are checked using <b>if fieldname = 'X'.</b>
Then use
<b>Update, Insert or Modify</b> commands for updating the respective tables.
Please reward if helpful.