2007 Oct 29 3:07 AM
Hi all
i retrieve few row of record from my database and i had put these record into a internal table. i gt a problem in putting the internal to the method. Any help? the method is set_text_as_r3table.
data: begin of itab occurs 0,
name type Student-name,
END OF itab.
SELECT name
INTO itab
FROM Student
WHERE admino = '123'
ENDSELECT.
CALL METHOD g_editor->set_text_as_r3table
EXPORTING table = <b>itab</b>.
2007 Oct 29 3:12 AM
Hi Gary,
Can you tell the class name to which this method belong.
Also if you want to pass the data to method you need some changes in your code
TYPES: begin of ty_itab,
name type Student-name,
END OF ty_itab.
DATA itab type table of ty_itab.
Try this and see what is the result.
Regards,
Atish
Hi all
i retrieve few row of record from my database and i had put these record into a internal table. i gt a problem in putting the internal to the method. Any help? the method is set_text_as_r3table.
data: begin of itab occurs 0,
name type Student-name,
END OF itab.
SELECT name
INTO itab
FROM Student
WHERE admino = '123'
ENDSELECT.
CALL METHOD g_editor->set_text_as_r3table
EXPORTING table = <b>itab</b>.
2007 Oct 29 3:10 AM
EXPORTING table = itab.
Make sure that the type of itab and exporting table should match with each other
2007 Oct 29 3:12 AM
Hi Gary,
Can you tell the class name to which this method belong.
Also if you want to pass the data to method you need some changes in your code
TYPES: begin of ty_itab,
name type Student-name,
END OF ty_itab.
DATA itab type table of ty_itab.
Try this and see what is the result.
Regards,
Atish
2007 Oct 29 3:17 AM
2007 Oct 29 3:22 AM
Hi Gary,
I am in ECC 6 but not able to find the method you mentioned in the class cl_gui_cfw .
Regards,
Atish
2007 Oct 29 3:25 AM
my program is abt texteditcontrol . It can be found in abapdocu. under the dialog complex screen. Look for custom control.
2007 Oct 29 3:41 AM
Hi Gary,
Tried to search in the path you given but unable to find,
By the way have you tried with the code I given for the table defination.
Also can you tell what error you are getting.
Regards,
Atish
2007 Oct 29 5:49 AM
thk for yr help ....
i manage to solve the problem myself... thank for yr reply
2007 Oct 29 5:55 AM
2007 Oct 29 5:58 AM
something to share.... i use this declaration for set_text_as_r3table
TYPES:
BEGIN OF t_texttable,
line(line_length) TYPE c,
END OF t_texttable.
DATA
i_texttable TYPE TABLE OF t_texttable.
2007 Oct 29 6:01 AM
hi Gary,
I think I also give you the same suggestion:). Anyways good that your problem solved.
Regards,
Atish
2007 Oct 29 6:05 AM
Btw thank. you know any FM can check for sql statement sytnax error
2007 Oct 29 5:46 AM
Hi,
Try with the below code.
CALL METHOD g_editor->set_text_as_r3table
EXPORTING
table = itab[]
EXCEPTIONS
error_dp = 1
error_dp_create = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |