2008 Mar 04 10:01 PM
Hi Friends ,
I have a ztable . I am updating a record of the ztable using dialog programming i.e from the screen .
DATA: ztable_tmp type ztable.
....
...
......
...........
UPDATE ZTABLE FROM ZTABLE_TMP.
COMMIT WORK .
....
...
.....................
The above code is not updating the record changed on the screen . I checked in debug and the wa has the changed values but the ztable in the database is not getting updated .
Please advise !
Thanks!!
2008 Mar 04 10:06 PM
DATA ztable TYPE SPFLI.
MOVE 'AA' TO ztable-CARRID.
MOVE '0064' TO ztable-CONNID.
MOVE 'WASHINGTON' TO ztable-CITYFROM.
...
UPDATE SPFLI FROM ztable.
Don't use Commit statement
Kevin
Hi Friends ,
I have a ztable . I am updating a record of the ztable using dialog programming i.e from the screen .
DATA: ztable_tmp type ztable.
....
...
......
...........
UPDATE ZTABLE FROM ZTABLE_TMP.
COMMIT WORK .
....
...
.....................
The above code is not updating the record changed on the screen . I checked in debug and the wa has the changed values but the ztable in the database is not getting updated .
Please advise !
Thanks!!
2008 Mar 04 10:06 PM
DATA ztable TYPE SPFLI.
MOVE 'AA' TO ztable-CARRID.
MOVE '0064' TO ztable-CONNID.
MOVE 'WASHINGTON' TO ztable-CITYFROM.
...
UPDATE SPFLI FROM ztable.
Don't use Commit statement
Kevin
2008 Mar 04 10:08 PM
2008 Mar 04 10:10 PM
it is zero . Is this is correct way to update from a work area ?
2008 Mar 04 10:13 PM
It is updating now . I guess I have a prob displaying the updated table value back on the screen .
Thanks !
2008 Mar 04 10:15 PM
Try declaring the table:
DATA: ztable_tmp type ztable with header line.Rob
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |