2008 Jul 18 7:14 AM
My requirement is,,
In selection screen I should have
Main asset number
sub asset number...
I have to enter some datas here and it should go and update in the ztable...
it should also check whether the entered data exists in the ztable... if it doesnt exists it should update else it should not update......
ztable is empty as of now....
in layout I have kept main asset and sub asset..
do I need to keep table controls also...
if so in the same screen or in different screen.
Please help ....
2008 Jul 18 7:30 AM
Hi Friend,
No you do not have to show in table control.
declare and interrnal table with same structure as Z table.
pull all data from table control and move to the int table with main asset number and sub asset number.
Use MODIFY ZTABLE FROM TABLE INT_TABLE.
It will do two things, if the record with primary key exist it will update other wise it will insert.
Hope it will help you.
Regards
Krishnendu
My requirement is,,
In selection screen I should have
Main asset number
sub asset number...
I have to enter some datas here and it should go and update in the ztable...
it should also check whether the entered data exists in the ztable... if it doesnt exists it should update else it should not update......
ztable is empty as of now....
in layout I have kept main asset and sub asset..
do I need to keep table controls also...
if so in the same screen or in different screen.
Please help ....
2008 Jul 18 7:30 AM
Hi Friend,
No you do not have to show in table control.
declare and interrnal table with same structure as Z table.
pull all data from table control and move to the int table with main asset number and sub asset number.
Use MODIFY ZTABLE FROM TABLE INT_TABLE.
It will do two things, if the record with primary key exist it will update other wise it will insert.
Hope it will help you.
Regards
Krishnendu
2008 Jul 18 8:22 AM
2008 Jul 18 10:01 AM
hi,
if we want to modify the database table it will check for primary key fields of the database table. If the primary key matches then only the modification works. If you want to change the primary key fields it doesn't work.
2008 Jul 18 10:11 AM
HI,
Use modify statement for your requirement.
Thanks,
Sriram POnna.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |