2008 Dec 03 12:26 PM
Hi,
I'm currently trying to insert a record in the rsdiobjt table. If this works i have a batch of (similar) query's wich I execute as a one-time update.
In order to do so, i've made the following query:
INSERT INTO rsdiobjt (langu , opbjnm , objvers , txtsh , txtlg) VALUES ('N' ,'0PPM_QNT' , 'Kort' , 'lang John Smith').
When I try to execute the query i get the following error:
"Unable to interpret: (langu , opbjnm , objvers , txtsh , txtlg)"
"Possible causes of error: Incorrect spelling or comma error"
Can anyone tell me what the correct opensql syntax is?
thanks
2008 Dec 03 12:33 PM
Hi
declare a workarea (wa_itab) with the same structure as of rsdiobj.
The values u want to insert are 2 be assigned to the corresponding fields in the work area.
Then use the stmt
INSERT INTO rsdiobjt VALUES wa_itab.
the fileds which r nnot reqd 2 be inserted can be left blank in the workarea.
Regards
Winnie
>
> Hi,
>
> I'm currently trying to insert a record in the rsdiobjt table. If this works i have a batch of (similar) query's wich I execute as a one-time update.
> In order to do so, i've made the following query:
>
> INSERT INTO rsdiobjt (langu , opbjnm , objvers , txtsh , txtlg) VALUES ('N' ,'0PPM_QNT' , 'Kort' , 'lang John Smith').
>
> When I try to execute the query i get the following error:
> "Unable to interpret: (langu , opbjnm , objvers , txtsh , txtlg)"
> "Possible causes of error: Incorrect spelling or comma error"
>
> Can anyone tell me what the correct opensql syntax is?
>
> thanks
Hi Jong,
I think it is due to space after every field in your query.
Just try like this.
INSERT INTO rsdiobjt (langu, opbjnm, objvers, txtsh, txtlg)
VALUES ('N', '0PPM_QNT', 'Kort', 'lang John Smith').
Hope it will be useful to you.
Thanks
Nitesh
2008 Dec 03 12:29 PM
>
> Hi,
>
> I'm currently trying to insert a record in the rsdiobjt table. If this works i have a batch of (similar) query's wich I execute as a one-time update.
> In order to do so, i've made the following query:
>
> INSERT INTO rsdiobjt (langu , opbjnm , objvers , txtsh , txtlg) VALUES ('N' ,'0PPM_QNT' , 'Kort' , 'lang John Smith').
>
> When I try to execute the query i get the following error:
> "Unable to interpret: (langu , opbjnm , objvers , txtsh , txtlg)"
> "Possible causes of error: Incorrect spelling or comma error"
>
> Can anyone tell me what the correct opensql syntax is?
>
> thanks
Hi Jong,
I think it is due to space after every field in your query.
Just try like this.
INSERT INTO rsdiobjt (langu, opbjnm, objvers, txtsh, txtlg)
VALUES ('N', '0PPM_QNT', 'Kort', 'lang John Smith').
Hope it will be useful to you.
Thanks
Nitesh
2008 Dec 03 12:29 PM
Hi,
Use UPDATA DBTAB with SET key word
please go through the KEY word documentation for further info there you will find an example too
Regards
Ramchander Rao.k
2008 Dec 03 12:33 PM
Hi
declare a workarea (wa_itab) with the same structure as of rsdiobj.
The values u want to insert are 2 be assigned to the corresponding fields in the work area.
Then use the stmt
INSERT INTO rsdiobjt VALUES wa_itab.
the fileds which r nnot reqd 2 be inserted can be left blank in the workarea.
Regards
Winnie
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |