Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

set_text_as_r3table

Former Member
0 Likes
1,903

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>.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,769

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>.

12 REPLIES 12
Read only

Former Member
0 Likes
1,769

EXPORTING table = itab.

Make sure that the type of itab and exporting table should match with each other

Read only

Former Member
0 Likes
1,770

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

Read only

0 Likes
1,769

the class is: CLASS cl_gui_cfw DEFINITION LOAD.

Read only

0 Likes
1,769

Hi Gary,

I am in ECC 6 but not able to find the method you mentioned in the class cl_gui_cfw .

Regards,

Atish

Read only

0 Likes
1,769

my program is abt texteditcontrol . It can be found in abapdocu. under the dialog complex screen. Look for custom control.

Read only

0 Likes
1,769

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

Read only

0 Likes
1,769

thk for yr help ....

i manage to solve the problem myself... thank for yr reply

Read only

0 Likes
1,769

Hi Gary,

What was the issue?

Regards,

Atish

Read only

0 Likes
1,769

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.

Read only

0 Likes
1,769

hi Gary,

I think I also give you the same suggestion:). Anyways good that your problem solved.

Regards,

Atish

Read only

0 Likes
1,769

Btw thank. you know any FM can check for sql statement sytnax error

Read only

Former Member
0 Likes
1,769

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.